/* ============================================================
   NASEEJ — RTL overrides (Arabic).
   Layers AFTER site.css / sector.css / solution.css on every
   Arabic page. The bulk of the layout is flex/grid + gap and
   mirrors automatically under dir="rtl"; this file fixes the
   logical-property leftovers (margins, paddings, absolute
   positions, transforms) and flips directional arrow glyphs.
   Font: Tajawal (set via --f / body below).
   ============================================================ */

/* ---- Arabic typography ---- */
html[dir="rtl"] body{font-family:var(--f-ar);}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4,
[dir="rtl"] .hero-title,[dir="rtl"] .sh-title,[dir="rtl"] .foot-logo,[dir="rtl"] .logo-txt{
  font-family:var(--f-ar);
  letter-spacing:0; /* Arabic must not be letter-spaced */
}
/* Arabic reads comfortably a touch larger / looser */
[dir="rtl"] body{line-height:1.7}
[dir="rtl"] .eyebrow,[dir="rtl"] .area-kicker,[dir="rtl"] .hero-title .hk,
[dir="rtl"] .flex-mark,[dir="rtl"] .sh-index-cap,[dir="rtl"] .area-panel-head h3,
[dir="rtl"] .mcol h5,[dir="rtl"] .foot-col h5,[dir="rtl"] .vb-label{
  letter-spacing:.02em;text-transform:none; /* tracking + uppercase don't apply to Arabic */
}

/* ---- logo wordmark sup ---- */
[dir="rtl"] .logo sup,[dir="rtl"] .foot-logo sup{margin-left:0;margin-right:9px}

/* nav links + hero kicker hard-set `font: … var(--f)` (Inter) via shorthand,
   which beats the body's Tajawal under RTL — re-assert the Arabic family. */
[dir="rtl"] .menu>li>a,[dir="rtl"] .menu>li>button,
[dir="rtl"] .hero-title .hk{font-family:var(--f-ar)}

/* ============ HERO ============ */
[dir="rtl"] .hero::after{right:auto;left:-200px}
[dir="rtl"] .hero h1,[dir="rtl"] .hero p.lead{max-width:46ch}
[dir="rtl"] .sectors-head a{font-weight:600}

/* eyebrow / kicker two-thread mark sits at the start (right) — flex already
   places ::before first, which is the right edge under RTL. Nothing to do. */

/* ============ SOLUTION CARDS (homepage) ============ */
[dir="rtl"] .sol .code .pre{margin-right:0;margin-left:5px}
[dir="rtl"] .sol .code .pre::after{margin-left:0;margin-right:5px}
[dir="rtl"] .sol .desc{padding-right:0;padding-left:42px}
[dir="rtl"] .sol .arr{right:auto;left:var(--sp-3)}
[dir="rtl"] .sol::after{right:auto;left:-34px}
[dir="rtl"] .sec-tile::after{right:auto;left:-26px}

/* ============ STRIP / marquee ============
   Track is right-anchored under RTL, so a leftward translate exposes empty
   space on the right and the loop visibly jumps. Logos are direction-neutral,
   so force the marquee to flow LTR — the -50% loop is then seamless. */
[dir="rtl"] .logos-track{direction:ltr}

/* the long solutions-section lead towers over the short heading; bottom-
   alignment sinks the heading and reads as lopsided — center it vertically. */
[dir="rtl"] .shead--mid{align-items:center}

/* ============ MEDAD ============ */
[dir="rtl"] .pl .pl-logo{object-position:right center}

/* ============ TRUSTED ============ column dividers to the logical side */
[dir="rtl"] .tst{border-right:0;border-left:1px solid var(--line)}
[dir="rtl"] .tst:last-child{border-left:0}
@media(max-width:1024px){
  [dir="rtl"] .tst:nth-child(2n){border-left:0}
}
@media(max-width:640px){
  [dir="rtl"] .tst{border-left:0}
}

/* ============ ABOUT / CTA / OUTCOMES glows ============ */
[dir="rtl"] .about-band::after{right:auto;left:-150px}
[dir="rtl"] .cta-card::after{right:auto;left:-100px}
[dir="rtl"] .sec-hero::after{right:auto;left:-180px}
[dir="rtl"] .outcomes-card::after{right:auto;left:-120px}

