/* ADP_HEADER_LANGUAGE_FONT_STRUCTURE_V1
 * Document language is Arabic globally.
 * Header structural containers remain LTR to preserve column/logo placement.
 * Navigation and dropdowns remain RTL.
 */

html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select{
    font-family:"Cairo",sans-serif;
}

html[lang="en"],
html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select{
    font-family:"Montserrat",sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .elementor-heading-title{
    font-family:"Cairo",sans-serif !important;
    font-weight:700 !important;
}

/* Preserve Elementor/Astra header structure and logo placement. */
html body .elementor-location-header,
html body header.elementor-location-header,
html body .site-header,
html body #site-header,
html body #masthead{
    direction:ltr !important;
    unicode-bidi:isolate !important;
}

html body .elementor-location-header > .elementor,
html body .elementor-location-header .elementor-section,
html body .elementor-location-header .elementor-container,
html body .elementor-location-header .e-con,
html body .elementor-location-header .e-con-inner,
html body .site-header .ast-container,
html body #site-header .ast-container,
html body #masthead .ast-container{
    direction:ltr !important;
    unicode-bidi:isolate !important;
}

/* The navigation itself is Arabic RTL. */
html body .elementor-location-header nav,
html body header.elementor-location-header nav,
html body .site-header nav,
html body #site-header nav,
html body #masthead nav,
html body .elementor-location-header .elementor-nav-menu--main,
html body .site-header .elementor-nav-menu--main,
html body #site-header .elementor-nav-menu--main,
html body #masthead .elementor-nav-menu--main{
    direction:rtl !important;
    text-align:right !important;
    unicode-bidi:isolate !important;
}

html body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu,
html body .site-header .elementor-nav-menu--main > .elementor-nav-menu,
html body #site-header .elementor-nav-menu--main > .elementor-nav-menu,
html body #masthead .elementor-nav-menu--main > .elementor-nav-menu{
    direction:rtl !important;
    flex-direction:row !important;
    justify-content:flex-start !important;
    text-align:right !important;
}

html body .elementor-location-header .elementor-nav-menu a,
html body .site-header .elementor-nav-menu a,
html body #site-header .elementor-nav-menu a,
html body #masthead .elementor-nav-menu a{
    direction:rtl !important;
    text-align:right !important;
    font-family:"Cairo",sans-serif !important;
}

html body .elementor-location-header .sub-menu,
html body .elementor-location-header .elementor-nav-menu--dropdown,
html body .site-header .sub-menu,
html body .site-header .elementor-nav-menu--dropdown,
html body #site-header .sub-menu,
html body #site-header .elementor-nav-menu--dropdown,
html body #masthead .sub-menu,
html body #masthead .elementor-nav-menu--dropdown{
    direction:rtl !important;
    text-align:right !important;
    unicode-bidi:isolate !important;
}

html body .elementor-location-header .elementor-nav-menu .sub-arrow,
html body .site-header .elementor-nav-menu .sub-arrow,
html body #site-header .elementor-nav-menu .sub-arrow,
html body #masthead .elementor-nav-menu .sub-arrow{
    margin-right:auto !important;
    margin-left:0 !important;
}

html body .elementor-location-header .elementor-menu-toggle,
html body .site-header .elementor-menu-toggle,
html body #site-header .elementor-menu-toggle,
html body #masthead .elementor-menu-toggle{
    direction:rtl !important;
}

/* ADP_ASTRA_HEADER_CAIRO_FONT_V1
 * Astra Header Footer Builder does not use Elementor's
 * .elementor-nav-menu class. These selectors apply Cairo directly to
 * Astra desktop, dropdown and mobile navigation text.
 */
html[lang="ar"] body .site-header,
html[lang="ar"] body #masthead,
html[lang="ar"] body .ast-primary-header-bar,
html[lang="ar"] body .ast-mobile-header-wrap{
    font-family:"Cairo",sans-serif !important;
}

html[lang="ar"] body .site-header .main-header-menu .menu-link,
html[lang="ar"] body .site-header .main-header-menu .menu-text,
html[lang="ar"] body .site-header .ast-builder-menu .menu-link,
html[lang="ar"] body .site-header .ast-builder-menu .menu-text,
html[lang="ar"] body .site-header .sub-menu .menu-link,
html[lang="ar"] body .site-header .sub-menu .menu-text,
html[lang="ar"] body .site-header .ast-menu-toggle,
html[lang="ar"] body .site-header .menu-toggle,
html[lang="ar"] body #masthead .main-header-menu .menu-link,
html[lang="ar"] body #masthead .main-header-menu .menu-text,
html[lang="ar"] body #masthead .ast-builder-menu .menu-link,
html[lang="ar"] body #masthead .ast-builder-menu .menu-text,
html[lang="ar"] body #masthead .sub-menu .menu-link,
html[lang="ar"] body #masthead .sub-menu .menu-text,
html[lang="ar"] body #masthead .ast-menu-toggle,
html[lang="ar"] body #masthead .menu-toggle,
html[lang="ar"] body .ast-mobile-header-wrap .main-header-menu .menu-link,
html[lang="ar"] body .ast-mobile-header-wrap .main-header-menu .menu-text,
html[lang="ar"] body .ast-mobile-header-wrap .ast-menu-toggle,
html[lang="ar"] body .ast-mobile-header-wrap .menu-toggle{
    font-family:"Cairo",sans-serif !important;
    font-style:normal !important;
}

html[lang="ar"] body .site-header .main-header-menu .menu-link,
html[lang="ar"] body #masthead .main-header-menu .menu-link,
html[lang="ar"] body .ast-mobile-header-wrap .main-header-menu .menu-link{
    font-weight:500 !important;
}
