/* ========================================
   mellow coffee & bakes - Custom Styles
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Noto+Sans+JP:wght@300;400;500;600&family=Noto+Serif+JP:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
    --color-cream: #FAF5EF;
    --color-warm-white: #FDF9F3;
    --color-sand: #E8DDD3;
    --color-caramel: #C4956A;
    --color-coffee: #6B4226;
    --color-espresso: #3C2415;
    --color-olive: #7A8B6F;
    --color-olive-light: #A3B396;
    --color-wine: #8B3A4A;
    --color-wine-light: #C4697A;
    --color-charcoal: #2D2D2D;
    --color-text: #3A3A3A;
    --color-text-light: #6B6B6B;
    --color-gold: #C9A96E;
    --color-gold-light: #E5D5B0;
    --font-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(253, 249, 243, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    padding: 0.8rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.05em;
    transition: color 0.4s ease;
}

.navbar.scrolled .nav-logo {
    color: var(--color-espresso);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-caramel);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--color-text);
}

/* Online Shop Button */
.nav-shop-btn {
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 20px !important;
    padding: 0.35rem 1rem !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease !important;
}

.nav-shop-btn::after {
    display: none !important;
}

.nav-shop-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.navbar.scrolled .nav-shop-btn {
    border-color: var(--color-espresso) !important;
    color: var(--color-espresso) !important;
}

.navbar.scrolled .nav-shop-btn:hover {
    background: var(--color-espresso) !important;
    color: #fff !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: var(--color-espresso);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(253, 249, 243, 0.98);
        backdrop-filter: blur(20px);
        transition: right 0.4s ease;
        gap: 2.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--color-espresso) !important;
        font-size: 1.1rem;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&q=80&fm=webp&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44, 30, 18, 0.45) 0%, rgba(44, 30, 18, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
}

.hero-content .subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    font-weight: 300;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .tagline {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    gap: 0.5rem;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* ===== Section Common ===== */
.section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .en-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-espresso);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.section-header .jp-title {
    font-size: 0.8rem;
    color: var(--color-caramel);
    letter-spacing: 0.2em;
    font-weight: 400;
}

.section-header .divider {
    width: 40px;
    height: 1px;
    background: var(--color-caramel);
    margin: 1.5rem auto 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Concept Section ===== */
.concept {
    background: var(--color-warm-white);
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.concept-image {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
}

.concept-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.concept-image:hover img {
    transform: scale(1.03);
}

.concept-text h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-espresso);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.concept-text p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* ===== Features Section ===== */
.features {
    background: var(--color-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--color-warm-white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.05);
}

.feature-card-body {
    padding: 1.8rem;
}

.feature-card-body .feature-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-caramel);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.feature-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-espresso);
    margin-bottom: 0.8rem;
}

.feature-card-body p {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--color-text-light);
}

/* ===== Menu Section ===== */
.menu {
    background: #F5B6B1;
    color: var(--color-espresso);
}

.menu .section-header .en-title {
    color: var(--color-espresso);
}

.menu .section-header .jp-title {
    color: var(--color-coffee);
}

.menu .section-header .divider {
    background: var(--color-coffee);
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.menu-category h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-espresso);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(60, 36, 21, 0.2);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(60, 36, 21, 0.1);
}

.menu-item-name {
    font-size: 0.9rem;
    font-weight: 300;
}

.menu-item-price {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-coffee);
    white-space: nowrap;
    margin-left: 1rem;
}

.menu-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

/* ===== Events Section ===== */
.events {
    background: var(--color-warm-white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.event-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.event-date {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-espresso);
    color: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
}

.event-month {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.event-day {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1;
}

.event-date-range {
    min-width: 100px;
}

.event-day-range {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
}

.event-weekday {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-top: 0.3rem;
}

.event-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-tag {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-caramel);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    font-weight: 500;
    width: fit-content;
}

.event-tag.tag-wine {
    background: var(--color-wine);
}

.event-tag.tag-bake {
    background: var(--color-olive);
}

.event-tag.tag-special {
    background: var(--color-gold);
    color: var(--color-espresso);
}

.event-body h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-espresso);
    margin-bottom: 0.5rem;
}

.event-body p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
}

.event-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.event-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #06C755;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
    width: fit-content;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.event-line-btn:hover {
    background: #05b34d;
    transform: translateY(-1px);
}

.event-line-btn svg {
    flex-shrink: 0;
}

.events-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

/* ===== Info Section ===== */
.info {
    background: var(--color-cream);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.info-details h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-espresso);
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-sand);
}

.info-label {
    min-width: 100px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--color-caramel);
    font-weight: 500;
}

.info-value {
    font-size: 0.92rem;
    line-height: 1.8;
}

.info-ig-link {
    color: var(--color-caramel);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.info-ig-link:hover {
    color: var(--color-espresso);
}

.info-map {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Calendar Widget */
.shop-calendar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.calendar-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-espresso);
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 1rem;
}

.instagram-embed-wrapper {
    display: flex;
    justify-content: center;
}

.calendar-month {
    margin-bottom: 1.5rem;
}

.calendar-month:last-child {
    margin-bottom: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.calendar-header h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-espresso);
    letter-spacing: 0.05em;
}

.calendar-nav {
    background: none;
    border: 1px solid var(--color-sand);
    border-radius: 4px;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: var(--color-sand);
    color: var(--color-espresso);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.calendar-grid .day-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    padding: 0.3rem 0;
    font-weight: 500;
}

.calendar-grid .day-label.sun {
    color: #E74C3C;
}

.calendar-grid .day-label.sat {
    color: #3498DB;
}

.calendar-grid .day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    border-radius: 50%;
    color: var(--color-text);
    position: relative;
}

.calendar-grid .day-cell.empty {
    background: none;
}

.calendar-grid .day-cell.today {
    font-weight: 600;
    background: var(--color-caramel);
    color: #fff;
}

.calendar-grid .day-cell.closed {
    color: #fff;
    background: #E74C3C;
    font-weight: 500;
}

.calendar-grid .day-cell.past {
    opacity: 0.35;
}

.calendar-grid .day-cell.sun-day {
    color: #E74C3C;
}

.calendar-grid .day-cell.sat-day {
    color: #3498DB;
}

.calendar-grid .day-cell.closed.sun-day,
.calendar-grid .day-cell.closed.sat-day {
    color: #fff;
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-open {
    background: var(--color-caramel);
}

.legend-closed {
    background: #E74C3C;
}

/* Wide Map */
.info-map-wide {
    margin-top: 3rem;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2.5 / 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-map-wide iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--color-caramel);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.map-link-btn:hover {
    color: var(--color-espresso);
}

@media (max-width: 768px) {
    .info-map-wide {
        aspect-ratio: 4 / 3;
    }
}

/* ===== Access Section ===== */
.access {
    background: var(--color-warm-white);
}

.access-content {
    text-align: center;
}

.access-content p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* ===== Footer ===== */
.footer {
    background: #F5B6B1;
    color: rgba(60, 36, 21, 0.6);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-espresso);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(60, 36, 21, 0.25);
    border-radius: 50%;
    color: rgba(60, 36, 21, 0.6);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--color-espresso);
    color: var(--color-espresso);
}

.footer-copy {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(60, 36, 21, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .concept-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .menu-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 1.5rem;
    }
}