.tbc-site-header {
    will-change: background-color, box-shadow, transform;
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tbc-site-header.is-scrolled {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.tbc-site-header > div {
    transition: padding 0.35s ease, transform 0.35s ease, gap 0.35s ease;
}

.tbc-site-header.is-scrolled > div {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transform: translateY(-2px);
}

.tbc-site-header .custom-logo-link,
.tbc-site-header .custom-logo {
    display: inline-block;
    width: auto;
    max-height: 3rem;
    transition: max-height 0.35s ease, transform 0.35s ease;
}

.tbc-site-header.is-scrolled .custom-logo {
    max-height: 2.5rem;
    transform: scale(1);
}

.tbc-primary-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tbc-primary-menu .menu-item {
    margin: 0;
}

.tbc-primary-menu .menu-item > a {
    position: relative;
    display: inline-flex;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.7);
    transition: color 0.25s ease;
}

.tbc-primary-menu .menu-item > a:hover,
.tbc-primary-menu .menu-item > a:focus-visible,
.tbc-primary-menu .current-menu-item > a,
.tbc-primary-menu .current_page_item > a {
    color: rgba(15, 23, 42, 1);
}

.tbc-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    visibility: hidden;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--tbc-ease);
}

.tbc-mobile-nav[hidden] {
    display: none !important;
}

.tbc-mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.tbc-mobile-nav__panel {
    margin-left: auto;
    width: min(100%, 24rem);
    min-height: 100%;
    background: #fff;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--tbc-ease);
    box-shadow: var(--tbc-shadow-soft);
}

.tbc-mobile-nav.is-open .tbc-mobile-nav__panel {
    transform: translateX(0);
}

.tbc-mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--tbc-color-border);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.9);
    transition: color 0.25s ease;
}

.tbc-mobile-nav__link:hover,
.tbc-mobile-nav__link:focus-visible,
.tbc-mobile-nav__link.is-active {
    color: var(--tbc-color-gold);
}

.tbc-mobile-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tbc-mobile-menu .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--tbc-color-border);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.9);
    transition: color 0.25s ease;
}

.tbc-mobile-menu .menu-item > a:hover,
.tbc-mobile-menu .menu-item > a:focus-visible,
.tbc-mobile-menu .current-menu-item > a,
.tbc-mobile-menu .current_page_item > a {
    color: var(--tbc-color-gold);
}

.tbc-menu-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 1023px) {
    .tbc-site-header,
    .tbc-site-header.is-scrolled {
        background: #ffffff;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .tbc-menu-toggle {
        display: inline-flex;
    }

    .tbc-site-header .magnetic-btn {
        margin-left: auto;
    }
}
