/* ==========================================================================
   Arabic / RTL Stylesheet
   Abdulla Mohammed Al Emadi Auditing | Accounting | Financial Consultancy
   ========================================================================== */

html[lang="ar"] body {
  font-family: var(--font-ar);
  line-height: 1.85;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .site-footer h3,
html[lang="ar"] .num,
html[lang="ar"] .badge-tag,
html[lang="ar"] .stat-val,
html[lang="ar"] .stat-lbl,
html[lang="ar"] .card-category-tag {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] .eyebrow::before {
  background: linear-gradient(270deg, var(--gold), transparent);
}

html[lang="ar"] .info-card .contact-list strong,
html[lang="ar"] .brochure-contact-list strong {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] .btn,
html[lang="ar"] .field input,
html[lang="ar"] .field textarea,
html[lang="ar"] .field select {
  font-family: var(--font-ar);
}

html[lang="ar"] .lang-btn {
  font-family: var(--font-en);
}

/* Directional icons & arrows */
html[dir="rtl"] .dir .ic,
html[dir="rtl"] .link-arrow .ic {
  transform: scaleX(-1);
}

html[dir="rtl"] .link-arrow:hover .ic {
  transform: scaleX(-1) translateX(4px);
}

html[dir="rtl"] .card::before,
html[dir="rtl"] .service-card::before,
html[dir="rtl"] .why-card::before {
  transform-origin: right;
}

html[dir="rtl"] .crumbs li+li::before {
  content: "‹";
}

/* Mirror radial ambient glow in hero & banners */
html[dir="rtl"] .hero::after,
html[dir="rtl"] .banner::after {
  background: radial-gradient(circle at 20% 50%, rgba(197, 160, 89, 0.16) 0%, transparent 60%);
}

html[dir="rtl"] .hero-art svg {
  transform: scaleX(-1);
}

/* Timeline progress direction in RTL */
html[dir="rtl"] .step:not(:last-child)::after {
  inset-inline-start: auto;
  inset-inline-end: calc(50% + 40px);
}

/* Logical input text direction */
[data-bind="email"],
[data-bind="phone"],
[data-bind="whatsapp"],
input[type="email"],
input[type="tel"] {
  unicode-bidi: plaintext;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] {
  text-align: right;
}