/* Arabic (right-to-left) layer. Loaded only on Arabic pages, after styles.css. */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap");

/* ---------- Font: Cairo everywhere except icon fonts ---------- */
html[dir="rtl"] body,
html[dir="rtl"] body *:not(i):not([class*="fa-"]):not(.wa) {
  font-family: "Cairo", sans-serif !important;
}

/* Letter spacing and capitals break Arabic letter joining. */
html[dir="rtl"] body * {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[dir="rtl"] body {
  line-height: 1.75;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  line-height: 1.45;
  font-weight: 700 !important;
}

/* Arabic reads better a little larger than the Latin sizes of the template. */
html[dir="rtl"] .eyebrow {
  font-size: 12px !important;
}
html[dir="rtl"] .note,
html[dir="rtl"] .copyright,
html[dir="rtl"] .hero-card {
  font-size: 11px !important;
}

/* ---------- Mirror left/right positions ---------- */
html[dir="rtl"] .hero:before {
  mask-image: linear-gradient(to left, transparent 0, black 55%, transparent 100%);
}
html[dir="rtl"] .hero:after {
  right: auto;
  left: -140px;
}
html[dir="rtl"] .hero-image:before {
  left: auto;
  right: 15px;
}
html[dir="rtl"] .hero-card {
  right: auto;
  left: 15px;
}
html[dir="rtl"] .dark-section:before {
  left: auto;
  right: -230px;
}
html[dir="rtl"] .note {
  border-left: 0;
  border-right: 2px solid var(--red);
}
html[dir="rtl"] .scope-item {
  transition: padding-right 0.25s ease, color 0.25s ease;
}
html[dir="rtl"] .scope-item:hover {
  padding-left: 0;
  padding-right: 10px;
}
html[dir="rtl"] .mobile-services-submenu {
  padding-left: 0;
  padding-right: 15px;
}
html[dir="rtl"] .wa {
  right: auto;
  left: 24px;
}
html[dir="rtl"] .form-trap {
  left: auto;
  right: -9999px;
}

/* Content saved from the control panel may carry Latin fonts inline. */
html[dir="rtl"] [style*="font-family"] {
  font-family: "Cairo", sans-serif !important;
}

/* Phone numbers, e-mails and links stay left-to-right inside Arabic text. */
html[dir="rtl"] bdi,
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] input[type="tel"] {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] input[type="tel"] {
  text-align: right;
}

html[dir="rtl"] .service-details-btn span,
html[dir="rtl"] .card-link {
  display: inline-block;
}
