/**
 * Header + mobile offcanvas — layout ported from locations-fitness-nation.com
 * Scoped under .rh-site-header; load only on pages that use this markup.
 */
.rh-site-header {
    --bc-dark: #141416;
    --bc-light: #fcfcfd;
    --bc-primary: #88c4bc;
    --bc-global-font: Outfit, sans-serif;
    --bc-primary-font: Outfit, sans-serif;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.rh-bc-page main {
    padding-top: 104px;
}

.rh-site-header .bc-flex-ctr {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rh-site-header .bc-flex-ctr-spb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 56px);
}

.rh-site-header .bc-container {
    /* width: clamp(320px, 92%, 1250px); */
    margin: 0 auto;
    padding: 0 15px;
}

.rh-site-header .bc-primary-button {
    display: inline-block;
    font: 600 16px/1.43 var(--bc-primary-font);
    color: var(--bc-dark);
    background-color: var(--bc-primary);
    padding: 15px 24px;
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: none;
    text-align: center;
    max-width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
}

.rh-site-header .bc-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(136, 196, 188, 0.25);
}

.rh-site-header .bc-header {
    background-color: var(--bc-dark);
    border-bottom: 1px solid rgba(170, 170, 170, 0.2);
    position: fixed;
    left: 0;
    top: 0;
    width: calc(100% - 32px);
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    font-family: var(--bc-primary-font);
    margin: 16px;
    border-radius: 16px;
}

.rh-site-header .bc-header.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(170, 170, 170, 0.3);
}

.rh-site-header .bc-header__inner {
    padding: 15px 2px;
    gap: 20px;
}

.rh-site-header .bc-header__logo {
    display: flex;
    text-decoration: none;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rh-site-header .bc-header__logo .brand-badge {
    display: block;
    width: 34px;
    height: 34px;
}

.rh-site-header .bc-header__logo .brand-badge svg {
    width: 34px;
    height: 34px;
    display: block;
    color: var(--bc-primary);
}

.rh-site-header .bc-header__logo .brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 21px;
    white-space: nowrap;
}

.rh-site-header .bc-header__nav {
    flex: 1;
    min-width: 0;
}

.rh-site-header .bc-header__nav-list {
    gap: clamp(16px, 2vw, 28px);
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-site-header .bc-header__nav-item {
    list-style: none;
}

.rh-site-header .bc-header__nav-link {
    color: var(--bc-light);
    text-decoration: none;
    font: 400 15px/1 var(--bc-global-font);
    position: relative;
}

.rh-site-header .bc-header__nav-link:hover {
    color: var(--bc-primary);
}

.rh-site-header .bc-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rh-site-header .bc-header__mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.rh-site-header .bc-header__mobile-menu-line {
    width: 20px;
    height: 2px;
    background-color: var(--bc-light);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Dropdowns (ReadyHealth nav) */
.rh-site-header .bc-header__nav-item.fn-nav-item {
    position: relative;
}

.rh-site-header .bc-header__nav-item.fn-nav-item::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: -10px;
    right: -10px;
    height: 24px;
}

.rh-site-header .bc-header__nav .fn-nav-link {
    color: var(--bc-light);
    text-decoration: none;
    font: 400 15px/1 var(--bc-global-font);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.rh-site-header .bc-header__nav .fn-nav-link:hover {
    color: var(--bc-primary);
}

.rh-site-header .fn-nav-dropdown-toggle::after {
    content: '\25BE';
    font-size: 10px;
    transition: transform 0.2s ease;
}

.rh-site-header .fn-nav-item.active .fn-nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.rh-site-header .fn-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #1a1a1a;
    border: 1px solid rgba(136, 196, 188, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1001;
}

.rh-site-header .fn-nav-item.active .fn-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.rh-site-header .fn-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    color: #fff;
}

.rh-site-header .fn-dropdown-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.rh-site-header .fn-dropdown-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.rh-site-header .fn-dropdown-item:hover {
    background: #2a2a2a;
    border-left-color: var(--bc-primary);
    padding-left: 20px;
}

.rh-site-header .fn-dropdown-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: #fff;
}

.rh-site-header .fn-dropdown-item-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Offcanvas */
.rh-site-header .bc-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.rh-site-header .bc-offcanvas.active {
    visibility: visible;
    opacity: 1;
}

.rh-site-header .bc-offcanvas__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: 0.3s;
}

.rh-site-header .bc-offcanvas__content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 100%);
    height: 100%;
    background-color: #1a1a1a;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rh-site-header .bc-offcanvas.active .bc-offcanvas__content {
    transform: translateX(0);
}

.rh-site-header .bc-offcanvas__header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.rh-site-header .bc-offcanvas__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.rh-site-header .bc-offcanvas__close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.rh-site-header .bc-offcanvas__nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.rh-site-header .bc-offcanvas__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rh-site-header .bc-offcanvas .fn-mobile-item {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(136, 196, 188, 0.1);
    cursor: pointer;
    color: var(--bc-primary);
    font: 400 16px/1.5 var(--bc-global-font);
    text-decoration: none;
}

.rh-site-header .bc-offcanvas .fn-mobile-item:hover {
    color: #fff;
}

.rh-site-header .bc-offcanvas .fn-mobile-item-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rh-site-header .bc-offcanvas .fn-mobile-submenu {
    display: none;
    flex-direction: column;
    background: #111;
}

.rh-site-header .bc-offcanvas .fn-mobile-submenu.active {
    display: flex;
}

.rh-site-header .bc-offcanvas .fn-mobile-submenu-item {
    padding: 12px 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
}

.rh-site-header .bc-offcanvas .fn-mobile-submenu-item:hover {
    background: rgba(136, 196, 188, 0.1);
    color: var(--bc-primary);
}

.rh-site-header .bc-offcanvas__actions {
    padding: 24px;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.rh-site-header .bc-offcanvas__action-button {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

@media (max-width: 1190px) {
    .rh-site-header .bc-header__nav,
    .rh-site-header .bc-header__action-button {
        display: none;
    }

    .rh-site-header .bc-header__mobile-menu {
        display: flex;
    }

    .rh-site-header .bc-header__actions {
        gap: 16px;
    }
}

@media (max-width: 767px) {
    body.rh-bc-page main {
        padding-top: 88px;
    }

    .rh-site-header .bc-header {
        margin: 0;
        border-radius: 0;
        width: 100%;
    }

    .rh-site-header .bc-header__inner {
        padding: 20px 0;
        gap: 16px;
    }

    .rh-site-header .bc-header__actions {
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .rh-site-header .bc-container {
        width: 100%;
    }

    .rh-site-header .bc-header__action-button {
        padding: 10px 8px;
        font-size: 14px;
    }

    .rh-site-header .bc-header__mobile-menu {
        width: 28px;
        height: 28px;
    }

    .rh-site-header .bc-header__mobile-menu-line {
        width: 18px;
        height: 1.5px;
    }

    .rh-site-header .bc-offcanvas__header {
        padding: 16px 20px;
    }
}
