/* 1. GLOBAL RESET & THEME */
:root {
    --bistro-outer-bg: #EAE7DC; 
    --bistro-bg: #FFFDF5; 
    --bistro-text: #1a1a1a;
    --bistro-accent: #8a7b6a;
    --bistro-border: #eeeae0;
    --bistro-dark-border: #999;
    --bistro-cream-hover: #DEDCD5; 
}

* { box-sizing: border-box; }
html { font-size: 62.5%; }
body { margin: 0; padding: 0; background-color: var(--bistro-outer-bg); color: var(--bistro-text); font-family: "Open Sans", sans-serif; font-size: 1.8rem; line-height: 1.6; }

/* --- GLOBAL VISIBILITY --- */
.mobile-only { display: none !important; }
.bistro-desktop-only { display: block !important; }
#mobile-sidebar { display: none; } /* Prevents sidebar from flashing on desktop */

/* Sticky Footer Logic */
.be-wrapper { 
    max-width: 1250px; 
    margin: 0 auto; 
    background-color: var(--bistro-bg); 
    box-shadow: 0 0 40px rgba(0,0,0,0.1); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
}

#main-content {
    flex: 1 0 auto;
}

/* THE MIRROR FIX: Content Gutter matching Header (40px) */
#main-content > div {
    padding: 0 40px !important; 
    box-sizing: border-box;
}

/* SKIP LINK */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 50%; transform: translateX(-50%); top: 10px; width: auto; height: auto; padding: 10px 20px; background: #000; color: #fff; z-index: 10000; text-decoration: none; border-radius: 4px; overflow: visible; }

