/* FOSTEN: EN/AR language chooser — both languages stay visible on every screen. */
.language-switch { display:inline-flex; flex:0 0 auto; direction:ltr; gap:3px; align-items:center; padding:3px; border:1px solid rgba(255,255,255,.21); border-radius:999px; background:rgba(18,18,24,.65); box-shadow:0 8px 24px rgba(0,0,0,.12); }
.language-switch .lang-option { display:inline-flex; align-items:center; justify-content:center; min-height:33px; min-width:42px; padding:7px 11px; font-family:Tahoma,Arial,sans-serif; font-size:.78rem; font-weight:700; white-space:nowrap; letter-spacing:0; color:#d2cfda; border-radius:999px; text-decoration:none; transition:background .25s ease,color .25s ease,transform .25s ease; }
.language-switch .lang-option:hover { color:white; background:#ffffff20; transform:translateY(-1px); }
.language-switch .lang-option.is-active { background:#8886d0; color:#08080d; }
.language-switch .lang-option:focus-visible { outline:2px solid white; outline-offset:2px; }
#nav > .language-switch { margin-inline-start:auto; }
#nav nav a:after { pointer-events:none; }
.subnav nav .language-switch { margin-inline-start:8px; }
.subnav nav .language-switch a { color:#d2cfda; }
.subnav nav .language-switch a.is-active { color:#08080d; }
@media (max-width:1180px) {
  #nav .nav-toggle { display:block; order:3; }
  #nav nav { display:none; position:absolute; top:100%; left:0; right:0; padding:26px 5vw 32px; flex-direction:column; align-items:stretch; gap:18px; background:#101013f5; backdrop-filter:blur(22px); border-bottom:1px solid var(--line); }
  #nav nav.is-open { display:flex; }
  #nav nav a { padding:9px 0; font-size:.93rem; }
}
@media (max-width:650px) {
  #nav { gap:8px; }
  #nav .nav-button { display:none; }
  #nav > .language-switch { margin-inline-start:auto; }
  #nav .language-switch .lang-option { min-width:32px; padding:6px 9px; font-size:.71rem; }
  .subnav nav { flex-wrap:wrap; }
  .subnav nav .language-switch { margin-inline-start:0; }
}
/* Arabic: mirror alignment while retaining identical section order, palette and motion. */
html[dir="rtl"] { scroll-padding-top:92px; }
html[dir="rtl"] body { font-family:Tahoma,"Noto Sans Arabic",Arial,sans-serif; text-align:start; }
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3 { font-family:Tahoma,"Noto Sans Arabic",Arial,sans-serif; letter-spacing:normal!important; line-height:1.25; }
html[dir="rtl"] .section-label, html[dir="rtl"] .service-meta,html[dir="rtl"] .detail-number { letter-spacing:0; }
html[dir="rtl"] .hero .hero-title { font-size:clamp(3.3rem,8vw,9rem); line-height:1.1; }
html[dir="rtl"] .hero .hero-title span { line-height:1.18; }
html[dir="rtl"] .hero-kicker,html[dir="rtl"] .logo,html[dir="rtl"] .subnav-logo,html[dir="rtl"] .footer-logo { direction:ltr; text-align:left; }
html[dir="rtl"] .hero-content p,html[dir="rtl"] .manifesto-copy p,html[dir="rtl"] .capabilities-head p { max-width:740px; }
html[dir="rtl"] .hero-bottom span { letter-spacing:0; }
html[dir="rtl"] .service-track { direction:ltr; }
html[dir="rtl"] .service-card { direction:rtl; text-align:right; }
html[dir="rtl"] .service-card h3 { font-size:clamp(1.8rem,2.7vw,3.1rem); }
html[dir="rtl"] .service-card p,html[dir="rtl"] .service-card .service-meta { line-height:1.8; }
html[dir="rtl"] .capabilities h2,html[dir="rtl"] .manifesto-copy h2,html[dir="rtl"] .quote-intro h2,html[dir="rtl"] .closing h2 { letter-spacing:normal; }
html[dir="rtl"] .capability-item { border-left:1px solid var(--line); border-right:0; }
html[dir="rtl"] .capability-grid { border-right:1px solid var(--line); border-left:0; }
html[dir="rtl"] .capability-item::before { left:auto; right:0; }
html[dir="rtl"] .network-inner,html[dir="rtl"] .manifesto,html[dir="rtl"] .quote-intro,html[dir="rtl"] footer { text-align:right; }
html[dir="rtl"] .rfq input,html[dir="rtl"] .rfq select,html[dir="rtl"] .rfq textarea { text-align:right; }
html[dir="rtl"] .rfq input[name="email"],html[dir="rtl"] .rfq input[name="phone"] { direction:ltr; text-align:right; }
html[dir="rtl"] .rfq input[type="number"] { direction:ltr; text-align:right; }
html[dir="rtl"] .rfq input[type="date"] { direction:ltr; }
html[dir="rtl"] .rfq .privacy-consent { direction:rtl; }
html[dir="rtl"] .subhero,html[dir="rtl"] .detail,html[dir="rtl"] .legal-page,html[dir="rtl"] .subfooter { text-align:right; }
html[dir="rtl"] .detail-grid { border-left:0; border-right:1px solid var(--line); }
html[dir="rtl"] .detail { border-right:0; border-left:1px solid var(--line); }
html[dir="rtl"] .subnav-logo,html[dir="rtl"] .subfooter strong { direction:ltr; }
html[dir="rtl"] a[href^="mailto:"],html[dir="rtl"] a[href^="tel:"] { direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] .subnav nav { justify-content:flex-start; }
@media (max-width:600px) {
 html[dir="rtl"] .hero .hero-title { font-size:clamp(3.2rem,13vw,5.8rem); }
 html[dir="rtl"] .hero-bottom { bottom:105px; }
 html[dir="rtl"] .service-card { min-height:540px; }
}
@media (prefers-reduced-motion:reduce) { .language-switch .lang-option { transition:none; transform:none!important; } }
