/* ==========================================================================
   Arabic / RTL layer. Loaded only by ar.php, after style.css.
   Overrides direction-dependent rules rather than restating the whole design.
   ========================================================================== */

body.ar{
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  text-align: right;
  line-height: 1.9;                 /* Arabic needs more leading than Latin */
}
body.ar h1, body.ar h2, body.ar h3, body.ar h4{
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0;                /* letter-spacing breaks Arabic joining */
  line-height: 1.45;
}
body.ar .eyebrow{ letter-spacing: .04em; }

/* ---- Header --------------------------------------------------------------- */
.ar-header{
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ar-header__inner{
  display: flex; align-items: center; gap: 26px; min-height: 68px;
}
.ar-header__brand{ display: flex; align-items: center; flex: 0 0 auto; }
.ar-nav{ flex: 1; }
.ar-nav ul{
  display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0;
}
.ar-nav a{
  font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 6px 0; transition: color .15s ease;
}
.ar-nav a:hover, .ar-nav a.is-active{ color: var(--teal); }
.ar-header__lang{
  flex: 0 0 auto; font-size: 13.5px; font-weight: 700; color: var(--teal);
  text-decoration: none; border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 15px; transition: border-color .15s ease, background .15s ease;
}
.ar-header__lang:hover{ border-color: var(--teal); background: rgba(19,147,132,.06); }

/* ---- Hero ----------------------------------------------------------------- */
.ar-hero{
  padding: 64px 0 54px;
  background:
    radial-gradient(900px 460px at 10% 10%, rgba(19,147,132,.10), transparent 62%),
    radial-gradient(680px 380px at 95% 92%, rgba(194,160,107,.13), transparent 64%),
    var(--sand);
  border-bottom: 1px solid var(--line);
}
.ar-hero h1{
  font-size: clamp(28px, 4.2vw, 46px); margin: 10px 0 16px; color: var(--ink);
}
.ar-hero__lede{
  font-size: 18.5px; line-height: 1.9; color: var(--muted); max-width: 60ch; margin: 0 0 28px;
}
.ar-hero__cta{ display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Body copy ------------------------------------------------------------ */
.ar-p{ font-size: 17.5px; line-height: 1.95; color: var(--ink); margin: 0 0 16px; }
body.ar .seo-h2{ font-size: 25px; line-height: 1.4; margin: 40px 0 16px; }
body.ar .seo-list{ padding-right: 0; }
body.ar .seo-list li{ padding: 7px 28px 7px 0; font-size: 17px; line-height: 1.9; }
body.ar .seo-list li::before{ right: 6px; left: auto; top: 19px; }
body.ar .crumbs{ justify-content: flex-start; }
body.ar .card h3, body.ar .card p{ text-align: right; }

/* Latin runs inside Arabic text — phone numbers, emails, product names */
body.ar [dir="ltr"]{ display: inline-block; direction: ltr; unicode-bidi: isolate; }

/* ---- Section heads and bands --------------------------------------------- */
body.ar .section-head{ text-align: right; }
body.ar .section-head--center{ text-align: center; }
body.ar .cta-band__inner{ text-align: right; }

/* ---- Footer --------------------------------------------------------------- */
.ar-footer{
  background: var(--ink); color: rgba(255,255,255,.78); padding: 40px 0;
  font-size: 14.5px;
}
.ar-footer__inner{
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
}
.ar-footer__inner > div{ display: flex; flex-direction: column; gap: 6px; }
.ar-footer b{ color: #fff; font-size: 16px; margin-bottom: 4px; }
.ar-footer a{ color: var(--gold); text-decoration: none; }
.ar-footer a:hover{ text-decoration: underline; }

/* ---- Floating buttons flip side ------------------------------------------ */
body.ar .fab{ right: auto; left: 22px; align-items: flex-start; }

@media (max-width: 820px){
  .ar-header__inner{ flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .ar-nav{ order: 3; flex-basis: 100%; }
  .ar-nav ul{ gap: 16px; flex-wrap: wrap; }
  .ar-nav a{ font-size: 14.5px; }
  .ar-header__lang{ margin-right: auto; }
  .ar-hero{ padding: 44px 0 40px; }
  .ar-hero__lede{ font-size: 17px; }
  .ar-p{ font-size: 16.5px; }
  body.ar .seo-h2{ font-size: 21px; }
}

/* "All services" shortcut, since 18 sections will not fit in the bar */
.ar-nav__all{
  flex: 0 0 auto; font-size: 13.5px; font-weight: 700; color: var(--muted);
  text-decoration: none; transition: color .15s ease;
}
.ar-nav__all:hover{ color: var(--teal); }
