/* ==========================================================================
   232 BAR — Premium Mobile Navigation Overlay
   Full-viewport speakeasy menu (charcoal + gold) matching the menu-card brand.
   Replaces the old Bootstrap gray dropdown with white border-bottom dividers.
   Applies only at <= 767px (Bootstrap 3 SM breakpoint) where .navbar-toggle shows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESKTOP DEFAULTS — hide the mobile-only overlay decorations.
   These elements ("232 · Channelside" eyebrow, gold frame, phone footer)
   only make sense inside the full-screen mobile overlay; on desktop the
   horizontal nav has no use for them.
   -------------------------------------------------------------------------- */
.nav-overlay-frame,
.nav-overlay-eyebrow,
.nav-overlay-footer {
    display: none !important;
}

@media (max-width: 767px) {

    /* Re-enable the decorations inside the mobile overlay */
    .nav-overlay-frame,
    .nav-overlay-eyebrow,
    .nav-overlay-footer {
        display: block !important;
    }


    /* ------------------------------------------------------------------
       1. THE OVERLAY SHELL
       Override Bootstrap's collapse panel — turn it into a fixed full-screen
       speakeasy "room" with a warm dark gradient.
       ------------------------------------------------------------------ */
    .navbar-main-collapse {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: radial-gradient(ellipse at 50% 35%,
                                    #221e18 0%,
                                    #14110d 55%,
                                    #0a0907 100%);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        border: 0 !important;
        box-shadow: none !important;
        -webkit-transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                            visibility 0.5s;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.5s;
    }
    .navbar-main-collapse.in,
    .navbar-main-collapse.collapsing {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Soft inner vignette on top to anchor the page header visually */
    .navbar-main-collapse::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 180px;
        background: linear-gradient(to bottom,
                                    rgba(0,0,0,0.55) 0%,
                                    rgba(0,0,0,0) 100%);
        pointer-events: none;
        z-index: 1;
    }

    /* ------------------------------------------------------------------
       2. DECORATIVE FRAME — double gold border, matches menu card
       ------------------------------------------------------------------ */
    .nav-overlay-frame {
        position: absolute;
        top: 18px;
        left: 18px;
        right: 18px;
        bottom: 18px;
        border: 1px solid rgba(192, 167, 86, 0.45);
        pointer-events: none;
        z-index: 2;
    }
    .nav-overlay-frame::before {
        content: '';
        position: absolute;
        top: 7px;
        left: 7px;
        right: 7px;
        bottom: 7px;
        border: 1px solid rgba(192, 167, 86, 0.12);
        pointer-events: none;
    }

    /* Gold corner brackets — matches .speakeasy-menu corner-decoration */
    .nav-overlay-frame .nav-corner {
        position: absolute;
        width: 28px;
        height: 28px;
        border-color: #c0a756;
        border-style: solid;
    }
    .nav-overlay-frame .nav-corner.tl { top: -1px; left: -1px;
        border-width: 2px 0 0 2px; }
    .nav-overlay-frame .nav-corner.tr { top: -1px; right: -1px;
        border-width: 2px 2px 0 0; }
    .nav-overlay-frame .nav-corner.bl { bottom: -1px; left: -1px;
        border-width: 0 0 2px 2px; }
    .nav-overlay-frame .nav-corner.br { bottom: -1px; right: -1px;
        border-width: 0 2px 2px 0; }

    /* ------------------------------------------------------------------
       3. TOP & BOTTOM FLOURISHES
       ------------------------------------------------------------------ */
    .nav-overlay-eyebrow {
        position: absolute;
        top: 92px;
        left: 0; right: 0;
        text-align: center;
        z-index: 3;
        color: rgba(192, 167, 86, 0.75);
        font-family: 'Oswald', sans-serif;
        font-size: 10px;
        font-weight: 300;
        letter-spacing: 6px;
        text-transform: uppercase;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.6s ease 0.05s, transform 0.6s ease 0.05s;
    }
    .nav-overlay-eyebrow::before,
    .nav-overlay-eyebrow::after {
        content: '';
        display: inline-block;
        width: 22px;
        height: 1px;
        background: rgba(192, 167, 86, 0.4);
        vertical-align: middle;
        margin: 0 14px;
        transform: translateY(-2px);
    }
    .navbar-main-collapse.in .nav-overlay-eyebrow {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-overlay-footer {
        position: absolute;
        bottom: 56px;
        left: 0; right: 0;
        text-align: center;
        z-index: 3;
        padding: 0 30px;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.55s ease 0.55s, transform 0.55s ease 0.55s;
    }
    .navbar-main-collapse.in .nav-overlay-footer {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-overlay-footer .footer-label {
        display: block;
        color: rgba(192, 167, 86, 0.55);
        font-family: 'Oswald', sans-serif;
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 5px;
        text-transform: uppercase;
        margin-bottom: 8px;
    }
    .nav-overlay-footer .footer-phone {
        display: inline-block;
        color: #c0a756;
        font-family: 'Playfair Display', serif;
        font-size: 19px;
        font-weight: 400;
        letter-spacing: 2.5px;
        text-decoration: none;
        position: relative;
        padding: 4px 2px;
        transition: color 0.3s ease;
    }
    .nav-overlay-footer .footer-phone:hover,
    .nav-overlay-footer .footer-phone:focus,
    .nav-overlay-footer .footer-phone:active {
        color: #f1d98a;
        text-decoration: none;
    }
    .nav-overlay-footer .footer-rule {
        display: block;
        width: 40px;
        height: 1px;
        background: linear-gradient(to right,
                                    transparent,
                                    rgba(192, 167, 86, 0.55),
                                    transparent);
        margin: 14px auto 0;
    }

    /* ------------------------------------------------------------------
       4. THE NAV LIST — centered, breathable, NO white border-bottom
       Strong overrides because elixir.css applies its own positioning
       and a hard 1px white line under every <li>.
       ------------------------------------------------------------------ */
    .navbar-main-collapse .navbar-nav,
    .navbar-main-collapse.in .navbar-nav,
    .navbar-main-collapse.collapsing .navbar-nav {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 140px 24px 150px !important;
        background: transparent !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: column;
                flex-direction: column;
        -webkit-justify-content: center;
                justify-content: center;
        -webkit-align-items: center;
                align-items: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 4;
    }

    /* Kill the hated white dividers entirely */
    .navbar-main-collapse .navbar-nav > li,
    .navbar-main-collapse.in .navbar-nav > li {
        border-bottom: 0 !important;
        border-top: 0 !important;
        width: 100%;
        max-width: 320px;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none;
        text-align: center;
        position: relative;
        opacity: 0;
        transform: translateY(14px);
    }

    /* Gentle gold hairline BETWEEN items only (not under every li).
       This reads as a brand element, not a structural border. */
    .navbar-main-collapse .navbar-nav > li + li::before {
        content: '';
        display: block;
        width: 34px;
        height: 1px;
        background: linear-gradient(to right,
                                    transparent,
                                    rgba(192, 167, 86, 0.30),
                                    transparent);
        margin: 6px auto;
    }

    /* Staggered entry animation */
    .navbar-main-collapse.in .navbar-nav > li {
        -webkit-animation: navItemRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
                animation: navItemRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .navbar-main-collapse.in .navbar-nav > li:nth-child(1) {
        -webkit-animation-delay: 0.18s; animation-delay: 0.18s; }
    .navbar-main-collapse.in .navbar-nav > li:nth-child(2) {
        -webkit-animation-delay: 0.24s; animation-delay: 0.24s; }
    .navbar-main-collapse.in .navbar-nav > li:nth-child(3) {
        -webkit-animation-delay: 0.30s; animation-delay: 0.30s; }
    .navbar-main-collapse.in .navbar-nav > li:nth-child(4) {
        -webkit-animation-delay: 0.36s; animation-delay: 0.36s; }
    .navbar-main-collapse.in .navbar-nav > li:nth-child(5) {
        -webkit-animation-delay: 0.42s; animation-delay: 0.42s; }
    .navbar-main-collapse.in .navbar-nav > li:nth-child(6) {
        -webkit-animation-delay: 0.48s; animation-delay: 0.48s; }
    .navbar-main-collapse.in .navbar-nav > li:nth-child(7) {
        -webkit-animation-delay: 0.54s; animation-delay: 0.54s; }

    @-webkit-keyframes navItemRise {
        to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
    }
    @keyframes navItemRise {
        to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
    }

    /* ------------------------------------------------------------------
       5. THE LINKS — Playfair Display gold, generous spacing, no all-caps SHOUT
       Heavy overrides because #header .menu-item a forces white uppercase 14px.
       ------------------------------------------------------------------ */
    .navbar-main-collapse .navbar-nav > li > a,
    .navbar-main-collapse .menu-item a,
    #header .navbar-main-collapse .menu-item a,
    #header.overflow .navbar-main-collapse .menu-item a {
        font-family: 'Playfair Display', serif !important;
        font-size: 26px !important;
        line-height: 1.1 !important;
        font-weight: 400 !important;
        color: #c0a756 !important;
        letter-spacing: 4px !important;
        text-transform: uppercase !important;
        padding: 12px 18px !important;
        display: inline-block !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 0 !important;
        text-shadow: 0 0 22px rgba(192, 167, 86, 0.12);
        text-decoration: none !important;
        position: relative;
        -webkit-transition: color 0.35s ease,
                            letter-spacing 0.35s ease,
                            text-shadow 0.35s ease;
                transition: color 0.35s ease,
                            letter-spacing 0.35s ease,
                            text-shadow 0.35s ease;
    }
    .navbar-main-collapse .navbar-nav > li > a:hover,
    .navbar-main-collapse .navbar-nav > li > a:focus,
    .navbar-main-collapse .navbar-nav > li > a:active {
        color: #f1d98a !important;
        background: transparent !important;
        letter-spacing: 5px !important;
        text-shadow: 0 0 28px rgba(241, 217, 138, 0.35);
        outline: none !important;
    }

    /* Underline accent that draws in on tap */
    .navbar-main-collapse .navbar-nav > li > a::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 0;
        height: 1px;
        background: #c0a756;
        transform: translateX(-50%);
        -webkit-transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
                transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .navbar-main-collapse .navbar-nav > li > a:hover::after,
    .navbar-main-collapse .navbar-nav > li > a:focus::after,
    .navbar-main-collapse .navbar-nav > li > a:active::after {
        width: 55%;
    }

    /* Current page indicator (.current is used on food.html, drinks.html, gallery.html) */
    .navbar-main-collapse .navbar-nav > li.current > a {
        color: #f1d98a !important;
    }
    .navbar-main-collapse .navbar-nav > li.current > a::after {
        width: 55%;
    }

    /* ------------------------------------------------------------------
       6. HAMBURGER → ANIMATED X
       Replaces the generic <i class="fa fa-bars"></i> with 3 lines that
       morph into an X. Sits above the overlay so it can close the menu.
       ------------------------------------------------------------------ */
    .navbar-toggle {
        position: relative;
        display: block !important;
        width: 44px !important;
        height: 44px !important;
        margin: 18px 10px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        z-index: 1002;          /* above #header (1001) so it stays clickable */
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .navbar-toggle:focus,
    .navbar-toggle:active {
        outline: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    /* Hide the FA icon — we draw our own lines */
    .navbar-toggle .fa { display: none !important; }

    .navbar-toggle .hamburger-line {
        position: absolute;
        left: 9px;
        width: 26px;
        height: 1.5px;
        background-color: #c0a756;
        border-radius: 1px;
        -webkit-transition: top 0.4s cubic-bezier(0.7, 0, 0.2, 1) 0.1s,
                            transform 0.4s cubic-bezier(0.7, 0, 0.2, 1),
                            opacity 0.2s ease,
                            background-color 0.3s ease;
                transition: top 0.4s cubic-bezier(0.7, 0, 0.2, 1) 0.1s,
                            transform 0.4s cubic-bezier(0.7, 0, 0.2, 1),
                            opacity 0.2s ease,
                            background-color 0.3s ease;
    }
    .navbar-toggle .hamburger-line:nth-child(1) { top: 14px; }
    .navbar-toggle .hamburger-line:nth-child(2) { top: 21px; }
    .navbar-toggle .hamburger-line:nth-child(3) { top: 28px; }

    /* When menu is open: collapse top + bottom into a centered X */
    body.menu-open .navbar-toggle .hamburger-line:nth-child(1),
    .navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        top: 21px;
        -webkit-transform: rotate(45deg);
                transform: rotate(45deg);
        -webkit-transition: top 0.3s cubic-bezier(0.7, 0, 0.2, 1),
                            transform 0.4s cubic-bezier(0.7, 0, 0.2, 1) 0.15s;
                transition: top 0.3s cubic-bezier(0.7, 0, 0.2, 1),
                            transform 0.4s cubic-bezier(0.7, 0, 0.2, 1) 0.15s;
    }
    body.menu-open .navbar-toggle .hamburger-line:nth-child(2),
    .navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
        -webkit-transform: translateX(-12px);
                transform: translateX(-12px);
    }
    body.menu-open .navbar-toggle .hamburger-line:nth-child(3),
    .navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        top: 21px;
        -webkit-transform: rotate(-45deg);
                transform: rotate(-45deg);
        -webkit-transition: top 0.3s cubic-bezier(0.7, 0, 0.2, 1),
                            transform 0.4s cubic-bezier(0.7, 0, 0.2, 1) 0.15s;
                transition: top 0.3s cubic-bezier(0.7, 0, 0.2, 1),
                            transform 0.4s cubic-bezier(0.7, 0, 0.2, 1) 0.15s;
    }

    /* Defensive: kill elixir.css color overrides on the toggle in fixed state */
    #header .navbar-toggle,
    #header.overflow .navbar-toggle,
    #header.overflow.fixed .navbar-toggle,
    .navbar-toggle.menu {
        color: transparent !important;
    }

    /* ------------------------------------------------------------------
       7. HEADER BEHAVIOR WHEN MENU IS OPEN
       Page header is z-index: 1001 and the overlay is 1000, so the header
       sits ON TOP. Make it transparent so it visually disappears into the
       speakeasy overlay — the brand logo stays anchored in the corner.
       ------------------------------------------------------------------ */
    body.menu-open #header,
    body.menu-open #header.overflow,
    body.menu-open #header.overflow.fixed {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
    /* Keep brand logo visible (it sits inside the header) even when open */
    body.menu-open .navbar-brand img {
        -webkit-filter: drop-shadow(0 0 12px rgba(0,0,0,0.4));
                filter: drop-shadow(0 0 12px rgba(0,0,0,0.4));
    }

    /* ------------------------------------------------------------------
       8. BODY SCROLL LOCK
       ------------------------------------------------------------------ */
    body.menu-open {
        overflow: hidden;
        -webkit-overflow-scrolling: auto;
        position: relative;
    }

    /* ------------------------------------------------------------------
       9. HIDE STRAY UI WHILE OVERLAY IS OPEN
       (back-to-top button, page chevron, anything else that might bleed.)
       ------------------------------------------------------------------ */
    body.menu-open .cd-top,
    body.menu-open .mouse {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* ------------------------------------------------------------------
       10. KILL OLD elixir.css MOBILE NAV RULES
       These are the actual source of the "ugly lines" + gray dropdown.
       ------------------------------------------------------------------ */
    .navbar-collapse {
        height: auto !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .navbar-main-collapse.in .navbar-nav,
    .navbar-main-collapse.collapsing .navbar-nav {
        background: transparent !important;
        width: 100% !important;
        left: 0 !important;
        top: 0 !important;
    }
}

/* ==========================================================================
   Tiny phones: dial down padding + type size so 7 items fit landscape
   ========================================================================== */
@media (max-width: 380px), (max-height: 620px) and (max-width: 767px) {
    .navbar-main-collapse .navbar-nav,
    .navbar-main-collapse.in .navbar-nav {
        padding: 120px 20px 130px !important;
    }
    .navbar-main-collapse .navbar-nav > li > a {
        font-size: 22px !important;
        letter-spacing: 3px !important;
        padding: 9px 14px !important;
    }
    .navbar-main-collapse .navbar-nav > li + li::before {
        margin: 3px auto;
    }
    .nav-overlay-eyebrow { top: 76px; font-size: 9px; letter-spacing: 5px; }
    .nav-overlay-footer { bottom: 38px; }
    .nav-overlay-footer .footer-phone { font-size: 16px; }
}

/* ==========================================================================
   Reduced motion: skip the rise animation
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .navbar-main-collapse,
    .navbar-main-collapse .navbar-nav > li,
    .navbar-main-collapse.in .navbar-nav > li,
    .navbar-main-collapse .navbar-nav > li > a,
    .nav-overlay-eyebrow,
    .nav-overlay-footer,
    .navbar-toggle .hamburger-line {
        -webkit-animation: none !important;
                animation: none !important;
        -webkit-transition: opacity 0.2s ease, visibility 0.2s ease !important;
                transition: opacity 0.2s ease, visibility 0.2s ease !important;
    }
    .navbar-main-collapse .navbar-nav > li {
        opacity: 1 !important;
        transform: none !important;
    }
}
