/**
 * Sky Line City — RTL Stylesheet v2.0
 * This file is ALWAYS loaded.
 * All rules are scoped to html[dir="rtl"] so they only apply
 * when Arabic mode is active (set by JS from localStorage).
 *
 * NOTE: Most direction handling is done directly in each CSS file
 * using html[dir="rtl"] selectors and logical CSS properties.
 * This file only contains overrides that cannot live in component files.
 */

/* ── Base direction ── */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: var(--ff-ar-body);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: var(--ff-ar-head);
  letter-spacing: 0;
  text-align: right;
}

/* ── Numeric values stay LTR (years, phone, percentages) ── */
html[dir="rtl"] .slc-stat-item__num,
html[dir="rtl"] .slc-about__stat-badge__num,
html[dir="rtl"] .slc-obj-card__num {
  font-family: var(--ff-en-head);
  direction: ltr;
  unicode-bidi: embed;
}

/* ── Phone numbers stay LTR ── */
html[dir="rtl"] .slc-footer__contact-item a[href^="tel"],
html[dir="rtl"] .slc-contact-chip a[href^="tel"] {
  direction: ltr;
  unicode-bidi: embed;
}

/* ── Reset letter-spacing & uppercase for Arabic (breaks Arabic letterforms) ── */
html[dir="rtl"] .section-tag {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ff-ar-body);
}

html[dir="rtl"] .slc-marquee__item {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ff-ar-body);
}

html[dir="rtl"] .slc-stat-item__label {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ff-ar-body);
}

html[dir="rtl"] .slc-about__stat-badge__label {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ff-ar-body);
}

html[dir="rtl"] .slc-about__badge {
  letter-spacing: 0;
  font-family: var(--ff-ar-body);
}

html[dir="rtl"] .slc-quote__author {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ff-ar-body);
}

html[dir="rtl"] .slc-footer__col-title,
html[dir="rtl"] .slc-footer .widget-title {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .slc-footer__bottom-links a {
  letter-spacing: 0;
}

/* ── Section-sub alignment fix ── */
html[dir="rtl"] .section-sub {
  font-family: var(--ff-ar-body);
}

/* ── Service card list RTL ── */
html[dir="rtl"] .slc-service-card__list li {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
html[dir="rtl"] .slc-service-card__list li::before {
  margin-top: 0.45em;
}

/* ── About badges row direction ── */
html[dir="rtl"] .slc-about__badges {
  justify-content: flex-start;
}

/* ── Objectives number alignment ── */
html[dir="rtl"] .slc-obj-card__num {
  text-align: center;
}

/* ── Contact chip text ── */
html[dir="rtl"] .slc-contact-chip div {
  text-align: right;
}
html[dir="rtl"] .slc-contact-chip div > div:first-child {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ff-ar-body);
}
