
:root {
    --site-header-height: 95px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 20, 40, 0.08);
}

.site-header__bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
    column-gap: 16px;
    /* Match .hero-container's width: 85% (style.css) so the header's left/right
       edges track the page content's edges at every viewport width, instead of
       a fixed max-width that only lines up by coincidence at one width. */
    width: 90%;
    margin: 0 auto;
    min-height: var(--site-header-height);
    padding: 10px 0;
}

.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo img {
    height: 44px;
    width: auto;
    display: block;
}

/* ── Mobile/tablet toggle button ── */
.site-header__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.site-header__toggle:hover {
    background: rgba(238, 113, 38, 0.08);
}

.site-header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Off-canvas nav panel (phones/tablets/iPad-landscape, below the desktop breakpoint) ── */
.site-header__nav {
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    padding: 8px 20px 40px;
}

.site-header__nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

.site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site-header__item {
    border-bottom: 1px solid #f1f1f1;
}

.site-header__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 10px;
    background: none;
    border: none;
    border-radius: 10px;
    text-align: left;
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header__link:hover,
.site-header__link:active {
    background: rgba(238, 113, 38, 0.07);
    color: #EE7126;
}

.site-header__caret {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(238, 113, 38, 0.12);
    color: #EE7126;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.site-header__item--dropdown.is-open .site-header__caret {
    background: #EE7126;
    color: #fff;
    transform: rotate(180deg);
}

.site-header__submenu {
    list-style: none;
    margin: 2px 0 10px;
    padding: 6px;
    background: #faf7f5;
    border-radius: 12px;
    border-left: 3px solid rgba(238, 113, 38, 0.35);
    display: none;
}

.site-header__item--dropdown.is-open .site-header__submenu {
    display: block;
}

.site-header__submenu li a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: #4a4f57;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header__submenu li a:hover,
.site-header__submenu li a:active {
    background: rgba(238, 113, 38, 0.1);
    color: #EE7126;
}

.site-header__lang {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f1f1;
}

.site-header__lang-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border: 1.5px solid rgba(238, 113, 38, 0.35);
    border-radius: 10px;
    color: #EE7126;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header__lang-link:hover {
    background: rgba(238, 113, 38, 0.08);
    border-color: #EE7126;
    color: #EE7126;
}

body.site-header-lock-scroll {
    overflow: hidden;
}

/* ========================================
   Larger than iPad landscape — full horizontal nav (wraps to a 2nd row
   rather than overflow, at widths where it doesn't fit on one line)
   ======================================== */
@media (min-width: 1100px) {
    .site-header__toggle {
        display: none;
    }

    .site-header__nav {
        position: static;
        transform: none;
        visibility: visible;
        background: none;
        overflow: visible;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 6px;
        column-gap: 2px;
        flex: 1;
        justify-content: flex-end;
    }

    .site-header__menu {
        display: contents;
    }

    .site-header__item {
        border-bottom: none;
        position: relative;
    }

    .site-header__link {
        width: auto;
        padding: 8px 10px;
        font-size: 1.45rem;
        white-space: nowrap;
        border-radius: 8px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .site-header__link:hover {
        background: rgba(238, 113, 38, 0.08);
    }

    .site-header__submenu {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        min-width: 250px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 14px 36px rgba(20, 20, 40, 0.14);
        padding: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        z-index: 20;
    }

    .site-header__item--dropdown.is-open .site-header__submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-header__submenu li a {
        border-radius: 8px;
        padding: 11px 14px;
        font-size: 1rem;
    }

    .site-header__submenu li a:hover {
        background: rgba(238, 113, 38, 0.08);
    }

    .site-header__lang {
        margin-top: 0;
        padding-top: 0;
        margin-left: 10px;
        flex-shrink: 0;
    }

    .site-header__lang-link {
        padding: 7px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header__nav,
    .site-header__toggle-bar,
    .site-header__caret,
    .site-header__submenu {
        transition: none;
    }
}
