/* --------------------------------------------------------------------------
   Site header (header.php) — 2026 design
   --------------------------------------------------------------------------
   Comp (1280 canvas): 58px lime top bar (location selector · trust items)
   over a 92px navy bar (logo · links · phone · Schedule Service).
   The header is sticky with top = −(top bar height): the top bar scrolls
   away, the navy bar stays pinned. It is in normal flow, so blocks below
   need no "clear the fixed header" padding. */

.site-header {
    --topbar-h: 58px;
    --nav-h: 92px;
    position: sticky;
    top: calc(-1 * var(--topbar-h));
    z-index: 1000;
    font-family: var(--font-body);
}

body.admin-bar .site-header { top: calc(32px - var(--topbar-h)); }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: calc(46px - var(--topbar-h)); }
}
/* WP's admin bar stops being fixed below 600px — nothing to clear there. */
@media screen and (max-width: 600px) {
    body.admin-bar .site-header { top: calc(-1 * var(--topbar-h)); }
}

/* Reset the parent theme's generic nav rules that would bleed in here. */
.site-header a { text-decoration: none; }
.site-header ul { list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
    height: var(--topbar-h);
    background-color: var(--color-lime);
}

.topbar__rail {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Location selector: assets/css/locator.css */
.topbar__locator { flex: none; }

/* Trust items ------------------------------------------------------------- */
.topbar__items {
    display: flex;
    align-items: center;
    margin-left: auto !important;
    padding-right: 34px !important;
}

.topbar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--color-navy);
    white-space: nowrap;
}

.topbar__item + .topbar__item {
    margin-left: 32px;
    padding-left: 22px;
    border-left: 1px solid var(--color-navy-border);
    height: 20px;
}

.topbar__icon { width: 16px; height: 16px; }
.topbar__item-short { display: none; }

/* ==========================================================================
   Navy bar
   ========================================================================== */

.site-nav {
    position: relative;            /* anchor for the absolutely-positioned mega */
    height: var(--nav-h);
    background-color: var(--color-navy);

    /* Mobile open-menu sheet palette (see the responsive section). */
    --m-bg: var(--color-navy);
    --m-fg: var(--color-white);
    --m-divider: var(--color-navy-border);
}

.site-nav--mobile-red {
    --m-bg: var(--color-red);
    --m-divider: rgba(255, 255, 255, 0.4);
}

.site-nav__rail {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-nav__brand { flex: none; display: flex; align-items: center; }
.site-nav__logo { display: block; width: 220px; height: auto; }

.site-nav__collapse { margin-left: 17px; }

.site-nav__menu { display: flex; align-items: center; }
.site-nav__item { display: flex; }

.site-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    height: var(--nav-h);
    padding: 0 15px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-white);
    background: transparent;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__item--mega.is-open .site-nav__link--mega,
.site-nav__link.is-current { color: var(--color-lime); }

.site-nav__caret {
    width: 15px;
    height: 15px;
    color: var(--color-lavender);
    transition: transform 0.2s ease;
}

.site-nav__item--mega.is-open .site-nav__caret { transform: rotate(180deg); color: var(--color-lime); }

/* Actions: phone + Schedule Service -------------------------------------- */
.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.site-nav__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--color-lime);
    border-radius: var(--radius-sm);
    background-color: var(--color-navy-raised);
    color: var(--color-lime);
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav__phone:hover { background-color: var(--color-lime); color: var(--color-ink); }
.site-nav__phone-icon { width: 18px; height: 18px; }

.site-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    background-color: var(--color-lime);
    color: var(--color-ink);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.site-nav__cta:hover { background-color: var(--color-white); color: var(--color-ink); }
.site-nav__cta-icon { width: 16px; height: 16px; }

/* ==========================================================================
   Mega panel (Services / Locations) — 2026-10 redesign
   ==========================================================================
   Desktop (≥992px): a floating card 10px under the navy bar.
     col 1  category rail (icon · label · count)
     col 2  active pane: heading, icon tiles (Services) or branch-grouped
            city chips + search (Locations), footer strip
     col 3  promo: 24/7 emergency (Services) / your branch (Locations);
            both follow the location selector via locator.js hooks.
   Mobile (≤991px): the same markup becomes the accordion inside the sheet.
   Rail + panes share one grid (groups are display:contents) so the card
   grows with the tallest pane instead of a fixed min-height. */

