/* ============================================================
   THE FLUENT CIRCLE — RTL Overrides (Arabic / dir="rtl")
   ============================================================ */

[dir="rtl"] {
  letter-spacing: 0; /* Arabic doesn't use letter-spacing */
}

/* ── Navigation ───────────────────────────────────────────── */
[dir="rtl"] .nav-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
  margin-inline-start: 0;
  margin-inline-end: auto;
}
@media (min-width: 900px) {
  [dir="rtl"] .nav-actions {
    margin-inline-end: 0;
  }
}
[dir="rtl"] .nav-brand {
  flex-direction: row-reverse;
}

/* ── Mobile menu ──────────────────────────────────────────── */
[dir="rtl"] .mobile-nav-link {
  text-align: right;
}

/* ── Hero ─────────────────────────────────────────────────── */
[dir="rtl"] .hero__grid {
  direction: rtl;
}
[dir="rtl"] .hero-badge {
  flex-direction: row-reverse;
}
[dir="rtl"] .hero__ctas {
  flex-direction: row-reverse;
}
[dir="rtl"] .hero__stats {
  flex-direction: row-reverse;
}
[dir="rtl"] .hero__stat strong,
[dir="rtl"] .hero__stat span {
  text-align: right;
}
[dir="rtl"] .hero__sub {
  text-align: right;
}
[dir="rtl"] .hero__title {
  text-align: right;
}

/* Orbit — stays visually identical in RTL */
[dir="rtl"] .orbit-wrap {
  direction: ltr; /* keep orbit LTR so bubble positions stay correct */
}
[dir="rtl"] .orbit__bubble strong,
[dir="rtl"] .orbit__bubble em {
  direction: ltr;
}

/* Floating stat cards — mirror horizontal positions */
[dir="rtl"] .fc--left {
  left: auto;
  right: -80px;
}
[dir="rtl"] .fc--right-top {
  right: auto;
  left: -80px;
}
[dir="rtl"] .fc--right-btm {
  right: auto;
  left: -80px;
}

/* ── Sections: text alignment ─────────────────────────────── */
[dir="rtl"] .section-head--center {
  text-align: center; /* center remains center */
}
[dir="rtl"] .section-head__title,
[dir="rtl"] .section-head__sub {
  text-align: right;
}
[dir="rtl"] .section-head--center .section-head__title,
[dir="rtl"] .section-head--center .section-head__sub {
  text-align: center;
}
[dir="rtl"] .eyebrow {
  text-align: right;
}
[dir="rtl"] .section-head--center .eyebrow {
  text-align: center;
}

/* ── Feature Cards ────────────────────────────────────────── */
[dir="rtl"] .feature-card {
  align-items: flex-end;
  text-align: right;
}
[dir="rtl"] .feature-title,
[dir="rtl"] .feature-desc {
  text-align: right;
}

/* ── Programs ─────────────────────────────────────────────── */
[dir="rtl"] .prog-card {
  align-items: flex-end;
  text-align: right;
}
[dir="rtl"] .prog-tag {
  align-self: flex-end;
}
[dir="rtl"] .prog-point {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .prog-levels {
  flex-direction: row-reverse;
}
[dir="rtl"] .prog-actions {
  flex-direction: row-reverse;
}

/* ── Steps ────────────────────────────────────────────────── */
[dir="rtl"] .step__title,
[dir="rtl"] .step__desc {
  text-align: center; /* steps stay centred in RTL too */
}
@media (min-width: 768px) {
  [dir="rtl"] .steps-connector {
    background: linear-gradient(270deg, var(--primary), var(--secondary));
  }
}

/* ── Metrics ──────────────────────────────────────────────── */
[dir="rtl"] .metric__label {
  direction: rtl;
}

/* ── Testimonials ─────────────────────────────────────────── */
[dir="rtl"] .carousel-nav {
  justify-content: flex-start;
}
[dir="rtl"] .testimonials-track {
  direction: ltr; /* track slides LTR internally, text inside flips via lang */
}
[dir="rtl"] .t-quote,
[dir="rtl"] .t-name,
[dir="rtl"] .t-meta {
  text-align: right;
  direction: rtl;
}
[dir="rtl"] .t-author {
  flex-direction: row-reverse;
}
[dir="rtl"] .stars {
  direction: ltr; /* stars always LTR */
}

/* ── Assessment Form ──────────────────────────────────────── */
[dir="rtl"] .assessment-grid {
  direction: rtl;
}
[dir="rtl"] .assessment-perks {
  align-items: flex-start;
}
[dir="rtl"] .perk {
  flex-direction: row-reverse;
}
[dir="rtl"] .field label {
  text-align: right;
}
[dir="rtl"] .field input,
[dir="rtl"] .field select {
  text-align: right;
  direction: rtl;
}
[dir="rtl"] .field select {
  background-position: left 1rem center;
  padding-right: 1rem;
  padding-left: 2.5rem;
}
[dir="rtl"] .form-privacy {
  direction: rtl;
}
[dir="rtl"] .success-title,
[dir="rtl"] .success-msg {
  direction: rtl;
}

/* ── Contact ──────────────────────────────────────────────── */
[dir="rtl"] .contact-info {
  align-items: flex-start;
}
[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}
[dir="rtl"] .contact-item__label,
[dir="rtl"] .contact-item__val {
  text-align: right;
}
[dir="rtl"] .social-title {
  text-align: right;
}
[dir="rtl"] .social-link {
  flex-direction: row-reverse;
}

/* ── Footer ───────────────────────────────────────────────── */
@media (min-width: 640px) {
  [dir="rtl"] .footer-inner {
    flex-direction: row-reverse;
  }
}
[dir="rtl"] .footer-brand {
  align-items: flex-end;
}
[dir="rtl"] .footer-name {
  flex-direction: row-reverse;
}
[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}
[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

/* ── Announcement ─────────────────────────────────────────── */
[dir="rtl"] #announcement {
  flex-direction: row-reverse;
}

/* ── Back to top ──────────────────────────────────────────── */
[dir="rtl"] #back-top {
  right: auto;
  left: 1.5rem;
}

/* ── Button arrow mirroring ───────────────────────────────── */
[dir="rtl"] .btn__icon--arrow {
  transform: scaleX(-1);
}
[dir="rtl"] .btn:hover .btn__icon--arrow {
  transform: scaleX(-1) translateX(-3px);
}

/* ── Arabic typography tweaks ─────────────────────────────── */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  font-family: 'Cairo', system-ui, sans-serif;
  letter-spacing: 0;
  font-weight: 800;
}
[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] li {
  font-family: 'Cairo', system-ui, sans-serif;
  line-height: 1.9; /* Arabic needs more line-height */
}
[dir="rtl"] .font-ui,
[dir="rtl"] .btn,
[dir="rtl"] .eyebrow,
[dir="rtl"] label {
  font-family: 'Cairo', system-ui, sans-serif;
  letter-spacing: 0;
}