h1, h2, h3, h4 { font-family: "Bodoni Moda", serif; font-weight: 700; color: #000; margin: 0; }

/* 2. STRICT VISIBILITY */
.bistro-mobile-toggle { 
    display: none !important; /* Hide on desktop */
}

.bistro-desktop-only { display: block !important; }

/* 3. HEADER & NAVIGATION */
header.bistro-header { background-color: var(--bistro-bg); border-bottom: 1px solid var(--bistro-border); width: 100%; border-top: none; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 25px 40px; }
.brand-box h1 { font-size: clamp(3.2rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: 5px; text-transform: uppercase; line-height: 0.9; }
.brand-box p { font-size: 1.25rem; font-style: italic; letter-spacing: 3.5px; margin: 8px 0 0 0; color: #444; text-transform: uppercase; }
.contact-box p { line-height: 1.2; margin: 0; font-size: 1.5rem; color: #333; }

.nav-bar-container { background-color: var(--bistro-bg); padding: 8px 0; border-top: 2px solid var(--bistro-dark-border); border-bottom: 1px solid var(--bistro-border); }
.bistro-nav { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; gap: 30px; }
.bistro-nav a { text-decoration: none; color: var(--bistro-text); font-size: 1.7rem; text-transform: uppercase; padding: 5px 0; display: block; transition: 0.3s; border-bottom: 2px solid transparent; }
.bistro-nav a:hover { color: #000; border-bottom: 2px solid #000; }

.dropdown { position: relative; }
.submenu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--bistro-bg); border: 1px solid var(--bistro-border); min-width: 200px; z-index: 100; list-style: none; padding: 10px 0; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.dropdown:hover .submenu { display: block; }
.submenu a { text-transform: none; font-size: 1.6rem; padding: 10px 20px; border: none !important; transition: background 0.2s; }
.submenu a:hover { background-color: var(--bistro-cream-hover); color: #000; }

.side-by-side { 
    display: flex; 
    align-items: flex-start; 
    gap: 6rem; 
    margin-top: 2rem; 
    width: 100%; 
}
.img-side { width: 350px; flex-shrink: 0; }
.content-side { flex-grow: 1; min-width: 0; }

@media (max-width: 960px) {
    .side-by-side { 
        flex-direction: column !important; 
        gap: 3rem; 
    }
    .img-side { width: 100% !important; }
}
/* --- BUTTON SYSTEM --- */

/* 1. Reserve Now (Main Nav & Mobile) */
.reserve-btn { 
    background: #000; 
    color: #fff !important; 
    padding: 8px 12px !important; 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-weight: bold; 
    border-radius: 2px; 
    transition: 0.3s; 
    border: 1px solid #000; 
    display: inline-block; 
}
.reserve-btn:hover { background-color: var(--bistro-cream-hover); color: #000 !important; }

/* 2. Read More (Home Page) */
.read-more-btn { 
    background: var(--bistro-bg);
    color: #000 !important; 
    padding: 8px 12px !important; 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-weight: bold; 
    border-radius: 2px; 
    transition: 0.3s; 
    border: 1px solid #000; 
    display: inline-block; 
    cursor: pointer;
}
.read-more-btn:hover { background-color: var(--bistro-cream-hover); color: #000 !important; }

/* 3. Print Menu (Menu Pages) */
.print-menu-btn { 
    background: var(--bistro-bg); 
    color: #000 !important; 
    padding: 8px 12px !important; 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-weight: bold; 
    border-radius: 2px; 
    transition: 0.3s; 
    border: 1px solid #000; 
    display: inline-block; 
    cursor: pointer;
}
.print-menu-btn:hover { background-color: var(--bistro-cream-hover); color: #000 !important; }

/* Wrapper for spacing on Home Page when both buttons might appear */
.read-more-container {
    text-align: left; /* Keep it aligned with the text flow */
    margin-bottom: 30px;
}
/* HERO IMAGE */
.bistro-hero { background: url('../images/bistro-front.webp') center/cover no-repeat; height: 350px; width: 100%; border-bottom: 1px solid var(--bistro-border); }

/* 4. CONTENT HEADERS */
.grid-header-row { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important; 
    column-gap: 160px !important;              
    grid-column: 1 / span 2 !important;        
    align-items: baseline; 
    padding: 40px 0 20px 0; 
    width: 100%; 
}
.grid-header-left h2, .grid-header-center h2 { font-size: 3rem !important; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin: 0; line-height: 1; }
.grid-header-left { text-align: left; }
.grid-header-center { text-align: center; }

/* HOME PAGE TITLE (Standard centered H2) */
.fp-title-content { 
    display: block; 
    text-align: center; 
    font-size: 1.8rem !important; /* MATCHES DESCRIPTION */
    margin: 40px 0 20px 0; 
    font-family: "Bodoni Moda", serif;
    font-weight: 800;
    text-transform: uppercase;
}
.page-lunch .fp-title-content, .page-dinner .fp-title-content, .page-wine .fp-title-content, .page-dessert .fp-title-content {
    display: none !important;
}

.page-dessert .grid-cell-right,
.page-dessert .menu-block,
.page-dessert .dish-entry,
.page-dessert .d-name,
.page-dessert .d-body {
    text-align: left !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
}

/* Optional: Add a little extra margin to the right column titles on dessert */
.page-dessert .grid-cell-right h3 {
    text-align: left !important;
}

/* 5. GRID SYSTEMS (Menu/Wine) */
.bistro-grid-system { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    column-gap: 160px; 
    row-gap: 20px;
    width: 100%; 
    max-width: 1100px;
    margin: 0 auto; 
}
.grid-cell-left { text-align: left !important; padding: 0; }
.grid-cell-right { text-align: center !important; padding: 0; }
.grid-cell-right .menu-block, .grid-cell-right .dish-entry { text-align: center !important; }

.bistro-divider { 
    text-align: center; 
    padding: 0; 
    font-size: 2.2rem; /* Slightly smaller for elegance */
    letter-spacing: 12px; /* Tightened from 12px */
    margin: 40px 0; 
    grid-column: 1 / span 2; 
    color: #333;
}


.dish-entry { margin-bottom: 15px; text-align: left !important; }

.menu-block.special-box {
    border-top: 2px solid #000 !important;
    border-bottom: 2px solid #000 !important;
    border-left: none !important;
    border-right: none !important;
    padding: 25px 0 !important; 
    margin-top: 10px;
    margin-bottom: 40px;        
    width: 100%;
    display: block;
}

/* --- WEB MENU FOOTER DISCLAIMERS --- */
.menu-footer-disclaimer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--bistro-border);
    text-align: center;
    font-family: "Bodoni Moda", serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #444;
}

.disclaimer-bold {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.disclaimer-raw {
    font-size: 1.4rem;
    color: #000;
    margin-top: 15px;
    font-style: italic;
}

.disclaimer-cork {
	font-weight: 600;
    text-transform: uppercase;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Mobile Adjustment */
@media (max-width: 960px) {
    .menu-footer-disclaimer {
        text-align: left !important;
        padding-left: 25px;
        padding-right: 25px;
        font-size: 1.6rem;
    }
    .disclaimer-bold {
        font-size: 1.4rem;
    }
}

/* WINE LEDGER */
.wine-single-layout { display: grid; grid-template-columns: 1fr 1fr; column-gap: 160px; max-width: 1100px; margin: 0 auto; }
.wine-stream { grid-column: 1 / span 2; }

h3.wine-cat-header { 
    font-size: 1.8rem !important; /* MATCHES DESCRIPTION */
    font-weight: 800 !important; 
    margin: 35px 0 10px 0 !important; 
    text-transform: uppercase; 
    border: none !important;
}

.wine-header-row, .wine-entry { display: grid; grid-template-columns: 1fr 90px 90px 90px; column-gap: 15px; align-items: baseline; }
.wine-header-row { 
    font-weight: 800; 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    color: #444; 
    border-bottom: none !important; 
    padding-bottom: 5px; 
}

.w-glass, .w-glass strong, .w-glass em, .w-glass strong em { 
    font-size: 1.8rem !important; /* MATCHES DESCRIPTION */
    font-weight: 800 !important; 
    font-style: italic !important; 
    line-height: 1 !important;
}
.w-desc { font-size: 1.8rem !important; font-weight: 400 !important; }
.h-price, .w-glass, .w-half, .w-bottle { text-align: right; }

/* 6. FOOTER */
footer.bistro-footer { background-color: #000 !important; color: #fff !important; padding: 60px 40px 40px 40px; margin-top: 60px; width: 100%; }
.footer-container { display: flex; justify-content: space-between; max-width: 1100px; margin: 0 auto; }
.footer-column h3 { color: #fff; font-size: 1.8rem; margin-bottom: 15px; text-transform: uppercase; }
.footer-column p { color: #fff; font-size: 1.5rem; line-height: 1.4; margin: 0; }
.footer-center { text-align: center; }
.logo-text-footer { font-family: "Bodoni Moda", serif; font-size: 2.2rem; letter-spacing: 4px; display: block; margin-bottom: 10px; text-transform: uppercase; }
.footer-social a { color: #fff; font-size: 2.4rem; margin: 0 10px; }
.footer-bottom { text-align: center; margin-top: 40px; border-top: 1px solid #333; padding-top: 20px; font-size: 1.2rem; color: #888; }

/* 7. Newsletter / Mailchimp Custom Styles */
/* Newsletter Toggle System */
.newsletter-trigger-container {
    text-align: center; /* Center the newsletter to distinguish it from the text buttons */
    margin-top: 0px;
}

/* Match your existing .read-more-btn / .print-menu-btn */
.newsletter-trigger-btn {
    background: var(--bistro-bg);
    color: #000 !important;
    padding: 8px 12px !important;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 2px;
    transition: 0.3s;
    border: 1px solid #000;
    display: inline-block;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-trigger-btn:hover {
    background-color: var(--bistro-cream-hover);
}

.newsletter-section {
    max-width: 600px;
    margin: 20px 0 40px 0;
    padding: 30px;
    background-color: var(--bistro-bg);
    border: 1px solid var(--bistro-dark-border);
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mc-field-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.mc-field-group label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.mc-field-group input {
    padding: 12px;
    border: 1px solid var(--bistro-dark-border);
    font-family: inherit;
    font-size: 1.6rem;
    background: #fff;
}

.mc-field-group input:focus {
    outline: 2px solid #000;
}

.newsletter-submit-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-family: 'Bodoni Moda', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.newsletter-submit-btn:hover {
    background: var(--bistro-accent);
}

.indicates-required {
    font-size: 1.2rem;
    text-align: right;
    margin-bottom: 5px;
    color: #666;
}

.asterisk { color: #c53030; font-size: 1.8rem; }

/* 8. Contact Page Grid */
.contact-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin: 40px 0;
    align-items: flex-start;
}

.contact-info-block {
    flex: 1;
    min-width: 300px;
}

.contact-map-block {
    flex: 1.5;
    min-width: 320px;
    border: 1px solid var(--bistro-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-subheadline {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-detail {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-phone {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.contact-phone:hover {
    color: var(--bistro-accent);
    border-bottom: 1px solid var(--bistro-accent);
}

.contact-cta {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .contact-grid-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .contact-map-block {
        width: 100%;
        order: 2;
    }
    .contact-info-block {
        width: 100%;
        order: 1;
        text-align: center;
    }
}
/* 9. MOBILE OVERRIDES */
@media (max-width: 960px) {
    .bistro-desktop-only { display: none !important; }
    .mobile-only { display: flex !important; } /* Use flex for the action bar */
    
    .bistro-mobile-toggle { 
        display: block !important; 
        background: none !important; 
        border: none !important; 
        font-size: 4rem; 
        cursor: pointer; 
        padding: 0; 
        line-height: 1; 
        outline: none;
        color: #000 !important; 
        -webkit-tap-highlight-color: transparent; 
    }

    /* 1. Action Bar - LOWER Z-Index */
    .mobile-action-bar {
        display: flex !important;
        position: sticky;
        top: 0;
        z-index: 1000; /* Stays below Sidebar */
        left: 0;
        width: 100%;
        height: 45px;
        background: #000;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .action-link {
        color: #fff;
        text-decoration: none;
        font-size: 1.4rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .action-reserve {
        background: #fff;
        color: #000;
        padding: 5px 12px;
        font-size: 1.3rem;
        font-weight: 900;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 2px;
    }

    /* 2. Sidebar - HIGHER Z-Index */
    #mobile-sidebar {
        display: flex !important; /* Shows only on mobile */
        position: fixed;
        right: 0;
        top: 0;
        height: 100%;
        width: 0; /* Managed by JS */
        z-index: 10001; /* Higher than Action Bar */
        background: var(--bistro-bg);
        transition: 0.3s ease-in-out;
        overflow-x: hidden;
        flex-direction: column;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .header-top { padding: 20px; }
    .grid-header-left { display: none !important; }
    .grid-header-row { display: block !important; text-align: center; padding-top: 20px; width: 100% !important; border-bottom: none !important; }
    .grid-header-center h2 { font-size: 3.2rem !important; width: 100% !important; line-height: 1.2; }

    #main-content > div, .bistro-grid-system, .wine-single-layout { padding-left: 25px !important; padding-right: 25px !important; }

    /* 3. Forced Left Alignment for Menu Items */
    .bistro-grid-system { display: block !important; }
    .grid-cell-left, 
    .grid-cell-right, 
    .menu-block, 
    .dish-entry { 
        display: block !important; 
        width: 100% !important; 
        grid-row: auto !important; 
        grid-column: auto !important; 
        text-align: left !important; 
        padding: 0 !important;
        margin-bottom: 20px; 
    }
    
    /* This overrides the PHP-generated 'center' alignment */
    .menu-block .d-name, 
    .menu-block .d-body, 
    .menu-block .price {
        text-align: left !important;
        justify-content: flex-start !important; 
        margin-left: 0 !important;
    }

    .menu-block .d-name {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    .menu-block h3 {
        text-align: left !important;
        margin-bottom: 15px;
        font-size: 2.2rem !important; 
        margin-left: 0 !important;
    }

    .menu-block.special-box {
        text-align: left !important;
        padding: 20px 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* --- MOBILE WINE LEDGER FIX --- */
    .wine-header-row { display: none !important; }
    .wine-single-layout { display: block !important; }
    .wine-stream { text-align: left !important; }
    
    .wine-stream .wine-entry { 
        display: block !important; 
        padding: 15px 0 !important; 
        border-bottom: 1px solid #eee !important; 
    }

    .wine-stream .w-desc { 
        display: block !important; 
        font-weight: bold;
        font-size: 1.8rem;
        line-height: 1.2 !important; 
        margin-bottom: 8px !important; 
    }

    .w-glass, .w-half, .w-bottle {
        display: block !important;
        text-align: left !important;
        font-size: 1.6rem;
        margin-left: 10px;
        line-height: 1.6;
    }

    .w-glass::before  { content: "Gl: "; font-weight: 800; font-size: 1.1rem; color: #555; text-transform: uppercase; margin-right: 5px; }
    .w-half::before   { content: "375: "; font-weight: 800; font-size: 1.1rem; color: #555; text-transform: uppercase; margin-right: 5px; }
    .w-bottle::before { content: "750: "; font-weight: 800; font-size: 1.1rem; color: #555; text-transform: uppercase; margin-right: 5px; }

    .w-glass:empty, .w-half:empty, .w-bottle:empty { display: none !important; }

    .wine-stream .wine-cat-header { margin-top: 25px !important; margin-bottom: 5px !important; }

    .footer-container { flex-direction: column; gap: 40px; text-align: center; }
    .footer-column { text-align: center !important; }
}

/* --- MOBILE MENU COMPONENTS --- */
.mobile-close-btn {
    align-self: flex-end;
    padding: 20px 30px;
    font-size: 5rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;

    /* ADD THESE THREE LINES */
    color: #000 !important; 
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-list {
    list-style: none;
    padding: 0 40px 60px 40px;
    margin: 0;
}

.mobile-menu-list li { margin-bottom: 0px; }

.mobile-menu-list a {
    text-decoration: none;
    font-size: 2rem;
    color: #000;
    text-transform: uppercase;
    font-family: 'Bodoni Moda', serif;
    display: block;
    padding: 10px 0;
}

.mobile-nav-group {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 2px;
    margin: 25px 0 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-sub-link {
    font-size: 1.9rem !important;
    padding-left: 15px !important;
    color: #444 !important;
    text-transform: none !important;
}

#mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

body.menu-open #mobile-overlay {
    visibility: visible;
    opacity: 1;
}

/* 10. PRINT SYSTEM */
@media print {
    .no-print, header, footer, .bistro-hero, .reserve-btn, .read-more-container, .print-btn-wrap { display: none !important; }
    .be-wrapper { box-shadow: none !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; background: #fff !important; }
    body { background: #fff !important; color: #000 !important; font-size: 12pt; }
}