/* ==========================================================================
   Arabic (RTL) layer for /ar/ pages. Loaded after borhamy.css + theme.css.
   Everything is scoped to html[dir="rtl"] / html[lang="ar"]; colours come from theme tokens.
   ========================================================================== */
@font-face {
  font-family: "Lifta";
  src: url("../fonts/Lifta-Black.woff2") format("woff2"), url("../fonts/Lifta-Black.woff") format("woff");
  font-weight: 900; font-style: normal; font-display: swap;
}
html[lang="ar"] {
  --f-ar-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Sora, sans-serif;
  --f-ar-display: "Lifta", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- 1. Typography ---------- */
html[lang="ar"] body,
html[lang="ar"] body.legal-page,
html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea,
html[lang="ar"] .review_original {
  font-family: var(--f-ar-body);
}
/* Arabic shaping breaks with tracking / case transforms */
html[lang="ar"] body *, html[lang="ar"] body *::before, html[lang="ar"] body *::after {
  letter-spacing: 0 !important; text-transform: none !important;
}
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] p, html[lang="ar"] li { line-height: 1.85; }
html[lang="ar"] .button_text, html[lang="ar"] .navbar_link, html[lang="ar"] .notfound_btn { font-weight: 600; }

/* Display headings: Lifta Black, a notch smaller, airy line-height */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .hero_title, html[lang="ar"] .service-item_info-title, html[lang="ar"] .procedure_title,
html[lang="ar"] .guide_article-title, html[lang="ar"] .notfound_title, html[lang="ar"] .notfound_code,
html[lang="ar"] .hero_chip.is-bottom strong {
  font-family: var(--f-ar-display) !important; font-weight: 900 !important; font-style: normal !important;
  line-height: 1.35; font-feature-settings: normal;
}
html[lang="ar"] .text-highlighted { font-style: normal !important; font-weight: inherit; }
html[lang="ar"] .hero_title { font-size: clamp(30px, 2.1vw + 18px, 54px); line-height: 1.35 !important; margin-bottom: 22px; }
html[lang="ar"] .hero.is-page .hero_title { font-size: clamp(28px, 1.9vw + 17px, 48px); }
html[lang="ar"] h2:not(.trust_title) { font-size: clamp(26px, 2.5vw + 10px, 44px); line-height: 1.38 !important; }
html[lang="ar"] .home-service_header h2, html[lang="ar"] .testimonial_header h2 { font-size: clamp(25px, 1.7vw + 14px, 40px); }
html[lang="ar"] h3 { line-height: 1.45 !important; }
html[lang="ar"] .trust_title, html[lang="ar"] .pain_title, html[lang="ar"] .step_title, html[lang="ar"] .location_name,
html[lang="ar"] .our-story_item-title, html[lang="ar"] .myth_title { font-size: 17px !important; line-height: 1.55 !important; }
html[lang="ar"] .service-item_info-title { font-size: clamp(21px, 1vw + 14px, 30px) !important; line-height: 1.4 !important; }
html[lang="ar"] .procedure_title { font-size: clamp(24px, 1.4vw + 15px, 36px) !important; line-height: 1.4 !important; }
html[lang="ar"] .guide_article-title { font-size: clamp(22px, 1.1vw + 15px, 32px) !important; line-height: 1.4 !important; }
html[lang="ar"] .tabs-accordion_header-title, html[lang="ar"] .faq-header_title { font-size: clamp(16px, .6vw + 13px, 20px) !important; line-height: 1.55 !important; }
html[lang="ar"] .legal-wrap h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.35; }
html[lang="ar"] .legal-wrap h2 { font-size: 21px; line-height: 1.5; }
html[lang="ar"] .notfound_title { font-size: clamp(24px, 2.8vw, 34px); }
html[lang="ar"] .testimonial-slider_quotes { font-family: var(--f-ar-body) !important; font-size: clamp(18px, .8vw + 13px, 23px) !important; line-height: 1.8 !important; font-weight: 500 !important; }
html[lang="ar"] .surgeon_quote { line-height: 1.8; }
@media (min-width: 768px) and (max-height: 800px) {
  html[lang="ar"] .home-service_header h2 { font-size: clamp(22px, 1.4vw + 11px, 30px); }
  html[lang="ar"] .service-item_info-title { font-size: clamp(19px, .9vw + 11px, 24px) !important; }
}
@media (max-width: 767px) {
  html[lang="ar"] h2:not(.trust_title) { font-size: clamp(24px, 5.6vw + 4px, 32px); }
  html[lang="ar"] .hero_title, html[lang="ar"] .hero.is-page .hero_title { font-size: clamp(27px, 6.6vw + 4px, 36px); line-height: 1.4 !important; }
}
/* Latin runs (English link, phone numbers, handles) keep the Latin face */
html[lang="ar"] .nav-lang, html[lang="ar"] [lang="en"] { font-family: Sora, "Helvetica Neue", Arial, sans-serif; }

