/* =============================================================================
   BLC Site Header — Stylesheet
   Matches the Tailwind utility-class structure in render.php.
   Uses CSS custom properties aligned with theme.json colour tokens.
   Font: Raleway (loaded by FSE theme).
   ============================================================================= */

/* ── Custom Properties ──────────────────────────────────────────────────── */
:root {
    --blc-navy:    #1C1734;
    --blc-fuchsia: #C10A78;
    --blc-purple:  #76227C;
    --blc-white:   #ffffff;
    --blc-grey:    #f3f4f6;
    --blc-text:    #1C1734;
    --blc-border:  #e5e7eb;

    --blc-header-top-height:    auto;
    --blc-header-bottom-height: auto;
    --blc-header-total:         calc(var(--blc-header-top-height) + var(--blc-header-bottom-height));

    --blc-container-max:  1370px;
    --blc-container-pad:  clamp(1rem, 3vw, 2.5rem);

    --blc-radius-pill: 50px;
    --blc-radius-sm:   6px;
    --blc-radius-md:   10px;

    --blc-shadow-dropdown: 0 8px 24px rgba(28, 23, 52, 0.12), 0 2px 6px rgba(28, 23, 52, 0.06);
    --blc-transition: 160ms ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
.blc-header *,
.blc-header *::before,
.blc-header *::after {
    box-sizing: border-box;
}

/* ── Outer wrapper ──────────────────────────────────────────────────────── */
.blc-header {
    /* position: sticky; */
    position:relative;
    top: 0;
    z-index: 100;
    background: var(--blc-white);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
}

/* .blc-header__inner {
    box-shadow: 0 2px 8px rgba(28, 23, 52, 0.08);
} */

/* ── Shared container ───────────────────────────────────────────────────── */
.blc-header__container {
    max-width: var(--blc-container-max);
    margin-inline: auto;
    padding-inline: var(--blc-container-pad);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ── Divider pipe ───────────────────────────────────────────────────────── */
.blc-header__divider--mobile-only {
    display: none; /* hidden on desktop, shown in mobile breakpoint below */
}

.blc-header__divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: var(--blc-navy);
    flex-shrink: 0;
    align-self: center;
}

/* ─────────────────────────────────────────────────────────────────────────
   TOP ROW
   ───────────────────────────────────────────────────────────────────────── */
.blc-header__top {
    height: var(--blc-header-top-height);
    padding-top: 1.5rem;
    padding-bottom:1.5rem;
}

.blc-header__top .blc-header__container {
    height: 100%;
}

/* Brand */
.blc-header__brand {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-shrink: 0;
}

.blc-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.blc-header__logo {
    display: block;
    height: clamp(63px, 5vw, 56px);
    width: auto;
    object-fit: contain;
}

.blc-header__logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--blc-navy);
    text-decoration: none;
}

/* Vertical divider between logo and tagline */
.blc-header__brand .blc-header__logo-link::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--blc-navy);
    flex-shrink: 0;
    margin-left: 1rem;
}

