/* ==========================================
   1. THEME VARIABLES & SYSTEM RESETS
   ========================================== */
:root {
    --deep-green: #04321A;   
    --gold: #C59B4E;         
    --cream: #F5EFE2;        
    --white: #FFFFFF;
    --dark-text: #1a1a1a;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--deep-green);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   2. NAVIGATION BAR (Mobile-First Optimization)
   ========================================== */
.navbar {
    display: flex;
    flex-direction: column; /* Default to stacked for mobile viewports */
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 4%;
    background-color: rgba(4, 50, 26, 0.98); 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 155, 78, 0.2);
}

.nav-logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allows tabs to drop cleanly if screen is ultra-narrow */
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    padding: 4px 6px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

/* ==========================================
   3. HERO SECTION (IMG_1860.jpg Vibe)
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 160px 20px 60px 20px; /* Generous space so navbar doesn't clip content */
    background: linear-gradient(rgba(4, 50, 26, 0.8), rgba(4, 50, 26, 0.95)), 
                url('hero-food.jpg') no-repeat center center/cover;
}

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

.welcome-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 300;
    opacity: 0.9;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem; /* Optimized mobile scale */
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 300;
}

.categories-bar {
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 18px 0;
    margin: 0 auto 35px auto;
    width: 95%;
}

.categories-list {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
}

.possibilities {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: var(--deep-green);
    background-color: var(--gold);
    padding: 15px 35px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid var(--gold);
}

/* ==========================================
   4. SOCIAL/INSTAGRAM CALLOUT (IMG_1859.jpg Vibe)
   ========================================== */
.social-callout {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #032714; 
}

.card-container {
    background-color: var(--cream);
    color: var(--dark-text);
    padding: 40px 20px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--gold);
}

.card-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--deep-green);
    margin-bottom: 5px;
}

.card-handle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* --- BULLETPROOF INSTAGRAM LIST CENTERING --- */

/* Targets the ul wrapper box and forces it down the exact center of the card */
ul.perks-list {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 auto 35px auto !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* Targets each text item inside the list and strips away left alignment overrides */
ul.perks-list li {
    display: block !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.instagram-btn {
    display: block;
    text-decoration: none;
    color: var(--white);
    background-color: var(--deep-green);
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
}

/* ==========================================
   5. DESKTOP RESPONSIVE OVERRIDES (Wide Screens)
   ========================================== */
@media (min-width: 769px) {
    .navbar {
        flex-direction: row; /* Returns to horizontal alignment on desktop layout */
        justify-content: space-between;
        padding: 20px 8%;
        gap: 0;
    }
    
    .nav-logo a { font-size: 2.2rem; }
    .nav-links { gap: 35px; }
    .nav-links a { font-size: 0.9rem; letter-spacing: 2px; }
    
    .hero { padding-top: 120px; }
    .brand-name { font-size: 5.5rem; }
    .tagline { font-size: 1.2rem; }
    .categories-bar { width: 90%; }
    .categories-list { font-size: 0.85rem; letter-spacing: 4px; }
    
    .social-callout { padding: 100px 20px; }
    .card-container { padding: 50px 40px; }
    .card-title { font-size: 1.8rem; letter-spacing: 2px; }
    .card-handle { font-size: 1.3rem; margin-bottom: 35px; }
    .perks-list { max-width: 280px; margin-bottom: 40px; }
    .perks-list li { 
        font-size: 1rem; 
        margin-bottom: 18px; 
        text-align: center; 
    }
}

/* ==========================================
   6. PREMIUM MENUS SYSTEM LAYOUTS
   ========================================== */
.menu-page-container {
    padding: 140px 6% 80px 6%;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-header {
    text-align: center;
    margin-bottom: 50px;
}

.menu-main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 2px;
}

.menu-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--white);
    opacity: 0.8;
}

.menu-section-container {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 155, 78, 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 50px;
}

.category-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    color: var(--gold);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.heading-price {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.8;
    font-family: 'Montserrat', sans-serif;
    vertical-align: middle;
}

