/* Arabic (RTL) overrides. Loaded only on /ar/ pages, after style.css. Keep it small: dir="rtl" already mirrors flex/grid/text alignment. */
html[lang="ar"]{--font:"Segoe UI","Noto Sans Arabic","Noto Naskh Arabic",Tahoma,Arial,system-ui,sans-serif;--font-body:var(--font);--font-head:var(--font)}
html[lang="ar"] body{line-height:1.85}
/* Arabic letters join: no tracking, no uppercase */
html[lang="ar"] *{letter-spacing:normal!important;text-transform:none!important}
html[lang="ar"] .btn,html[lang="ar"] .more,html[lang="ar"] .menu>li>a{font-size:.95rem;font-weight:600}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{line-height:1.35}
/* arrows point the reading direction */
html[dir="rtl"] .fa-arrow-right,html[dir="rtl"] .fa-chevron-right{transform:scaleX(-1)}
/* header dropdown opens from the right edge */
html[dir="rtl"] .dd{left:auto;right:-18px}
@media (max-width:1023px){html[dir="rtl"] .dd a{padding:12px 16px 12px 56px}}
html[dir="rtl"] .lang-sw{font-family:var(--font-latin,"Archivo",Arial,sans-serif)}
/* phone numbers and e-mail stay left-to-right inside Arabic text */
html[dir="rtl"] a[href^="tel:"],html[dir="rtl"] a[href^="mailto:"]{unicode-bidi:plaintext}
/* page content */
html[dir="rtl"] .qa-box{border-left:0;border-right:4px solid var(--brand)}
html[dir="rtl"] .qa-box::before{display:none}
html[dir="rtl"] .crumbs li+li::before{margin-right:0;margin-left:9px;transform:rotate(-135deg)}
html[dir="rtl"] .steps li::before{left:auto;right:0}
html[dir="rtl"] .steps li::after{left:-8px;right:56px}
html[dir="rtl"] .faq summary{padding-left:48px;padding-right:0}
html[dir="rtl"] .faq summary::after{left:0;right:auto}
.ar-block{max-width:74ch;margin:28px 0 0}
.ar-block p{color:var(--muted);line-height:1.9}
.ar-note{margin:24px 0 0;color:var(--muted)}
.ar-contact{display:grid;gap:24px;margin-top:28px}
.ar-contact__list{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.ar-contact__list li{display:flex;gap:12px;align-items:flex-start}
.ar-contact__cta{display:flex;flex-wrap:wrap;gap:12px}
.ar-home .crumbs{display:none}

/* ---- Header on Arabic pages: same partial and mega menu as English, mirrored ---- */
html[dir="rtl"] .menu>li>a::after{transform-origin:right}
html[dir="rtl"] .sub-toggle{margin-left:0;margin-right:2px}
@media (min-width:1200px) and (hover:hover){
  html[dir="rtl"] .mega-col{padding:32px 0 32px 40px}
  html[dir="rtl"] .mega-col+.mega-col{padding:32px 40px;border-left:0;border-right:1px solid var(--dd-border)}
  html[dir="rtl"] a.mega-eyebrow::after{content:'\2190';margin-left:0;margin-right:8px}
  html[dir="rtl"] a.mega-eyebrow:hover::after{margin-left:0;margin-right:12px}
  html[dir="rtl"] .mega-spot:hover .mega-spot__more .i{transform:scaleX(-1) translateX(4px)}
}
@media (max-width:1199px){
  html[dir="rtl"] .nav{transform:translateX(-100%)}
  html[dir="rtl"] .menu-open .nav{transform:none}
  html[dir="rtl"] .menu>li>a{padding:18px 0 18px 56px}
  html[dir="rtl"] .sub-toggle{right:auto;left:0}
  html[dir="rtl"] .dd .dd a{padding:12px 32px 12px 56px}
  html[dir="rtl"] .dd .dd .dd a{padding:12px 48px 12px 56px}
}

/* Arabic home page sections (reuse the English home components) */
.ar-intro{max-width:78ch}
.ar-intro .lead{margin:0 0 1em}
html[dir="rtl"] .checks li{padding-left:0}

/* ---- Home hero slider + USP strip (same partial as English, mirrored) ---- */
@media (min-width:768px){
  html[dir="rtl"] .hero .fs-slide::after{background:linear-gradient(180deg,rgba(27,28,30,.6) 0,rgba(27,28,30,0) 28%),linear-gradient(270deg,rgba(27,28,30,.84) 0,rgba(27,28,30,.52) 55%,rgba(27,28,30,.2) 100%),linear-gradient(0deg,rgba(27,28,30,.55) 0,rgba(27,28,30,0) 40%)}
  html[dir="rtl"] .hero-strip li+li{border-left:0;border-right:1px solid rgba(255,255,255,.2)}
}
/* next = left arrow, previous = right arrow */
html[dir="rtl"] .fs-btn.prev .i{transform:none}
html[dir="rtl"] .fs-btn.next .i{transform:scaleX(-1)}
html[dir="rtl"] .fs-count{text-align:right}

/* ---- Projects section (same partial as English) ---- */
html[dir="rtl"] .pj-stats li{padding-left:0;padding-right:16px;border-left:0;border-right:3px solid var(--pj-red)}
html[dir="rtl"] .pj-stats .pj-stat--text{padding-left:0;padding-right:16px}
html[dir="rtl"] .pj-all{margin-left:0;margin-right:auto}
html[dir="rtl"] .pj-arrow svg{transform:scaleX(-1)}
html[dir="rtl"] .pj-bar{direction:rtl}
@media (max-width:767px){html[dir="rtl"] .pj-stats li{padding-left:0;padding-right:10px;border-left-width:0}}
