/* ========================================
   BUEN APETITO — Styles
   Emerald Green + Cream | Minimalist
   ======================================== */

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

:root {
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #10b981;
    --cream-50: #faf9f6;
    --cream-100: #f5f3ed;
    --cream-200: #ebe7dc;
    --cream-300: #e0dbce;
    --text-dark: #1a1a1a;
    --text-mid: #3a3a3a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease-out);
}

.nav.scrolled {
    border-bottom-color: var(--cream-200);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--emerald-800);
}

.nav-logo-mark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--emerald-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald-700);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--emerald-700);
}

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

.nav-link--cta {
    background: var(--emerald-800);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--emerald-700);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-dark);
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--cream-50);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--emerald-700);
}

.mobile-menu-link--cta {
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--emerald-800);
    color: var(--white) !important;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.btn--primary {
    background: var(--emerald-800);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.2);
}

.btn--outline {
    background: transparent;
    color: var(--emerald-800);
    border: 1.5px solid var(--emerald-800);
}

.btn--outline:hover {
    background: var(--emerald-800);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 2rem 4rem;
    background: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
    flex: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    color: var(--emerald-700);
}

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.hero-meta-divider {
    color: var(--cream-300);
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--cream-200);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

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

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1.5px solid var(--emerald-600);
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero-scroll-line {
    width: 48px;
    height: 1px;
    background: var(--cream-300);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--emerald-700);
    animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* --- Divider --- */
.divider {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--cream-200);
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-700);
    opacity: 0.5;
}

/* --- Section Shared --- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 480px;
}

/* --- About --- */
.about {
    padding: 8rem 2rem;
    background: var(--cream-50);
}

.about-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-col {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 7/8;
    background: var(--cream-200);
}

.about-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

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

.about-content {
    padding: 2rem 0;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1.25rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    gap: 3rem;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.about-stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--emerald-800);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* --- Menu --- */
.menu {
    padding: 8rem 2rem;
    background: var(--white);
}

.menu-header {
    max-width: 1280px;
    margin: 0 auto 4rem;
    text-align: center;
}

.menu-header .section-subtitle {
    margin: 0 auto;
}

.menu-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.menu-category {
    padding: 2rem;
    background: var(--cream-50);
    border-radius: 8px;
    border: 1px solid var(--cream-200);
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.menu-category:hover {
    border-color: var(--emerald-600);
    transform: translateY(-4px);
}

.menu-category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--emerald-800);
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cream-200);
}

.menu-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--cream-200);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item-top {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
}

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

.menu-note {
    max-width: 1280px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 0.02em;
}

.menu-cta {
    max-width: 1280px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Gallery --- */
.gallery {
    padding: 8rem 2rem;
    background: var(--cream-50);
}

.gallery-header {
    max-width: 1280px;
    margin: 0 auto 4rem;
    text-align: center;
}

.gallery-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream-200);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
    display: block;
}

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

.gallery-item--wide {
    grid-column: span 7;
}

.gallery-item:not(.gallery-item--wide) {
    grid-column: span 5;
}

.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(4) { grid-column: span 5; }
.gallery-item:nth-child(5) { grid-column: span 5; }
.gallery-item:nth-child(6) { grid-column: span 12; }

/* --- Visit --- */
.visit {
    padding: 8rem 2rem;
    background: var(--white);
}

.visit-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-info {
    padding: 2rem 0;
}

.visit-details {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visit-icon {
    width: 20px;
    height: 20px;
    color: var(--emerald-700);
    flex-shrink: 0;
    margin-top: 3px;
}

.visit-detail-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.visit-link {
    color: var(--emerald-700);
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.visit-link:hover {
    color: var(--emerald-600);
    border-bottom-color: var(--emerald-600);
}

.visit-hours {
    padding-top: 2rem;
    border-top: 1px solid var(--cream-200);
}

.visit-hours-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--emerald-800);
    margin-bottom: 1.25rem;
}

.visit-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--cream-100);
    font-size: 0.9375rem;
}

.visit-hours-row span:first-child {
    color: var(--text-mid);
}

.visit-hours-row span:last-child {
    color: var(--text-dark);
    font-weight: 400;
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--cream-200);
    min-height: 400px;
}

/* --- Footer --- */
.footer {
    background: var(--emerald-900);
    color: var(--cream-200);
    padding: 5rem 2rem 2rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-mark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-200);
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(250, 249, 246, 0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(250, 249, 246, 0.8);
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--white);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.75rem;
    color: rgba(250, 249, 246, 0.4);
    letter-spacing: 0.04em;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.7fr;
        gap: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 0.7fr 1fr;
        gap: 2.5rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item--wide {
        grid-column: span 12;
    }

    .gallery-item:not(.gallery-item--wide) {
        grid-column: span 6;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 6;
    }

    .gallery-item:nth-child(6) {
        grid-column: span 12;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: end;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-image {
        max-width: 480px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image-col {
        aspect-ratio: 4/3;
    }

    .about-stats {
        gap: 2rem;
    }

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

    .menu-category {
        padding: 1.5rem;
    }

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

    .gallery-item--wide,
    .gallery-item:not(.gallery-item--wide) {
        grid-column: span 1;
    }

    .gallery-item img {
        height: 240px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .visit-map {
        aspect-ratio: 16/10;
        min-height: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 72px 1.25rem 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .hero-meta-divider {
        display: none;
    }

    .about, .menu, .gallery, .visit {
        padding: 5rem 1.25rem;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .menu-cta {
        flex-direction: column;
        padding: 0 1rem;
    }

    .menu-cta .btn {
        width: 100%;
    }
}
