/* ===== RTL & Arabic Typography — Optimized for Readability & CRO ===== */

/* Base RTL */
body.rtl,
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body.rtl .nav-links,
body.rtl .footer-main,
body.rtl .form-trust,
body.rtl .trust-bar {
  flex-direction: row-reverse;
}

body.rtl .contact-form {
  direction: rtl;
}

body.rtl .form-row {
  text-align: right;
}

body.rtl .form-row input,
body.rtl .form-row select,
body.rtl .form-row textarea {
  text-align: right;
}

body.rtl .funnel-step {
  border-left: none;
  border-right: 4px solid var(--color-accent);
}

body.rtl .nav {
  flex-direction: row;
}

body.rtl .service-card,
body.rtl .testimonial {
  text-align: right;
}

body.rtl .testimonial cite {
  text-align: right;
}

/* ===== Arabic Typography — Eye Comfort & Readability ===== */
body.rtl {
  font-family: 'Noto Kufi Arabic', 'Figtree', -apple-system, sans-serif;
  font-size: 1.0625rem;        /* 17px — slightly larger for comfort */
  line-height: 1.8;            /* Arabic needs more vertical space */
  color: rgba(255, 255, 255, 0.94);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

/* Optimal line length for Arabic (40–55 characters) */
body.rtl .section-desc,
body.rtl .about-detail p,
body.rtl .partners-badges .section-desc,
body.rtl .values-section .section-desc,
body.rtl .testimonial blockquote {
  max-width: 42em;
  margin-inline: auto;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

/* Hero — impact without strain */
body.rtl .hero-title {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 16em;
  margin-right: auto;
  margin-left: auto;
}

body.rtl .hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28em;
}

/* Section titles — clear hierarchy */
body.rtl .section-title {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

body.rtl .section-subtitle {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.45;
}

body.rtl .milestones-section .section-subtitle {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 700;
}

/* Nav & links */
body.rtl .nav-links a {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Stat labels — easy to scan */
body.rtl .stat-label {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* Service cards — scannable */
body.rtl .service-card h3 {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

body.rtl .service-card p {
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

/* Form section — centered CTA & trust bar */
body.rtl .form-section .form-container {
  text-align: center;
}

body.rtl .form-section .section-title,
body.rtl .form-section .section-desc {
  text-align: center;
  margin-inline: auto;
}

body.rtl .form-trust {
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

/* Form — comfortable input */
body.rtl .form-row label {
  font-size: 0.95rem;
  font-weight: 500;
}

body.rtl .form-row input,
body.rtl .form-row select,
body.rtl .form-row textarea {
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
}

/* Trust bar — compact, readable */
body.rtl .trust-bar {
  font-size: 0.85rem;
  gap: 1.25rem 1.75rem;
}

/* CTA buttons — clear call to action */
body.rtl .cta-btn {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.75rem;
}

/* Testimonials — readable quotes */
body.rtl .testimonial blockquote {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Funnel steps — scannable */
body.rtl .funnel-step h4 {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 600;
}

body.rtl .funnel-step p {
  line-height: 1.75;
}

/* Value cards */
body.rtl .value-card h4 {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 600;
}

body.rtl .value-card p {
  line-height: 1.7;
}

/* Footer */
body.rtl .footer h3 {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 600;
}

body.rtl .footer a,
body.rtl .footer address {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* RTL: Clients marquee scrolls right-to-left */
body.rtl .clients-marquee:not(.clients-marquee-rtl) {
  animation-name: marquee-rtl;
}

body.rtl .clients-marquee-wrapper {
  mask-image: linear-gradient(to left, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Sticky CTA — always visible, low friction */
body.rtl .sticky-cta .sticky-cta-text {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 600;
}

/* Home intro — RTL bento & copy */
body.rtl .home-intro-copy {
  text-align: right;
}

body.rtl .home-intro-title {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 11em;
}

body.rtl .home-intro-eyebrow {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

body.rtl .home-intro-tagline {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  line-height: 1.7;
}

body.rtl .home-intro-card {
  text-align: right;
  align-items: flex-end;
}

body.rtl .home-intro-card strong {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-weight: 600;
  width: 100%;
}

body.rtl .home-intro-card-hint {
  width: 100%;
  text-align: right;
}

@media (max-width: 900px) {
  body.rtl .home-intro-copy,
  body.rtl .home-intro-tagline,
  body.rtl .home-intro-card,
  body.rtl .home-intro-card-hint {
    text-align: center;
    align-items: center;
  }

  body.rtl .home-intro-title {
    max-width: none;
  }
}

/* Language switcher */
.nav-lang {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  margin-left: 0.5rem;
}

body.rtl .nav-lang {
  margin-left: 0;
  margin-right: 0.5rem;
}
