html {
    scroll-behavior: smooth;
}

/* ── Site header shell ── */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    overflow: visible;
    transition: background-color 0.45s ease, box-shadow 0.45s ease, backdrop-filter 0.45s ease;
}

/* ── Top utility bar ── */
.header-top-bar {
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
    .header-top-bar {
        display: block;
    }
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.5rem;
    gap: 1rem;
}

.header-top-contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

.header-top-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.25s ease;
}

.header-top-chip svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.header-top-chip:hover {
    color: var(--gold);
}

.header-top-chip--static {
    cursor: default;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.header-social-link svg {
    width: 0.8rem;
    height: 0.8rem;
}

.header-social-link:hover {
    color: var(--burgundy-dark);
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}

/* ── Main nav row ── */
.header-main {
    border-bottom: 1px solid transparent;
    overflow: visible;
    transition: border-color 0.45s ease, background-color 0.45s ease, backdrop-filter 0.45s ease;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem 1.25rem;
    min-height: 5rem;
    overflow: visible;
}

/* Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-brand-logo {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.65rem;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.header-brand:hover .header-brand-logo {
    transform: scale(1.04);
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-brand-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    color: #fff;
    transition: color 0.35s ease;
}

.header-brand-title span {
    color: var(--gold);
}

.header-brand-tagline {
    margin-top: 0.25rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.35s ease;
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .header-brand-tagline {
        display: none;
    }

    .header-brand-title {
        font-size: 1.05rem;
        letter-spacing: 0.14em;
    }
}

/* Desktop nav — content width only, no stretch to right */
.header-nav {
    display: none;
    align-items: center;
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
    gap: 0.05rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
}

@media (min-width: 1280px) {
    .header-nav {
        display: flex;
    }
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.25s ease, background-color 0.25s ease;
}

@media (min-width: 1400px) {
    .header-nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
}

.header-nav-chevron {
    width: 0.75rem;
    height: 0.75rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.header-nav-item:hover .header-nav-chevron,
.header-nav-item:focus-within .header-nav-chevron {
    transform: rotate(180deg);
}

.header-nav-link:hover,
.header-nav-link.is-active,
.header-nav-link.is-current,
.header-nav-item:hover > .header-nav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.header-nav-item.is-active > .header-nav-link,
.header-nav-item.is-current > .header-nav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

/* Full-width mega menu (submenu only — header bar unchanged) */
.header-mega-menu {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 45;
    padding-top: 0.35rem;
    pointer-events: none;
}

.header-mega-menu.is-open {
    pointer-events: auto;
}

.header-mega-panel {
    animation: headerMegaFadeIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes headerMegaFadeIn {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-mega-panel__card {
    overflow: hidden;
    border-radius: 2px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-luxury);
}

.header-mega-panel__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.header-mega-panel__intro {
    padding: 2rem;
    background: var(--cream-deep);
    border-right: 1px solid var(--border);
}

.header-mega-panel__blurb {
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--burgundy);
}

.header-mega-panel__explore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.header-mega-panel__explore:hover {
    color: var(--burgundy);
}

.header-mega-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 1rem;
}

.header-mega-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.header-mega-item:hover {
    background: var(--cream);
}

.header-mega-item.is-current {
    background: var(--cream-deep);
    box-shadow: inset 3px 0 0 var(--gold);
}

.header-mega-item.is-current .header-mega-item__icon {
    color: #fff;
    background: var(--burgundy);
}

.header-mega-item__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 2px;
    color: var(--burgundy);
    background: color-mix(in oklab, var(--burgundy) 8%, transparent);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-mega-item__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.header-mega-item:hover .header-mega-item__icon {
    color: #fff;
    background: var(--burgundy);
}

.header-mega-item__body {
    min-width: 0;
}

.header-mega-item__title {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.3;
    color: var(--burgundy-dark);
    transition: color 0.2s ease;
}

.header-mega-item:hover .header-mega-item__title {
    color: var(--burgundy);
}

.header-mega-item__desc {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

@media (max-width: 1279px) {
    .header-mega-menu {
        display: none !important;
    }
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-left: auto;
}

@media (min-width: 1280px) {
    .header-actions {
        display: none;
    }
}

.header-cta {
    display: none;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--burgundy-dark);
    background: var(--gradient-gold);
    border-radius: 999px;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-cta svg {
    width: 0.95rem;
    height: 0.95rem;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

@media (min-width: 768px) {
    .header-cta {
        display: inline-flex;
    }
}

.header-cta--full {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Hamburger */
.header-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 1280px) {
    .header-menu-btn {
        display: none;
    }
}

.header-menu-icon,
.header-menu-icon::before,
.header-menu-icon::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.header-menu-icon {
    position: relative;
}

.header-menu-icon::before,
.header-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.header-menu-icon::before {
    top: -6px;
}

.header-menu-icon::after {
    top: 6px;
}

.site-header.is-menu-open .header-menu-icon {
    background: transparent;
}

.site-header.is-menu-open .header-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.is-menu-open .header-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ── Scrolled state ── */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.is-scrolled .header-top-bar {
    background: var(--cream);
    border-color: var(--border);
    backdrop-filter: none;
}

.site-header.is-scrolled .header-top-chip,
.site-header.is-scrolled .header-top-chip--static {
    color: var(--ink-muted);
}

.site-header.is-scrolled .header-top-chip:hover {
    color: var(--burgundy);
}

.site-header.is-scrolled .header-social-link {
    color: var(--ink-muted);
    border-color: var(--border);
    background: #fff;
}

.site-header.is-scrolled .header-social-link:hover {
    color: var(--burgundy-dark);
    background: var(--gold);
    border-color: var(--gold);
}

.site-header.is-scrolled .header-main {
    border-color: var(--border);
}

.site-header.is-scrolled .header-brand-title {
    color: var(--burgundy-dark);
}

.site-header.is-scrolled .header-brand-tagline {
    color: var(--ink-muted);
}

.site-header.is-scrolled .header-nav {
    background: var(--cream);
    border-color: var(--border);
    backdrop-filter: none;
}

.site-header.is-scrolled .header-nav-link {
    color: var(--ink-soft);
}

.site-header.is-scrolled .header-nav-link:hover,
.site-header.is-scrolled .header-nav-link.is-active,
.site-header.is-scrolled .header-nav-link.is-current,
.site-header.is-scrolled .header-nav-item:hover > .header-nav-link {
    color: var(--burgundy);
    background: #fff;
}

.site-header.is-scrolled .header-nav-item.is-active > .header-nav-link,
.site-header.is-scrolled .header-nav-item.is-current > .header-nav-link {
    color: var(--burgundy);
    background: #fff;
}

.site-header.is-scrolled .header-menu-btn {
    border-color: var(--border);
    background: #fff;
}

.site-header.is-scrolled .header-menu-icon,
.site-header.is-scrolled .header-menu-icon::before,
.site-header.is-scrolled .header-menu-icon::after {
    background: var(--burgundy);
}

/* ── Mobile drawer ── */
.header-mobile {
    pointer-events: none;
    visibility: hidden;
}

.header-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.header-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 22rem);
    height: 100dvh;
    padding: 1.25rem;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-header.is-menu-open .header-mobile {
    pointer-events: auto;
    visibility: visible;
}

.site-header.is-menu-open .header-mobile-backdrop {
    opacity: 1;
}

.site-header.is-menu-open .header-mobile-panel {
    transform: translateX(0);
}

.header-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.header-mobile-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--burgundy-dark);
}

