.skip-link {
    position: fixed;
    z-index: 9999;
    top: 0.75rem;
    left: 50%;
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    background: #0f3d31;
    box-shadow: 0 10px 30px rgba(15, 61, 49, 0.24);
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
    transform: translate(-50%, calc(-100% - 1.5rem));
    transition: transform 160ms ease;
}

.skip-link:focus {
    color: #ffffff;
    outline: 3px solid #e5b84f;
    outline-offset: 3px;
    transform: translate(-50%, 0);
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(21, 63, 50, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(18, 48, 38, 0.05);
    backdrop-filter: blur(14px);
}

.site-header .topbar {
    position: relative;
    display: flex;
    width: min(1180px, calc(100% - 2rem));
    min-height: 76px;
    margin-inline: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    justify-content: space-between;
}

.site-header .brand {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 48px;
    color: #14211d;
    font-size: 1.08rem;
    font-weight: 820;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-header .brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
}

.site-header .brand-mark img,
.footer .brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer .brand-mark {
    width: 48px;
    height: 48px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.site-header .brand:hover,
.site-header .brand:focus-visible {
    color: #0f3d31;
}

.site-header .nav {
    display: flex;
    flex: 1 1 auto;
    gap: 0.18rem;
    align-items: center;
    justify-content: flex-end;
}

.site-header .nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.58rem 0.72rem;
    border-radius: 0.7rem;
    color: #34443e;
    font-size: 0.91rem;
    font-weight: 680;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-header .nav > a:hover {
    background: #edf4f1;
    color: #0f3d31;
}

.site-header .nav > a[aria-current="page"] {
    background: #e6f0ec;
    color: #0f3d31;
    font-weight: 800;
}

.site-header .nav > a.btn {
    min-height: 44px;
    margin-left: 0.35rem;
    padding-inline: 1rem;
    border: 1px solid #1564d8;
    border-radius: 999px;
    background: #1564d8;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(21, 100, 216, 0.16);
}

.site-header .nav > a.btn:hover {
    background: #104fae;
    color: #ffffff;
    transform: translateY(-1px);
}

.site-header :where(a, button):focus-visible {
    outline: 3px solid #e5b84f;
    outline-offset: 3px;
}

.site-header .menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #d6e0dc;
    border-radius: 12px;
    background: #ffffff;
    color: #173f33;
    cursor: pointer;
    place-items: center;
}

.menu-toggle__bars {
    display: grid;
    gap: 4px;
}

.menu-toggle__bars > span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars > span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 1080px) {
    .site-header .topbar {
        min-height: 70px;
    }

    .site-header .menu-toggle {
        display: grid;
        flex: 0 0 auto;
    }

    .site-header .nav {
        position: absolute;
        top: calc(100% + 0.55rem);
        right: 0;
        left: 0;
        display: none;
        overflow-y: auto;
        max-height: calc(100vh - 92px);
        padding: 0.75rem;
        border: 1px solid #dce4e0;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 22px 50px rgba(17, 46, 37, 0.16);
        align-items: stretch;
        flex-direction: column;
    }

    .site-header .nav.is-open,
    .site-header .nav.open,
    .site-header .nav.active,
    .site-header .nav[data-open="true"],
    .site-header .menu-toggle[aria-expanded="true"] + .nav {
        display: flex;
    }

    .site-header .nav > a {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 0.9rem;
        text-align: left;
        white-space: normal;
    }

    .site-header .nav > a.btn {
        margin: 0.35rem 0 0;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .site-header .topbar {
        width: min(100% - 1.25rem, 1180px);
    }

    .site-header .brand {
        gap: 0.6rem;
        font-size: 1rem;
    }

    .site-header .brand-mark {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skip-link,
    .site-header *,
    .site-header *::before,
    .site-header *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