.site-nav__item--mega { position: static; }   /* .mega anchors to .site-nav → full rail */

.mega[hidden] { display: none; }
.mega__sublist[hidden] { display: none !important; }
.mega__group { display: contents; }
/* Branch-only Locations mega (header.js filterLocations). */
.mega--branch-only .mega__group.is-off-branch,
.mega--branch-only .mega__branch.is-off-branch { display: none !important; }

.mega__sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mega .icon { display: block; flex: none; }

/* Promo show/hide by branch state (header.js toggles .is-set). */
.mega__if-set { display: none; }
.is-set .mega__if-set { display: inline; }
.is-set .mega__if-unset { display: none; }

/* Promo (shared by desktop column + mobile sheet foot) ------------------- */
.mega__promo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: 30px 28px 28px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(58, 74, 143, 0.55) 0%, rgba(4, 19, 75, 0) 60%),
        var(--color-navy-deep);
    color: var(--color-white);
    isolation: isolate;
}

.mega__promo::after {                       /* dotted texture, fades in toward the foot */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(155, 249, 33, 0.16) 1px, transparent 1px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000);
            mask-image: linear-gradient(180deg, transparent 35%, #000);
    pointer-events: none;
}

.mega__promo-live {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-lime);
}

.mega__promo-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-lime);
    box-shadow: 0 0 0 0 rgba(155, 249, 33, 0.7);
    animation: megaPulse 1.8s ease-out infinite;
}

@keyframes megaPulse {
    70%  { box-shadow: 0 0 0 9px rgba(155, 249, 33, 0); }
    100% { box-shadow: 0 0 0 0 rgba(155, 249, 33, 0); }
}

.site-header .mega__promo-title {
    margin: 14px 0 10px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--color-white);
    text-wrap: balance;
}

.mega__promo-body {
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--color-lavender);
}

.mega__promo-branch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
}
.mega__promo-branch-icon { color: var(--color-lime); }

.mega__promo-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 22px;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--color-white);
    transition: color 0.2s ease;
}
.mega__promo-phone-icon { color: var(--color-lime); }
.mega__promo-phone:hover,
.mega__promo-phone:focus-visible { color: var(--color-lime); }

.mega__promo-map {
    width: 100%;
    height: 104px;
    margin: 4px 0 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}
.mega__promo-map svg { display: block; width: 100%; height: 100%; }