/* ------------------------------------------------------------------
   BYOB LAYOUT  (rebuilt — only this block changed)
   ------------------------------------------------------------------
   Old behaviour: the three steps sat in an auto-fit grid that only fit
   two columns at this width. "Choice of Sauce" wrapped to a second row
   that began *below* the very tall Filling column, so it was orphaned
   near the bottom with a big empty gap. The photo used stretch, so it
   was forced to match that over-tall board and became a cropped sliver.

   New behaviour (works with the existing HTML, .byob-board wrapper and
   all):
     .byob-wrapper  ->  two columns:  [ .byob-board | photo ]
     .byob-board    ->  named-area grid:
                          "bun     filling"
                          "sauce   filling"
                        i.e. Bun on top / Sauce below it in column 1,
                        and the long Filling list spanning both rows in
                        column 2. Bun+Sauce ~= Filling in height, so the
                        blocks stay aligned, nothing is orphaned, and the
                        section is shorter. The photo sits in a balanced
                        portrait frame instead of a stretched strip.
   ------------------------------------------------------------------ */
.byob-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr); /* steps | photo */
    gap: 40px;
    align-items: stretch;
}

.byob-board {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 30px;
    row-gap: 25px;
}

/* Forces Choice of Bun and Choice of Sauce to stack on the left column */
.byob-column:nth-child(1),
.byob-column:nth-child(3) {
    grid-column: 1;
}

/* Forces Choice of Filling to sit in the right column and stretch down completely */
.byob-column:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.byob-image-box {
    align-self: stretch;      /* fills the height of the steps column */
    min-height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 155, 78, 0.2);
}

.byob-image-box .menu-display-photo {
    object-position: center !important; /* keep the burger centred, not clipped low */
}

.byob-step-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.byob-step-title span {
    background-color: var(--gold);
    color: var(--deep-green);
    width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.filling-group-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff6b6b;
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.filling-group-label.vegetarian {
    color: #2ecc71;
}

.byob-list {
    list-style: none;
}

.byob-list li {
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.price {
    font-weight: 700;
    color: var(--gold);
}

.menu-note {
    font-size: 0.8rem;
    color: var(--gold);
    font-style: italic;
    margin-top: 15px;
}

.addons-bar {
    margin-top: 35px;
    border-top: 1px solid rgba(197, 155, 78, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.addons-title {
    color: var(--gold);
    font-weight: 700;
    margin-right: 10px;
}

/* Two Column Layout Cards for Photos + Text (unchanged) */
.menu-flex-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.menu-block-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* image | text */
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 155, 78, 0.15);
    border-radius: 12px;
    overflow: hidden;
    min-height: 480px; /* Establishes uniform minimal desktop frame size */
}

.menu-block-card.reverse {
    grid-template-columns: 1.5fr 1fr; /* text | image */
}

.card-content-wrapper {
    padding: 50px 40px;
    order: 2; /* text on the right by default */
}

.menu-block-card.reverse .card-content-wrapper {
    order: 1; /* text on the left when reversed */
}

.card-img-wrapper {
    order: 1; /* image on the left by default */
    height: 100%;
    overflow: hidden;
}

.menu-block-card.reverse .card-img-wrapper {
    order: 2; /* image on the right when reversed */
}

.menu-display-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.card-content-wrapper.full-width {
    grid-column: 1 / -1;
}

.menu-items-list {
    list-style: none;
}

.menu-items-list li {
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.menu-items-list.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px 30px;
}

.menu-items-list.split-grid li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Unified Mobile and Tablet Media Queries */
@media (max-width: 992px) {
    /* BYOB collapses to one column: photo on top, then Bun -> Filling -> Sauce */
    .byob-wrapper {
        grid-template-columns: 1fr;
    }
    .byob-board {
        grid-template-columns: 1fr;
        grid-template-areas:
            "bun"
            "filling"
            "sauce";
        row-gap: 30px;
    }
    .byob-image-box {
        order: -1;          /* photo banner on top */
        align-self: auto;
        min-height: 0;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .menu-page-container { padding-top: 180px; }
    .menu-main-title { font-size: 2.8rem; }

    .byob-image-box { height: 260px; } /* BYOB-only banner tweak */

    /* Collapse every two-column card to a single stacked column */
    .menu-block-card,
    .menu-block-card.reverse {
        grid-template-columns: 1fr;
    }

    .card-img-wrapper,
    .menu-block-card.reverse .card-img-wrapper {
        order: 1; /* image always on top on mobile */
        height: auto;
    }

    .card-img-wrapper .menu-display-photo,
    .menu-block-card.reverse .card-img-wrapper .menu-display-photo {
        height: auto !important; /* image sizes itself from its own natural aspect ratio */
        object-fit: contain !important; /* safety net, has no visible effect once height is auto */
    }

    .card-content-wrapper,
    .menu-block-card.reverse .card-content-wrapper {
        order: 2;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .card-content-wrapper,
    .menu-block-card.reverse .card-content-wrapper {
        padding: 24px 18px;
    }
}