/* =========================
   FONT
========================= */

@font-face {
    font-family: "Overused Grotesk";
    src: url("../assets/fonts/variable/OverusedGrotesk-VF.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans Arabic";
    src: url("../assets/fonts/arabic/NotoSansArabic-VariableFont_wdth,wght.ttf")
         format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html[lang="ar"] body {
    font-family: "Noto Sans Arabic", Arial, sans-serif;
}

html[lang="ar"] {
    direction: rtl;
}


/* =========================
   RESET
========================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--yellow);
}

body {
    min-height: 100vh;
    background-color: var(--off-white);
    color: var(--charcoal);
    font-family: "Overused Grotesk", Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   BRAND VARIABLES
========================= */

:root {
    --charcoal: #221f20;
    --off-white: #fffdee;

    --coral: #ff8661;
    --yellow: #ffca5f;
    --blue: #6bb4fc;

    --lilac: #cccced;
    --mint: #bce2d0;
    --beige: #ddb097;

    --page-padding: clamp(28px, 4.5vw, 78px);
}


/* =========================
   HEADER
========================= */

.site-header {
    min-height: 155px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 var(--page-padding);

    background-color: var(--off-white);
}


/* LOGO */

.site-logo {
    justify-self: start;
    width: 175px;
}

.site-logo img {
    width: 100%;
    height: auto;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 36px;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.main-nav a {
    white-space: nowrap;
}

.main-nav a.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}


/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
    justify-self: end;

    display: flex;
    align-items: center;

    gap: 18px;
}


/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher {
    display: flex;
    align-items: center;

    gap: 3px;
}

.language-switcher button {
    border: 0;

    padding: 5px 4px;

    background: transparent;
    color: var(--charcoal);

    font-family: inherit;
    font-size: 11px;
    font-weight: 400;

    cursor: pointer;

    opacity: 0.5;

    transition:
        opacity 0.2s ease,
        font-weight 0.2s ease;
}

.language-switcher button:hover {
    opacity: 1;
}

.language-switcher button.active {
    opacity: 1;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* DIVIDERS */

.language-switcher button:not(:last-child)::after {
    content: "/";
    display: inline-block;

    margin-left: 7px;

    font-weight: 400;
    opacity: 0.5;
}


/* =========================
   HEADER CTA
========================= */

.header-cta {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 213px;
    height: 54px;

    padding: 0 20px;

    border-radius: 100px;

    background-color: var(--charcoal);
    color: var(--off-white);

    font-size: 13px;
    font-weight: 400;

    text-align: center;
    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================
   ARABIC HEADER
========================= */

html[lang="ar"] .site-header {
    direction: rtl;
}

html[lang="ar"] .site-logo {
    justify-self: start;
}

html[lang="ar"] .header-actions {
    justify-self: end;
}

html[lang="ar"] .main-nav,
html[lang="ar"] .header-actions,
html[lang="ar"] .language-switcher {
    direction: rtl;
}

html[lang="ar"] .language-switcher button:not(:last-child)::after {
    margin-left: 0;
    margin-right: 7px;
}

html[lang="ar"] .header-cta {
    font-family: "Noto Sans Arabic", Arial, sans-serif;
}


/* =========================
   HEADER — TABLET
========================= */

@media (max-width: 1200px) {

    .site-header {
        grid-template-columns: auto 1fr auto;
    }

    .main-nav {
        gap: 20px;
        font-size: 13px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-cta {
        width: 175px;
        font-size: 11px;
    }

    .language-switcher button {
        font-size: 10px;
    }
}


/* =========================
   DESKTOP DROPDOWNS
========================= */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--charcoal);

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;
}

.nav-dropdown-trigger.active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;

    min-width: max-content;

    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
}

.nav-dropdown-menu a {
    display: block;

    padding: 0;

    color: var(--charcoal);

    background: transparent;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;

    white-space: nowrap;

    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    background: transparent;
}

.nav-dropdown-menu a.active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 100%;

    height: 12px;
}

html[dir="rtl"] .nav-dropdown-menu {
    left: auto;
    right: 0;

    align-items: flex-start;
}


/* =========================================
   MOBILE HEADER + MENU
========================================= */

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

