/* ============================================
   THE GRIDDLE DINER — Styles
   Palette: Emerald (#064e3b / #065f46) + Cream (#faf8f3)
   Fonts: Instrument Sans (UI) + Lora (accents)
   ============================================ */

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

:root {
    --emerald-deep: #064e3b;
    --emerald: #065f46;
    --emerald-light: #047857;
    --emerald-muted: #d1fae5;
    --cream: #faf8f3;
    --cream-dark: #f0ebe0;
    --cream-mid: #f5f0e8;
    --text-dark: #1a2e26;
    --text-body: #2d4a3e;
    --text-muted: #6b8f7e;
    --text-light: #9bb5a8;
    --white: #ffffff;
    --line: rgba(6, 95, 70, 0.12);
    --line-strong: rgba(6, 95, 70, 0.25);

    --font-ui: 'Instrument Sans', -apple-system, sans-serif;
    --font-accent: 'Lora', Georgia, serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

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

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-ui);
    font-weight: 400;
    color: var(--text-body);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ============================================
   SECTION LABELS & HEADINGS
   ============================================ */

.section-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: var(--space-sm);
}

.section-heading {
    font-family: var(--font-ui);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.accent-italic {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--emerald);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald);
    color: var(--cream);
    border-color: var(--emerald);
}

.btn-primary:hover {
    background: var(--emerald-deep);
    border-color: var(--emerald-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(250, 248, 243, 0.4);
}

.btn-ghost:hover {
    background: rgba(250, 248, 243, 0.1);
    border-color: var(--cream);
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(6, 78, 59, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--emerald);
    color: var(--cream);
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-style: italic;
    border-radius: var(--radius-sm);
}

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

.nav a {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

.nav a:not(.nav-btn):hover {
    color: var(--emerald);
}

.nav a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald);
    transition: width var(--transition);
}

.nav a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: var(--emerald) !important;
    border: 1px solid var(--line-strong);
    padding: 0.55rem 1.2rem;
    border-radius: 100px;
    transition: all var(--transition) !important;
}

.nav-btn:hover {
    background: var(--emerald);
    color: var(--cream) !important;
    border-color: var(--emerald);
}

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

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
}

/* Mobile nav */
.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

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

.mobile-nav-link {
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

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

.mobile-nav-cta {
    margin-top: 1rem;
    font-size: 0.85rem !important;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald) !important;
    border: 1px solid var(--line-strong);
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: var(--emerald-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('https://images.pexels.com/photos/38447625/pexels-photo-38447625.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080')
        center center / cover no-repeat;
    opacity: 0.35;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 78, 59, 0.7) 0%,
        rgba(6, 78, 59, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250, 248, 243, 0.6);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-ui);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--cream);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero-accent {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: #6ee7b7;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(250, 248, 243, 0.75);
    max-width: 540px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(250, 248, 243, 0.4);
    transition: color var(--transition);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: rgba(250, 248, 243, 0.8);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   ABOUT
   ============================================ */

.about {
    padding: var(--space-3xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.about-text {
    padding: var(--space-md) 0;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--line);
}

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

.stat-number {
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--emerald);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--line-strong);
}

/* ============================================
   DIVIDER
   ============================================ */

.section-divider {
    padding: 0 var(--space-lg);
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ============================================
   MENU
   ============================================ */

.menu {
    padding: var(--space-3xl) 0;
}

.menu-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.menu-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.1);
    border-color: transparent;
}

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 500/350;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.menu-card-body {
    padding: var(--space-lg);
}

.menu-card-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald);
    background: var(--emerald-muted);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    margin-bottom: var(--space-sm);
}

.menu-card-title {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.menu-card-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.menu-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--line);
}

.menu-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    font-family: var(--font-accent);
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
    padding: var(--space-3xl) 0;
}

.gallery-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item--tall {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    aspect-ratio: 500/700;
}

.gallery-item:not(.gallery-item--tall) {
    aspect-ratio: 500/350;
}

.gallery-item--wide {
    grid-column: 5 / 13;
    aspect-ratio: 800/350;
}

/* ============================================
   VISIT
   ============================================ */

.visit {
    padding: var(--space-3xl) 0;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit-info {
    padding: var(--space-lg) 0;
}

.visit-details {
    font-style: normal;
    margin-bottom: var(--space-xl);
}

.visit-details p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: var(--space-sm);
}

.visit-details a {
    color: var(--emerald);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.visit-details a:hover {
    color: var(--emerald-light);
}

.visit-hours h3 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: var(--space-sm);
}

.visit-hours p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 0.25rem;
}

.visit-hours .hours-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    font-style: italic;
    font-family: var(--font-accent);
}

.visit-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 450px;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--emerald-deep);
    color: var(--cream);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(250, 248, 243, 0.12);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-logo .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.footer-tagline {
    font-family: var(--font-accent);
    font-style: italic;
    color: rgba(250, 248, 243, 0.5);
    font-size: 0.95rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(250, 248, 243, 0.4);
}

.footer-bottom a {
    color: rgba(250, 248, 243, 0.5);
    transition: color var(--transition);
}

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

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .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: 900px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image-wrap {
        aspect-ratio: 16/10;
    }

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

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

    .gallery-item--tall {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16/9;
    }

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

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

    .visit-map {
        min-height: 300px;
    }

    .visit-map iframe {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    .hero-content {
        padding-top: var(--space-2xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--space-md);
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .gallery-item--tall,
    .gallery-item--wide {
        grid-column: 1;
        aspect-ratio: 16/10;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
