.site-header-tools { display: flex; align-items: center; gap: 20px; }
.site-language { display: inline-flex; align-items: center; margin: 0; white-space: nowrap; direction: ltr; flex-shrink: 0; font-family: Arial, sans-serif; }
.site-language__choices { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #dfe5ec; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(9, 32, 74, .08); }
.site-translation-note { background: #f5f7fa; color: #39475b; font-size: 12px; padding: 9px 0; }
html[dir="rtl"] .site-translation-note[translate="no"] { direction: rtl; }
.site-translation-note--warning { background: #fff5df; color: #6b440c; }
.site-translation-note p { margin: 6px 0; font-size: 13px; line-height: 1.7; }
.site-translation-note summary { cursor: pointer; }
.site-translation-note a { text-decoration: underline; }
.site-language-loading { position: fixed; inset-inline: 16px; bottom: 20px; margin: auto; width: fit-content; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 6px; background: #09204a; color: white; z-index: 100000; box-shadow: 0 3px 18px #0003; }
.site-language button { border: 0; background: transparent; color: #526277; padding: 6px 13px; min-height: 34px; font-size: 13px; font-weight: 600; line-height: 1.35; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.site-language__choices > span { width: 1px; height: 18px; background: #dfe5ec; font-size: 0; }
.site-language button[aria-pressed="true"] { background: #f15a24; color: #fff; }
.site-language button:focus-visible { outline: 2px solid #09204a; outline-offset: -2px; }
.site-language--top { color: #fff; }
.site-language--top .site-language__choices { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); box-shadow: none; }
.site-language--top button { color: #fff; }
.site-language--top .site-language__choices > span { background: rgba(255, 255, 255, .4); }
.site-language--top button[aria-pressed="true"] { background: #fff; color: #d94719; }
.site-language--nav { display: none; }
.stricky-header .site-language--nav { display: inline-flex; }
.site-language--mobile { color: white; margin-bottom: 16px; }
.site-language--mobile .site-language__choices { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); box-shadow: none; }
.site-language--mobile button { color: #fff; }
.site-language--mobile .site-language__choices > span { background: rgba(255, 255, 255, .4); }
.site-language--mobile button[aria-pressed="true"] { background: #fff; color: #d94719; }
@media (min-width: 1200px) and (max-width: 1599px) {
    .stricky-header .main-menu-two__call { display: none; }
}
@media (max-width: 1199px) {
    .site-language--nav { display: inline-flex; }
}
@media (max-width: 767px) {
    .main-menu-two__right { display: flex; }
    .main-menu-two__right > :not(.site-language) { display: none; }
    .main-menu-two__wrapper-inner { gap: 12px; }
    .site-language button { padding-inline: 10px; font-size: 12px; }
    .main-header-two__logo { max-width: 43%; }
    .main-header-two__logo a img { max-width: 100%; }
    .main-header-two__logo a img + img { display: none; }
}
html[dir="rtl"] {
    --Freshflow-font: "Noto Sans Arabic", Arial, sans-serif;
    --Freshflow-font-two: "Noto Sans Arabic", Arial, sans-serif;
}
html[dir="rtl"] body { text-align: right; line-height: 1.8; }
html[dir="rtl"] :is(h1,h2,h3,h4,h5,h6) { letter-spacing: normal; line-height: 1.5; }
html[dir="rtl"] :is(input,textarea,select,button) { font-family: inherit; }
html[dir="rtl"] :is(.text-left,.text-start) { text-align: right !important; }
html[dir="rtl"] :is(.text-right,.text-end) { text-align: left !important; }
html[dir="rtl"] :is(a[href^="tel:"],a[href^="mailto:"],input[type="email"],input[type="tel"],.odometer,[translate="no"]) { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] a[href^="tel:"], html[dir="rtl"] a[href^="mailto:"] { display: inline-block; }
html[dir="rtl"] .main-header-two__content { border-left: 0; border-right: 1px solid #e5e5e5; }
html[dir="rtl"] .main-header-two__logo a { justify-content: flex-start !important; }
html[dir="rtl"] .main-header-two__logo img { object-position: left center !important; }
html[dir="rtl"] .main-menu-two__call { margin-left: 0 !important; margin-right: 16px; }
html[dir="rtl"] .main-menu-two__contact-list li + li { margin-left: 0; margin-right: 20px; }
html[dir="rtl"] .main-menu__list > li + li { margin-left: 0; margin-right: 20px; }
html[dir="rtl"] .main-menu__list li ul { left: auto; right: 0; text-align: right; }
html[dir="rtl"] .main-menu__list li ul li > ul { left: auto; right: 100%; }
html[dir="rtl"] .main-menu__list li ul li > a { text-align: right; }
html[dir="rtl"] .main-menu-two__search-form input { padding-left: 40px; padding-right: 12px; }
html[dir="rtl"] .main-menu-two__search-form button { right: auto; left: 10px; }
html[dir="rtl"] .thm-btn { gap: 12px; }
html[dir="rtl"] .thm-btn > span { margin-left: 0; margin-right: 12px; }
html[dir="rtl"] .thm-breadcrumb .icon-arrow-right { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .mobile-nav__content { left: auto; right: 0; transform: translateX(100%); }
html[dir="rtl"] .mobile-nav__wrapper.expanded .mobile-nav__content { transform: translateX(0); }
html[dir="rtl"] .mobile-nav__close { right: auto; left: 15px; }
html[dir="rtl"] .mobile-nav__container .main-menu__list li a { text-align: right; }
html[dir="rtl"] .mobile-nav__container .main-menu__list > li + li { margin-right: 0; }
html[dir="rtl"] .main-menu-two__contact-list li { gap: 8px; }
html[dir="rtl"] :is(.why-choose-one__curved-circle,.why-choose-one__curved-circle-2) { animation: none; letter-spacing: normal; }
html[dir="rtl"] .nice-select { float: right; text-align: right !important; padding-right: 18px; padding-left: 30px; }
html[dir="rtl"] .nice-select:after { right: auto; left: 12px; }
html[dir="rtl"] .nice-select .option { text-align: right; }
html[dir="rtl"] .nice-select .list { left: auto; right: 0; }
html[dir="rtl"] .contact-four__form :is(input,textarea) { text-align: right; }
html[dir="rtl"] .contact-four__form input[type="email"] { text-align: left; }
html[dir="rtl"] .section-title__title { word-break: normal; }
html[dir="rtl"] .robot-ai__typed { white-space: normal; }

/*
 * Home hero slider: keep English visual layout.
 * Text stays on the LEFT over the dark gradient; image subject stays clear on the right.
 */
html[dir="rtl"] .main-slider,
html[dir="rtl"] .main-slider .swiper,
html[dir="rtl"] .main-slider .swiper-wrapper,
html[dir="rtl"] .main-slider .swiper-slide,
html[dir="rtl"] .main-slider .container {
    direction: ltr;
}

html[dir="rtl"] .main-slider__bg:before {
    background: linear-gradient(270deg, rgba(6, 33, 89, 0) 0%, rgba(0, 31, 95, 0.85) 80.5%);
}

html[dir="rtl"] .main-slider__content {
    direction: rtl;
    text-align: right;
    max-width: 620px;
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .main-slider__title {
    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    max-width: 100%;
}

html[dir="rtl"] .main-slider__text {
    max-width: 540px;
    margin-left: auto;
    margin-right: 0;
    line-height: 1.7;
}

html[dir="rtl"] .main-slider__btn-box {
    text-align: right;
}

html[dir="rtl"] .main-slider__shape-1 {
    display: none;
}

/* Sliding services strip: marquee breaks under RTL — keep LTR motion, Arabic labels still show. */
html[dir="rtl"] .sliding-text-one,
html[dir="rtl"] .sliding-text-one__wrap,
html[dir="rtl"] .sliding-text__list,
html[dir="rtl"] .sliding-text-one .js-marquee-wrapper,
html[dir="rtl"] .sliding-text-one .js-marquee {
    direction: ltr !important;
}

html[dir="rtl"] .sliding-text__title {
    direction: rtl;
    unicode-bidi: plaintext;
}

/* Keep the same visual column order as English (do not mirror Bootstrap rows). */
html[dir="rtl"] .page-wrapper .row {
    flex-direction: row-reverse;
}

/* CSS Grid sections must stay LTR so left / center / right match English. */
html[dir="rtl"] .team-two__main-tab-box > .row {
    direction: ltr;
    flex-direction: row;
}

html[dir="rtl"] .about-three__right {
    margin-left: 0;
    margin-right: 50px;
}

html[dir="rtl"] .about-three__points li {
    flex-direction: row-reverse;
}

html[dir="rtl"] .team-two__buttons-experience-years {
    right: auto;
    left: 0;
    background: linear-gradient(90deg, rgba(46, 114, 255, 0.12) 0%, rgba(46, 114, 255, 0) 100%);
    padding: 4px 14px 4px 22px;
}

html[dir="rtl"] .team-two__main-tab-box .tab-buttons .tab-btn.active-btn .team-two__buttons .team-two__buttons-experience-years {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 231, 0) 100%);
}

html[dir="rtl"] .scroll-to-top {
    right: auto;
    left: -12px;
    transform: translateY(-50%) rotate(90deg);
}

html[dir="rtl"] .scroll-to-top__text {
    margin-left: 0;
    margin-right: 10px;
    letter-spacing: normal;
}

html[dir="rtl"] .section-title.text-left,
html[dir="rtl"] .section-title.text-start {
    text-align: right !important;
}

@media (max-width: 1199px) {
    html[dir="rtl"] .about-three__right {
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    html[dir="rtl"] .main-header-two__content { border: 0; }
}
