/* =========================================================
   Al Fikrah Al Raedah — Arabic (right-to-left) overrides
   Loaded only on pages in /ar/ after afrco.css.
   Fonts are self-hosted in assets/fonts/arabic (SIL Open Font License).
   ========================================================= */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/arabic/IBMPlexSansArabic-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/arabic/IBMPlexSansArabic-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/arabic/IBMPlexSansArabic-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/arabic/IBMPlexSansArabic-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/arabic/NotoKufiArabic-Variable.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


:root {
  --af-font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --af-font-ar-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  /* re-point the template font variables to Arabic faces */
  --font_instrumentsans: var(--af-font-ar);
  --font_thunder: var(--af-font-ar-display);
}

html[dir="rtl"] body,
html[dir="rtl"] body * {
  font-family: var(--af-font-ar);
  letter-spacing: 0 !important;
}

/* keep the icon font on icons */
html[dir="rtl"] .fa-solid,
html[dir="rtl"] .fas {
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free" !important;
}

html[dir="rtl"] .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

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

/* Arabic needs more line height than the Latin display settings */
html[dir="rtl"] .section-title,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  line-height: 1.35;
}

html[dir="rtl"] p {
  line-height: 1.85;
}

/* ---------- Home hero: Arabic display text ---------- */
html[dir="rtl"] .hero-area .big-text.af-big-text {
  font-family: var(--af-font-ar-display);
  font-weight: 800;
  font-size: 15.5vw;
  line-height: 1.12;
  white-space: nowrap;
  gap: 0.25em;
  margin-bottom: 0;
  padding-bottom: 0.08em;
}

@media only screen and (min-width: 1920px) {
  html[dir="rtl"] .hero-area .big-text.af-big-text {
    font-size: 300px;
  }
}

html[dir="rtl"] .hero-area .big-text-wrapper {
  overflow: hidden;
}

html[dir="rtl"] .hero-area .af-title-mark {
  vertical-align: -0.12em;
}

/* ---------- Why us: alternate items across the two columns ---------- */
html[dir="rtl"] .funfact-area .funfact-item:nth-child(2n) {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 575px) {
  html[dir="rtl"] .funfact-area .funfact-item:nth-child(2n) {
    margin-right: 0;
  }
}

/* ---------- Mirrored details ---------- */
html[dir="rtl"] .af-clients-list .field {
  text-align: left;
}

@media only screen and (max-width: 767px) {
  html[dir="rtl"] .af-clients-list .field {
    text-align: right;
  }
}

html[dir="rtl"] .af-other-services li a:hover {
  padding-left: 0;
  padding-right: 12px;
}

html[dir="rtl"] .af-offer {
  padding: 34px 0 34px 34px;
}

@media only screen and (max-width: 767px) {
  html[dir="rtl"] .af-offer {
    padding: 24px 0;
  }
}

html[dir="rtl"] .af-vmg-item {
  padding: 40px 0 10px 40px;
}

html[dir="rtl"] .af-vmg-item+.af-vmg-item {
  padding-left: 40px;
  padding-right: 40px;
  border-left: 0;
  border-right: 1px solid var(--af-line);
}

@media only screen and (max-width: 991px) {

  html[dir="rtl"] .af-vmg-item,
  html[dir="rtl"] .af-vmg-item+.af-vmg-item {
    padding: 30px 0 10px;
    border-right: 0;
  }
}

html[dir="rtl"] .about-area .af-about-more {
  text-align: right;
}

/* phone numbers and emails read left to right */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Arabic labels look heavier than Latin at the same size */
html[dir="rtl"] .af-eyebrow,
html[dir="rtl"] .hero-area .af-tagline {
  font-size: 15px;
  font-weight: 600;
}

html[dir="rtl"] .af-lang {
  font-family: "Instrument Sans", Arial, sans-serif !important;
}
