/* ==========================================
   ATTEBBA — ARABIC / RTL OVERRIDES
   Loaded on top of style.css for ar.html
   Cairo font · RTL direction
   ========================================== */

/* ---- FONT OVERRIDE ---- */
body {
  font-family: 'Cairo', 'Noto Kufi Arabic', sans-serif;
  direction: rtl;
}

/* ---- NAV ---- */
.nav {
  flex-direction: row-reverse;
}
.nav-links {
  flex-direction: row-reverse;
}
.lang-switch {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid var(--border-md);
  border-radius: 100px;
  padding: 5px 14px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  text-decoration: none;
  margin-left: 8px;
}
.lang-switch:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.mobile-menu {
  text-align: right;
}

/* ---- HERO ---- */
.hero {
  direction: rtl;
}
.hero-content {
  text-align: right;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: normal;
  font-weight: 700;
}
.hero-badge {
  flex-direction: row-reverse;
}
.hero-actions {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.hero-stats {
  flex-direction: row-reverse;
}
.stat {
  align-items: center;
}
.stat-n {
  font-family: 'Fraunces', Georgia, serif;
}
.stat-l {
  font-family: 'Cairo', sans-serif;
  font-size: 0.68rem;
}

/* Pills RTL */
.hero-pill {
  flex-direction: row-reverse;
}
.pill-text {
  text-align: right;
}
.pill-title {
  font-size: 0.82rem;
}
.pill-sub {
  font-size: 0.7rem;
}

/* ---- SECTION HEADS ---- */
.section-head h2 {
  font-weight: 700;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.section-head h2 em {
  font-style: normal;
  color: var(--teal-dark);
}

/* ---- FEATURES ---- */
.feat-card {
  text-align: right;
}
.feat-card h3 {
  font-weight: 700;
  font-size: 0.95rem;
}
.feat-card p {
  font-size: 0.85rem;
  line-height: 1.75;
}

/* ---- MODULES ---- */
.module-item {
  flex-direction: row !important;
  direction: ltr;
}
.module-num {
  font-family: 'Fraunces', Georgia, serif;
  min-width: 48px;
  text-align: right;
  order: 2;
}
.module-content {
  direction: rtl;
  text-align: right;
  flex: 1;
  order: 1;
}
.module-content h3 {
  font-weight: 700;
}
.module-content ul li {
  padding-left: 0;
  padding-right: 16px;
}
.module-content ul li::before {
  left: auto;
  right: 0;
  content: '\2190';
}

/* ---- WHY SECTION ---- */
.why-inner {
  direction: rtl;
}
.why-left {
  text-align: right;
}
.why-left h2 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.why-left h2 em {
  font-style: normal;
}
.why-card {
  text-align: right;
}
.why-card h4 {
  font-weight: 700;
}

/* ---- CTA BAND ---- */
.cta-inner {
  direction: rtl;
}
.cta-inner h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cta-actions {
  flex-direction: row-reverse;
  justify-content: center;
}

/* ---- FOOTER ---- */
.footer {
  direction: rtl;
}
.footer-top {
  direction: rtl;
}
.footer-brand {
  text-align: right;
}
.footer-links {
  direction: rtl;
}
.fl-col {
  text-align: right;
  align-items: flex-end;
}
.footer-bottom {
  flex-direction: row-reverse;
}
.footer-cta-link::after {
  content: ' ←';
}
/* override the EN arrow */
a.footer-cta-link {
  direction: rtl;
}

/* ---- CONTACT PAGE ---- */
.contact-grid {
  direction: rtl;
}
.contact-info {
  text-align: right;
}
.contact-info h1 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.contact-info h1 em {
  font-style: normal;
}
.contact-info > p {
  text-align: right;
}
.cd-item {
  flex-direction: row-reverse;
}
.cd-item > div {
  text-align: right;
}
.contact-promise {
  align-items: flex-end;
}
.cp-item {
  flex-direction: row-reverse;
}
.form-group label {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}
.form-group input,
.form-group select,
.form-group textarea {
  text-align: right;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  text-align: right;
}
.form-note {
  font-family: 'Cairo', sans-serif;
}

/* ---- ARABIC TYPOGRAPHY REFINEMENTS ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Cairo', sans-serif;
}
p, a, span, li, label, input, textarea, select, button {
  font-family: 'Cairo', sans-serif;
}
/* Keep numbers/stats in display serif */
.stat-n, .module-num {
  font-family: 'Fraunces', Georgia, serif;
}

/* ---- MOBILE RTL ---- */
@media (max-width: 1100px) {
  .hero {
    text-align: right;
  }
}
@media (max-width: 860px) {
  .nav {
    flex-direction: row-reverse;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .cta-actions {
    flex-direction: column;
  }
}
