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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f5f7fa;
}

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

ul {
    list-style: none;
}

button {
    /* all: unset; */
    cursor: pointer;
}

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

/* ── Brand tokens ─────────────────────────────────────────────────── */
:root {
    --c-navy: var(--e-global-color-primary, #1E1852);
    --c-teal: var(--e-global-color-accent, #1BDBDB);
    --c-yellow: var(--e-global-color-secondary, #FFC300);
    --c-white: #ffffff;
    --c-muted: #6c757d;
    --c-border: #e6e6e6;
    --radius: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: 180ms ease;
    --menu-gap: 8px;
    /* visual gap between trigger and submenu */
}

/* ── Top Bar ──────────────────────────────────────────────────────── */
.top-bar {
    background: var(--c-navy);
    color: var(--c-white);

    .top-bar__inner {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        /* Stick to the top of .site-header's scroll area on mobile so the
           row stays visible while the drawer scrolls beneath it. Also lifts
           the box-shadow above the drawer. Solid bg required so drawer
           content doesn't bleed through when scrolled under. */
        position: sticky;
        top: 0;
        z-index: 1;
        background: var(--c-navy);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    }

    .top-bar__left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .top-bar__icon {
        color: var(--c-yellow);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .top-bar__icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
        overflow: visible;
        display: block;
    }

    .top-bar__text-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .top-bar__text-primary {
        color: var(--c-yellow);
        font-weight: 700;
        font-size: 15px;
    }

    .top-bar__text-secondary {
        color: var(--c-white);
        font-size: 13px;
    }

    .top-bar__right {
        display: flex;
        align-items: center;
        gap: 16px;
    }


    /* Search form — shared between top-bar (desktop) and mobile drawer */
    .top-bar__search {
        display: flex;
        height: 40px;
        border-radius: 8px;
        overflow: hidden;
    }

    .top-bar__search-field {
        flex: 1;
        min-width: 0;
        border: none;
        padding: 0 16px;
        outline: none;
        font-size: 14px;
        color: var(--c-navy);
        background: var(--c-white);
        border-radius: 8px 0 0 8px;
    }

    .top-bar__search-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--c-yellow);
        color: var(--c-navy);
        border: none;
        padding: 0 24px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        transition: background var(--transition);
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .top-bar__search-submit:hover {
        background: #e0a800;
        /* override elementor style */
        border-width: 0;
    }
}

/* Reasonable desktop sizing: cap the search width inside the top-bar */
.top-bar .top-bar__search {
    width: 360px;
    max-width: 100%;
}

/* Spacing when used inside the mobile drawer */
.mobile-nav .top-bar__search {
    width: 100%;
    margin-top: 16px;
    height: 44px;
    padding: 0 15px;
}

.site-header .top-bar a.top-bar__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-yellow);
    color: var(--e-global-color-text, #1e18f2);
    padding: 0 20px;
    height: 40px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
}

.site-header .top-bar a.top-bar__phone:hover {
    background: #e0a800;
    color: var(--e-global-color-text, #1e18f2);
}

/* Top-bar logo: only shown below the 1200px breakpoint (see media query). */
.top-bar__logo {
    display: none;
    align-items: center;
}

.top-bar__logo a {
    display: flex;
    align-items: center;
}

.top-bar__logo img,
.top-bar__logo .site-logo {
    width: 140px;
    height: auto;
    display: block;
    color: var(--c-white);
    font-weight: 700;
}

/* ── Mobile hamburger toggle ───────────────────────────────────────── */
/* #site-header prefix bumps specificity above Elementor's button rules */
#site-header .mobile-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

#site-header .mobile-toggle .mobile-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

#site-header .mobile-toggle.is-open .mobile-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#site-header .mobile-toggle.is-open .mobile-toggle__bar:nth-child(2) {
    opacity: 0;
}

#site-header .mobile-toggle.is-open .mobile-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile nav drawer ─────────────────────────────────────────────── */
.mobile-nav {
    background: var(--c-navy);
    color: var(--c-white);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 250ms ease,
        transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

    position: absolute;
    width: 100%;
    min-height: calc(100vh - var(--top-bar-h, 0px));
    min-height: calc(100svh - var(--top-bar-h, 0px));

    & .mobile-nav__back {
        padding: 2px 10px;
        margin-block: 12px;
    }
}

.mobile-nav.is-open {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Panel container — panels stack inside here */
.mobile-nav__track {
    position: relative;
    overflow: hidden;
}

/* Each panel occupies the full width; off-screen panels sit to the right */
.mobile-nav__panel {
    width: 100%;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0ms 280ms;
    visibility: hidden;
}

/* Active panel is fully visible, centred */
.mobile-nav__panel.is-active {
    position: relative;
    transform: translateX(0);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0ms 0ms;
    visibility: visible;
}

/* Exiting panel slides left */
.mobile-nav__panel.is-exiting {
    position: absolute;
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0ms 280ms;
    visibility: hidden;
}

.mobile-nav li>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-weight: 600;
    transition: color var(--transition);
}

.mobile-nav .menu-item-has-children>a {
    font-weight: 700;
    cursor: pointer;
}

/* High-specificity link colors so theme/Elementor defaults can't override */
#site-header .mobile-nav li>a,
#site-header .mobile-nav li>a:link,
#site-header .mobile-nav li>a:visited {
    color: var(--c-white);
}