.site-header .mega__promo-cta {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    gap: 8px;
    background-color: var(--color-lime);
    color: var(--color-ink);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.site-header .mega__promo-cta:hover {
    background-color: var(--color-white);
    color: var(--color-ink);
    box-shadow: 0 0 0 4px rgba(155, 249, 33, 0.22);
}
.mega__promo-cta-icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.mega__promo-cta:hover .mega__promo-cta-icon { transform: translateX(3px); }
.mega__promo--branch .mega__promo-cta:hover .mega__promo-cta-icon { transform: none; }

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 992px) {

    /* Lime bar under the open trigger. */
    .site-nav__link--mega { position: relative; }
    .site-nav__link--mega::after {
        content: "";
        position: absolute;
        left: 15px;
        right: 15px;
        bottom: 24px;
        height: 3px;
        border-radius: 3px;
        background: var(--color-lime);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
    }
    .site-nav__item--mega.is-open .site-nav__link--mega::after { transform: scaleX(1); }

    .mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        max-width: calc(var(--rail) + 2 * var(--gutter));
        margin-inline: auto;
        padding: 10px var(--gutter) 0;   /* transparent hover bridge to the card */
    }

    .mega__card {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        overflow: hidden;
        border-radius: 16px;
        background-color: var(--color-white);
        box-shadow:
            0 30px 70px -18px rgba(4, 8, 40, 0.6),
            0 0 0 1px rgba(11, 18, 48, 0.06);
        animation: megaIn 0.22s cubic-bezier(.2, .8, .2, 1);
        transform-origin: top center;
    }

    .mega__card::before {                   /* lime edge */
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        z-index: 2;
        height: 3px;
        background: linear-gradient(90deg, var(--color-lime), #C8FF7A 60%, var(--color-lime));
    }

    @keyframes megaIn {
        from { opacity: 0; transform: translateY(8px) scale(0.985); }
        to   { opacity: 1; transform: none; }
    }

    /* Rail + pane grid ------------------------------------------------------ */
    .mega__left {
        position: relative;
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        grid-template-rows: repeat(var(--mega-cats, 3), auto) 1fr;
        align-content: start;
        row-gap: 4px;
        padding: 0;
    }

    .mega__left::before {                   /* rail surface */
        content: "";
        position: absolute;
        top: 0; bottom: 0; left: 0;
        width: 260px;
        background: var(--color-surface);
        border-right: 1px solid var(--color-hairline);
    }

    .mega__cat {
        position: relative;
        z-index: 1;
        grid-column: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        width: auto;
        margin: 0 14px;
        padding: 10px;
        font-family: var(--font-body);
        color: var(--color-navy);
        text-align: left;
        text-decoration: none;
        background: transparent;
        border: 0;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.18s ease, color 0.18s ease;
    }
    .mega__group:first-child .mega__cat { margin-top: 22px; }
    .mega--branch-only .mega__group:not(.is-off-branch) .mega__cat { margin-top: 22px; }

    .mega__cat-icon {
        display: grid;
        place-items: center;
        flex: none;
        width: 36px;
        height: 36px;
        border: 1px solid var(--color-hairline);
        border-radius: 9px;
        background: var(--color-white);
        color: var(--color-navy);
        transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .mega__cat-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
    .mega__cat-label { font-size: 14.5px; font-weight: 700; line-height: 1.15; }
    .mega__cat-count { font-size: 12px; font-weight: 500; line-height: 1.1; color: var(--color-slate); }

    .mega__cat-arrow {
        width: 16px;
        height: 16px;
        color: var(--color-lime);
        opacity: 0;
        transform: translateX(-4px);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }
    .mega__cat-caret { display: none; }

    .mega__cat:hover:not(.is-active) { background-color: var(--color-white); color: var(--color-navy); }
    .mega__cat:hover:not(.is-active) .mega__cat-icon { border-color: var(--color-navy-border); }
    a.mega__cat:hover, a.mega__cat:focus { text-decoration: none; }
    .mega__cat:focus-visible { outline: 2px solid var(--color-navy-border); outline-offset: 2px; }

    .mega__cat.is-active { background-color: var(--color-navy); color: var(--color-white); }
    .mega__cat.is-active .mega__cat-count { color: var(--color-lavender); }
    .mega__cat.is-active .mega__cat-icon { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-ink); }
    .mega__cat.is-active .mega__cat-arrow { opacity: 1; transform: none; }
    .mega__cat.is-active::before {
        content: "";
        position: absolute;
        left: -14px;
        top: 10px;
        bottom: 10px;
        width: 4px;
        border-radius: 0 4px 4px 0;
        background: var(--color-lime);
    }

    /* Pane ------------------------------------------------------------------ */
    .site-header .mega__sublist {
        position: static;
        grid-column: 2;
        grid-row: 1 / -1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding: 26px 28px 0;
    }

    .mega__pane-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 16px;
    }
    .mega__pane-titles { min-width: 0; }

    .mega__eyebrow {
        display: block;
        font-family: var(--font-body);
        font-size: 11.5px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--color-lime-dark);
    }

    .site-header .mega__pane-title {
        margin: 8px 0 0;
        font-family: var(--font-display);
        font-size: 30px;
        font-weight: 400;
        line-height: 1.05;
        letter-spacing: 0.01em;
        color: var(--color-navy);
    }

    .mega__pane-intro {
        max-width: 46ch;
        margin: 6px 0 0;
        font-family: var(--font-body);
        font-size: 14px;
        line-height: 1.5;
        color: var(--color-slate);
    }

    /* Service tiles --------------------------------------------------------- */
    .site-header .mega__tiles {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding-bottom: 14px;
    }
    .mega__tiles > li:last-child:nth-child(odd):not(.mega__tiles-viewall) { grid-column: 1 / -1; }
    .mega__tiles > li:nth-last-child(2):nth-child(odd):has(+ .mega__tiles-viewall) { grid-column: 1 / -1; }
    .mega__tiles-viewall { display: none; }   /* desktop shows it in the footer strip */

    .mega__tile {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 30px 12px 12px;
        border-radius: 12px;
        color: var(--color-ink);
        transition: background-color 0.18s ease;
    }

    .mega__tile-icon {
        display: grid;
        place-items: center;
        flex: none;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--color-lime-pale);
        color: var(--color-navy);
        transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .mega__tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
    .mega__tile-title { font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--color-ink); transition: color 0.18s ease; }
    .mega__tile-desc { font-family: var(--font-body); font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--color-slate); transition: color 0.18s ease; }

    .mega__tile-go {
        position: absolute;
        top: 14px;
        right: 10px;
        width: 16px;
        height: 16px;
        color: var(--color-lime);
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .mega__tile:hover,
    .mega__tile:focus-visible { background-color: var(--color-navy); outline: none; }
    .mega__tile:hover .mega__tile-title,
    .mega__tile:focus-visible .mega__tile-title { color: var(--color-white); }
    .mega__tile:hover .mega__tile-desc,
    .mega__tile:focus-visible .mega__tile-desc { color: var(--color-lavender); }
    .mega__tile:hover .mega__tile-icon,
    .mega__tile:focus-visible .mega__tile-icon { background: var(--color-lime); color: var(--color-ink); transform: rotate(-6deg); }
    .mega__tile:hover .mega__tile-go,
    .mega__tile:focus-visible .mega__tile-go { opacity: 1; transform: none; }

    .mega__tile.is-current { background-color: var(--color-lime-pale); }
    .mega__tile.is-current .mega__tile-icon { background: var(--color-lime); }

    /* Staggered reveal each time a pane shows. */
    .mega__sublist.is-active .mega__tiles > li,
    .mega__sublist.is-active .mega__branch {
        animation: megaRise 0.34s cubic-bezier(.2, .8, .2, 1) both;
        animation-delay: calc(var(--i, 0) * 28ms + 40ms);
    }
    .mega__branch:nth-child(2) { --i: 1; }
    .mega__branch:nth-child(3) { --i: 2; }
    .mega__branch:nth-child(4) { --i: 3; }

    @keyframes megaRise {
        from { opacity: 0; transform: translateY(6px); }
        to   { opacity: 1; transform: none; }
    }

    /* Locations: search + branch groups ------------------------------------ */
    .mega__search {
        display: flex;
        align-items: center;
        gap: 9px;
        flex: none;
        width: 220px;
        height: 40px;
        margin: 0;
        padding: 0 12px;
        border: 1.5px solid var(--color-hairline);
        border-radius: 10px;
        background: var(--color-white);
        color: var(--color-slate);
        cursor: text;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }
    .mega__search:focus-within { border-color: var(--color-navy-border); box-shadow: 0 0 0 3px rgba(58, 74, 143, 0.12); }
    .mega__search input {
        flex: 1 1 auto;
        min-width: 0;
        height: 100%;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-family: var(--font-body);
        font-size: 14px;
        color: var(--color-ink);
    }
    .mega__search input::placeholder { color: var(--color-placeholder); }

    .mega__branches { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }

    .mega__branch {
        padding: 13px 15px 14px;
        border: 1px solid var(--color-hairline);
        border-radius: 12px;
        transition: border-color 0.2s ease, background-color 0.2s ease;
    }
    .mega__branch.is-mine { border-color: var(--color-lime); background: linear-gradient(180deg, var(--color-lime-pale), var(--color-white) 75%); }
    .mega__branch--other { padding-top: 14px; }

    .mega__branch-head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        margin-bottom: 10px;
    }
    .mega__branch-name { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--color-ink); }
    .mega__branch-addr { font-size: 12.5px; color: var(--color-slate); }
    .mega__branch-pill {
        padding: 3px 8px;
        border-radius: 999px;
        background: var(--color-navy);
        color: var(--color-lime);
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .mega__branch-pill[hidden] { display: none; }
    .mega__branch-tel {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 700;
        color: var(--color-navy);
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    .mega__branch-tel .icon { width: 13px; height: 13px; color: var(--color-lime-dark); }
    .mega__branch-tel:hover { color: var(--color-lime-dark); }

    .site-header .mega__chips { display: flex; flex-wrap: wrap; gap: 6px; }

    .mega__chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px 6px 9px;
        border: 1px solid var(--color-hairline);
        border-radius: 999px;
        background: var(--color-surface);
        font-family: var(--font-body);
        font-size: 13.5px;
        font-weight: 500;
        line-height: 1.2;
        color: var(--color-ink);
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .mega__chip-icon { width: 13px; height: 13px; color: var(--color-navy-border); transition: color 0.15s ease; }
    .mega__chip:hover,
    .mega__chip:focus-visible { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); outline: none; }
    .mega__chip:hover .mega__chip-icon,
    .mega__chip:focus-visible .mega__chip-icon { color: var(--color-lime); }
    .mega__chip.is-current { background: var(--color-lime-pale); border-color: var(--color-lime); color: var(--color-lime-dark); font-weight: 700; }

    .mega__chips li.is-filtered,
    .mega__branch.is-filtered { display: none; }

    .mega__empty { margin: 4px 0 12px; font-size: 14px; color: var(--color-slate); }
    .mega__empty[hidden] { display: none; }

    /* Footer strip ---------------------------------------------------------- */
    .mega__pane-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: auto -28px 0;
        padding: 14px 28px;
        border-top: 1px solid var(--color-hairline);
        font-family: var(--font-body);
        font-size: 13.5px;
        color: var(--color-slate);
    }
    .mega__foot-tel { font-weight: 700; color: var(--color-navy); white-space: nowrap; }
    .mega__foot-tel:hover { color: var(--color-lime-dark); }
    .mega__foot-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 700;
        color: var(--color-navy);
        white-space: nowrap;
    }
    .mega__foot-link .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
    .mega__foot-link:hover { color: var(--color-lime-dark); }
    .mega__foot-link:hover .icon { transform: translateX(4px); }

    /* Page dim behind the open panel (element added by header.js). */
    .mega-scrim {
        position: fixed;
        inset: 0;
        z-index: 999;                         /* header is 1000 */
        background: rgba(4, 8, 40, 0.42);
        -webkit-backdrop-filter: blur(2px);
                backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }
    .mega-scrim.is-on { opacity: 1; pointer-events: auto; }
}

