/**
 * Site header — layout & mobile adaptations (no Vite build required).
 */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 3.5rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.site-header__brand-link {
    display: flex;
    align-items: center;
    line-height: 1.2;
    min-width: 0;
}

.site-header__logo {
    display: block;
    height: 2rem;
    width: auto;
    max-width: 9.5rem;
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 640px) {
    .site-header__logo {
        height: 2.25rem;
        max-width: 10.5rem;
    }
}

@media (min-width: 768px) {
    .site-header__logo {
        height: 2rem;
        max-width: 10rem;
        object-position: left center;
    }
}

.site-header__bar-end {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-shrink: 0;
    margin-left: auto;
}

@media (min-width: 1280px) {
    .site-header__bar {
        justify-content: flex-start;
        min-height: 4rem;
        gap: 0.75rem;
    }

    .site-header__bar-end {
        margin-left: auto;
        flex-shrink: 0;
    }
}

.site-header__toolbar {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 1024px) {
    .site-header__toolbar {
        gap: 0.75rem;
    }
}

.site-header__icon-btn--desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .site-header__icon-btn--desktop-only {
        display: inline-flex;
    }
}

.site-header__menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
}

@media (min-width: 1280px) {
    .site-header__menu-toggle {
        display: none !important;
    }
}

.site-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    color: var(--brand-primary, #e60012);
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header__icon-btn:hover,
.site-header__icon-btn:focus-visible {
    color: var(--brand-primary-hover, #c40010);
    background-color: var(--brand-primary-light, #fef2f2);
    outline: none;
}

.site-header__menu-toggle .site-header__menu-icon-close {
    display: none;
}

.site-header__menu-toggle.is-open .site-header__menu-icon-open {
    display: none;
}

.site-header__menu-toggle.is-open .site-header__menu-icon-close {
    display: block;
}

.site-header__desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .site-header__brand {
        grid-column: 1;
        justify-self: start;
    }

    .site-header__desktop-nav {
        grid-column: 2;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        align-self: center;
        justify-content: center;
        justify-self: center;
        width: 100%;
        min-width: 0;
        gap: 0.875rem;
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .site-header__desktop-nav > a,
    .site-header__desktop-nav > .group > a,
    .site-header__desktop-nav > .group > span {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        white-space: nowrap;
        line-height: 1.2;
        font-weight: 600;
    }

    .site-header__desktop-nav > .group {
        flex-shrink: 0;
    }
}

@media (min-width: 1280px) {
    .site-header__desktop-nav {
        gap: 1.125rem;
        font-size: 0.9375rem;
    }

    .site-header__bar {
        gap: 1rem 1.25rem;
    }
}

.site-header__mega-panel {
    position: absolute;
    left: 0;
    margin-top: 0.5rem;
    width: min(650px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

.group:hover .site-header__mega-panel,
.group:focus-within .site-header__mega-panel {
    opacity: 1;
    visibility: visible;
}

.site-header__dropdown-panel {
    position: absolute;
    left: 0;
    margin-top: 0.5rem;
    width: 12rem;
    background: #ffffff;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

.group:hover .site-header__dropdown-panel,
.group:focus-within .site-header__dropdown-panel {
    opacity: 1;
    visibility: visible;
}

.site-header__mobile-panel {
    display: none;
    max-height: min(70vh, calc(100dvh - 3.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.site-header__mobile-panel.is-open {
    display: block;
}

@media (min-width: 1280px) {
    .site-header__mobile-panel {
        display: none !important;
    }
}

.site-header__mobile-panel-inner {
    padding: 0.75rem 1rem 1rem;
}

.site-header__mobile-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.site-header__mobile-quick--two {
    grid-template-columns: repeat(2, 1fr);
}

.site-header__mobile-quick--one {
    grid-template-columns: 1fr;
}

.site-header__mobile-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 3.25rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--brand-primary, #e60012);
    background: var(--brand-primary-light, #fef2f2);
    border: 1px solid rgba(230, 0, 18, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header__mobile-quick-btn:hover,
.site-header__mobile-quick-btn:focus-visible {
    color: var(--brand-primary-hover, #c40010);
    background: #fee2e2;
    border-color: rgba(230, 0, 18, 0.35);
    outline: none;
}

.mobile-nav-details {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-details__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    list-style: none;
}

.mobile-nav-details__summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-details__chevron {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.mobile-nav-details[open] .mobile-nav-details__chevron {
    transform: rotate(180deg);
}

.mobile-nav-details__body {
    padding: 0 0.25rem 0.75rem;
}

.mobile-nav-details__parent-link {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-primary, #e60012);
}

.mobile-nav-details__group-title {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
    color: #4b5563;
    border-radius: 0.25rem;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    color: var(--brand-primary, #e60012);
    background: #f9fafb;
}

.mobile-nav-link--top {
    padding: 0.75rem 0.25rem;
    font-weight: 600;
    color: #111827;
}

body.site-header-menu-open {
    overflow: hidden;
}

@keyframes site-header-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.site-header .animate-fade-in {
    animation: site-header-fade-in 0.2s ease-out;
}