.blc-header__tagline {
    font-size: clamp(0.875rem, 1.2vw, 1.15rem);
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.01em;
    background: linear-gradient(to right, var(--blc-fuchsia), var(--blc-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Actions area */
.blc-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* ── Utility Nav ────────────────────────────────────────────────────────── */
.blc-header__utility-list {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blc-header__utility-item {
    position: relative;
}

/* Split link + chevron button — remove the padding between the two siblings */
.blc-header__utility-item--has-dropdown {
    display: inline-flex;
    align-items: center;
}

.blc-header__utility-item--has-dropdown .blc-header__utility-link {
    padding-right: 0.1rem;
}

.blc-header__utility-item--has-dropdown .blc-header__utility-btn {
    padding-left: 0.1rem;
}

/* Split link + chevron button — main nav */
.blc-header__main-item--dropdown,
.blc-header__main-item--megamenu {
    display: inline-flex;
    align-items: center;
}

.blc-header__main-item--dropdown .blc-header__main-link,
.blc-header__main-item--megamenu .blc-header__main-link {
    padding-right: 0.1rem;
}

.blc-header__main-item--dropdown .blc-header__main-btn,
.blc-header__main-item--megamenu .blc-header__main-btn {
    padding-left: 0.1rem;
}

.blc-header__utility-link,
.blc-header__utility-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--blc-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--blc-navy);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--blc-transition), background-color var(--blc-transition);
}

.blc-header__utility-link:hover,
.blc-header__utility-btn:hover,
.blc-header__utility-btn[aria-expanded="true"] {
    color: var(--blc-fuchsia);
}

.blc-header__chevron {
    width: 1em;
    height: 1em;
    transition: transform var(--blc-transition);
    flex-shrink: 0;
}

.blc-header__utility-btn[aria-expanded="true"] .blc-header__chevron,
.blc-header__main-btn[aria-expanded="true"]    .blc-header__chevron,
.blc-header__btn[aria-expanded="true"]         .blc-header__chevron {
    transform: rotate(180deg);
}

/* Keep CTA button appearance when its dropdown is open */
.blc-header__btn[aria-expanded="true"] {
    filter: brightness(1.12);
}

/* Shared dropdown base — utility + CTA */
.blc-header__dropdown--utility,
.blc-header__dropdown--cta {
    position: absolute;
    top: calc(100% + 0.5rem);
    min-width: 220px;
    background: var(--blc-white);
    border-radius: var(--blc-radius-md);
    box-shadow: var(--blc-shadow-dropdown);
    z-index: 200;
    padding: 0.375rem 0;
}

/* Utility opens left-aligned, CTA opens right-aligned */
.blc-header__dropdown--utility { left: 0; }
.blc-header__dropdown--cta     { right: 0; }

.blc-header__dropdown--utility:not([hidden]),
.blc-header__dropdown--cta:not([hidden]) {
    display: block;
}

.blc-header__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blc-header__dropdown-link {
    display: flex;
    flex-direction: column;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    color: var(--blc-navy);
    text-decoration: none;
    transition: color var(--blc-transition), background-color var(--blc-transition);
}

.blc-header__dropdown-link:hover {
    color: var(--blc-fuchsia);
    font-weight: 800;
    /* background-color: rgba(193, 10, 120, 0.04); */
}

.blc-header__dropdown-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.125rem;
    font-style: normal;
    font-weight: 400;
}

/* ── CTA Buttons ────────────────────────────────────────────────────────── */
.blc-header__cta-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Wrapper needed so the dropdown can be position: absolute relative to it */
.blc-header__cta-dropdown-wrap {
    position: relative;
}


.blc-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: 0;
    outline: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--blc-white);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: filter var(--blc-transition), transform var(--blc-transition);
    letter-spacing: 0.01em;
}

.blc-header__btn:hover {
    filter: brightness(1.12);
    color: var(--blc-white);
    text-decoration: none;
}

.blc-header__btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.blc-header__btn--book  { background-color: var(--blc-fuchsia); }
.blc-header__btn--join  { background-color: var(--blc-purple); }
.blc-header__btn--login { background-color: var(--blc-navy); }

.blc-header__btn-icon {
    width: 1.125em;
    height: 1.125em;
    flex-shrink: 0;
}

/* Mobile toggle (hidden on desktop) */
.blc-header__mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--blc-navy);
    transition: background-color var(--blc-transition);
    flex-shrink: 0;
}

.blc-header__mobile-toggle svg {
    width: 26px;
    height: 26px;
    transition: all 0.2s ease-in-out;
}

.blc-header__mobile-toggle:hover svg {
    stroke: var(--blc-fuchsia);
}

.blc-header__mobile-toggle-close {
    display: none;
}

.blc-header--nav-open .blc-header__mobile-toggle-open  { display: none; }
.blc-header--nav-open .blc-header__mobile-toggle-close { display: flex; }

/* ─────────────────────────────────────────────────────────────────────────
   BOTTOM ROW (Main Nav)
   ───────────────────────────────────────────────────────────────────────── */
.blc-header__bottom {
    height: var(--blc-header-bottom-height);
    background: var(--blc-white);
}

.blc-header__bottom .blc-header__container {
    height: 100%;
    gap: 0;
}

/* Main nav */
.blc-header__main-nav {
    flex: 1;
    padding: 1rem 0;
}

.blc-header__main-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 0;
}

.blc-header__main-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.blc-header__main-link,
.blc-header__main-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.875rem;
    height: 100%;
    line-height: 1;
    color: var(--blc-navy);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--blc-transition), border-color var(--blc-transition), background-color var(--blc-transition);
}

.blc-header__main-link:hover,
.blc-header__main-btn:hover,
.blc-header__main-btn[aria-expanded="true"] {
    color: var(--blc-fuchsia);
}

/* ── Simple Dropdown (under nav item) ──────────────────────────────────── */
.blc-header__dropdown--main {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--blc-white);
    border-radius: 0 0 var(--blc-radius-md) var(--blc-radius-md);
    box-shadow: var(--blc-shadow-dropdown);
    /* border: 1px solid var(--blc-grey); */
    z-index: 200;
    padding: 0.375rem 0;
}

