/* ============================================================
   Riddle Room — shared nav bar styling
   (dark floating bar, styled "Book Now" button, full-screen
    mobile menu, hamburger centring). Used across all Canberra
    pages so the nav stays consistent.
   ============================================================ */

:root {
    --rr-blue: #1660b7;
    --rr-blue-lt: #2f86ee;
}

/* ============================================================
   NAV BAR
   ============================================================ */
.main-nav.dark {
    background-color: rgba(14, 14, 18, 0.88);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    backdrop-filter: saturate(140%) blur(8px);
}
.main-nav.stick-fixed {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

/* ---- Desktop nav (mobile handled separately below) ---- */
@media only screen and (min-width: 1025px) {
    .inner-nav ul li a:not(.bg-colorblue) {
        position: relative;
    }
    .inner-nav ul li a:not(.bg-colorblue)::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 16px;
        height: 2px;
        background: var(--rr-blue-lt);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.25s ease;
    }
    .inner-nav ul li a:not(.bg-colorblue):hover::after,
    .inner-nav ul li.active a:not(.bg-colorblue)::after {
        transform: scaleX(1);
    }

    /* Book Now: 41px tall button. The menu floats to the top of the
       bar, so we centre the button with margin-top:
         full bar  75px → (75-41)/2 = 17px
         shrunk bar 55px → (55-41)/2 = 7px
       and transition between the two as the bar resizes on scroll. */
    .inner-nav ul li a.bg-colorblue {
        height: 41px !important;
        line-height: 41px !important;
        margin: 17px 0 0 10px !important;
        padding: 0 26px !important;
        vertical-align: top;
        border-radius: 8px;
        color: #fff !important;
        font-weight: 600;
        letter-spacing: 1px;
        background: linear-gradient(180deg, var(--rr-blue-lt) 0%, var(--rr-blue) 100%);
        box-shadow: 0 6px 14px rgba(22, 96, 183, 0.4);
        transition: margin-top 0.27s cubic-bezier(0, 0, 0.58, 1),
            box-shadow 0.18s ease, filter 0.18s ease;
    }
    /* when the bar shrinks on scroll, re-centre in the 55px bar */
    .main-nav.small-height .inner-nav ul li a.bg-colorblue {
        margin-top: 7px !important;
    }
    /* hover: glow only, no movement */
    .inner-nav ul li a.bg-colorblue:hover {
        color: #fff !important;
        filter: brightness(1.07);
        box-shadow: 0 9px 20px rgba(22, 96, 183, 0.5);
    }
}

/* ---- Narrow desktop (just before the hamburger kicks in at 1024) ----
   Keep the menu on one line and tighten spacing so it fits to 1025px. */
@media only screen and (min-width: 1025px) and (max-width: 1199px) {
    .inner-nav > ul {
        white-space: nowrap;
    }
    .inner-nav ul li a {
        letter-spacing: 0.5px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
    .inner-nav ul li a:not(.bg-colorblue)::after {
        left: 9px;
        right: 9px;
    }
    .inner-nav ul li a.bg-colorblue {
        margin-left: 6px !important;
        padding: 0 18px !important;
    }
}

/* ---- Mobile: full-screen menu ----
   The theme JS shows/hides the menu with jQuery slideDown/slideUp (it sets
   inline display + animates height) and flags the open state with
   .mobile-nav.active / .desktop-nav.js-opened. So we must NOT force `display`
   here, or the menu can never close. We only style the panel. */
@media only screen and (max-width: 1024px) {
    /* The nav's backdrop-filter makes it a containing block for position:fixed
       children, which traps the menu inside the 55px bar. Disable on mobile. */
    .main-nav.dark {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* Hamburger: match its box to the bar height so the icon centres. */
    .mobile-on .mobile-nav {
        height: 75px !important;
    }
    .main-nav.small-height .mobile-nav {
        height: 55px !important;
    }
    /* When OPEN, keep the hamburger in place and just lift it above the overlay
       so the X lands in the same spot as the hamburger. */
    .mobile-nav.active {
        position: relative;
        z-index: 1060;
    }
    .mobile-nav.active i:before {
        content: "\f00d";
    }

    /* full-screen overlay: 100vw escapes the .full-wrapper 2% margin */
    .mobile-on .desktop-nav {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        padding: 0 !important;
        z-index: 1050;
        overflow-y: auto;
    }
    .mobile-on .desktop-nav ul {
        width: 100% !important;
        min-height: 100%;
        background: rgba(13, 13, 17, 0.98) !important;
        text-align: center;
        padding: 16vh 20px 8vh !important;
    }
    .mobile-on .desktop-nav ul li {
        border: none !important;
        display: block;
    }
    .mobile-on .desktop-nav ul li a {
        display: inline-block !important;
        height: auto !important;
        line-height: 1.2 !important;
        padding: 16px 10px !important;
        font-family: "Dosis", Arial, sans-serif;
        font-size: 24px !important;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: rgba(255, 255, 255, 0.85) !important;
    }
    .mobile-on .desktop-nav ul li a:hover,
    .mobile-on .desktop-nav ul li.active a {
        color: #fff !important;
    }
    /* Book Now stands out in the menu */
    .mobile-on .desktop-nav ul li a.bg-colorblue {
        margin: 16px auto 0 !important;
        padding: 14px 40px !important;
        border-radius: 10px;
        background: linear-gradient(180deg, var(--rr-blue-lt) 0%, var(--rr-blue) 100%);
        color: #fff !important;
        box-shadow: 0 8px 18px rgba(22, 96, 183, 0.45);
    }
}