/* Narrow desktop: tighten the three columns before the rail runs out. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .mega__card { grid-template-columns: minmax(0, 1fr) 260px; }
    .mega__left { grid-template-columns: 206px minmax(0, 1fr); }
    .mega__left::before { width: 206px; }
    .mega__cat-icon { width: 32px; height: 32px; }
    .site-header .mega__sublist { padding: 22px 22px 0; }
    .mega__pane-foot { margin: auto -22px 0; padding: 12px 22px; }
    .mega__pane-head { flex-wrap: wrap; }
    .mega__search { width: 100%; }
    .site-header .mega__tiles { grid-template-columns: minmax(0, 1fr); }
    .mega__tiles > li { grid-column: auto !important; }
    .mega__promo { padding: 26px 22px 22px; }
    .site-header .mega__promo-title,
    .mega__promo-phone { font-size: 26px; }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .mega__card,
    .mega__sublist.is-active .mega__tiles > li,
    .mega__sublist.is-active .mega__branch,
    .mega__promo-live i { animation: none; }
    .site-nav__link--mega::after,
    .mega__tile-icon,
    .mega-scrim { transition: none; }
}

/* Mobile toggle + bottom promo (hidden on desktop) ------------------------ */
.site-nav__toggle { display: none; }
.site-nav__empty { color: var(--color-white); margin: 0; padding: 0 20px; font-size: 14px; }
.site-nav__mobile-promo { display: none; }

