/* ================================================== */
/* language switcher + Arabic (RTL) overrides          */
/* ================================================== */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 14px;
    margin-inline-start: 28px;
    border: solid 1px rgba(255, 255, 255, .35);
    border-radius: 3px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s;
}

.lang-switch:hover,
.lang-switch:focus-visible {
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-decoration: none;
}

.lang-switch i {
    font-size: 16px;
}

.lang-switch[lang="ar"] {
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

.lang-switch[lang="en"] {
    font-family: "Jost", Arial, sans-serif;
}

/* keep a gap between the switcher and the mobile menu button */
.lang-switch + #menu-btn {
    margin-left: 0;
    margin-right: 0;
    margin-inline-start: 14px;
}

@media only screen and (max-width: 992px) {
    .lang-switch {
        margin-inline-start: 0;
        min-height: 40px;
        padding: 6px 12px;
    }
}

/* the mobile header has a white background */
header.header-mobile .lang-switch {
    color: #111111;
    border-color: rgba(17, 17, 17, .25);
}

header.header-mobile .lang-switch:hover,
header.header-mobile .lang-switch:focus-visible {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

@media only screen and (max-width: 400px) {
    .lang-switch {
        padding: 6px 10px;
        font-size: 14px;
    }

    .lang-switch i {
        display: none;
    }

    .lang-switch + #menu-btn {
        margin-inline-start: 8px;
    }
}

/* ================================================== */
/* Arabic typography                                  */
/* ================================================== */

html[lang="ar"] body {
    --title-font: "Cairo";
    --body-font: "Cairo", Arial;
}

/* the theme hard-codes "Jost" in many places; icon fonts are excluded */
html[lang="ar"] body *:not(.fa):not([class^="icofont-"]):not([class*=" icofont-"]) {
    font-family: "Cairo", "Jost", Arial, sans-serif;
}

/* letter-spacing breaks Arabic letter joining */
html[lang="ar"] body * {
    letter-spacing: 0 !important;
}

html[lang="ar"] .p-title {
    font-size: 14px;
    line-height: 1.4;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] .seo-hero-title {
    line-height: 1.45;
}

html[lang="ar"] .seo-hero-title {
    font-weight: 700;
}

@media only screen and (max-width: 767px) {
    html[lang="ar"] .seo-hero-title {
        font-size: 22px;
        line-height: 1.35;
    }
}

html[lang="ar"] .h-phone span {
    font-size: 13px;
}

/* ================================================== */
/* RTL layout fixes not covered by the theme          */
/* ================================================== */

.rtl .tp-caption,
.rtl .tp-caption .seo-hero-title {
    text-align: right;
}

/* team photos without .pos-right are pinned left in style.css; mirror them */
.rtl #section-team .image-container:not(.pos-right) {
    left: auto;
    right: 0;
}

.rtl .site-footer .footer-practice h4 {
    text-align: right;
}

.rtl .site-footer .footer-practice .ul-style-2 li:before {
    display: inline-block;
}

.rtl .site-footer .footer-practice .ul-style-2 li:after {
    display: none;
}

/* phone numbers, emails and plus codes must stay left-to-right */
.rtl .ltr-text {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.rtl .h-phone a {
    direction: ltr;
    unicode-bidi: isolate;
}
