@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/alexandria/arabic.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/alexandria/latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.mobile-menu,
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-page {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.mobile-menu-page > main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: flex;
        order: 1;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #fff;
        border: 0;
        background: transparent;
    }

    .mobile-menu-toggle span {
        width: 18px;
        height: 1px;
        border-radius: 1px;
        background: currentColor;
    }

    .mobile-menu-toggle span + span {
        margin-top: 4px;
    }

    html.mobile-menu-open,
    .mobile-menu-open body {
        overflow: hidden;
        overscroll-behavior: none;
    }

    html.mobile-menu-open {
        --mobile-menu-motion: 340ms cubic-bezier(0.22, 0.7, 0.24, 1);
    }

    .mobile-menu-open body::before {
        position: fixed;
        z-index: 5000;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(148deg, #102b44 0%, #0b2841 49%, #07182b 100%);
        opacity: 0;
        transition: opacity var(--mobile-menu-motion);
        content: '';
    }

    .mobile-menu-visible body::before {
        opacity: 1;
    }

    .mobile-menu-open .mobile-menu-page {
        --mobile-menu-preview: translate(-75.5%, 0.8%) scale(0.96, 0.804) skew(3deg, -9deg);
        --mobile-menu-shadow: 7px 5px 0 rgba(150, 187, 213, 0.13), 13px 10px 0 rgba(150, 187, 213, 0.08);
        position: fixed;
        z-index: 5001;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        min-height: 0;
        overflow: hidden;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--mobile-menu-shadow);
        transition: transform var(--mobile-menu-motion);
    }

    .mobile-menu-open[dir='rtl'] .mobile-menu-page {
        --mobile-menu-preview: translate(75.5%, 0.8%) scale(0.96, 0.804) skew(-3deg, 9deg);
        --mobile-menu-shadow: -7px 5px 0 rgba(150, 187, 213, 0.13), -13px 10px 0 rgba(150, 187, 213, 0.08);
    }

    .mobile-menu-visible .mobile-menu-page {
        transform: var(--mobile-menu-preview);
    }

    .mobile-menu-moving .mobile-menu-page {
        will-change: transform;
    }

    .mobile-menu-open .main-navbar {
        background: transparent !important;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none !important;
    }

    .mobile-menu:not([hidden]) {
        position: fixed;
        z-index: 5002;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        color: #edf6fe;
        font-family: 'Alexandria', system-ui, sans-serif;
        font-synthesis: none;
        line-height: 1.4;
    }

    .mobile-menu__scrim {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        touch-action: none;
    }

    .mobile-menu__panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 29%;
        display: flex;
        flex-direction: column;
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 26px 20px 22px 12px;
        padding-right: clamp(16px, 5.3vw, 36px);
        padding-top: calc(26px + env(safe-area-inset-top));
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    .mobile-menu-visible .mobile-menu__panel {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu[dir='rtl'] .mobile-menu__panel {
        right: 29%;
        left: 0;
        padding-left: 20px;
        padding-left: clamp(16px, 5.3vw, 36px);
        padding-right: 12px;
    }

    .mobile-menu__header {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 0 26px;
    }

    .mobile-menu__logo {
        display: block;
        width: 88px;
        height: auto;
    }

    .mobile-menu button {
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu__close {
        position: relative;
        display: inline-flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #d6e6f6;
        border: 0;
    }

    .mobile-menu__close::before {
        position: absolute;
        inset: 3px;
        border: 1px solid rgba(202, 226, 245, 0.24);
        border-radius: 50%;
        content: '';
    }

    .mobile-menu__icon {
        display: block;
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-menu__close .mobile-menu__icon {
        stroke-width: 2.2;
    }

    .mobile-menu__arrow {
        color: #82b9dd;
    }

    .mobile-menu[dir='rtl'] .mobile-menu__arrow {
        transform: scaleX(-1);
    }

    .mobile-menu__eyebrow {
        margin: 0 0 12px;
        color: #a8bbce;
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-menu[dir='rtl'] .mobile-menu__eyebrow {
        letter-spacing: normal;
    }

    .mobile-menu__list,
    .mobile-menu__service-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu__link,
    .mobile-menu__profile,
    .mobile-menu__language {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .mobile-menu a {
        color: #b9ccde;
        text-decoration: none;
    }

    .mobile-menu a:focus,
    .mobile-menu a:hover,
    .mobile-menu a[aria-current='page'] {
        color: #fff;
    }

    .mobile-menu__link {
        position: relative;
        flex: 1;
        min-height: 42px;
        padding: 8px 0;
        font-size: 0.94rem;
        font-weight: 500;
    }

    .mobile-menu__link[aria-current='page'] {
        font-weight: 600;
    }

    .mobile-menu__link[aria-current='page']::before {
        position: absolute;
        top: 50%;
        left: -11px;
        width: 3px;
        height: 17px;
        border-radius: 2px;
        transform: translateY(-50%);
        background: #4ca6e9;
        content: '';
    }

    .mobile-menu[dir='rtl'] .mobile-menu__link[aria-current='page']::before {
        right: -11px;
        left: auto;
    }

    .mobile-menu__service-toggle {
        width: 100%;
        color: #b9ccde;
        border: 0;
        font-family: inherit;
        text-align: start;
    }

    .mobile-menu__service-toggle:is([aria-expanded='true'], [aria-current='page']) {
        color: #fff;
        font-weight: 600;
    }

    .mobile-menu__service-icon {
        color: #a8bbce;
        transition: transform 240ms ease;
    }

    .mobile-menu__service-toggle[aria-expanded='true'] .mobile-menu__service-icon {
        transform: rotate(45deg);
    }

    .mobile-menu__services {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        visibility: hidden;
        transition: grid-template-rows 280ms ease, opacity 180ms ease, visibility 0s linear 280ms;
    }

    .mobile-menu__services[aria-hidden='false'] {
        grid-template-rows: 1fr;
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .mobile-menu__services-clip {
        min-height: 0;
        overflow: hidden;
    }

    .mobile-menu__service-list {
        margin: 2px 0 5px;
        border-inline-start: 1px solid rgba(162, 192, 219, 0.21);
        padding-inline-start: 10px;
    }

    .mobile-menu__services a {
        display: flex;
        min-height: 38px;
        align-items: center;
        padding: 6px 0;
        color: #a7bcd0;
        font-size: 0.69rem;
        font-weight: 500;
    }

    .mobile-menu__services a:focus-visible {
        outline-offset: -2px;
    }

    .mobile-menu__bottom {
        margin-top: auto;
        padding-top: 20px;
        font-size: 0.68rem;
        font-weight: 600;
    }

    .mobile-menu__profile,
    .mobile-menu__language {
        min-height: 44px;
    }

    .mobile-menu__language {
        border-top: 1px solid rgba(202, 226, 245, 0.15);
    }

    .mobile-menu__language .mobile-menu__eyebrow {
        margin: 0;
    }

    .mobile-menu__language a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    .mobile-menu-toggle:focus-visible,
    .mobile-menu a:focus-visible,
    .mobile-menu button:focus-visible {
        outline: 2px solid #82b9dd;
        outline-offset: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
        .mobile-menu-open .mobile-menu-page,
        .mobile-menu-open body::before,
        .mobile-menu__panel,
        .mobile-menu__services,
        .mobile-menu__service-icon {
            transition: none;
        }
    }
}