#site-header .mobile-nav li>a:hover,
#site-header .mobile-nav li>a:focus {
    color: var(--c-yellow);
}

/* Right-pointing chevron injected by JS on parent items */
.mobile-nav__chevron {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-yellow);
    flex-shrink: 0;
}

/* Back button at top of each child panel */
.mobile-nav__back {
    background: var(--c-yellow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
    color: var(--c-yellow);
    cursor: pointer;
}

/* Sub-menus are never shown in-place — panels handle this */
.mobile-nav .sub-menu {
    display: none;
}

@media (min-width: 1200px) {

    /* Mobile nav is mobile-only — never visible on desktop */
    .mobile-nav,
    .mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 1199px) {

    /* On mobile, scroll inside the .top-bar (NOT .site-header). Putting
       overflow on the same element that's position:sticky breaks scrolling
       in WebKit. Header stays sticky to viewport, top-bar is the scroll
       container, .top-bar__inner sticks to its top so the bar stays put.
       Using 100svh (smallest viewport height) so iOS address bar doesn't
       cover the last item when it's visible. */
    .top-bar {
        max-height: 100vh;
        max-height: 100svh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* Swap top-bar left content for the site logo */
    .top-bar .top-bar__icon,
    .top-bar .top-bar__text-content {
        display: none;
    }

    .top-bar__logo {
        display: flex;
    }

    /* Hide the desktop header row (logo + nav) */
    #site-header .site-header__inner,
    .site-header .site-header__inner {
        display: none;
    }

    /* Show hamburger */
    #site-header .mobile-toggle {
        display: inline-flex;
    }

    /* Tighter top-bar inner spacing on mobile */
    .top-bar .top-bar__inner {
        gap: 10px;
    }

    /* Compact phone button on mobile */
    .site-header .top-bar a.top-bar__phone {
        padding: 0 10px;
        font-size: 12px;
    }

    /* Hide only the desktop top-bar search; the drawer copy stays visible */
    .top-bar__inner .top-bar__search {
        display: none;
    }
}

@media (max-width: 992px) {
    .top-bar {
        .top-bar__inner {
            align-items: flex-start;
            gap: 10px;
            padding-inline: 15px;
        }

        .top-bar__right {
            gap: 10px;
        }

        .top-bar__search-field {
            width: auto;
            flex: 1;
        }
    }
}

/* ── Header shell ─────────────────────────────────────────────────── */
.site-header {
    background: var(--c-white);
    position: sticky;
    top: 0;
    z-index: 101;
    /* above backdrop (99) */
}

.site-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    width: 175px;
    height: auto;
    display: block;
}

