/* ========================================
   RTL (Arabic) Overrides
   ======================================== */

[dir="rtl"] {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

[dir="rtl"] body {
  text-align: right;
}

/* Nav */
[dir="rtl"] .nav-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .hamburger {
  order: -1;
}

/* Hero */
[dir="rtl"] .hero-content {
  text-align: center;
}

/* Problem / Services / Process */
[dir="rtl"] .section-headline,
[dir="rtl"] .section-sub {
  text-align: center;
}

[dir="rtl"] .problem-cta {
  text-align: center;
}

/* About */
[dir="rtl"] .about-quote {
  border-left: none;
  border-right: 3px solid var(--accent-cyan);
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .about-grid {
  direction: rtl;
}

[dir="rtl"] .social-icons {
  flex-direction: row-reverse;
}

/* FAQ */
[dir="rtl"] .faq-question {
  text-align: right;
  flex-direction: row-reverse;
}

[dir="rtl"] .faq-answer p {
  text-align: right;
}

/* Contact */
[dir="rtl"] .contact-method {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-direct {
  align-items: flex-end;
}

/* Footer */
[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .footer-col ul {
  align-items: flex-start;
}

[dir="rtl"] .footer-bottom {
  direction: rtl;
}

[dir="rtl"] .footer-social {
  flex-direction: row-reverse;
}

/* Testimonials - always RTL */
[dir="rtl"] .testimonial-author {
  flex-direction: row-reverse;
}

/* Process steps */
[dir="rtl"] .process-step {
  text-align: center;
}

/* Trust bar */
[dir="rtl"] .trust-logos {
  flex-direction: row-reverse;
}

/* Glass card */
[dir="rtl"] .card-link {
  direction: rtl;
}

/* Buttons */
[dir="rtl"] .hero-buttons {
  justify-content: center;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  background: transparent;
  white-space: nowrap;
}

.lang-toggle:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.05);
}

.lang-toggle svg {
  flex-shrink: 0;
}

/* Nav lang toggle positioning */
.nav-lang {
  display: none;
}

.mobile-lang {
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .nav-lang {
    display: flex;
    margin-left: 12px;
  }

  [dir="rtl"] .nav-lang {
    margin-left: 0;
    margin-right: 12px;
  }
}

/* Service page RTL */
[dir="rtl"] .back-link {
  direction: rtl;
}

[dir="rtl"] .service-hero-content {
  text-align: center;
}

[dir="rtl"] .features-grid .glass-card,
[dir="rtl"] .use-cases-grid .glass-card {
  text-align: right;
}

[dir="rtl"] .step-card {
  text-align: center;
}