/* ---------- 2. Language switch (visible on Arabic pages) ---------- */
html[lang="ar"] .nav-lang { display: inline-flex !important; }
@media (max-width: 991px) { html[lang="ar"] .nav-lang.is-desktop { display: none !important; } }

/* ---------- 3. Mirrored layout details ---------- */
html[dir="rtl"] .skip-link { left: auto; right: 12px; }
html[dir="rtl"] .navbar-button_wrapper { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .navbar-content_wrap { border-right: 0 !important; }
html[dir="rtl"] .hero_chip.is-top { left: auto; right: 18px; }
html[dir="rtl"] .hero_chip.is-bottom { right: auto; left: 18px; }
@media (max-width: 767px) {
  html[dir="rtl"] .hero_chip.is-top { right: 12px; left: auto; }
  html[dir="rtl"] .hero_chip.is-bottom { left: 12px; right: auto; }
}
html[dir="rtl"] .hero_actions .button_primary .button_text,
html[dir="rtl"] .cta_content .button_primary .button_text { text-align: right; }
html[dir="rtl"] .button_primary.is-large { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .trust_item { border-left: 0; border-right: 1px solid var(--c-border); }
html[dir="rtl"] .trust_item:first-child { border-right: 0; padding-right: 0; padding-left: 28px; }
@media (max-width: 991px) {
  html[dir="rtl"] .trust_item, html[dir="rtl"] .trust_item:first-child { border-right: 0; padding: 22px 0; }
}
html[dir="rtl"] .surgeon_quote { padding: 4px 22px 4px 0; border-left: 0 !important; border-right: 2px solid var(--c-gold) !important; }
html[dir="rtl"] .surgeon_media::after { inset: 14px 14px -14px -14px; }
html[dir="rtl"] .testimonial-author_info { text-align: right; }
html[dir="rtl"] .cta_element.has-form { text-align: right; }
html[dir="rtl"] .faq_cta, html[dir="rtl"] .faq-cta_info, html[dir="rtl"] .faq-cta_info-content { text-align: right !important; }
html[dir="rtl"] .location_badge { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .legal-wrap ul, html[dir="rtl"] .legal-wrap ol { padding-left: 0; padding-right: 1.4em; }
html[dir="rtl"] .service_progress-bar { transform-origin: right center; }
html[dir="rtl"] .review_original { text-align: right; }

/* Direction-bearing icons: ↗ / → arrows point the other way */
html[dir="rtl"] .button-icon_wrap svg[viewBox="0 0 12 12"],
html[dir="rtl"] .blog-item_icon-wrap svg,
html[dir="rtl"] .text-link_icon svg[viewBox="0 0 12 12"],
html[dir="rtl"] .location_link svg[viewBox="0 0 12 12"],
html[dir="rtl"] .story-slider_arrow,
html[dir="rtl"] .slider_arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .button_primary:hover .button-icon_group { transform: translateX(-3px); }

/* ---------- 4. Webflow sliders: keep LTR mechanics, RTL content, swap arrows ---------- */
html[dir="rtl"] .w-slider-mask { direction: ltr; }
html[dir="rtl"] .w-slide { direction: rtl; text-align: right; }
html[dir="rtl"] .w-slider-nav { direction: ltr; }
/* "previous" sits on the right in Arabic */
html[dir="rtl"] .testimonial-slider_arrow.w-slider-arrow-left { left: auto; right: 0; }
html[dir="rtl"] .testimonial-slider_arrow.w-slider-arrow-right { right: auto; left: 0; }
html[dir="rtl"] .story-slider_arrow-wrap.w-slider-arrow-left { order: 2; }
html[dir="rtl"] .story-slider_arrow-wrap.w-slider-arrow-right { order: 1; }

/* ---------- 5. Pinned horizontal services (IX2 translateX on .scroll_track) ---------- */
html[dir="rtl"] .service_wrap { direction: ltr; }
html[dir="rtl"] .service_item-wrap { direction: rtl; text-align: right; }
