/* ============================================================
   Yafa Cafe — Editorial Bakery & Pantry Website
   Palette: Emerald (#064e3b / #065f46 / #047857 / #10b981)
            Cream (#fef9f0 / #fdf5e6 / #f5efe0)
   Fonts: Playfair Display (headlines) + Inter (body)
============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;

    --cream-50:  #fef9f0;
    --cream-100: #fdf5e6;
    --cream-200: #f5efe0;
    --cream-300: #e8dfc8;

    --text-dark:   #1a1a1a;
    --text-mid:    #3d3d3d;
    --text-light:  #6b6b6b;
    --text-on-dark:#f5efe0;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.08);

    --container-max: 1200px;
    --header-h: 72px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: .9375rem;
    letter-spacing: .01em;
    border-radius: var(--radius-sm);
    transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--emerald-800);
    color: var(--cream-50);
    padding: 14px 28px;
}
.btn-primary:hover {
    background: var(--emerald-700);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-800);
    border: 1.5px solid var(--emerald-800);
    padding: 13px 27px;
}
.btn-outline:hover {
    background: var(--emerald-800);
    color: var(--cream-50);
}

.btn-cream {
    background: var(--cream-200);
    color: var(--emerald-900);
    padding: 10px 20px;
    font-weight: 600;
}
.btn-cream:hover {
    background: var(--cream-300);
}

.btn-sm {
    font-size: .8125rem;
    padding: 8px 18px;
}

.btn-lg {
    font-size: 1rem;
    padding: 16px 32px;
}

.btn-outline-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--emerald-700);
    border: 1.5px solid var(--emerald-700);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .9375rem;
    transition: background .2s ease, color .2s ease;
}
.btn-outline-map:hover {
    background: var(--emerald-700);
    color: var(--cream-50);
}

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.125rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--emerald-900);
    margin-bottom: 20px;
}

.section-title .accent-italic {
    font-style: italic;
    font-weight: 500;
    color: var(--emerald-700);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(254, 249, 240, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-300);
    transition: box-shadow .25s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-900);
}

.logo-mark {
    color: var(--emerald-700);
}

.logo--light {
    color: var(--cream-50);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-list a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-mid);
    position: relative;
    transition: color .2s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--emerald-700);
    transition: width .25s ease;
}

.nav-list a:hover {
    color: var(--emerald-800);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--emerald-900);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE NAV
============================================================ */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(2, 44, 34, .5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        width: min(320px, 85vw);
        height: calc(100vh - var(--header-h));
        background: var(--cream-50);
        padding: 32px 28px;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        z-index: 95;
        border-left: 1px solid var(--cream-300);
    }

    .nav.open { transform: translateX(0); }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav-list a {
        font-size: 1.125rem;
        color: var(--text-dark);
    }
}

/* ============================================================
   HERO
============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--emerald-900);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(254,249,240,.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16,185,129,.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254,249,240,.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--emerald-500);
    margin-bottom: 28px;
    padding: 8px 16px;
    border: 1px solid rgba(16,185,129,.3);
    border-radius: 100px;
    background: rgba(16,185,129,.08);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-500);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--cream-50);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-title .accent-italic {
    font-style: italic;
    font-weight: 500;
    color: var(--cream-200);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    line-height: 1.7;
    color: rgba(245, 239, 224, .75);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-actions .btn-primary {
    background: var(--cream-100);
    color: var(--emerald-900);
}
.hero-actions .btn-primary:hover {
    background: var(--cream-50);
    box-shadow: var(--shadow-lg);
}

.hero-actions .btn-outline {
    border-color: rgba(245,239,224,.4);
    color: var(--cream-200);
}
.hero-actions .btn-outline:hover {
    background: rgba(245,239,224,.1);
    border-color: var(--cream-200);
    color: var(--cream-50);
}

/* Floating Stat Cards */
.hero-stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.stat-card {
    position: absolute;
    background: rgba(254, 249, 240, .1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(254, 249, 240, .15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--cream-50);
    min-width: 130px;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--cream-100);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .04em;
    color: rgba(245,239,224,.7);
    line-height: 1.4;
}

.stat-card--1 { top: 18%; right: 6%; }
.stat-card--2 { top: 52%; right: 3%; }
.stat-card--3 { bottom: 22%; right: 10%; }
.stat-card--4 { bottom: 10%; right: 28%; }

@media (max-width: 1024px) {
    .hero-stats { display: none; }
}

