/* ============================================================
   Arabic (RTL) overrides for the Tunisian portfolio page.
   Loaded AFTER ../styles.css, only by ar/index.html.
   ============================================================ */

/* ---- Arabic typography: Cairo for display, IBM Plex Sans Arabic for body ---- */
:root {
  --sans: "IBM Plex Sans Arabic", "DM Sans", Arial, sans-serif;
  --display: "Cairo", "Space Grotesk", "DM Sans", Arial, sans-serif;
}
body {
  font-family: var(--sans);
}

/* Arabic script is cursive: letter-spacing breaks letter joining,
   so it is reset everywhere the Latin design uses tracked labels. */
.brand-name small,
.eyebrow,
.art-note > span:first-child,
.hero-art-caption,
.audience-strip-inner > span,
.section-kicker,
.chart-top > div > span,
.preview-mini-nav b span,
.preview-mini-nav small,
.preview-dark-hero small,
.preview-yellow-copy small,
.preview-dark-foot,
.preview-coral-foot,
.concept-label,
.value-stamp > span,
.about-caption span,
.form-heading {
  letter-spacing: 0 !important;
}

/* ---- Directional mirrors (base) ---- */
html[dir="rtl"] .skip-link { left: auto; right: 15px; }
html[dir="rtl"] .hero h1 span::after { left: -8px; right: -4px; }
html[dir="rtl"] .art-yellow-disc { right: auto; left: 3%; }
html[dir="rtl"] .note-top { right: auto; left: 3%; }
html[dir="rtl"] .note-bottom { left: auto; right: 1%; }
html[dir="rtl"] .hero-art-caption { right: auto; left: 0; }
html[dir="rtl"] .benefit-card { border-right: 0; border-left: 1px solid var(--ink); }
html[dir="rtl"] .benefit-card:last-child { border-left: 0; }
html[dir="rtl"] .bar b { right: auto; left: 5px; }
html[dir="rtl"] .preview-browser small { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .kitchen-warm { right: auto; left: -4px; }
html[dir="rtl"] .preview-coral-foot { left: auto; right: 15px; }
html[dir="rtl"] .value-stamp { left: auto; right: 42%; }
html[dir="rtl"] .value-stamp i { right: auto; left: 6px; }
html[dir="rtl"] .about-yellow-block { left: auto; right: 0; }
html[dir="rtl"] .about-caption { right: auto; left: -3px; }
html[dir="rtl"] .about-spark { left: auto; right: 10px; }
html[dir="rtl"] .chart-scale-labels { margin-left: 0; margin-right: 42%; }
html[dir="rtl"] .footer-up { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .btn-spinner { margin-left: 0; margin-right: 8px; }

/* ---- Directional mirrors (tablet) ---- */
@media (max-width: 780px) {
  html[dir="rtl"] .art-yellow-disc { right: auto; left: 8%; }
  html[dir="rtl"] .note-top { right: auto; left: 0; }
  html[dir="rtl"] .note-bottom { left: auto; right: 0; }
  html[dir="rtl"] .benefit-card:nth-child(2) { border-left: 0; }
  html[dir="rtl"] .chart-scale-labels { margin-left: 0; margin-right: 42%; }
  html[dir="rtl"] .value-stamp { left: auto; right: auto; }
  html[dir="rtl"] .about-caption { right: auto; left: 0; }
  html[dir="rtl"] .footer-up { margin-left: 0; margin-right: auto; }
}

/* ---- Directional mirrors (small phones) ---- */
@media (max-width: 420px) {
  html[dir="rtl"] .note-top { right: auto; left: -4px; }
  html[dir="rtl"] .note-bottom { left: auto; right: -5px; }
  html[dir="rtl"] .chart-scale-labels { margin-left: 0; margin-right: 41%; }
}
