/* =====================================================================
   Arabic / right-to-left layer — loaded only on RTL (Arabic) pages.
   Amiri (classical naskh, pairs with Cormorant) for headings, Tajawal for text.
   ===================================================================== */
html[dir="rtl"] {
	--serif: "Amiri", "Cormorant Garamond", Georgia, serif;
	--sans: "Tajawal", "Jost", "Helvetica Neue", Arial, sans-serif;
	--accent-font: "Amiri", Georgia, serif;
	--accent-style: normal;
	--display-track: 0;
}
/* Arabic letters join — letter-spacing and small caps tracking would break the words */
html[dir="rtl"] body, html[dir="rtl"] body *:not(svg):not(svg *) { letter-spacing: 0 !important; }
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] :is(h1, h2, h3, .display-1, .display-2, .display-3, .display-xl, .page-hero__title, .project-hero__title, .opening__title) { line-height: 1.35; }
html[dir="rtl"] .eyebrow { font-size: .82rem; }

/* mirror directional arrows */
html[dir="rtl"] :is(.btn, .link-arrow, .mbar__btn--gold, .post-nav, .lb__link, .pj-feature, .svc-gallery) svg:not(.no-flip),
html[dir="rtl"] :is(.pj-tile__go, .pj-row__go, .lb__link span, .lb__prev, .lb__next) { transform: scaleX(-1); }
html[dir="rtl"] .lb__prev { left: auto; right: 18px; }
html[dir="rtl"] .lb__next { right: auto; left: 18px; }

/* alignment details */
html[dir="rtl"] .faq .accordion__trigger { text-align: right; }
html[dir="rtl"] .faq .accordion__content { padding: 0 74px 22px 22px !important; }
html[dir="rtl"] .build__steps-wrap { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .build__bar { left: auto; right: 0; }
html[dir="rtl"] .footer-contact li svg { margin-left: 12px; margin-right: 0; }
html[dir="rtl"] .bs__hud { left: auto; right: 18px; padding: 9px 10px 9px 16px; }
html[dir="rtl"] .map__card { left: auto; right: clamp(14px, 3vw, 32px); }
html[dir="rtl"] .pj-tile__zoom { right: auto; left: 14px; }
html[dir="rtl"] .totop { right: auto; left: 34px; }
html[dir="rtl"] .share__label { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .lang { direction: ltr; }

/* horizontal motion tracks keep their travel direction (text inside still reads right-to-left) */
html[dir="rtl"], html[dir="rtl"] body { overflow-x: clip; }
html[dir="rtl"] :is(.marquee, .cmq, .srail__viewport, .story__viewport, .wt__stage, .showcase__sticky, .cine__panel, .card-rail, .projects-rail) { direction: ltr; }
html[dir="rtl"] :is(.marquee, .cmq, .srail__viewport, .story__viewport, .wt__stage, .showcase__sticky, .cine__panel, .card-rail, .projects-rail) :is(h2, h3, h4, p, li, figcaption, .eyebrow) { direction: rtl; }

@media (max-width: 899px) {
	html[dir="rtl"] .totop { left: 16px; }
	html[dir="rtl"] .faq .accordion__content { padding-right: 22px !important; }
}

/* phone numbers, emails and Latin codes always read left-to-right */
html[dir="rtl"] :is(a[href^="tel:"], a[href^="mailto:"], .footer-contact a, .map__actions .u-link) { direction: ltr; unicode-bidi: isolate; }

/* no Latin-style drop cap in Arabic (it would break the first word apart) */
html[dir="rtl"] .intro .intro__body > .lead:first-child::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; text-shadow: none; font-family: inherit; }
