/* ============================================================
   KHALEEJ — Arabic layer
   Loaded only by the pages under /ar/, after khaleej.css.

   Three jobs, in order of how much they matter:

   1. Kill letter-spacing. Arabic is cursive; tracking does not
      "open up" a word, it breaks the joins between letters and
      makes the text look broken. Every tracked rule in the Latin
      sheet is reset here.
   2. Give the Arabic faces room. Naskh sits smaller on the body
      and needs more leading than Montserrat at the same size.
   3. Mirror the handful of rules that are physically left/right
      rather than logical.
   ============================================================ */

:root{
  /* Amiri is a Bulaq-press naskh revival - the Arabic equivalent of reaching
     for a Garamond. IBM Plex Sans Arabic carries the body: modern, even
     colour, institutional rather than friendly. Montserrat stays in the stack
     so Latin fragments (domain names, +966 numbers) keep their own voice. */
  --display: "Amiri", "Cormorant Garamond", Georgia, serif;
  --roman:   "Amiri", Georgia, "Times New Roman", serif;
  --sans:    "IBM Plex Sans Arabic", "Montserrat", "Segoe UI", system-ui, sans-serif;
}

body{ font-size:17px; line-height:1.95 }
@media (min-width:900px){ body{ font-size:17.5px } }

/* ---- 1. tracking off, everywhere it was set ---- */
h1,h2,h3,h4,
.brand__name,.nav a,.mobile-nav a,.btn,.eyebrow,.hero__place,.hero__scroll,
.pillar__idx,.pillar .pillar__name,.pillar .pillar__line,.pillar .pillar__dom,
.pillar__more,.site-footer h4,.footer-place,.footer-div a span,.footer-div a em,
.footer-social a,.legal,.lightbox__cap,.lightbox__count,.statement,.lede,
.nav-toggle,.filter,.shot__cap{
  letter-spacing:0;
}
/* uppercasing does nothing to Arabic letterforms and only confuses the
   occasional Latin word caught inside an Arabic label */
.eyebrow,.btn,.nav a,.mobile-nav a,.hero__place,.pillar .pillar__line,
.pillar__more,.site-footer h4,.footer-place,.nav-toggle,.footer-social a{
  text-transform:none;
}

/* ---- 2. room to breathe ---- */
h1,h2,h3{ line-height:1.42 }
h1{ font-size:clamp(34px, 5.4vw, 70px); font-weight:400 }
h2{ font-size:clamp(26px, 3.8vw, 44px); font-weight:400 }
h3{ font-size:clamp(20px, 2.2vw, 26px); font-weight:700 }
h4{ font-size:17px; font-weight:600 }
.lede{ font-size:clamp(18px,2.1vw,21px); line-height:1.85 }
.statement{ line-height:1.55; font-weight:400 }
.eyebrow{ font-size:14px; font-weight:400 }
.btn{ font-size:14px; font-weight:500; padding:15px 34px }
.btn--lg{ padding:17px 44px; font-size:15px }
.nav a{ font-size:15px; font-weight:400 }
.brand__name{ font-size:24px; font-weight:400 }
.hero__place{ font-size:13px; font-weight:400 }
.pillar .pillar__name{ font-size:clamp(23px,2.4vw,29px) }
.pillar .pillar__line{ font-size:14px; font-weight:400 }
.pillar .pillar__dom,.footer-div a em{ font-size:12.5px }
.site-footer{ font-size:15.5px }
.site-footer h4{ font-size:13.5px }
.legal{ font-size:13.5px; line-height:1.9 }

/* the home headline is three sentences of display naskh, not stone capitals */
.hero--film h1{
  text-transform:none;
  font-size:clamp(30px, 4.6vw, 62px);
  line-height:1.45;
  letter-spacing:0;
}

/* ---- 3. mirror what is physically sided ---- */
[dir="rtl"] .hero__scroll{ right:auto; left:var(--gutter) }
[dir="rtl"] .hero__rule{
  background:linear-gradient(270deg, var(--gold) 0 16%, rgba(201,172,118,.18) 16%);
}
[dir="rtl"] .pillar::before{ left:auto; right:0 }
[dir="rtl"] .hero__veil{
  background:
    linear-gradient(256deg, rgba(16,26,24,.97) 6%, rgba(16,26,24,.80) 46%, rgba(16,26,24,.42) 100%),
    linear-gradient(180deg, rgba(16,26,24,.78) 0%, transparent 38%);
}
[dir="rtl"] .hero--film .hero__veil{
  background:
    linear-gradient(260deg, rgba(16,26,24,.93) 0%, rgba(16,26,24,.72) 40%, rgba(16,26,24,.26) 100%),
    linear-gradient(180deg, rgba(16,26,24,.66) 0%, transparent 34%),
    linear-gradient(0deg, rgba(16,26,24,.52) 0%, transparent 26%);
}
[dir="rtl"] .prose ul,[dir="rtl"] .prose ol{ padding-left:0; padding-right:1.5em }
[dir="rtl"] .prose blockquote{
  padding:4px 28px 4px 0; border-left:0; border-right:2px solid var(--gold);
}
[dir="rtl"] .callout{ border-left:0; border-right:3px solid var(--gold) }
[dir="rtl"] .filter .n{ margin-left:0; margin-right:7px }
[dir="rtl"] .shot__cap{ text-align:right }
[dir="rtl"] .lb-prev{ left:auto; right:clamp(10px,2vw,30px) }
[dir="rtl"] .lb-next{ right:auto; left:clamp(10px,2vw,30px) }
/* .skip uses inset-inline-start, so it needs no mirroring here */

/* the arrow on "read more" links points the way the eye travels */
[dir="rtl"] .link.arrow::after,[dir="rtl"] .arrow::after{ transform:scaleX(-1) }

/* ---- 4. Latin islands inside Arabic text ----
   Domains, telephone numbers and e-mail addresses are Latin runs sitting in an
   RTL paragraph. Left to the bidi algorithm a leading "+" or a trailing dot can
   jump to the wrong end. Isolating them keeps each one intact and correctly
   ordered without affecting the sentence around it. */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] a[href*="wa.me"],
[dir="rtl"] .pillar .pillar__dom,
[dir="rtl"] .footer-div a em,
[dir="rtl"] .latin{
  direction:ltr;
  unicode-bidi:isolate;
  display:inline-block;
}
/* The Arabic pages carry the Arabic wordmark, خليج, set in Amiri. It is the
   brand's own name in its own script, not a transliteration, so it needs none
   of the LTR isolation the Latin fragments get. */
[dir="rtl"] .brand__name{ font-family:var(--roman); letter-spacing:0; font-size:27px }
[dir="rtl"] .footer-brand .brand__name{ font-size:30px }

/* ---- 5. the language switch ----
   The button itself is defined in khaleej.css, because the English pages carry
   one too. Here it only loses its tracking and keeps its Latin label upright. */
[dir="rtl"] .langswap{ letter-spacing:.08em; direction:ltr; unicode-bidi:isolate }