.blc-header__dropdown--main:not([hidden]) {
    display: block;
}

/* ── Mega Menu ──────────────────────────────────────────────────────────── */
.blc-header__megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    /* Width set inline via PHP: (col_count * 230px) + 48px padding */
    max-width: calc(100vw - 2 * var(--blc-container-pad));
    background: var(--blc-white);
    box-shadow: var(--blc-shadow-dropdown);
    border-radius: 0 0 var(--blc-radius-md) var(--blc-radius-md);
    z-index: 200;
}

/* Flip to right-align if the panel would overflow the viewport */
.blc-header__megamenu--flip {
    left: auto;
    right: 0;
}

.blc-header__megamenu:not([hidden]) {
    display: block;
}

/* .blc-header__megamenu-inner {
    padding: 1rem;
} */

.blc-header__megamenu-columns {
    display: flex;
    gap: 0;
}

.blc-header__megamenu-col {
    width: 230px;
    flex-shrink: 0;
    padding: 1rem;
}

/* Hairline divider between columns */
.blc-header__megamenu-col + .blc-header__megamenu-col {
    border-left: 1px solid var(--blc-border);
}

.blc-header__megamenu-col-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    /* border-bottom: 2px solid var(--blc-border); */
}

.blc-header__megamenu-col-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.blc-header__megamenu-col-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blc-fuchsia);
}

.blc-header__megamenu-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.blc-header__megamenu-link {
    display: flex;
    flex-direction: column;
    padding: 0.4375rem 0rem;
    border-radius: var(--blc-radius-sm);
    text-decoration: none;
    color: var(--blc-navy);
    transition: color var(--blc-transition), background-color var(--blc-transition);
}



.blc-header__megamenu-link-label {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
}

.blc-header__megamenu-link-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.125rem;
    font-weight: 400;
}

.blc-header__megamenu-featured {
    margin-top: 1rem;
    border-radius: var(--blc-radius-md);
    overflow: hidden;
}

.blc-header__megamenu-featured-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.blc-header__megamenu-featured-img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--blc-radius-md);
}

.blc-header__megamenu-featured-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blc-navy);
}

.blc-header__megamenu-link:hover {
    color: var(--blc-fuchsia);
    font-weight: 700 !important;
    /* background-color: rgba(193, 10, 120, 0.05); */
}

/* ── Tools (search + accessibility) ────────────────────────────────────── */
.blc-header__tools {
    position: relative; /* anchor for the search dropdown */
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
    flex-shrink: 0;
}

.blc-header__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--blc-navy);
    border-radius: var(--blc-radius-sm);
    transition: color var(--blc-transition), background-color var(--blc-transition);
}

.blc-header__search-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Hidden on desktop, shown in the mobile utility strip */
.blc-header__search-label {
    display: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
}

@media (max-width: 860px) {
    .blc-header__search-label {
        display: inline;
    }

    /* Let the button grow to fit icon + label */
    .blc-header__search-btn {
        width: auto;
        gap: 0.375rem;
        padding: 0 0.375rem;
    }
    .blc-header__mobile-sub ul {
       margin: 0 0 1rem 0 !important;
    }
}

.blc-header__search-btn:hover {
    color: var(--blc-fuchsia);
}

.blc-header__accessibility-link {
    color: var(--blc-navy);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25rem 0.375rem;
    border-radius: var(--blc-radius-sm);
    transition: color var(--blc-transition), background-color var(--blc-transition);
}

.blc-header__accessibility-link:hover {
    color: var(--blc-fuchsia);
}

/* ─────────────────────────────────────────────────────────────────────────
   SEARCH PANEL — dropdown anchored under the search icon
   ───────────────────────────────────────────────────────────────────────── */
.blc-header__search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--blc-white);
    border-radius: var(--blc-radius-md);
    box-shadow: var(--blc-shadow-dropdown);
    border: 1px solid var(--blc-border);
    padding: 0.5rem 1rem;
    z-index: 200;
}

.blc-header__search-panel:not([hidden]) {
    display: block;
    animation: blc-slide-down 160ms ease forwards;
}


.blc-header__search-panel .search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--blc-white);
    /* border: 1.5px solid var(--blc-border); */
    border-radius: var(--blc-radius-pill);
    /* padding: 0 0.5rem 0 1rem; */
    padding:0;
    transition: border-color var(--blc-transition);
}

