/* =====================================================================
   Backstage Campaign — Arabic (RTL) overrides.
   Loaded after each page's inline <style> on /ar/ pages only.
   ===================================================================== */
:root{
  --font:"Cairo","Segoe UI",Tahoma,system-ui,sans-serif;
  --hand:"Aref Ruqaa","Cairo","Segoe UI",serif;
}
html[lang="ar"] body{font-family:var(--font);line-height:1.85}

/* Arabic letters must stay joined: no tracking, no forced caps */
html[lang="ar"] *{letter-spacing:0!important;text-transform:none!important}

/* headings need more vertical room for Arabic ascenders / dots */
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] .lead{line-height:1.3;font-weight:800}
html[lang="ar"] .hero h1{font-size:clamp(2.1rem,6vw,4.6rem);line-height:1.22}
html[lang="ar"] .head2 h2{line-height:1.3}
html[lang="ar"] .mk{font-family:var(--hand);font-weight:700;font-size:1.08em;white-space:normal}
html[lang="ar"] .uline{display:none}
html[lang="ar"] .tape{font-size:.78rem;font-weight:800}
html[lang="ar"] .btn,html[lang="ar"] .menu a,html[lang="ar"] .tlink{font-weight:800}
html[lang="ar"] .menu a{font-size:.84rem}
html[lang="ar"] .foot h4{font-size:.8rem}
html[lang="ar"] .foot .note{line-height:1.5;font-size:.8rem}

/* language switch */
.menu a.lang{border:2px solid currentColor;border-radius:999px;padding:.15rem .75rem;font-weight:700;font-size:.8rem}

/* ---- mirror every left/right rule from the English pages ---- */
.about .ph .note{right:auto;left:-14%}
.btn:hover .ar{transform:translateX(-4px)}
.wcard:hover .r2 .ar{transform:translateX(-4px)}
.card .sc-smile{right:auto;left:-8%}
.card .sc-sq{left:auto;right:-10%}
.card .sig{right:auto;left:2%}
.card .tag{left:auto;right:-6%}
.cs-prevnext .nx{text-align:left;margin-left:0;margin-right:auto}
.hero .sc-crown{left:auto;right:55%}
.hero .sc-spark{right:auto;left:9%}
.svc .row .d{margin-left:0;margin-right:calc(44px + 1.3rem)}
@media(max-width:600px){.svc .row .d{margin-right:0}}
.tlink::after{left:auto;right:0;transform-origin:right}
.wa{right:auto;left:clamp(.9rem,3vw,1.7rem)}
.wa .tip{right:auto;left:70px}
.wcard .img b{left:auto;right:.7rem}

/* logos strip keeps its own scroll direction */
.marq .track{direction:ltr}

/* inputs for LTR data */
.form input[type="email"],.form input[type="tel"],.form input[name="website"]{direction:ltr;text-align:right}
.form input::placeholder,.form textarea::placeholder{font-family:var(--font)}

/* off-screen anti-spam field must not create sideways scroll in RTL */
.form .hp{left:auto;right:-9999px}
html[lang="ar"]{overflow-x:clip}

/* highlighted words in headings: give Arabic lines room so the marker never covers the line above */
html[lang="ar"] .cta-band h2{line-height:1.75}
html[lang="ar"] .hl{padding:0 .12em;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* Noir theme: Arabic serif headlines (Latin letters fall back to Playfair) */
:root{--font:"Poppins","Cairo","Segoe UI",Tahoma,system-ui,sans-serif;--serif:"Playfair Display","Amiri",Georgia,serif;--hand:var(--serif)}
html[lang="ar"] body{font-weight:400}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] .lead{font-family:var(--serif);font-weight:700}
html[lang="ar"] .mk{font-style:normal;font-weight:700;font-family:var(--serif)}
html[lang="ar"] .band span{font-style:normal}