/* ============ NEWS ============ */
[dir="rtl"] .nf .thumb .badge{left:auto;right:16px}
[dir="rtl"] .proj .cs-kicker{left:auto;right:13px}

/* ============ FOOTER ============ */
[dir="rtl"] .foot-col a:hover{padding-left:0;padding-right:4px}
[dir="rtl"] .foot-about{max-width:320px}

/* ============ SECTOR / SOLUTION pages ============ */
[dir="rtl"] .area-in{text-align:right} /* neutralize any inline text-align:left */
[dir="rtl"] .so-overview--split .ov-head{text-align:right}
[dir="rtl"] .so-overview--split .ov-head .eyebrow{justify-content:flex-start}
[dir="rtl"] .so-overview--split .ov-cta{justify-content:flex-start}
[dir="rtl"] .ix .ix-n,[dir="rtl"] .srow .srow-code,[dir="rtl"] .acc-n,[dir="rtl"] .area-n,
[dir="rtl"] .flow-num,[dir="rtl"] .sol .code{direction:ltr;unicode-bidi:isolate} /* numerals stay LTR */

/* accordion (Flex) */
[dir="rtl"] .acc-btn{text-align:right}
[dir="rtl"] .acc-inner{padding:0 24px 24px 88px} /* will be mirrored just below */
[dir="rtl"] .acc-inner{padding-left:24px;padding-right:88px}
@media(max-width:640px){
  [dir="rtl"] .acc-inner{padding:0 18px 20px}
}

/* flow connector line direction (decorative) */
[dir="rtl"] .flow-step::before{left:auto;right:-50%}

/* ============ DIRECTIONAL ARROW GLYPHS ============
   Flip the "go / next / open" arrows so they point the RTL way.
   Icons (sector/solution/check marks) are NOT flipped. */
[dir="rtl"] .btn svg,
[dir="rtl"] .la svg,
[dir="rtl"] .sol .arr svg,
[dir="rtl"] .sec-tile .st-ttl .arr svg,
[dir="rtl"] .pane-foot .la svg,
[dir="rtl"] .ix-go svg,
[dir="rtl"] .srow-arr svg,
[dir="rtl"] .scard-cta svg,
[dir="rtl"] .nf .arr svg,
[dir="rtl"] .ns .arr svg,
[dir="rtl"] .pl .arr svg,
[dir="rtl"] .area-panel-foot .la svg,
[dir="rtl"] .nf-foot .la svg{transform:scaleX(-1)}

/* keep the hover nudge pointing the RTL way (up-left) */
[dir="rtl"] .la:hover svg{transform:scaleX(-1) translate(2px,-2px)}
[dir="rtl"] .sh-index a.ix:hover .ix-go,
[dir="rtl"] a.srow:hover .srow-arr,
[dir="rtl"] .sol:hover .arr,
[dir="rtl"] .pl:hover .arr,
[dir="rtl"] .ns:hover .arr,
[dir="rtl"] .sec-tile:hover .st-ttl .arr{transform:translate(-2px,-2px)}
[dir="rtl"] .scard:hover .scard-cta svg{transform:scaleX(-1) translate(2px,-2px)}

/* scroll progress originates from the right under RTL */
[dir="rtl"] .scroll-progress{transform-origin:100% 50%}

/* ============ FLOATING UI mirrored to the left ============ */
[dir="rtl"] .to-top{right:auto;left:16px}
[dir="rtl"] .zaki-fab{right:auto;left:24px}
[dir="rtl"] .zaki-panel{right:auto;left:24px;transform-origin:bottom left}
@media(max-width:640px){
  [dir="rtl"] .zaki-fab{left:16px;right:auto}
  [dir="rtl"] .zaki-panel{left:0;right:0}
}
/* zaki chat bubbles mirror */
[dir="rtl"] .zk-rec-top::before{left:auto;right:0}
[dir="rtl"] .zaki-input{padding:6px 16px 6px 6px}

/* dev view-switch stays top-right (meta UI), but flip its arrow-free content fine */
