/* ==========================================================================
   X-PHI — RTL overrides (Arabic pages)
   Loaded after style.css. Most layout mirrors automatically via dir="rtl"
   (flexbox/grid reverse their axis) — these rules cover what doesn't.
   ========================================================================== */

html[dir="rtl"] body{ font-family:'Cairo','Segoe UI',sans-serif; }

/* burger sits on the left now (nav-right is flex-reversed) —
   mobile nav reveal must originate from the same corner */
html[dir="rtl"] .mobile-nav{
  clip-path:circle(0% at 3.2rem 3rem);
}
html[dir="rtl"] .mobile-nav.open{
  clip-path:circle(150% at 3.2rem 3rem);
}

/* ghost-link arrow slides toward reading-start (left) on hover */
html[dir="rtl"] .btn-ghost:hover .arrow{ transform:translateX(-6px); }

/* eyebrow rule + active nav underline still read correctly via auto-mirroring;
   only the nav-link underline origin needs flipping for a matching sweep */
html[dir="rtl"] .nav-link::after{ left:auto; right:0; }

/* breadcrumb separator glyph looks better as a slash mirror in RTL flows */
html[dir="rtl"] .breadcrumb{ direction:rtl; }

/* stat numbers / counters stay LTR (Western numerals) even in RTL flow */
html[dir="rtl"] .stat-num,
html[dir="rtl"] [data-count]{ direction:ltr; display:inline-block; }

/* card hover lift + icon rotate stay symmetric, no change needed */

/* services page alternating image/text rhythm comes purely from DOM order
   (even blocks put the visual div first) — that already alternates
   correctly under both ltr and rtl, no direction override needed */

/* Arabic wordmark ("أكس-فاي") replaces the Latin "X-PHI" SVG lockup —
   plain text (not SVG) so the browser's normal Arabic shaping engine
   connects the letterforms correctly. Mirrors the same color states
   the Latin logo-word used. */
.logo-word-ar{
  font-family:'Cairo', sans-serif;
  font-weight:800;
  font-size:1.2rem;
  line-height:1;
  color:var(--blue-900);
  transition:color .3s ease;
}
body.dark-header .site-header:not(.scrolled) .logo-word-ar{ color:var(--white); }

/* form fields */
html[dir="rtl"] .form-field label{ text-align:right; }
html[dir="rtl"] .form-field input,
html[dir="rtl"] .form-field select,
html[dir="rtl"] .form-field textarea{ text-align:right; }
