:root {
    --s62-header-normal: #0b4964;
    --s62-header-sticky: #07384d;
    --s62-header-accent: #119447;
    --s62-header-height: 88px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body.sector62-header-active {
    --s62-admin-offset: 0px;
}

body.admin-bar.sector62-header-active {
    --s62-admin-offset: 32px;
}

body.sector62-hide-theme-header #masthead,
body.sector62-hide-theme-header > .site-header,
body.sector62-hide-theme-header .elementor-location-header,
body.sector62-hide-theme-header #site-navigation {
    display: none !important;
}

.s62-header,
.s62-header * {
    box-sizing: border-box;
}

.s62-header {
    position: fixed;
    z-index: 99980;
    top: var(--s62-admin-offset);
    right: 0;
    left: 0;
    height: var(--s62-header-height);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    background: linear-gradient(180deg, color-mix(in srgb, var(--s62-header-normal) 92%, transparent), color-mix(in srgb, var(--s62-header-normal) 76%, transparent));
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    transition: height .28s ease, background-color .28s ease, box-shadow .28s ease, backdrop-filter .28s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
    .s62-header { background: rgba(11, 73, 100, .90); }
}

.s62-header.is-scrolled {
    height: 74px;
    background: var(--s62-header-sticky);
    box-shadow: 0 8px 28px rgba(0, 24, 36, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.s62-header__inner {
    width: min(1200px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.s62-header__brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    line-height: 0;
}

.s62-header__brand img {
    display: block;
    width: 210px;
    height: auto;
    max-height: 58px;
    filter: brightness(0) invert(1);
    transition: width .28s ease;
}

.s62-header.is-scrolled .s62-header__brand img {
    width: 188px;
}

.s62-header__nav {
    margin-left: auto;
}

.s62-header__nav ul {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.15vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.s62-header__nav a {
    text-decoration: none;
}

.s62-header__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .035em;
    white-space: nowrap;
    opacity: .92;
    transition: opacity .2s ease, color .2s ease;
}

.s62-header__link::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 3px;
    content: "";
    background: var(--s62-header-accent);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.s62-header__link:hover,
.s62-header__link:focus-visible,
.s62-header__link.is-active {
    color: #fff;
    opacity: 1;
}

.s62-header__link:hover::after,
.s62-header__link:focus-visible::after,
.s62-header__link.is-active::after {
    transform: scaleX(1);
}

.s62-header__cta {
    display: inline-flex;
    min-height: 48px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .025em;
    white-space: nowrap;
    background: var(--s62-header-accent);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 85, 42, .22);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.s62-header__cta svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform .2s ease;
}

.s62-header__cta:hover,
.s62-header__cta:focus-visible {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 85, 42, .3);
}

.s62-header__cta:hover svg,
.s62-header__cta:focus-visible svg {
    transform: translateX(3px);
}

.s62-header__toggle,
.s62-header__backdrop {
    display: none;
}

@media (max-width: 1050px) {
    .s62-header__inner { gap: 22px; }
    .s62-header__brand img { width: 180px; }
    .s62-header__nav ul { gap: 18px; }
    .s62-header__link { font-size: 12px; }
    .s62-header__cta { padding: 0 19px; font-size: 12px; }
}

@media (max-width: 900px) {
    :root { --s62-header-height: 74px; }
    html { scroll-padding-top: 80px; }

    .s62-header,
    .s62-header.is-scrolled { height: var(--s62-header-height); }

    .s62-header__inner { width: min(100% - 36px, 1200px); }
    .s62-header__brand img,
    .s62-header.is-scrolled .s62-header__brand img { width: 168px; }

    .s62-header__toggle {
        position: relative;
        z-index: 2;
        display: inline-flex;
        width: 46px;
        height: 46px;
        padding: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: #fff;
        background: rgba(255, 255, 255, .1);
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 50%;
        cursor: pointer;
    }

    .s62-header__toggle span {
        display: block;
        width: 19px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: transform .22s ease, opacity .18s ease;
    }

    .s62-header.menu-open .s62-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .s62-header.menu-open .s62-header__toggle span:nth-child(2) { opacity: 0; }
    .s62-header.menu-open .s62-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .s62-header__nav {
        position: fixed;
        z-index: 1;
        top: calc(var(--s62-admin-offset) + var(--s62-header-height));
        right: 0;
        width: min(88vw, 390px);
        height: calc(100dvh - var(--s62-admin-offset) - var(--s62-header-height));
        padding: 30px 25px;
        background: var(--s62-header-sticky);
        box-shadow: -16px 24px 40px rgba(0, 18, 28, .28);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .28s ease, visibility .28s ease;
        overflow-y: auto;
    }

    .s62-header.menu-open .s62-header__nav {
        transform: translateX(0);
        visibility: visible;
    }

    .s62-header__nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .s62-header__link {
        display: flex;
        min-height: 54px;
        padding: 0 6px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .s62-header__link::after { display: none; }
    .s62-header__cta-item { margin-top: 22px; }
    .s62-header__cta { width: 100%; min-height: 52px; font-size: 13px; }

    .s62-header__backdrop {
        position: fixed;
        z-index: 99970;
        inset: calc(var(--s62-admin-offset) + var(--s62-header-height)) 0 0;
        display: block;
        background: rgba(0, 20, 30, .55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.s62-menu-open .s62-header__backdrop { opacity: 1; visibility: visible; }
    body.s62-menu-open { overflow: hidden; }
}

@media (max-width: 782px) {
    body.admin-bar.sector62-header-active { --s62-admin-offset: 46px; }
}

@media (max-width: 420px) {
    .s62-header__inner { width: calc(100% - 28px); }
    .s62-header__brand img,
    .s62-header.is-scrolled .s62-header__brand img { width: 154px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .s62-header,
    .s62-header *,
    .s62-header__backdrop { transition: none !important; }
}