@media (max-width: 760px) {

    /* HEADER */

    .site-header {
        min-height: 100px;
        height: 100px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 0 22px;

        position: relative;
        z-index: 2000;

        background: var(--off-white);
    }

    .site-logo {
        width: 125px;
        flex-shrink: 0;
    }

    .header-actions {
        display: none;
    }


    /* HAMBURGER */

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        padding: 0;

        border: 0;
        outline: none;

        background: transparent;

        gap: 6px;

        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-menu-toggle:focus,
    .mobile-menu-toggle:focus-visible,
    .mobile-menu-toggle:active {
        outline: none;
        box-shadow: none;
    }

    .mobile-menu-toggle span {
        display: block;

        width: 26px;
        height: 2px;

        background-color: var(--charcoal);

        transition:
            transform 0.25s ease,
            opacity 0.2s ease;
    }


    /* HAMBURGER -> X */

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

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

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


    /* MAIN MOBILE MENU */

    .main-nav {
        position: fixed;

        top: 100px;
        left: 0;
        right: 0;
        bottom: 0;

        z-index: 1999;

        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 0;

        padding: 30px 22px 50px;

        overflow-y: auto;
        overscroll-behavior: contain;

        background-color: var(--off-white);

        border-top: 1px solid rgba(34, 31, 32, 0.12);

        font-size: 18px;
        font-weight: 600;
    }

    .site-header.menu-open .main-nav {
        display: flex;
    }


    /* TOP-LEVEL ITEMS */

    .main-nav > a,
    .main-nav > .nav-dropdown {
        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        flex: 0 0 auto;
    }

    .main-nav > a,
    .main-nav > .nav-dropdown > .nav-dropdown-trigger {
        display: block;

        width: 100%;

        margin: 0;
        padding: 13px 0;

        border: 0;
        outline: none;

        background: transparent;
        color: var(--charcoal);

        font-family: inherit;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.25;

        text-align: left;
        text-decoration: none;

        white-space: normal;

        cursor: pointer;
    }

    .main-nav > a:focus,
    .main-nav > a:focus-visible,
    .main-nav > .nav-dropdown > .nav-dropdown-trigger:focus,
    .main-nav > .nav-dropdown > .nav-dropdown-trigger:focus-visible {
        outline: none;
        box-shadow: none;
    }


    /* MOBILE DROPDOWNS */

    .main-nav .nav-dropdown {
        position: static;

        display: block;
        align-items: initial;
    }

    .main-nav .nav-dropdown-menu {
        position: static;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0 0 8px 16px;

        gap: 0;

        opacity: 1;
        visibility: visible;

        background: transparent;

        border: 0;
        box-shadow: none;

        transition: none;
    }


    /* Disable desktop hover/focus opening on mobile */

    .main-nav .nav-dropdown:hover .nav-dropdown-menu,
    .main-nav .nav-dropdown:focus-within .nav-dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
    }


    /* JS-controlled mobile dropdown */

    .main-nav .nav-dropdown.open .nav-dropdown-menu,
    .main-nav .nav-dropdown.open:hover .nav-dropdown-menu,
    .main-nav .nav-dropdown.open:focus-within .nav-dropdown-menu {
        display: flex;
    }

    .main-nav .nav-dropdown-menu::before {
        display: none;
        content: none;
    }


    /* SUBMENU LINKS */

    .main-nav .nav-dropdown-menu a {
        display: block;

        width: 100%;

        margin: 0;
        padding: 8px 0;

        color: var(--charcoal);

        background: transparent;

        font-family: inherit;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.35;

        white-space: normal;

        text-decoration: none;
    }

    .main-nav .nav-dropdown-menu a:hover,
    .main-nav .nav-dropdown-menu a:focus {
        background: transparent;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }


    /* REMOVE DESKTOP ACTIVE UNDERLINES */

    .main-nav > a.active,
    .main-nav > .nav-dropdown > .nav-dropdown-trigger.active {
        text-decoration: none;
    }


    /* RTL */

    html[dir="rtl"] .main-nav {
        direction: rtl;
    }

    html[dir="rtl"] .main-nav > a,
    html[dir="rtl"] .main-nav > .nav-dropdown > .nav-dropdown-trigger {
        text-align: right;
    }

    html[dir="rtl"] .main-nav .nav-dropdown-menu {
        padding-left: 0;
        padding-right: 16px;

        align-items: flex-end;
    }
}


