/* ==========================================================================
   Vittori Palace — Arabic (RTL) overrides
   The main stylesheet uses logical properties, so this file corrects only
   what cannot mirror itself: the Arabic typeface, tracking, and the handful
   of physically-directional values.
   ========================================================================== */

:root {
  /* Tajawal shares the geometric construction of Jost, so the two builds
     read as one brand. */
  --sans:    "Tajawal", "Jost", "Segoe UI", Tahoma, sans-serif;
  --display: "Tajawal", "Jost", "Segoe UI", Tahoma, sans-serif;

  /* The horizontal hero scrim must fall on the starting edge, which is the
     right in Arabic. */
  --scrim-dir: left;
}

body { font-weight: 300; }

/* Arabic has no capital forms, and letterspacing breaks the joins between
   letters. Both are removed wherever the Latin build applies them. */
.eyebrow,
.hero__eyebrow,
.btn,
.link-more,
.nav a,
.header-lang,
.header-book,
.field label,
.card__meta,
.card__size,
.fact__l,
.contact-block h3,
.form-grid label,
.site-footer h4,
.crumbs,
.quote cite,
.offer__tag,
.row__value,
.footer-bottom,
.lightbox__caption,
.skip-link {
  letter-spacing: 0;
  text-transform: none;
}

/* Arabic glyphs read smaller than Latin at the same size */
.eyebrow, .hero__eyebrow { font-size: 0.82rem; }
.btn, .header-book { font-size: 0.84rem; }
.nav a, .header-lang { font-size: 0.85rem; }
.link-more { font-size: 0.84rem; }
.fact__l, .card__meta, .field label, .form-grid label,
.site-footer h4, .contact-block h3, .offer__tag, .quote cite,
.crumbs, .card__size { font-size: 0.78rem; }

/* Arabic sits on a taller line and does not want negative tracking */
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: 0; }
.hero h1 { line-height: 1.3; letter-spacing: 0; }
.section-title, .fact__n, .quote blockquote { letter-spacing: 0; }
.hero h1, .pagehead h1, .section-title { max-width: 20ch; }

/* Mirror the hairline so it extends from the starting edge */
.link-more::after { transform-origin: right center; }

/* Flip the directional chevrons in the lightbox */
.lightbox__nav--prev,
.lightbox__nav--next { transform: translateY(-50%) scaleX(-1); }

/* Figures and Latin strings stay left-to-right inside Arabic text */
.fact__n, .row__value { direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Capacity chart: figures stay left-to-right inside the Arabic table */
.capacity__table td bdi, .capacity__table th bdi { direction: ltr; unicode-bidi: isolate; }