/* ==========================================================================
   Breadcrumbs (inc/breadcrumbs.php)
   ========================================================================== */

.crumbs {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-hairline);
}

.crumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 45px;
    margin: 0 auto !important;
    list-style: none;
}

.crumbs__item {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-slate);
}

.crumbs__link { color: var(--color-slate); text-decoration: none; }
.crumbs__link:hover { color: var(--color-lime-dark); text-decoration: none; }
.crumbs__current { color: var(--color-slate); }
.crumbs__sep { width: 14px; height: 14px; margin: 0 14px; color: var(--color-slate); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tighter desktop: shrink link padding before the bar runs out of room. */
@media (max-width: 1199.98px) {
    .site-nav__link { padding: 0 10px; }
    .site-nav__logo { width: 180px; }
    .site-nav__cta { padding: 0 14px; font-size: 14px; }
    .site-nav__phone { padding: 0 14px; }
    .topbar__item:nth-child(2) { display: none; }
}

@media (max-width: 991.98px) {
    .site-header { --topbar-h: 46px; --nav-h: 68px; }

    /* Top bar: location chip + the items that carry a short mobile label
       ("Open 24/7"); the rest live in the trust strip. */
    .topbar__rail { justify-content: space-between; padding: 0 16px; }
    .topbar__items { padding-right: 0 !important; }
    .topbar__item { display: none; }
    .topbar__item--has-short { display: flex; gap: 6px; font-size: 12px; letter-spacing: 0; }
    .topbar__item--has-short .topbar__icon { width: 14px; height: 14px; }
    .topbar__item--has-short + .topbar__item--has-short { margin-left: 16px; padding-left: 0; border-left: 0; }
    .topbar__item-text { display: none; }
    .topbar__item-short { display: inline; }

    .site-nav__logo { width: 168px; }
    .site-nav__cta { display: none; }
    .site-nav__actions { gap: 10px; }
    .site-nav__phone { height: 44px; padding: 0 14px; }

    .site-nav__toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex: none;
        width: 44px;
        height: 44px;
        margin-left: 10px;
        padding: 0;
        border: 1px solid var(--color-navy-border);
        border-radius: var(--radius-sm);
        background: var(--color-navy-raised);
        cursor: pointer;
    }
    .site-nav__toggle-bar {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background-color: var(--color-lime);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
    .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Open-menu sheet: navy, full width, nested accordion. */
    .site-nav__collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        display: none;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        padding: 12px 0 0;
        border-top: 1px solid var(--m-divider);
        background-color: var(--m-bg);
        color: var(--m-fg);
    }
    .site-nav__collapse.is-open { display: block; }

    .site-nav__menu { flex-direction: column; align-items: stretch; }
    .site-nav__item { display: block; border-bottom: 1px solid var(--m-divider); }

    .site-nav__link {
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 16px var(--gutter);
        font-size: 16px;
        color: var(--m-fg);
    }
    .site-nav__link:hover,
    .site-nav__link:focus-visible { color: var(--color-lime); }
    .site-nav__item--mega.is-open .site-nav__link--mega { color: var(--color-lime); }

    /* Mega → accordion inside the sheet (2026-10 redesign). */
    .mega { position: static; max-width: none; padding: 0 var(--gutter) 14px; }
    .mega__card {
        display: block;
        overflow: hidden;
        border: 1px solid var(--color-navy-border);
        border-radius: 14px;
        background: var(--color-navy-raised);
        box-shadow: none;
        animation: megaSheetIn 0.22s ease both;
    }
    @keyframes megaSheetIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
    .mega__card > .mega__promo { display: none; }
    .mega__left { display: block; padding: 6px 0; }
    .mega__group { display: block; }
    .mega__group + .mega__group { border-top: 1px solid rgba(58, 74, 143, 0.6); }

    .mega__cat {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 56px;
        margin: 0;
        padding: 10px 16px;
        font-family: var(--font-body);
        text-align: left;
        text-decoration: none;
        background: transparent;
        border: 0;
        border-radius: 0;
        color: var(--m-fg);
        cursor: pointer;
    }
    .mega__cat-icon {
        display: grid;
        place-items: center;
        flex: none;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: var(--color-navy-deep);
        color: var(--color-lime);
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .mega__cat-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
    .mega__cat-label { font-size: 16px; font-weight: 700; line-height: 1.1; }
    .mega__cat-count { font-size: 12px; font-weight: 500; line-height: 1.1; color: var(--color-lavender); }
    .mega .mega__cat-arrow { display: none; }
    .mega__cat-caret { display: block; flex: none; color: var(--color-lavender); transform: rotate(180deg); transition: transform 0.2s ease, color 0.2s ease; }
    .mega__cat:hover:not(.is-active) { background: transparent; color: var(--color-lime); }
    a.mega__cat:hover, a.mega__cat:focus { text-decoration: none; }
    .mega__cat:focus-visible { outline: 2px solid var(--color-lime); outline-offset: -2px; }
    .mega__cat.is-active { background: transparent; color: var(--color-lime); }
    .mega__cat.is-active .mega__cat-icon { background: var(--color-lime); color: var(--color-ink); }
    .mega__cat.is-active .mega__cat-caret { transform: rotate(0); color: var(--color-lime); }

    .site-header .mega__sublist {
        position: static;
        display: block;
        padding: 0 16px 14px;
        column-count: 1;
    }

    .mega__pane-head,
    .mega__pane-foot > span { display: none; }

    /* Service rows: icon + title, no description. */
    .site-header .mega__tiles { display: grid; gap: 2px; }
    .mega__tile,
    .mega__tiles-viewall .mega__sublink {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 46px;
        padding: 8px 10px;
        border-radius: 10px;
        font-family: var(--font-body);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.25;
        color: var(--m-fg);
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    .mega__tile-icon {
        display: grid;
        place-items: center;
        flex: none;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: rgba(155, 249, 33, 0.12);
        color: var(--color-lime);
    }
    .mega__tile-icon .icon { width: 17px; height: 17px; }
    .mega__tile-text { display: block; min-width: 0; }
    .mega__tile-desc,
    .mega .mega__tile-go { display: none; }
    .mega__tile:hover,
    .mega__tile:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--color-lime); outline: none; }
    .mega__tile.is-current { background: rgba(155, 249, 33, 0.1); color: var(--color-lime); font-weight: 700; }
    .mega__tiles-viewall .mega__sublink {
        justify-content: center;
        margin-top: 6px;
        border: 1px solid var(--color-navy-border);
        font-weight: 700;
        color: var(--color-lime);
    }
    .mega__tiles-viewall .mega__sublink:hover { background: rgba(155, 249, 33, 0.08); }

    /* Locations: branch blocks with city chips. */
    .mega__branches { display: grid; gap: 10px; }
    .mega__branch {
        padding: 12px;
        border: 1px solid var(--color-navy-border);
        border-radius: 12px;
        background: rgba(4, 19, 75, 0.45);
    }
    .mega__branch.is-mine { border-color: var(--color-lime); }
    .mega__branch-head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        margin-bottom: 10px;
    }
    .mega__branch-name { font-size: 15px; font-weight: 700; color: var(--color-white); }
    .mega__branch-addr { display: none; }
    .mega__branch-pill {
        padding: 3px 8px;
        border-radius: 999px;
        background: var(--color-lime);
        color: var(--color-ink);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .mega__branch-pill[hidden] { display: none; }
    .mega__branch-tel {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        font-size: 14px;
        font-weight: 700;
        color: var(--color-lime);
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    .mega__branch-tel .icon { width: 13px; height: 13px; }
    .site-header .mega__chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .mega__chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 36px;
        padding: 6px 12px 6px 9px;
        border: 1px solid var(--color-navy-border);
        border-radius: 999px;
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 500;
        color: var(--m-fg);
    }
    .mega__chip-icon { width: 13px; height: 13px; color: var(--color-lime); }
    .mega__chip:hover,
    .mega__chip:focus-visible { border-color: var(--color-lime); color: var(--color-lime); outline: none; }
    .mega__chip.is-current { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-ink); }
    .mega__chip.is-current .mega__chip-icon { color: var(--color-ink); }
    .mega__empty { display: none; }

    .mega__pane-foot { display: flex; padding-top: 10px; }
    .mega__pane-foot:not(:has(.mega__foot-link)) { display: none; }
    .mega--is-locations .mega__pane-foot { display: flex; }
    .mega__foot-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 700;
        color: var(--color-lime);
    }
    .mega__foot-link .icon { width: 16px; height: 16px; }
    /* Services "View all" already sits at the end of the list on mobile. */
    .mega:not(.mega--is-locations) .mega__pane-foot { display: none; }

    .mega-scrim { display: none; }

    .site-nav__mobile-promo { display: block; padding: 20px var(--gutter) 28px; }
    .site-nav__mobile-promo .mega__promo { padding: 24px 22px 22px; border-radius: 14px; }
    .site-nav__mobile-promo .mega__promo-title { font-size: 28px; }
}

@media (max-width: 575.98px) {
    .site-nav__phone span { display: none; }   /* icon-only phone button */
    .site-nav__phone { width: 44px; padding: 0; }
    .site-nav__logo { width: 150px; }
}