@media (max-width: 640px) {
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-inner { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
}

/* ============================================================
   ABOUT
============================================================ */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-800);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: .15;
}

.about-content-col {
    max-width: 480px;
}

.about-content-col .section-title {
    margin-bottom: 24px;
}

.about-content-col p {
    color: var(--text-mid);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--emerald-700);
    margin-top: 2px;
}

.about-feature span {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper { aspect-ratio: 16/10; }
    .about-content-col { max-width: 100%; }
}

@media (max-width: 480px) {
    .about-features { grid-template-columns: 1fr; }
    .about { padding: 80px 0; }
}

/* ============================================================
   MENU
============================================================ */
.menu {
    padding: 100px 0 120px;
    background: var(--cream-100);
}

.menu-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.menu-cat-btn {
    font-family: var(--font-sans);
    font-size: .875rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 100px;
    border: 1.5px solid var(--cream-300);
    color: var(--text-mid);
    background: var(--cream-50);
    transition: all .2s ease;
}

.menu-cat-btn:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-800);
}

.menu-cat-btn.active {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    color: var(--cream-50);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.menu-card {
    background: var(--cream-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.menu-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cream-50);
    background: var(--emerald-900);
    padding: 4px 10px;
    border-radius: 100px;
}

.menu-card-body {
    padding: 20px;
}

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 6px;
    line-height: 1.25;
}

.menu-card-desc {
    font-size: .875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================
   GALLERY
============================================================ */
.gallery {
    padding: 100px 0 120px;
    background: var(--cream-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item--tall {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    min-height: 500px;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    aspect-ratio: 3/2;
}

.gallery-item--wide {
    grid-column: 6 / 13;
    aspect-ratio: 16/9;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item--tall {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }
    .gallery-item--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item--tall,
    .gallery-item--wide {
        grid-column: auto;
    }
    .gallery { padding: 80px 0; }
}

/* ============================================================
   VISIT
============================================================ */
.visit {
    padding: 100px 0 120px;
    background: var(--emerald-900);
    color: var(--cream-50);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit .section-eyebrow { color: var(--emerald-500); }
.visit .section-title { color: var(--cream-50); }
.visit .section-title .accent-italic { color: var(--cream-200); }

.visit-details {
    list-style: none;
    margin: 36px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.visit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--emerald-500);
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--emerald-500);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(245,239,224,.85);
}

.visit-detail a {
    color: var(--cream-200);
    border-bottom: 1px solid rgba(245,239,224,.3);
    transition: border-color .2s ease;
}
.visit-detail a:hover { border-color: var(--cream-200); }

.visit-map-col {
    width: 100%;
}

.visit-map-placeholder {
    background: var(--emerald-800);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    border: 1px solid rgba(254,249,240,.1);
}

.map-icon {
    width: 48px;
    height: 48px;
    color: var(--emerald-500);
    margin: 0 auto 20px;
}

.map-caption {
    font-size: .9375rem;
    color: rgba(245,239,224,.6);
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .visit-grid { grid-template-columns: 1fr; gap: 48px; }
    .visit { padding: 80px 0; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: var(--emerald-950);
    color: var(--cream-200);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(254,249,240,.1);
}

.footer-brand p {
    margin-top: 12px;
    font-size: .875rem;
    color: rgba(245,239,224,.55);
    line-height: 1.6;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(245,239,224,.7) !important;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: .9375rem;
    color: rgba(245,239,224,.7);
    transition: color .2s ease;
}

.footer-nav a:hover { color: var(--cream-50); }

.footer-contact p {
    font-size: .875rem;
    color: rgba(245,239,224,.55);
    margin-bottom: 4px;
}

.footer-contact strong {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--emerald-500);
    display: block;
    margin-bottom: 2px;
}

.footer-contact a {
    color: rgba(245,239,224,.85);
    border-bottom: 1px solid rgba(245,239,224,.25);
    transition: border-color .2s ease;
}
.footer-contact a:hover { border-color: var(--cream-200); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    font-size: .8125rem;
    color: rgba(245,239,224,.4);
}

.footer-bottom a {
    color: rgba(245,239,224,.55);
}
.footer-bottom a:hover { color: var(--cream-200); }

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   SCROLL REVEAL (below-the-fold only, progressive enhancement)
============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: .1s; }
    .reveal-delay-2 { transition-delay: .2s; }
    .reveal-delay-3 { transition-delay: .3s; }
}

/* Reduced motion: show everything immediately */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
