header.site-header {
    --sh-navy: #091e42;
    --sh-blue: #0b5ea8;
    --sh-ink: #07162c;
    --sh-muted: rgba(255, 255, 255, 0.78);
    --sh-line: #d7e4f2;
    --sh-paper: #fff;
    position: sticky !important;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--sh-paper);
    font-family: "Cairo", sans-serif;
    transition: box-shadow 0.25s ease;
}

header.site-header.scrollHeader {
    box-shadow: 0 10px 28px rgba(9, 30, 66, 0.1);
}

.site-header a {
    font-family: "Cairo", sans-serif;
    text-decoration: none;
}

.site-header-utility {
    background: var(--sh-navy);
    color: #fff;
    overflow: hidden;
    max-height: 44px;
    transition: max-height 0.28s ease;
}

header.site-header.scrollHeader .site-header-utility {
    max-height: 0;
}

.site-header-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}

.site-header-phone,
.site-header-langs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sh-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.site-header-phone:hover,
.site-header-langs a:hover {
    color: #fff;
}

.site-header-langs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;
}

.site-header-main {
    background: var(--sh-paper);
    border-bottom: 1px solid var(--sh-line);
}

.site-header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 78px;
}

.site-header-logo {
    display: block;
    flex: 0 0 auto;
}

.site-header-logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.site-header-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav > li {
    position: relative;
}

.site-nav > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    color: var(--sh-navy);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-nav > li > a::before {
    content: "";
    position: absolute;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--sh-blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.site-nav > li:hover > a,
.site-nav > li.is-active > a,
.site-nav > li:focus-within > a {
    color: var(--sh-blue);
}

.site-nav > li:hover > a::before,
.site-nav > li.is-active > a::before,
.site-nav > li:focus-within > a::before {
    transform: scaleX(1);
}

.site-nav > li.has-sub > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-inline-end: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.site-nav > li > ul {
    position: absolute;
    top: calc(100% - 2px);
    inset-inline-start: 0;
    min-width: 230px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--sh-paper);
    border: 1px solid var(--sh-line);
    box-shadow: 0 14px 34px rgba(9, 30, 66, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.site-nav > li:hover > ul,
.site-nav > li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav > li > ul a {
    display: block;
    padding: 9px 18px;
    color: var(--sh-navy);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav > li > ul a:hover {
    color: var(--sh-blue);
    background: #f3f7fb;
}

.site-header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sh-blue);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 11px 18px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.site-header-cta:hover {
    background: var(--sh-navy);
    color: #fff !important;
}

.site-header-cta-mobile {
    display: none;
}

.site-header-backdrop,
.site-header-drawer-top {
    display: none;
}

.site-header-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.site-header-toggle span:not(.visually-hidden) {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--sh-navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

@media (max-width: 1199px) {
    .site-nav > li > a {
        padding: 10px 8px;
        font-size: 0.88rem;
    }

    .site-nav > li > a::before {
        inset-inline-start: 8px;
        inset-inline-end: 8px;
    }
}

@media (max-width: 991px) {
    .site-header-bar {
        min-height: 68px;
        gap: 12px;
    }

    .site-header-logo img {
        height: 44px;
        max-width: 180px;
    }

    .site-header-actions {
        display: none;
    }

    .site-header-toggle {
        display: flex;
        margin-inline-start: auto;
        z-index: 2;
    }

    header.site-header.is-open .site-header-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    header.site-header.is-open .site-header-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.site-header.is-open .site-header-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-header-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1090;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(9, 30, 66, 0.48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        cursor: pointer;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

    header.site-header.is-open .site-header-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header-nav {
        display: flex;
        position: fixed;
        top: 0;
        inset-inline-end: 0;
        bottom: 0;
        z-index: 1100;
        width: min(320px, 86vw);
        height: 100dvh;
        max-height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: var(--sh-paper);
        border: 0;
        border-inline-start: 1px solid var(--sh-line);
        box-shadow: -18px 0 40px rgba(9, 30, 66, 0.16);
        overflow-y: auto;
        padding: 0 0 28px;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    html[dir="rtl"] .site-header-nav {
        transform: translateX(-105%);
        box-shadow: 18px 0 40px rgba(9, 30, 66, 0.16);
    }

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

    .site-header-drawer-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 16px 18px;
        background: var(--sh-paper);
        border-bottom: 1px solid var(--sh-line);
    }

    .site-header-drawer-logo img {
        display: block;
        height: 40px;
        width: auto;
        max-width: 160px;
        object-fit: contain;
    }

    .site-header-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--sh-line);
        border-radius: 8px;
        background: #f4f7fb;
        color: var(--sh-navy);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .site-header-drawer-close:hover {
        background: var(--sh-blue);
        border-color: var(--sh-blue);
        color: #fff;
    }

    .site-header-drawer-close i {
        font-size: 1.1rem;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 10px 20px 0;
    }

    .site-nav > li > a {
        padding: 14px 0;
        font-size: 1.05rem;
        white-space: normal;
    }

    .site-nav > li > a::before {
        display: none;
    }

    .site-nav > li > ul {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 10px;
        background: transparent;
    }

    .site-nav > li > ul a {
        padding: 8px 0 8px 0;
        padding-inline-start: 14px;
        color: #3d4f66;
        font-weight: 600;
    }

    .site-header-cta-mobile {
        display: inline-flex;
        margin: 16px 20px 0;
        align-self: stretch;
    }
}