.header-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--burgundy);
    cursor: pointer;
}

.header-mobile-close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.header-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    flex: 1;
}

.header-mobile-link {
    display: block;
    padding: 0.85rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-mobile-link:hover,
.header-mobile-link.is-active,
.header-mobile-link.is-current {
    color: var(--burgundy);
    background: var(--cream);
}

.header-mobile-group.is-current > .header-mobile-toggle {
    color: var(--burgundy);
    background: var(--cream);
}

.header-mobile-group {
    border-radius: 0.5rem;
    overflow: hidden;
}

.header-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    color: var(--ink-soft);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-mobile-toggle:hover,
.header-mobile-group.is-open .header-mobile-toggle {
    color: var(--burgundy);
    background: var(--cream);
}

.header-mobile-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.header-mobile-group.is-open .header-mobile-chevron {
    transform: rotate(180deg);
}

.header-mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.5rem 0.65rem 0.75rem;
}

.header-mobile-group.is-open .header-mobile-submenu {
    display: flex;
}

.header-mobile-sublink {
    display: block;
    padding: 0.55rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--ink-muted);
    border-radius: 0.4rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.header-mobile-sublink--overview {
    font-weight: 700;
    color: var(--burgundy);
}

.header-mobile-sublink:hover,
.header-mobile-sublink.is-current {
    color: var(--burgundy);
    background: rgba(198, 167, 94, 0.12);
}

.header-mobile-sublink.is-current {
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--gold);
}

.header-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.header-mobile-phone {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--burgundy-dark);
    text-decoration: none;
}

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