/* ==========================================================================
   35energy — Arabic RTL overrides
   Loaded only by index-ar.html (dir="rtl"). Mirrors layout and typography;
   the base stylesheet stays LTR-first.
   ========================================================================== */
html[dir="rtl"] {
  direction: rtl;
}
html[dir="rtl"] body {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  text-align: right;
  line-height: 1.85;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  letter-spacing: 0;
  line-height: 1.4;
}
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .topbar__note,
html[dir="rtl"] .footer h5 {
  letter-spacing: 0;
  text-transform: none;
}

/* header */
html[dir="rtl"] .topbar__inner { gap: 22px; }
html[dir="rtl"] .nav__inner { gap: 24px; }
html[dir="rtl"] .nav__link.is-active::after { left: 0; right: 0; }
html[dir="rtl"] .lang-switch__menu { right: auto; left: 0; }
html[dir="rtl"] .lang-switch__item { text-align: right; }

/* hero: mirror the veil and align the copy to the right */
html[dir="rtl"] .theme-hero__veil { transform: scaleX(-1); }
html[dir="rtl"] .theme-hero__copy { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .theme-hero__sub { margin-right: 0; }
html[dir="rtl"] .theme-hero__actions,
html[dir="rtl"] .theme-hero__points { justify-content: flex-start; }
html[dir="rtl"] .theme-hero__points div { text-align: right; }

/* feature band + cards */
html[dir="rtl"] .theme-feature-band { text-align: center; }
html[dir="rtl"] .feature-card,
html[dir="rtl"] .service-card,
html[dir="rtl"] .stat-ring { text-align: center; }
html[dir="rtl"] .service-card__body h3,
html[dir="rtl"] .service-card__body p { text-align: center; }

/* factory band */
html[dir="rtl"] .factory-band__veil { transform: scaleX(-1); }
html[dir="rtl"] .factory-band__inner { text-align: right; }
html[dir="rtl"] .factory-band__stats { text-align: right; }

/* forms */
html[dir="rtl"] .form { direction: rtl; }
html[dir="rtl"] .field label { text-align: right; }
html[dir="rtl"] .field input,
html[dir="rtl"] .field textarea {
  text-align: right;
}
html[dir="rtl"] .field input[type="email"],
html[dir="rtl"] .field input[type="tel"] {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] .field__hint { text-align: right; }
html[dir="rtl"] .form__foot { flex-direction: row-reverse; }
html[dir="rtl"] .form__foot .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .form-ok { text-align: right; }
html[dir="rtl"] .form-status { text-align: right; }

/* contact desks */
html[dir="rtl"] .viz__title { flex-direction: row-reverse; }
html[dir="rtl"] .contact-route { text-align: right; }
html[dir="rtl"] .contact-route__mail { direction: ltr; text-align: right; unicode-bidi: plaintext; }
html[dir="rtl"] .contact-route__label,
html[dir="rtl"] .contact-route__meta { text-align: right; }
html[dir="rtl"] .viz__cap { text-align: right; }

/* footer */
html[dir="rtl"] .footer__top { text-align: right; }
html[dir="rtl"] .footer__brand .brand { flex-direction: row; }
html[dir="rtl"] .footer__contact { text-align: right; }
html[dir="rtl"] .footer__bottom { text-align: right; }

/* split layouts: put the copy column first visually on the right */
html[dir="rtl"] .split { direction: rtl; }

@media (max-width: 760px) {
  html[dir="rtl"] .theme-hero__sub { font-size: 15px; line-height: 1.9; }
  html[dir="rtl"] .theme-hero__points b { font-size: 18px; }
}

/* honeypot is parked off-screen; mirror it so RTL does not create overflow */
html[dir="rtl"] .hp-field { left: auto; right: -9999px; }