/* ── Nav list ─────────────────────────────────────────────────────── */
.enliven-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Nav item ─────────────────────────────────────────────────────── */
.enliven-nav__item {
    position: relative;
}

#site-header .enliven-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-weight: 700;
    color: var(--e-global-color-text, var(--c-navy));
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

#site-header .enliven-nav__link:hover,
#site-header .enliven-nav__item.is-open>.enliven-nav__link {
    color: var(--e-global-color-ae8fc1c, #F3AA3C);
}

/* Parent nav chevron — FA chevron-down, rotates 180° to up when open */
.enliven-nav__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
    color: #ffc300;
    font-weight: 900;
    margin-top: -0.2em;
}

.enliven-nav__item.is-open>.enliven-nav__link .enliven-nav__chevron {
    transform: rotate(180deg);
}

/* ── Regular dropdown ─────────────────────────────────────────────── */
.enliven-dropdown {
    position: absolute;
    /*
     * top: 100% places the element flush against the parent bottom edge.
     * padding-top provides the visual gap while keeping the hover area
     * continuous — no dead zone between the trigger and the dropdown.
     */
    top: 100%;
    left: 0;
    padding-top: var(--menu-gap);
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity var(--transition), transform var(--transition);
}

.enliven-dropdown__inner {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enliven-nav__item.has-dropdown.is-open .enliven-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.enliven-dropdown li a {
    display: block;
    padding: 9px 16px;
    font-weight: 600;
    color: var(--e-global-color-text, var(--c-navy));
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.enliven-dropdown li a:hover {
    color: var(--e-global-color-ae8fc1c, #F3AA3C);
}

/* ── Mega menu wrapper ────────────────────────────────────────────── */
/*
 * Escape the nav item's positioning context so the mega menu anchors to
 * the sticky .site-header instead. top: 100% then sits flush against the
 * header's bottom edge regardless of header height (top-bar + main row),
 * and the panel follows the header when it sticks during scroll.
 */
.enliven-nav__item.has-mega-menu {
    position: static;
}

.enliven-nav__item.has-mega-menu.is-open .enliven-mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.enliven-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 102;

    .enliven-mega-menu__inner {
        background: var(--c-white);
        border: 1px solid var(--c-border);
        border-top: none;
        box-shadow: var(--shadow);
        display: flex;
        gap: 10px;
        overflow: hidden;
        max-width: 1300px;
        margin: 0 auto;
        padding: 20px;
        border-radius: 6px;
    }


    /* ── Mega menu sidebar ────────────────────────────────────────────── */
    .enliven-mega-menu__sidebar {
        flex-basis: 350px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .enliven-mega-menu__tab {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        /* make items w/o icon be same height as items w/ */
        min-height: 60px;
        padding: 5px 16px 5px 10px;
        font-weight: 700;
        color: var(--e-global-color-text, var(--c-navy));
        background: var(--child-bg, var(--e-global-color-90c4cf9, #e8fbfb));
        border-radius: var(--radius);
        transition: background var(--transition), color var(--transition);
        cursor: pointer;
        user-select: none;
    }

    .enliven-mega-menu__tab-icon {
        position: relative;
        display: inline-flex;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        margin-right: 6px;

        svg {
            width: 100%;
            height: 100%;

            path,
            rect,
            circle,
            ellipse,
            polygon,
            polyline,
            text {
                fill: currentColor;
            }

        }
    }

    .enliven-mega-menu__tab-icon img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: opacity var(--transition);
    }

    .enliven-mega-menu__tab-icon--hover {
        opacity: 0;
    }

    .enliven-mega-menu__tab:hover .enliven-mega-menu__tab-icon--default,
    .enliven-mega-menu__tab.is-active .enliven-mega-menu__tab-icon--default {
        opacity: 0;
    }

    .enliven-mega-menu__tab:hover .enliven-mega-menu__tab-icon--hover,
    .enliven-mega-menu__tab.is-active .enliven-mega-menu__tab-icon--hover {
        opacity: 1;
    }

    .enliven-mega-menu__tab-link {
        color: inherit;
        flex: 1;
    }

    .enliven-mega-menu__tab:hover,
    .enliven-mega-menu__tab.is-active {
        background: var(--c-navy, #1a1f5e);
        color: var(--c-white);
    }

    /* Sidebar child arrow — FA arrow-right */
    .enliven-mega-menu__tab-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: color var(--transition);
    }

    .enliven-mega-menu__tab-arrow i {
        font-weight: 900;
    }

    /* ── Mega menu panels ─────────────────────────────────────────────── */
    .enliven-mega-menu__panels {
        flex-grow: 1;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid var(--c-border);
    }

    .enliven-mega-menu__panel {
        display: none;
        flex-direction: column;
        gap: 20px;
        height: 100%;
    }

    .enliven-mega-menu__panel.is-active {
        display: flex;
    }

    /* Panel header: logo left, CTA right */
    .enliven-mega-menu__panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid var(--c-border);
    }

    .enliven-mega-menu__logo {
        display: flex;
        align-items: center;
    }

    .enliven-mega-menu__logo img {
        height: auto;
        width: 125px;
    }

    /* CTA button */
    .enliven-mega-menu__cta {
        display: inline-flex;
        align-items: center;
        padding: 10px 22px;
        background: var(--e-global-color-secondary, #ffc300);
        color: var(--c-navy);
        font-size: 1.125rem;
        font-weight: 700;
        border-radius: var(--radius);
        transition: background var(--transition);
        white-space: nowrap;
        /* ensure btn is aligned to right even if no logo */
        margin-left: auto;
    }

    .enliven-mega-menu__cta:hover {
        background: #e0a800;
        color: var(--e-global-color-text, #1e18f2);
    }

    /* Grandchildren list */
    .enliven-mega-menu__locations {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        /* padding: 8px 28px 20px; */
        flex: 1;
        align-content: start;
    }

    .enliven-mega-menu__locations li {
        border-bottom: 1px solid var(--c-border);
        padding: 10px;
    }

    .enliven-mega-menu__locations li:last-child,
    .enliven-mega-menu__locations li:nth-last-child(2):nth-child(odd) {
        border-bottom: none;
    }

    .enliven-mega-menu__locations li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 700;
        color: var(--e-global-color-text, var(--c-navy));
        transition: color var(--transition);
    }

    .enliven-mega-menu__locations li a:hover {
        color: var(--e-global-color-ae8fc1c, #F3AA3C);
    }

    /* Oval arrow SVG — fills the span, no separate circle background */
    .enliven-mega-menu__gc-arrow {
        display: inline-flex;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        color: var(--e-global-color-text, var(--c-navy));
        transition: color var(--transition);
    }

    .enliven-mega-menu__gc-arrow svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .enliven-mega-menu__location--inactive {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 700;
        color: var(--c-muted);
        filter: grayscale(1);
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }
}

/* ── Backdrop ─────────────────────────────────────────────────────── */
.enliven-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 99;
    /* below header (100) and submenus (101) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.enliven-backdrop.is-visible,
body:has(.enliven-nav__item.has-mega-menu.is-open) .enliven-backdrop,
body:has(.mobile-nav.is-open) .enliven-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ── Demo page chrome ─────────────────────────────────────────────── */
.demo-hero {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.demo-hero p {
    color: var(--c-muted);
}

/* ── Hello Elementor overrides ────────────────────────────────────── */
#site-header.site-header {
    padding: 0;
    height: auto;
}


#site-header .site-branding {
    margin: 0;
    padding: 0;
}

#site-header .custom-logo-link {
    display: flex;
    align-items: center;
}

#site-header .site-navigation {
    margin: 0;
    padding: 0;
}