/* Arabic pages: Cairo, right-to-left. Loaded after deepsea.css, only by /ar/ pages. */
@font-face { font-family: "Cairo"; src: url("../fonts/Cairo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/Cairo-Bold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

html[dir="rtl"] {
  --sans: "Cairo", "Segoe UI", Tahoma, sans-serif; --head: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --ui: "Cairo", "Segoe UI", Tahoma, sans-serif; --mono: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
/* Arabic letters join, so no letter spacing anywhere, and lines need more room */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
[dir="rtl"] .hero-title, [dir="rtl"] .seq-title, [dir="rtl"] .hn-title, [dir="rtl"] .ph-copy h1, [dir="rtl"] .about-open h1 { line-height: 1.3; }
[dir="rtl"] .hero-title .ln { padding-bottom: .16em; margin-bottom: -.1em; }
[dir="rtl"] .seq-title { max-width: 22ch; }
[dir="rtl"] .about-open h1 { max-width: 18ch; }

/* small labels and buttons: Arabic needs a larger size than Latin capitals */
[dir="rtl"] .mono { font-size: 14px; line-height: 1.5; }
[dir="rtl"] .pill { font-size: 14px; font-weight: 700; }
[dir="rtl"] .nav-cta .pill { font-size: 13px; }
[dir="rtl"] .nav-links a { font-size: 15px; }
[dir="rtl"] .mono-link, [dir="rtl"] .map-link, [dir="rtl"] .foot-grid .foot-quote, [dir="rtl"] .path .mono-link { font-size: 14px; }
[dir="rtl"] .flow-rail li { font-size: 13.5px; }
[dir="rtl"] .contact-form label > span { font-size: 14px; }
[dir="rtl"] .wa-btn { font-size: 14.5px; }

/* pictures and shades mirror, so the text sits on the calm side */
[dir="rtl"] .hero-frame .hs, [dir="rtl"] .page-hero img.ph-media { scale: -1 1; }
[dir="rtl"] .hero-stick::after { background: linear-gradient(270deg, rgba(1, 47, 143, .88) 0%, rgba(1, 47, 143, .62) 36%, rgba(1, 47, 143, 0) 72%), linear-gradient(0deg, rgba(1, 47, 143, .55) 0%, rgba(1, 47, 143, 0) 30%); }
[dir="rtl"] .page-hero::after { background: linear-gradient(270deg, rgba(1, 47, 143, .8) 0%, rgba(1, 47, 143, .35) 55%, rgba(1, 47, 143, .1) 100%), linear-gradient(0deg, rgba(1, 47, 143, .6), rgba(1, 47, 143, 0) 40%); }
@media (min-width: 761px) {
  [dir="rtl"] .flow-shade { background: linear-gradient(270deg, rgba(1, 47, 143, .82) 0%, rgba(1, 47, 143, .45) 40%, rgba(1, 47, 143, .05) 70%), linear-gradient(0deg, rgba(1, 47, 143, .7) 0%, rgba(1, 47, 143, 0) 32%); }
  [dir="rtl"] .fm-sea video { left: auto; right: 22%; -webkit-mask-image: linear-gradient(270deg, transparent, #000 14%); mask-image: linear-gradient(270deg, transparent, #000 14%); }
}

/* things pinned to one side */
[dir="rtl"] .hero-dots { right: auto; left: 0; }
[dir="rtl"] .flow-rail .fill { left: auto; right: 0; }
[dir="rtl"] .caret { margin-left: 0; margin-right: .06em; }
[dir="rtl"] .ticks { border-left: 0; border-right: 2px solid var(--orange); }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .ticks li::before { left: auto; right: 4px; }
[dir="rtl"] .gs-cell::before { left: auto; right: -5px; } [dir="rtl"] .gs-cell:last-child::after { right: auto; left: -5px; }

/* ruled cards: the dividing line moves to the other edge */
[dir="rtl"] .why-cards li { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .why-cards li:first-child { border-right: 0; padding-right: 0; padding-left: 20px; }
@media (max-width: 900px) {
  [dir="rtl"] .why-cards li:nth-child(3) { border-right: 0; padding-right: 0; padding-left: 20px; }
  [dir="rtl"] .why-cards.three li { border-right: 0; padding-right: 0; }
}
@media (max-width: 520px) { [dir="rtl"] .why-cards li { border-right: 0; padding-right: 0; } }
[dir="rtl"] .offices-strip .gs-cell + .gs-cell { border-left: 0; border-right: 1px solid var(--line); }
@media (max-width: 820px) { [dir="rtl"] .offices-strip .gs-cell + .gs-cell { border-right: 0; } }

/* Latin details stay left-to-right inside the Arabic page: phone numbers, emails, street addresses */
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"], [dir="rtl"] .offices address { direction: ltr; unicode-bidi: isolate; text-align: right; }
[dir="rtl"] .contact-form input[type="email"], [dir="rtl"] .contact-form input[type="tel"] { direction: ltr; text-align: right; }
[dir="rtl"] .foot-legal a { direction: rtl; }
[dir="rtl"] .hero-title { max-width: 20ch; }
[dir="rtl"] .ph-copy h1 { max-width: 18ch; }
[dir="rtl"] .why-cards p, [dir="rtl"] .why2-cards p, [dir="rtl"] .ex-card p, [dir="rtl"] .svc-cards .ex-card p, [dir="rtl"] .faq-list details p, [dir="rtl"] .offices address { font-size: 16.5px; }
/* off-screen helpers go off the right edge in Arabic, or the page would scroll sideways */
[dir="rtl"] .skip { left: auto; right: -999px; } [dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .hp { left: auto; right: -9999px; }

/* The Arabic comma and semicolon come from the system font, where they have the familiar turned shape */
@font-face { font-family: "Cairo"; src: local("Segoe UI"), local("Tahoma"), local("Geeza Pro"), local("Noto Naskh Arabic"), local("Arial"); unicode-range: U+060C, U+061B; }
/* Cairo sets words wide apart at large sizes; headings sit a little closer */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .hn-title { word-spacing: -.08em; }

/* Arabic letters overlap where they join, so see-through text shows dark seams inside words.
   Every text colour on Arabic pages is therefore solid. */
html[dir="rtl"] { --text: #545F70; }
[dir="rtl"] .seq-words .w { color: #2A50A1; }
[dir="rtl"] .hero-copy p, [dir="rtl"] .fc p, [dir="rtl"] .ph-copy p { color: #E3EAF6; }
[dir="rtl"] .ex-card p { color: #DCE4F3; }
[dir="rtl"] .why2-head .lede, [dir="rtl"] .why2-cards p { color: #C8D3EA; }
[dir="rtl"] .flow-rail li { color: #9FB0D6; } [dir="rtl"] .flow-rail li b { color: #8497C4; }
[dir="rtl"] .flow-rail li.on { color: #fff; } [dir="rtl"] .flow-rail li.on b { color: var(--orange); }
[dir="rtl"] .contact-form ::placeholder { color: #7F9BD3; }

[dir="rtl"] .cf-topic legend { font-size: 14px; } [dir="rtl"] .contact-form .chip > span { font-size: 15px; }

[dir="rtl"] .eight-cards p { font-size: 16.5px; }

[dir="rtl"] .flow-8 .flow-rail li { font-size: 12px; }

[dir="rtl"] .fc-ports b { letter-spacing: 0; font-size: 13.5px; }
[dir="rtl"] .offices-strip .hq { letter-spacing: 0; font-size: 12.5px; }
