/* World of Business — Arabic (right-to-left) layer. Loaded only by the pages in /ar/. */
@font-face{font-family:"Alexandria";src:url(../fonts/alexandria-arabic-700-normal.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Alexandria";src:url(../fonts/alexandria-arabic-800-normal.woff2) format("woff2");font-weight:800;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2) format("woff2");font-weight:300;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");font-weight:500;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");font-weight:600;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFC}

/* FF SHAMEL (brand font) — needs a web-font licence. To switch it on: put ff-shamel-book.woff2 and
   ff-shamel-bold.woff2 in assets/fonts, then delete the two lines marked REMOVE THIS LINE. */
/* REMOVE THIS LINE
@font-face{font-family:"FF Shamel";src:url(../fonts/ff-shamel-book.woff2) format("woff2");font-weight:300 500;font-display:swap}
@font-face{font-family:"FF Shamel";src:url(../fonts/ff-shamel-bold.woff2) format("woff2");font-weight:600 800;font-display:swap}
REMOVE THIS LINE */
:root{
  --ar-title:"FF Shamel","Alexandria";
  --ar-text:"FF Shamel","IBM Plex Sans Arabic";
  --display:var(--ar-title),Syncopate,"Arial Black",sans-serif;
  --body:var(--ar-text),Poppins,system-ui,sans-serif;
  --num:Unbounded,var(--ar-text),Poppins,sans-serif;
}
/* Arabic letters join, so spacing between letters is always off */
html[dir="rtl"] *,html[dir="rtl"] *::before,html[dir="rtl"] *::after{letter-spacing:0 !important}
html[dir="rtl"] body{line-height:1.8}
html[dir="rtl"] :is(h1,h2,h3,h4){line-height:1.35}
.ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
html[dir="rtl"] a[href^="tel:"],html[dir="rtl"] a[href^="mailto:"]{unicode-bidi:plaintext}
/* hidden spam-trap field: keep it off-screen on the side that cannot scroll */
html[dir="rtl"] .hp{left:auto;right:-9999px}
html[dir="rtl"] .skip{left:auto;right:12px}

/* ================= mirrored layout ================= */
/* moving bands: keep the track maths left-to-right and run them the other way,
   so each Arabic phrase enters start-first */
html[dir="rtl"] :is(.ticker,.tag-marquee,.logo-marquee,.st-ticker,.ph-band,.cards,.o2-cols){direction:ltr}
html[dir="rtl"] :is(.ticker-track,.tag-track,.logo-track,.st-ticker-track,.ph-band-track){animation-direction:reverse}
html[dir="rtl"] :is(.ticker-track span,.tag-track span,.st-ticker-set span,.ph-band span,.card-cap){direction:rtl}
/* numbers, counters, emails stay left-to-right */
html[dir="rtl"] :is(.stat b,.tile b,.svc-num,.proj-num,.step-dot,.why-row .n,.lb-count,.sblock-tag b,.win-chart){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] input:is([type="email"],[type="tel"],[type="url"]){direction:ltr;text-align:right}
html[dir="rtl"] input:is([type="email"],[type="tel"])::placeholder{text-align:right}

/* arrows point the other way */
html[dir="rtl"] .dot-arrow::before{transform:scaleX(-1)}
html[dir="rtl"] .btn:hover .dot-arrow{transform:rotate(-45deg)}
html[dir="rtl"] .arrow{transform:scaleX(-1)}
html[dir="rtl"] :is(.svc:hover,.proj:hover) .arrow{transform:scaleX(-1) rotate(45deg)}

/* spacing that was written for left-to-right */
html[dir="rtl"] .btn{padding:0 24px 0 10px}
html[dir="rtl"] .btn-sm{padding:0 20px}
html[dir="rtl"] .btn-white{padding:0 28px}
html[dir="rtl"] :is(.cta-band,.help-card) .btn-white{padding:0 24px 0 10px}
html[dir="rtl"] .st-cta .btn{padding-left:10px;padding-right:28px}
html[dir="rtl"] .nav{padding:8px 14px 8px 8px}
html[dir="rtl"] .qa summary{padding:22px 26px 22px 22px}
html[dir="rtl"] .c-card{padding:16px 16px 16px 20px}
@media (max-width:380px){html[dir="rtl"] .c-card{padding:14px}}
html[dir="rtl"] .hl-block{margin-right:0;margin-left:.06em}
html[dir="rtl"] .hero-orb{margin-left:0;margin-right:.06em}
html[dir="rtl"] .svc-num{right:auto;left:28px}
html[dir="rtl"] .head.left{text-align:right}
html[dir="rtl"] .gcard{text-align:right}
html[dir="rtl"] .story-card ul{padding-left:0;padding-right:18px}
html[dir="rtl"] .sblock-tag{left:auto;right:24px}
html[dir="rtl"] .mv-word{left:auto;right:-6px}
html[dir="rtl"] .mv-card:hover .mv-word{transform:translateX(-24px)}
html[dir="rtl"] .why-row::before{left:auto;right:0}
html[dir="rtl"] .why-row p{text-align:left}
html[dir="rtl"] .why-row:hover h3{transform:translateX(-12px)}
html[dir="rtl"] .faq-search input{padding:0 52px 0 20px}
html[dir="rtl"] .faq-search svg{left:auto;right:20px}
html[dir="rtl"] .help-card::before{content:"؟";right:auto;left:-10px}
html[dir="rtl"] .branches-bg{right:auto;left:-4%;transform:scaleX(-1)}
html[dir="rtl"] .b-a::after{background:linear-gradient(117deg,transparent 40%,rgba(10,10,10,.85) 95%)}
html[dir="rtl"] .process::after{left:auto;right:28px}
/* picture viewer: previous / next keep their sides */
html[dir="rtl"] :is(.lb-stage,.lb-bottom){direction:ltr}
@media (max-width:900px){
  html[dir="rtl"] .o2-p-head{text-align:right}
  html[dir="rtl"] .process{padding-left:0;padding-right:4px}
  html[dir="rtl"] .process::before,html[dir="rtl"] .process::after{left:auto;right:31px}
}
@media (max-width:760px){html[dir="rtl"] .why-row p{text-align:right}}

/* ================= Arabic type tuning ================= */
/* the big "let's talk" lines use the title face, heavy, with room for the dots and marks */
html[dir="rtl"] :is(.talk,.ct-talk){font-family:var(--ar-title),Unbounded,sans-serif;font-weight:800;line-height:1.12;font-size:clamp(54px,9.4vw,132px)}
html[dir="rtl"] .svc-more{font-family:var(--body);font-weight:600;font-size:13px}
html[dir="rtl"] .hours li.today span:first-child::after{content:" · اليوم"}
html[dir="rtl"] :is(.team-num b,.val-n,.svc-index a i,.dir small,.filters button sup,.win-chart b){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] :is(.tile b,.val-n,.team-num b,.dir small,.proj-num,.why-row .n){text-align:right}

/* gradient-coloured words: the colour is painted only inside the word's box, and Arabic dots,
   hamzas and tails reach outside it — so make the painted box taller without moving any line */
html[dir="rtl"] :is(.g-blue,.g-warm,.g-cool,.g-hot,.big-quote em,.ct-talk span,.ph-band span,.o1-band-label,.partners-label){
  padding-block:.45em;margin-block:-.45em;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* outlined words: draw one outline around the whole joined word (see the #ar-outline filter in each
   Arabic page) instead of the per-letter stroke, whose outlines cross where Arabic letters join */
html[dir="rtl"] :is(.ph-band span:not(:nth-child(3n+2)),.mv-word,.gc-line){
  -webkit-text-stroke:0;color:#fff;filter:url(#ar-outline)}
html[dir="rtl"] .ph-band span:not(:nth-child(3n+2)){opacity:.24}
html[dir="rtl"] .mv-word{opacity:.13}
html[dir="rtl"] .mv-word{top:34px;right:14px;line-height:1.25}

/* globe story: keep each card beside its matching half of the globe (cyan "globe" card by the blue side,
   pink "handshake" card by the orange side), exactly as in English; the text inside stays right-to-left */
html[dir="rtl"] .story{direction:ltr}
html[dir="rtl"] .story>*{direction:rtl}
/* the large intro statement: Arabic needs more room between lines than the English caps */
html[dir="rtl"] .big-quote{line-height:1.7}

/* Arabic needs more room between lines than the English caps: dots, hamzas and tails sit above and below the letters */
html[dir="rtl"] :is(h1,h2,h3,h4){line-height:1.6}
html[dir="rtl"] :is(.talk,.ct-talk){line-height:1.3}
html[dir="rtl"] :is(.lede,.lead,.ph-sub,.o2-sub,.body-l){line-height:1.85}
html[dir="rtl"] .b-card h3{margin-top:10px}