.blc-header__search-panel .search-form:focus-within {
    border-color: var(--blc-navy);
}

.blc-header__search-panel .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.5rem 0.625rem 0;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--blc-navy);
    background: transparent;
    outline: none;
}

.blc-header__search-panel .search-field::placeholder {
    color: #9ca3af;
}

.blc-header__search-panel .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    color: var(--blc-navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--blc-transition);
    font-size: 0; /* hide default "Search" text */
}

/* Add a search icon to the submit button via background */
.blc-header__search-panel .search-submit::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1734' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.blc-header__search-panel .search-submit:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C10A78' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

/* Hide the separate close button — click outside or Escape to dismiss */
.blc-header__search-close {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE NAV DRAWER
   ───────────────────────────────────────────────────────────────────────── */

/* top is set dynamically via --blc-header-height written by JS on <html> */
.blc-header__mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--blc-header-height, 120px);
    bottom: 0;
    background: var(--blc-white);
    overflow-y: auto;
    z-index: 99;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--blc-border);
}

.blc-header__mobile-nav:not([hidden]) {
    display: block;
}

/* Close button bar at top of drawer */
.blc-header__mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem var(--blc-container-pad);
    border-bottom: 1px solid var(--blc-border);
}

.blc-header__mobile-nav-close {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    background: var(--blc-grey);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blc-navy);
    cursor: pointer;
    transition: background-color var(--blc-transition), color var(--blc-transition);
}

.blc-header__mobile-nav-close svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.blc-header__mobile-nav-close:hover {
    background: var(--blc-navy);
    color: var(--blc-white);
}

.blc-header__mobile-nav-inner {
    padding: 1.5rem var(--blc-container-pad) 3rem;
}

.blc-header__mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blc-header__mobile-item {
    border-bottom: 1px solid var(--blc-border);
}

.blc-header__mobile-link,
.blc-header__mobile-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--blc-navy);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.blc-header__mobile-btn .blc-header__chevron {
    flex-shrink: 0;
}

.blc-header__mobile-btn[aria-expanded="true"] .blc-header__chevron {
    transform: rotate(180deg);
}

.blc-header__mobile-sub {
    padding-bottom: 0.75rem;
}

.blc-header__mobile-sub:not([hidden]) {
    display: block;
}

.blc-header__mobile-sub ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blc-header__mobile-sub-link {
    display: block;
    padding: 0.5625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    border-radius: var(--blc-radius-sm);
    transition: color var(--blc-transition), background-color var(--blc-transition);
}

.blc-header__mobile-sub-link:hover {
    color: var(--blc-fuchsia);
    background-color: rgba(193, 10, 120, 0.05);
}

.blc-header__mobile-sub-link--parent {
    color: var(--blc-navy);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.blc-header__mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.blc-header__mobile-ctas .blc-header__btn {
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    border:0;
    outline:0;
}

/* ─────────────────────────────────────────────────────────────────────────
   OVERLAY (behind mobile nav)
   ───────────────────────────────────────────────────────────────────────── */
.blc-header__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 23, 52, 0.45);
    z-index: 98;
    cursor: pointer;
}

