/* ============================================================
   Nova Technology Services – RTL (Arabic) Overrides
   Applied when <html dir="rtl"> is set
   ============================================================ */

[dir="rtl"] {
  /* Text alignment */
  text-align: right;

  /* Navbar logo brand text flips */
  .navbar-logo { flex-direction: row-reverse; }

  /* Nav links */
  .nav-links { flex-direction: row-reverse; }
  .nav-actions { flex-direction: row-reverse; }

  /* Section header eyebrow arrow flip */
  .section-header .eyebrow::before {
    order: 1;
    transform: scaleX(-1);
  }

  /* Service card list items */
  .service-card ul li::before { transform: scaleX(-1); }
  .service-card ul li { flex-direction: row-reverse; }

  /* Timeline flip */
  .timeline { padding-left: 0; padding-right: 2rem; }
  .timeline::before { left: auto; right: 0; }
  .timeline-item { padding-left: 0; padding-right: 2rem; }
  .timeline-item::before { left: auto; right: -2.4rem; }

  /* Footer links arrows */
  .footer-links a::before { transform: scaleX(-1); }
  .footer-links a:hover { padding-left: 0; padding-right: 4px; }

  /* Breadcrumb */
  .breadcrumb { flex-direction: row-reverse; }

  /* Contact info items */
  .contact-info-item { flex-direction: row-reverse; }
  .contact-info-text { text-align: right; }

  /* Feature items */
  .feature-item { flex-direction: row-reverse; }
  .feature-item > div { text-align: right; }

  /* Cert card */
  .cert-card { flex-direction: row-reverse; }
  .cert-card:hover { transform: translateX(-4px); }

  /* Check lists */
  .check-list li { flex-direction: row-reverse; }
  .icon-list li  { flex-direction: row-reverse; }

  /* Hero badge */
  .hero-badge { flex-direction: row-reverse; }

  /* Project card header */
  .project-card-header { flex-direction: row-reverse; }
  .project-card-header .year-badge { margin-left: 0; margin-right: auto; }

  /* Form row direction */
  .form-row { direction: rtl; }

  /* Scroll-to-top position */
  #scrollTop { right: auto; left: 2rem; }

  /* Service card before bar direction */
  .service-card::before { transform-origin: right; }
  .service-card:hover::before { transform: scaleX(1); }

  /* Mobile nav */
  .mobile-nav { text-align: right; }

  /* Hero text */
  .hero-tagline { flex-direction: row-reverse; }

  /* Marquee (reverse direction for RTL) */
  .marquee-track { animation-direction: reverse; }
}

/* Arabic-specific font size adjustments (Arabic script reads better slightly larger) */
[dir="rtl"] body {
  font-size: 15.5px;
  letter-spacing: 0;
  line-height: 1.9;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

/* RTL-aware grid flipping for contact form */
@media (min-width: 769px) {
  [dir="rtl"] .contact-form-wrap {
    direction: rtl;
  }
}