/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .site-logo {
        width: 120px;
    }
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    background-color: var(--charcoal);
    color: var(--off-white);

    padding:
        70px
        var(--page-padding)
        30px;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
    gap: 48px;
}


/* BRAND */

.footer-logo {
    display: inline-block;
}

.footer-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.footer-brand p {
    max-width: 260px;
    margin-top: 22px;

    font-size: 15px;
    line-height: 1.5;

    opacity: 0.8;
}

.footer-socials {
    display: flex;
    gap: 10px;

    margin-top: 26px;
}

.footer-socials a {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 253, 238, 0.35);
    border-radius: 50%;

    color: var(--off-white);

    transition:
        background-color 0.2s,
        color 0.2s,
        border-color 0.2s;
}

.footer-socials a:hover {
    border-color: var(--coral);
    background-color: var(--coral);
    color: var(--charcoal);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
}


/* COLUMNS */

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer h2 {
    margin-bottom: 18px;

    color: var(--off-white);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-col > a {
    margin-bottom: 10px;

    color: var(--off-white);

    font-size: 15px;
    line-height: 1.4;

    text-decoration: none;

    opacity: 0.85;

    transition:
        opacity 0.2s,
        color 0.2s;
}

.footer-col > a:hover {
    opacity: 1;
    color: var(--coral);
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 14px !important;
}

.footer-address svg {
    flex-shrink: 0;

    width: 20px;
    height: 20px;

    margin-top: 1px;

    color: var(--coral);
}


/* NEWSLETTER */

.footer-newsletter p {
    margin-bottom: 16px;

    font-size: 15px;
    line-height: 1.5;

    opacity: 0.8;
}

.footer-newsletter-form {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-newsletter-form input {
    width: 100%;
    height: 46px;

    padding: 0 18px;

    border: 1px solid rgba(255, 253, 238, 0.35);
    border-radius: 100px;

    background-color: transparent;
    color: var(--off-white);

    font-family: inherit;
    font-size: 15px;

    outline: none;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 253, 238, 0.6);
}

.footer-newsletter-form input:focus {
    border-color: var(--off-white);
}

.footer-newsletter-form button {
    height: 46px;

    border: 0;
    border-radius: 100px;

    background-color: var(--coral);
    color: var(--charcoal);

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    text-transform: uppercase;

    cursor: pointer;

    transition: background-color 0.2s;
}

.footer-newsletter-form button:hover {
    background-color: var(--off-white);
}


/* BOTTOM LINE */

.footer-bottom {
    margin-top: 56px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 253, 238, 0.16);

    font-size: 13px;

    opacity: 0.7;
}


/* RTL */

html[dir="rtl"] .footer-col {
    align-items: flex-end;
    text-align: right;
}


/* =========================================
   FOOTER — TABLET
========================================= */

@media (max-width: 1050px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
}


/* =========================================
   FOOTER — MOBILE
========================================= */

@media (max-width: 760px) {

    .site-footer {
        padding:
            50px
            22px
            24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-logo img {
        width: 130px;
    }

    .footer-bottom {
        margin-top: 40px;
    }
}


/* =========================================
   CONTACT FORMS - VALIDATION + SUCCESS
========================================= */

.contact-form.was-submitted :invalid,
.contact-page-form.was-submitted :invalid {
    border-color: var(--coral);
    border-width: 2px;
}

.contact-error {
    margin: -8px 0 16px;

    color: var(--coral);

    font-size: 14px;
    font-weight: 600;
}

.contact-success {
    align-self: center;

    padding: 44px 40px;

    border: 2px solid var(--charcoal);
    border-radius: 15px;
}

.contact-success-mark {
    display: block;

    width: 18px;
    height: 18px;

    margin-bottom: 22px;

    background-color: var(--coral);

    transform: rotate(45deg);
}

.contact-success h3 {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;

    text-transform: uppercase;
}

.contact-success p {
    margin-top: 12px;

    font-size: 18px;
    line-height: 1.5;
}