.blc-header--nav-open .blc-header__overlay {
    display: block;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────── */

/* Tablet: hide tagline and compact buttons */
@media (max-width: 1100px) {
    .blc-header__tagline {
        display: none;
    }
    .blc-header__brand::after {
        display: none;
    }
    .blc-header__btn {
        padding: 0.4375rem 0.875rem;
        font-size: 0.875rem;
    }
    .blc-header__main-link,
    .blc-header__main-btn {
        padding: 0 0.625rem;
        font-size: 0.875rem;
    }
    .blc-header__accessibility-link {
        display: none;
    }
}

/* Mobile layout:
   Row 1 (top bar)  — logo + CTA buttons
   Row 2 (bottom bar) — search + accessibility + hamburger
*/
@media (max-width: 860px) {

    /* ── Top bar: logo left, CTA buttons right ── */
    .blc-header__top {
        height: auto;
        min-height: var(--blc-header-top-height);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .blc-header__utility-nav,
    .blc-header__divider:not(.blc-header__divider--mobile-only) {
        display: none;
    }

    /* Show CTA buttons in top bar on mobile */
    .blc-header__cta-buttons {
        display: flex;
    }

    /* Shrink CTA buttons slightly for mobile */
    .blc-header__actions .blc-header__btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* ── Bottom bar: becomes the mobile utility strip ── */
    .blc-header__bottom {
        display: flex;
        height: 48px;
        border-top: 1px solid var(--blc-border);
    }

    /* Hide the main nav links — accessible via the drawer instead */
    .blc-header__main-nav {
        display: none;
    }

    /* Push tools to the right */
    .blc-header__tools {
        margin-left: 0;
        width: 100%;
    }

    /* Show the mobile-only divider (before hamburger) */
    .blc-header__divider--mobile-only {
        display: inline-block;
    }

    /* Show hamburger */
    .blc-header__mobile-toggle {
        display: flex;
    }

    /* Accessibility link visible in the strip */
    .blc-header__accessibility-link {
        display: block;
        font-size: 0.8125rem;
    }
    .blc-header__container {
        width:100%;
    }
    .blc-header__mobile-nav-inner {
        padding-top: 0;
        padding-bottom: 0;
    }
    .blc-header__btn--login {
        display: none !important;
    }
    .blc-header__brand .blc-header__logo-link::after {
        display: none !important;
    }
}

@media (max-width: 480px) {
    :root {
        --blc-header-top-height: 60px;
    }

    .blc-header__logo {
        height: 45px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   ANIMATION — Dropdown / Megamenu entrance
   ───────────────────────────────────────────────────────────────────────── */
@keyframes blc-slide-down {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blc-header__dropdown--utility:not([hidden]),
.blc-header__dropdown--cta:not([hidden]),
.blc-header__dropdown--main:not([hidden]),
.blc-header__megamenu:not([hidden]) {
    animation: blc-slide-down 160ms ease forwards;
}


/* ─────────────────────────────────────────────────────────────────────────
   MOBILE NAV OPEN — lock scroll and pin header to top of viewport
   ───────────────────────────────────────────────────────────────────────── */
html.blc-nav-open,
body.blc-nav-open {
    overflow: hidden;
}

/* Pin the header to the viewport when the drawer is open so it stays
   visible regardless of how far the user has scrolled. */
@media (max-width: 860px) {
    .blc-header.blc-header--nav-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }
}

/* =============================================================================
   Menu Modal
   ============================================================================= */
.blc-menu-modal[hidden] { display: none; }
.blc-menu-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}
.blc-menu-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 23, 52, 0.7);
    cursor: pointer;
}
.blc-menu-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1024px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    background: var(--blc-white);
    border-radius: var(--blc-radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.blc-menu-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: clamp(1.25rem, 2vw, 2rem);
}
.blc-menu-modal__logo img {
    display: block;
    max-height: 64px;
    width: auto;
    height: auto;
}
.blc-menu-modal__close {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0.25rem;
    color: #8a8f98;
    cursor: pointer;
    transition: color var(--blc-transition);
    line-height: 0;
}
.blc-menu-modal__close:hover,
.blc-menu-modal__close:focus-visible {
    color: var(--blc-navy);
    outline: none;
}
.blc-menu-modal__selector { margin-bottom: 1.5rem; }
.blc-menu-modal__label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blc-navy);
    margin-bottom: 0.5rem;
}
.blc-menu-modal__select-wrap {
    position: relative;
    max-width: 420px;
}
.blc-menu-modal__select {
    width: 100%;
    appearance: none;
    background: #f7f7f9;
    border: 1px solid var(--blc-border);
    border-radius: var(--blc-radius-sm);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font: inherit;
    color: var(--blc-text);
    cursor: pointer;
}
.blc-menu-modal__select-wrap::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--blc-navy);
    border-bottom: 2px solid var(--blc-navy);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.blc-menu-modal__panel[hidden] { display: none; }
.blc-menu-modal__heading {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blc-navy);
    margin: 0 0 1rem;
}
.blc-menu-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.blc-menu-modal__list-item { margin: 0; }
.blc-menu-modal__menu-btn {
    display: inline-block;
    background: var(--blc-navy);
    color: var(--blc-white);
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--blc-radius-pill);
    font-weight: 600;
    transition: background var(--blc-transition), transform var(--blc-transition);
}
.blc-menu-modal__menu-btn:hover,
.blc-menu-modal__menu-btn:focus-visible {
    background: var(--blc-fuchsia);
    color: var(--blc-white);
    outline: none;
}
.blc-menu-modal__empty {
    color: #6b7280;
    margin: 0;
}

body.blc-menu-modal-open { overflow: hidden; }

/* ==========================================================================
   Chat widget button position
   Nudge the round chat button up/right so it clears the HubSpot chat widget
   in the footer.
   ========================================================================== */
#round-btn .round-btn-div {
    bottom: 70px !important;
    right: -10px !important;
}
