/* ============================================================
   AFEX Logistics — Shared Stylesheet
   Primary: #29ABD4 (cyan) | Dark: #0E2530 | Light: #F5F7F8
   ============================================================ */
:root {
  --primary: #29ABD4;
  --primary-dark: #1C93B8;
  --primary-soft: #E3F5FA;
  --dark: #0E2530;
  --dark-2: #14313F;
  --ink: #1D2B36;
  --muted: #6B7A85;
  --line: #E4E9EC;
  --light: #F5F7F8;
  --section-intro: #E8ECF0;
  --section-light: #F5F7F8;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(14, 37, 48, .08);
  --font: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  --font-ar: 'Noto Kufi Arabic', 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--primary); color: #fff;
  font-family: inherit;
  font-weight: 600; font-size: 14px; padding: 13px 28px;
  border-radius: 10px; border: none; cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 6px 16px rgba(41, 171, 212, .35);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand .logo-text { line-height: 1.1; }
.brand .logo-text b { font-size: 22px; letter-spacing: .5px; color: var(--ink); }
.brand .logo-text span { display: block; font-size: 8px; letter-spacing: 2.5px; color: var(--primary); font-weight: 600; }

.main-nav { display: flex; gap: 34px; }
.main-nav a { font-weight: 500; font-size: 14px; color: var(--ink); padding: 6px 0; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--primary); transition: width .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--primary); }
.lang-switch__chev {
  display: inline-flex;
  width: 14px;
  height: 14px;
  opacity: .85;
}
.lang-switch__chev svg { display: block; width: 14px; height: 14px; }
.lang-switch__label { font-weight: 500; }
.lang-switch__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch__flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lang-switch__flag--sa:not(:has(img)) {
  background: #006c35;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.lang-switch__flag--us:not(:has(img)) {
  background: linear-gradient(180deg, #b22234 0 7px, #fff 7px 9px, #b22234 9px 16px, #fff 16px 18px, #3c3b6e 18px);
}

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page banner ---------- */
.page-banner {
  margin: 22px auto; width: min(1200px, 92%);
  background: linear-gradient(100deg, var(--primary) 0%, #1FA0C9 100%);
  border-radius: 16px; color: #fff; padding: 52px 48px; position: relative; overflow: hidden;
}
.page-banner h1 { font-size: 38px; font-weight: 700; }
.breadcrumb { margin-top: 8px; font-size: 13px; opacity: .9; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { text-decoration: underline; }
.banner-cubes {
  position: absolute; right: -20px; top: 0; bottom: 0; width: 260px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.18) 75%),
    linear-gradient(45deg, rgba(13,90,120,.18) 25%, transparent 25%, transparent 75%, rgba(13,90,120,.18) 75%);
  background-size: 56px 56px; background-position: 0 0, 28px 28px; opacity: .8;
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 440px; margin: 8px auto 0; font-size: 14px; }
.section-title { font-size: 32px; font-weight: 700; text-align: center; }

/* ---------- Hero (home) ---------- */
.home-hero-stack {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  margin-bottom: 0;
  overflow: hidden;
}
.home-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.home-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.home-slider__slide picture,
.home-slider__slide img,
.home-slider__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-slider__slide--fallback {
  background: linear-gradient(100deg, #2FB5DE 0%, #1FA0C9 55%, #0E2530 100%);
}
.home-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(14, 37, 48, .42) 0%, rgba(14, 37, 48, .18) 42%, rgba(14, 37, 48, .62) 100%);
  pointer-events: none;
}
.site-header--hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
}
.site-header--hero .brand .logo-text b { color: #fff; }
.site-header--hero .brand .logo-text span { color: var(--primary); }
.site-header--hero .main-nav a { color: rgba(255, 255, 255, .92); }
.site-header--hero .main-nav a.active { color: var(--primary); }
.site-header--hero .main-nav a::after { background: var(--primary); }
.site-header--hero .nav-toggle span { background: #fff; }
.site-header--hero .lang-switch {
  color: rgba(255, 255, 255, .95);
}
.site-header--hero .lang-switch:hover {
  color: var(--primary);
}
.hero {
  margin: 22px auto 0; width: min(1200px, 92%);
  background: linear-gradient(100deg, #2FB5DE 0%, #1FA0C9 100%);
  border-radius: 18px; color: #fff; text-align: center;
  padding: 70px 24px 170px; position: relative; overflow: hidden;
}
.hero--overlay {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  width: min(920px, 92%);
  background: transparent;
  border-radius: 0;
  padding: 118px 24px 110px;
}
.hero h1 { font-size: 46px; font-weight: 700; letter-spacing: 1px; color: var(--dark); }
.hero--overlay h1 { color: #fff; text-shadow: 0 2px 24px rgba(14, 37, 48, .35); }
.hero h1 .dot { color: #fff; }
.hero--overlay h1 .dot { color: var(--primary); }
.hero p { max-width: 460px; margin: 14px auto 0; font-size: 15px; color: rgba(255,255,255,.95); }
.hero--overlay p { max-width: 560px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .92); }
.hero .hero-art {
  position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(0deg, rgba(14,37,48,.25), transparent);
}

/* Quote wizard band — same background as Introduction section */
.home-quote-band {
  background: var(--section-intro);
  padding-bottom: 88px;
}

/* Quote wizard card overlapping hero */
.quote-card {
  width: min(980px, 92%);
  margin: -120px auto 0;
  position: relative;
  z-index: 5;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 34px 38px;
}
.quote-card--hero {
  width: min(1140px, 96%);
  max-width: min(1140px, 96%);
  margin: -130px auto 0;
  position: relative;
  z-index: 40;
  box-sizing: border-box;
  overflow-x: hidden;
}
.home-quote-wizard {
  width: 100%;
}
.quote-card h3 { font-size: 20px; margin-bottom: 22px; }
.wizard-steps { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.wizard-steps .step { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.wizard-steps .step .num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--light); color: var(--muted); font-size: 13px; border: 1px solid var(--line);
}
.wizard-steps .step.active { color: var(--primary); }
.wizard-steps .step.active .num { background: var(--primary); color: #fff; border-color: var(--primary); }

.toggle-pair { display: inline-flex; background: var(--light); border-radius: 10px; padding: 5px; margin-bottom: 24px; }
.toggle-pair button {
  border: none; background: transparent; padding: 10px 26px; border-radius: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: .2s;
}
.toggle-pair button.active { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(41,171,212,.35); }

.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--white); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(41,171,212,.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.quote-card .btn { margin-top: 24px; float: right; padding: 12px 46px; }
.quote-card::after { content: ""; display: block; clear: both; }

/* ---------- Split (about intro) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split .media {
  border-radius: 16px; min-height: 320px; background:
    radial-gradient(120% 120% at 20% 10%, #d9f1f8 0%, #bfe8f4 45%, #8fd4e9 100%);
  display: grid; place-items: center; color: var(--primary-dark); font-weight: 600;
  border: 1px solid var(--line); overflow: hidden;
}
.split .media svg { width: 70%; height: auto; opacity: .9; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split .btn { margin-top: 8px; }

/* ---------- Home — About / Introduction ---------- */
.home-about-intro {
  padding: 24px 0 72px;
  background: var(--section-intro);
}
.home-about-intro__head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.home-about-intro__title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.home-about-intro__title-bar {
  width: 6px;
  height: 1.05em;
  min-height: 34px;
  border-radius: 4px;
  background: var(--primary);
  flex-shrink: 0;
}
.home-about-intro__subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.home-about-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.home-about-intro__copy {
  max-width: 560px;
}
.home-about-intro__body {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}
.home-about-intro__body p {
  margin-bottom: 20px;
}
.home-about-intro__body p:last-child {
  margin-bottom: 0;
}
.home-about-intro__btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.home-about-intro__btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  transform: translateY(-1px);
}
.home-about-intro__btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.home-about-intro__media-wrap {
  position: relative;
  width: min(100%, 540px);
  margin-left: auto;
}
.home-about-intro__media-back {
  position: absolute;
  top: -24px;
  right: -24px;
  left: 24px;
  bottom: 24px;
  background: #B8E6F4;
  border-radius: 28px;
  z-index: 0;
}
.home-about-intro__media {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--light);
  box-shadow: 0 18px 40px rgba(14, 37, 48, .08);
}
.home-about-intro__media img {
  width: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.home-about-intro__media-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 20% 10%, #d9f1f8 0%, #bfe8f4 45%, #8fd4e9 100%);
  color: var(--primary-dark);
}
.home-about-intro__media-placeholder svg {
  width: min(280px, 70%);
  height: auto;
  opacity: .85;
}
@media (max-width: 991px) {
  .home-about-intro {
    padding-top: 8px;
  }
  .home-about-intro__grid {
    grid-template-columns: 1fr;
  }
  .home-about-intro__copy {
    max-width: none;
    order: 2;
  }
  .home-about-intro__media-wrap {
    order: 1;
    margin-left: 0;
    margin-right: auto;
    width: min(100%, 480px);
  }
}
@media (max-width: 575px) {
  .home-about-intro__title {
    gap: 10px;
    font-size: 24px;
  }
  .home-about-intro__media-back {
    top: -16px;
    right: -16px;
    left: 16px;
    bottom: 16px;
    border-radius: 20px;
  }
  .home-about-intro__media,
  .home-about-intro__media img {
    border-radius: 20px;
  }
}

/* ---------- Service detail ---------- */
.service-detail-section {
  background: var(--light);
  padding: 56px 0 64px;
}
.service-detail-split {
  align-items: center;
  direction: ltr;
}
.service-detail-split--rtl-layout:not(.service-detail-split--stacked) .service-detail-media {
  grid-column: 1;
}
.service-detail-split--rtl-layout:not(.service-detail-split--stacked) .service-detail-copy {
  grid-column: 2;
}
.service-detail-section--ltr .service-detail-split:not(.service-detail-split--stacked) .service-detail-copy {
  grid-column: 1;
}
.service-detail-section--ltr .service-detail-split:not(.service-detail-split--stacked) .service-detail-media {
  grid-column: 2;
}
.service-detail-section--ltr .service-detail-copy,
.service-detail-section--ltr .service-detail-title,
.service-detail-section--ltr .service-detail-body,
.service-detail-section--ltr .service-detail-body.about-home-desc {
  text-align: left;
}
.service-detail-section--rtl .service-detail-copy,
.service-detail-section--rtl .service-detail-title,
.service-detail-section--rtl .service-detail-body,
.service-detail-section--rtl .service-detail-body.about-home-desc {
  direction: rtl;
  text-align: right;
}
.service-detail-split--stacked {
  grid-template-columns: 1fr;
  gap: 32px;
}
.service-detail-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.25;
}
.service-detail-body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.service-detail-body p {
  margin-bottom: 18px;
}
.service-detail-body p:last-child {
  margin-bottom: 0;
}
.service-detail-media {
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 260px;
}
.service-detail-split .service-detail-media.media {
  background: transparent;
  border: none;
  box-shadow: none;
}
.service-detail-media img {
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  object-position: center;
}
.service-detail-pdf {
  margin-top: 24px;
}

/* ---------- Service detail — Key Benefits ---------- */
.service-benefits-section {
  background: linear-gradient(180deg, #0a1f28 0%, #0e2530 100%);
  color: #fff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.service-benefits-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(41, 171, 212, .12) 0%, transparent 55%);
  pointer-events: none;
}
.service-benefits-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 40px;
  position: relative;
}
.service-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  position: relative;
}
.service-benefit-card {
  text-align: left;
  padding: 8px 10px;
}
.service-benefit-card__icon {
  width: 54px;
  height: 54px;
  margin: 0 0 16px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.service-benefit-card__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.service-benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.service-benefit-card p {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Service detail — Industries ---------- */
.service-industries-section {
  background: var(--light);
  padding: 56px 0 64px;
}
.service-industries-split {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: clamp(20px, 3vw, 28px);
  align-items: center;
}
.service-industries-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--ink);
  max-width: 360px;
}
.service-industries-btn span { margin-left: 6px; }
.service-industries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-industry-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 160px;
  background: #dce8ee;
}
.service-industry-card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}
.service-industry-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- Home services slider ---------- */
.home-services-section {
  padding: clamp(64px, 7vw, 88px) 0 clamp(72px, 8vw, 96px);
  background: var(--white);
  overflow: hidden;
}
.home-services-section__container {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.home-services-section__head {
  margin-bottom: 0;
  padding-top: clamp(8px, 1.5vw, 16px);
}
.home-services-slider {
  position: relative;
}
.home-services-slider__stage {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 20px);
}
.home-services-slider__viewport {
  overflow: hidden;
  padding: 18px 0 28px;
  outline: none;
  perspective: 1500px;
  perspective-origin: 50% 42%;
}
.home-services-slider__track {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 500px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.home-services-slider__card {
  flex: 0 0 340px;
  width: 340px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .5s ease;
  will-change: transform, opacity;
}
.home-services-slider__card-media {
  position: relative;
  height: 490px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(14, 37, 48, .16);
  transition: height .6s cubic-bezier(.22, 1, .36, 1);
}
.home-services-slider__card-media--fallback {
  background-image: linear-gradient(145deg, #1C93B8 0%, #0E2530 100%);
}
.home-services-slider__card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 18, 28, .9) 0%,
    rgba(8, 18, 28, .62) 28%,
    rgba(8, 18, 28, .18) 58%,
    rgba(8, 18, 28, 0) 100%
  );
  z-index: 1;
}
.home-services-slider__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 26px 28px;
  color: #fff;
}
.home-services-slider__card-copy {
  width: 100%;
  text-align: left;
}
.home-services-slider__card-title {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 700;
  line-height: 1.22;
  color: #fff;
}
.home-services-slider__card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .94);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-services-slider__card-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 11px 18px;
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  background: transparent;
  transition: background .25s ease, border-color .25s ease;
}
.home-services-slider__card-btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}
.home-services-slider__card[data-services-clone="1"] {
  pointer-events: none;
}
.home-services-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(120, 132, 142, .52);
  color: #fff;
  cursor: pointer;
  z-index: 4;
  transition: background .25s ease, transform .25s ease;
  backdrop-filter: blur(2px);
}
.home-services-slider__nav svg {
  width: 22px;
  height: 22px;
}
.home-services-slider__nav--prev {
  left: clamp(10px, 2.5vw, 28px);
}
.home-services-slider__nav--next {
  right: clamp(10px, 2.5vw, 28px);
}
.home-services-slider__nav:hover {
  background: rgba(95, 108, 118, .72);
}
.home-services-slider__nav:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.home-services-slider__nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}
@media (max-width: 991px) {
  .home-services-slider__card-media {
    height: 430px;
  }
  .home-services-slider__track {
    min-height: 440px;
  }
  .home-services-slider__nav {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 575px) {
  .home-services-slider__card-overlay {
    padding: 0 20px 22px;
  }
  .home-services-slider__nav {
    width: 36px;
    height: 36px;
  }
  .home-services-slider__nav svg {
    width: 18px;
    height: 18px;
  }
}

/* ---------- Cards grid (generic / mockup pages) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 0 22px; overflow: hidden; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb {
  height: 170px; background: linear-gradient(135deg, var(--primary-soft), #cdeef7);
  display: grid; place-items: center; color: var(--primary-dark);
}
.card .thumb svg { width: 84px; height: 84px; }
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card h4 { font-size: 17px; margin: 18px 20px 8px; }
.card p { color: var(--muted); font-size: 13.5px; margin: 0 20px 16px; flex: 1; }
.card .learn { margin: 0 20px; color: var(--primary); font-weight: 600; font-size: 14px; }
.card .learn:hover { text-decoration: underline; }

/* ---------- Services overlay cards (listing page) ---------- */
.services-overlay-section {
  padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px);
  background: var(--white);
}
.services-overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 24px);
}
.service-overlay-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(14, 37, 48, .1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-overlay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14, 37, 48, .18);
}
.service-overlay-card__media {
  position: relative;
  min-height: clamp(380px, 36vw, 430px);
  background-color: #0E2530;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-overlay-card__media--fallback {
  background-image: linear-gradient(145deg, #1C93B8 0%, #0E2530 100%);
}
.service-overlay-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 18, 28, .92) 0%,
    rgba(8, 18, 28, .68) 24%,
    rgba(8, 18, 28, .22) 52%,
    rgba(8, 18, 28, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.service-overlay-card__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(20px, 2.5vw, 28px) clamp(24px, 3vw, 30px);
}
.service-overlay-card__copy {
  text-align: left;
}
.service-overlay-card__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
.service-overlay-card__text {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-overlay-card__actions {
  margin-top: 18px;
  width: 100%;
}
.service-overlay-card__btn {
  display: block;
  width: 100%;
  padding: 11px 18px;
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  background: transparent;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.service-overlay-card__btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}
@media (max-width: 991px) {
  .services-overlay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-overlay-card__media {
    min-height: 360px;
  }
}
@media (max-width: 575px) {
  .services-overlay-grid {
    grid-template-columns: 1fr;
  }
  .service-overlay-card__media {
    min-height: 340px;
  }
}

/* ---------- Home — Why Choose Afex ---------- */
.home-why-choose {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--section-light);
}
.home-why-choose__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.home-why-choose__content {
  max-width: 560px;
}
.home-why-choose__title {
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: clamp(22px, 3vw, 30px);
}
.home-why-choose__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-why-choose__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.home-why-choose__item:last-child {
  margin-bottom: 0;
}
.home-why-choose__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: #B8E8DC;
  color: #fff;
  display: grid;
  place-items: center;
}
.home-why-choose__check svg {
  width: 14px;
  height: 14px;
}
.home-why-choose__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.home-why-choose__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 36px);
  padding: 14px 30px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(41, 171, 212, .32);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.home-why-choose__btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(41, 171, 212, .38);
}
.home-why-choose__btn:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}
.home-why-choose__btn-arrow {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-1px);
}
.home-why-choose__media-wrap {
  display: flex;
  justify-content: center;
  width: min(100%, 520px);
  margin-left: auto;
  margin-right: auto;
  background: var(--section-light);
}
.home-why-choose__frame {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.home-why-choose__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
}
.home-why-choose__image--zoom {
  cursor: zoom-in;
}
.home-why-choose__image--zoom:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
}
.home-why-choose__slider {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-why-choose__slides {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-why-choose__slide {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.home-why-choose__slide.is-active {
  display: flex;
}
.home-why-choose__slider--multi .home-why-choose__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  flex-shrink: 0;
}
.home-why-choose__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.home-why-choose__dot.is-active,
.home-why-choose__dot:hover {
  background: var(--primary);
  transform: scale(1.08);
}
.home-why-choose__dot:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}
.home-why-choose-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.home-why-choose-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.home-why-choose-lightbox[hidden] {
  display: none !important;
}
.home-why-choose-lightbox:not([hidden]) {
  display: flex;
}
.home-why-choose-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 37, 48, .82);
  cursor: zoom-out;
}
.home-why-choose-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-why-choose-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  background: #fff;
}
.home-why-choose-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  display: grid;
  place-items: center;
}
.home-why-choose-lightbox__close:hover {
  background: var(--primary);
  color: #fff;
}
.home-why-choose-lightbox__close:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .home-why-choose-lightbox {
    padding: 16px;
  }
  .home-why-choose-lightbox__close {
    top: 8px;
    right: 8px;
  }
}
.home-why-choose__placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 20% 10%, #eef8fc 0%, #d9f1f8 45%, #bfe8f4 100%);
  color: var(--primary-dark);
}
.home-why-choose__placeholder svg {
  width: min(240px, 65%);
  height: auto;
  opacity: .85;
}
@media (max-width: 991px) {
  .home-why-choose__inner {
    grid-template-columns: 1fr;
  }
  .home-why-choose__content {
    max-width: none;
  }
  .home-why-choose__media-wrap {
    max-width: 420px;
  }
}
@media (max-width: 575px) {
  .home-why-choose {
    padding-top: 36px;
    padding-bottom: 56px;
  }
  .home-services-section {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .home-contact {
    padding-top: 48px;
    padding-bottom: 72px;
  }
}

/* ---------- Why choose (legacy / about page) ---------- */
.why { background: var(--light); border-radius: 18px; width: min(1200px, 92%); margin: 0 auto; }
.why .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 54px 48px; }
.why h2 { font-size: 30px; margin-bottom: 20px; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink); font-size: 14.5px; }
.check-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.why .media { border-radius: 14px; min-height: 280px; background: radial-gradient(120% 120% at 80% 20%, #d9f1f8, #9adcee); display: grid; place-items: center; }
.why .media svg { width: 65%; }
.about-ops .inner { align-items: start; }
.about-ops-copy .btn { margin-top: 8px; }
.about-ops-intro { color: var(--muted); margin-bottom: 20px; font-size: 14.5px; line-height: 1.7; }
.about-ops-intro p { margin-bottom: 14px; }
.about-ops-intro p:last-child { margin-bottom: 0; }
.about-ops-checklist { align-self: center; }
.about-ops-checklist .check-list { margin: 0; padding: 0; list-style: none; }

/* ---------- Home — Client logos ---------- */
.home-clients {
  padding: clamp(48px, 6vw, 72px) 0 clamp(72px, 8vw, 96px);
  background: var(--section-light);
  overflow: hidden;
}
.home-clients__head {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 44px);
}
.home-clients__eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-clients__title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.home-clients__slider {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 20px);
}
.home-clients__viewport {
  overflow: hidden;
  outline: none;
  padding: 8px 0 12px;
}
.home-clients__track {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 20px;
  will-change: transform;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.home-clients__card {
  flex: 0 0 248px;
  width: 248px;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(14, 37, 48, .08);
}
.home-clients__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .9;
  transition: filter .25s ease, opacity .25s ease;
}
.home-clients__card:hover .home-clients__logo {
  filter: grayscale(0%);
  opacity: 1;
}
.home-clients__name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
}
.home-clients__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(120, 132, 142, .52);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background .25s ease, opacity .25s ease;
  backdrop-filter: blur(2px);
}
.home-clients__nav svg {
  width: 20px;
  height: 20px;
}
.home-clients__nav--prev { left: clamp(4px, 1.5vw, 12px); }
.home-clients__nav--next { right: clamp(4px, 1.5vw, 12px); }
.home-clients__nav:hover { background: rgba(95, 108, 118, .72); }
.home-clients__nav:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 991px) {
  .home-clients__card {
    min-height: 108px;
    padding: 18px 22px;
  }
  .home-clients__logo {
    max-height: 64px;
  }
  .home-clients__nav {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 575px) {
  .home-clients {
    padding-bottom: clamp(64px, 10vw, 80px);
  }
  .home-clients__card {
    flex-basis: 210px;
    width: 210px;
    min-height: 98px;
    padding: 16px 20px;
  }
  .home-clients__logo {
    max-height: 58px;
  }
}

/* ---------- Home — We Deliver Trust ---------- */
.home-deliver-trust {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.home-deliver-trust__pattern {
  position: absolute;
  left: max(-80px, -6vw);
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 46vw);
  height: min(480px, 46vw);
  pointer-events: none;
  z-index: 0;
}
.home-deliver-trust__pattern img,
.home-deliver-trust__pattern svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.home-deliver-trust__pattern--fallback {
  color: rgba(41, 171, 212, .22);
}
.home-deliver-trust__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.home-deliver-trust__lead {
  max-width: 420px;
}
.home-deliver-trust__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.home-deliver-trust__desc {
  margin: 0;
  color: #B7C6CE;
  font-size: 15px;
  line-height: 1.7;
  max-width: 360px;
}
.home-deliver-trust__lead-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 28px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(41, 171, 212, .34);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.home-deliver-trust__lead-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(41, 171, 212, .4);
}
.home-deliver-trust__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 36px);
  align-items: center;
}
.home-deliver-trust__card {
  max-width: 360px;
}
.home-deliver-trust__card--slot-0 {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}
.home-deliver-trust__card--slot-1 {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: start;
  align-self: center;
}
.home-deliver-trust__card--slot-2 {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
}
.home-deliver-trust__card--slot-3 {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  max-width: 360px;
}
.home-deliver-trust__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.home-deliver-trust__icon svg {
  width: 24px;
  height: 24px;
}
.home-deliver-trust__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.home-deliver-trust__icon i {
  font-size: 22px;
  line-height: 1;
}
.home-deliver-trust__card-title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.home-deliver-trust__card-text {
  margin: 0;
  color: #9FB3BC;
  font-size: 14px;
  line-height: 1.65;
}
.home-deliver-trust__card-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 11px 18px;
  border: 1.5px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  background: transparent;
  transition: background .25s ease, border-color .25s ease;
}
.home-deliver-trust__card-btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
}
@media (max-width: 991px) {
  .home-deliver-trust__inner {
    grid-template-columns: 1fr;
  }
  .home-deliver-trust__lead {
    max-width: none;
    text-align: center;
  }
  .home-deliver-trust__desc {
    max-width: none;
    margin: 0 auto;
  }
  .home-deliver-trust__cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .home-deliver-trust__card,
  .home-deliver-trust__card--slot-0,
  .home-deliver-trust__card--slot-1,
  .home-deliver-trust__card--slot-2,
  .home-deliver-trust__card--slot-3 {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    max-width: none;
  }
  .home-deliver-trust__pattern {
    opacity: .55;
    left: 50%;
    top: 18%;
    transform: translate(-50%, -50%);
    width: min(320px, 70vw);
    height: min(320px, 70vw);
  }
}
@media (max-width: 575px) {
  .home-deliver-trust {
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

/* ---------- Logos strip (legacy) ---------- */
.logos { text-align: center; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 30px; }
.logo-chip {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px 30px; color: var(--muted);
  font-weight: 600; letter-spacing: 1px; background: var(--white); font-size: 13px;
}
.logo-chip--image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-width: 160px;
  min-height: 84px;
}
.logo-chip--image img {
  max-height: 56px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------- Features band ---------- */
.features { background: var(--dark); color: #fff; border-radius: 18px; width: min(1200px, 92%); margin: 0 auto; }
.features .inner { padding: 56px 48px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; }
.features h2 { font-size: 28px; line-height: 1.3; }
.features .lead p { color: #B7C6CE; margin-top: 14px; font-size: 14.5px; }
.features .lead .btn { margin-top: 24px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 22px;
}
.feature h4 { font-size: 15.5px; margin-bottom: 8px; color: #fff; }
.feature p { color: #9FB3BC; font-size: 13px; margin-bottom: 10px; }
.feature a { color: var(--primary); font-size: 13px; font-weight: 600; }
.feature a:hover { text-decoration: underline; }

/* ---------- Inner pages — gray surface ---------- */
.page-gray-surface {
  background: var(--section-light);
}
.afex-inner-page:has(.page-gray-surface) {
  background: var(--section-light);
}
.afex-inner-page:has(.page-gray-surface) main {
  background: var(--section-light);
}
.afex-inner-page:has(.page-gray-surface) .site-footer {
  margin-top: 0;
}

.afex-inner-page:has(.page-gray-surface) .page-banner {
  margin-bottom: 0;
}

.page-gray-surface .cta-band-wrap {
  background: transparent;
}

/* ---------- Home — Get in touch / Contact page ---------- */
.home-contact {
  padding: clamp(64px, 7vw, 88px) 0 clamp(80px, 9vw, 112px);
  background: var(--section-light);
}
.page-contact.home-contact {
  padding-top: clamp(36px, 5vw, 52px);
  background: transparent;
}
.home-contact__title {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  text-align: left;
}
.home-contact__stage {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 42vw, 520px);
}
.home-contact__map {
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 42vw, 520px);
  border-radius: 20px;
  overflow: hidden;
}
.home-contact__map .map-box {
  width: 100%;
  min-height: clamp(420px, 42vw, 520px);
  height: 100%;
  border: none;
  border-radius: 20px;
  background:
    linear-gradient(rgba(41, 171, 212, .04), rgba(41, 171, 212, .04)),
    #eef2f4;
}
.home-contact__map .map-box--embed {
  width: 100%;
  padding: 0;
  min-height: clamp(420px, 42vw, 520px);
  height: 100%;
  background: #eef2f4;
}
.home-contact__map .map-box--embed iframe,
.home-contact__map .map-box--embed .map iframe,
.home-contact__map .map-box--embed > div,
.home-contact__map .map-box--embed > * {
  display: block;
  width: 100% !important;
  max-width: none;
  height: 100% !important;
  min-height: clamp(420px, 42vw, 520px);
  border: 0;
  border-radius: 20px;
}
.home-contact__map .map-pin {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 10px rgba(41, 171, 212, .22);
}
.home-contact__form-wrap {
  position: absolute;
  top: 50%;
  right: clamp(12px, 2.5vw, 28px);
  transform: translateY(-50%);
  width: min(420px, calc(100% - 24px));
  z-index: 2;
}
.home-contact__form-wrap .form-card {
  margin: 0;
  padding: clamp(24px, 3vw, 32px);
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(14, 37, 48, .14);
  background: var(--white);
}
.home-contact__form-wrap .form-card .field {
  margin-bottom: 18px;
}
.home-contact__form-wrap .form-card .field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.home-contact__form-wrap .form-card .field:last-of-type {
  margin-bottom: 22px;
}
.home-contact__form-wrap .form-card input,
.home-contact__form-wrap .form-card textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dfe5ea;
  padding: 13px 15px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  box-sizing: border-box;
}
.home-contact__form-wrap .form-card input:focus,
.home-contact__form-wrap .form-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 171, 212, .15);
}
.home-contact__form-wrap .form-card textarea {
  min-height: 120px;
  resize: vertical;
}
.home-contact__form-wrap .form-card .btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(41, 171, 212, .34);
}
@media (max-width: 991px) {
  .home-contact__stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .home-contact__map,
  .home-contact__map .map-box,
  .home-contact__map .map-box--embed,
  .home-contact__map .map-box--embed iframe {
    min-height: 320px;
  }
  .home-contact__form-wrap {
    position: static;
    transform: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: start; }
.contact-grid h2 { font-size: 32px; margin-bottom: 20px; }
.map-box {
  border-radius: 14px; min-height: 420px; border: 1px solid var(--line);
  background:
    linear-gradient(rgba(41,171,212,.06), rgba(41,171,212,.06)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, #e8eef1 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, #e8eef1 40px),
    #F7F5EF;
  position: relative; overflow: hidden;
}
.map-pin {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 8px rgba(41,171,212,.25);
}
.map-label { position: absolute; font-size: 12px; font-weight: 600; color: var(--muted); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.form-card .field { margin-bottom: 16px; }

/* ---------- Careers ---------- */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 34px 0 8px; overflow-x: auto; }
.tab-btn {
  display: flex; align-items: center; gap: 8px; padding: 13px 20px; background: none; border: none;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent; white-space: nowrap; transition: .2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.job-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
}
.job-row .job-title { font-size: 19px; font-weight: 700; color: var(--primary); }
.job-row .job-title:hover { text-decoration: underline; }
.job-row .job-title::after { content: " ↗"; font-size: 18px; font-weight: 700; line-height: 1; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.empty-note { padding: 40px 4px; color: var(--muted); }

/* ---------- Application form ---------- */
.apply-card {
  width: min(640px, 92%); margin: 46px auto; background: var(--white);
  border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 40px 38px;
}
.apply-card h2 { text-align: center; font-size: 26px; margin-bottom: 28px; }
.apply-card .field { margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dropzone {
  border: 2px dashed var(--line); border-radius: 12px; text-align: center;
  padding: 34px 16px; color: var(--muted); font-size: 14px; margin-bottom: 22px; cursor: pointer; transition: .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .up-ic {
  width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%;
  border: 1px solid var(--primary); color: var(--primary); display: grid; place-items: center; font-size: 18px;
}
.dropzone b { color: var(--primary); }

/* ---------- Equipments ---------- */
.equipment-intro {
  padding: clamp(32px, 5vw, 48px) 0 clamp(16px, 3vw, 24px);
  background: transparent;
}
.equipment-intro__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
}
.equipment-intro__title {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.equipment-intro__desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.equipment-intro__media {
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent !important;
  box-shadow: none;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
}
.equipment-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: multiply;
}
.equipment-intro__media svg {
  width: 96px;
  height: 76px;
}
.equipment-fleet {
  padding: clamp(24px, 4vw, 36px) 0 clamp(64px, 7vw, 88px);
  background: transparent;
}
.equipment-fleet__title {
  margin: 0 0 clamp(24px, 3vw, 32px);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 26px);
}
.fleet-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(16px, 2.2vw, 20px);
  border: 1px solid rgba(14, 37, 48, .06);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(14, 37, 48, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fleet-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(14, 37, 48, .1);
}
.fleet-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(190px, 19vw, 230px);
  padding: clamp(16px, 2.4vw, 22px);
  border-radius: 12px;
  overflow: hidden;
  background: #f5f7f8;
  color: var(--primary-dark);
}
.fleet-item__media img {
  width: 100%;
  height: auto;
  max-height: clamp(150px, 15vw, 190px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(14, 37, 48, .14));
}
.fleet-item__media svg {
  width: 96px;
  height: 76px;
}
.fleet-item__title {
  margin: clamp(16px, 2.2vw, 20px) 0 0;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
}

/* ---------- CTA band ---------- */
.cta-band-wrap {
  padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 6vw, 72px);
}
.cta-band {
  position: relative;
  width: min(1200px, 92%);
  margin: 0 auto;
  min-height: clamp(240px, 28vw, 320px);
  border-radius: 24px;
  overflow: hidden;
  background: #dff6ff;
}
.cta-band__content {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(20px, 3vw, 28px);
}
.cta-band__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(62%, 760px);
  background-image: var(--cta-band-media);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 54, 72, .18) 0%, rgba(17, 54, 72, .58) 100%);
  pointer-events: none;
}
.cta-band h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  max-width: 480px;
}
.cta-band__title {
  margin: 0;
}
.cta-band__subtitle {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 440px;
}
.cta-band h2 span {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.cta-band__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(41, 171, 212, .34);
}

/* CTA band — Arabic: photo left, color/text right */
html[dir="rtl"] .cta-band,
body.afex-rtl .cta-band {
  direction: ltr;
}
html[dir="rtl"] .cta-band__media,
body.afex-rtl .cta-band__media {
  left: 0;
  right: auto;
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
}
html[dir="rtl"] .cta-band__media::after,
body.afex-rtl .cta-band__media::after {
  background: linear-gradient(270deg, rgba(17, 54, 72, .18) 0%, rgba(17, 54, 72, .58) 100%);
}
html[dir="rtl"] .cta-band__content,
body.afex-rtl .cta-band__content {
  margin-left: auto;
  margin-right: 0;
  align-items: flex-end;
  direction: ltr;
  text-align: right;
}
html[dir="rtl"] .cta-band__title,
html[dir="rtl"] .cta-band__subtitle,
html[dir="rtl"] .cta-band h2,
body.afex-rtl .cta-band__title,
body.afex-rtl .cta-band__subtitle,
body.afex-rtl .cta-band h2 {
  direction: rtl;
  text-align: right;
  align-self: stretch;
}
html[dir="rtl"] .cta-band__btn,
body.afex-rtl .cta-band__btn {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
}

/* ---------- AFEX word highlight (Terms & Conditions) ---------- */
.afex-highlight {
  background: #CDEA2A;
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.page-banner .afex-highlight {
  color: var(--ink);
}

/* ---------- Terms / CMS content pages (flat — no card box) ---------- */
.page-terms-surface {
  background: var(--white);
}
.afex-inner-page:has(.page-terms-surface) {
  background: var(--white);
}
.afex-inner-page:has(.page-terms-surface) main {
  background: var(--white);
}
.afex-inner-page:has(.page-terms-surface) .site-footer {
  margin-top: 0;
}

.cms-page {
  padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 7vw, 88px);
}
.cms-page--box {
  padding-top: clamp(28px, 4vw, 44px);
}
.page-terms-surface .cms-page--box .container {
  width: min(1200px, 92%);
  padding-left: 48px;
  padding-right: 48px;
}
.cms-page__plain {
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.cms-page__body--plain {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
.cms-page__body--plain > h1:first-child,
.cms-page__body--plain > h2:first-child,
.cms-page__body--plain > h3:first-child,
.cms-page__heading--plain {
  margin: 0 0 clamp(22px, 3vw, 30px);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.cms-page__body--plain ol {
  list-style: decimal;
  margin: 0;
  padding-left: 1.5rem;
}
.cms-page__body--plain ul {
  list-style: disc;
  margin: 0;
  padding-left: 1.5rem;
}
.cms-page__body--plain li {
  margin-bottom: 16px;
  color: var(--ink);
}
.cms-page__body--plain li:last-child {
  margin-bottom: 0;
}
.cms-page__body--plain p {
  margin-bottom: 16px;
}
.cms-page__body--plain p:last-child {
  margin-bottom: 0;
}
.cms-page__grid {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}
.cms-page__grid--left_side {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}
.cms-page__grid--right_side {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}
.cms-page__box {
  max-width: 960px;
  margin: 0 auto;
}
.cms-page__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 44px);
}
.cms-page--full_width .cms-page__panel {
  border: none;
  box-shadow: none;
  padding: clamp(20px, 3vw, 28px) 0;
  background: transparent;
}
.cms-page__heading {
  margin: 0 0 clamp(18px, 2.5vw, 24px);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.cms-page__heading--full {
  font-size: clamp(26px, 3vw, 34px);
}
.cms-page__banner {
  margin-bottom: clamp(20px, 3vw, 28px);
  border-radius: 14px;
  overflow: hidden;
}
.cms-page__banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.cms-page__banner--inset {
  border: 1px solid var(--line);
}
.cms-page__body {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.75;
}
.cms-page__body p {
  margin-bottom: 16px;
}
.cms-page__body p:last-child {
  margin-bottom: 0;
}
.cms-page__body ol,
.cms-page__body ul {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}
.cms-page__body ol {
  list-style: decimal;
}
.cms-page__body ul {
  list-style: disc;
}
.cms-page__body li {
  margin-bottom: 12px;
}
.cms-page__body li:last-child {
  margin-bottom: 0;
}
.cms-page__body h1,
.cms-page__body h2,
.cms-page__body h3,
.cms-page__body h4 {
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.35;
}
.cms-page__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.cms-page__body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cms-page__body a:hover {
  color: var(--primary-dark);
}
.cms-page__sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.5vw, 24px);
}
.cms-page__sidebar-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.cms-page__sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cms-page__sidebar-list li + li {
  margin-top: 6px;
}
.cms-page__sidebar-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.cms-page__sidebar-list a:hover,
.cms-page__sidebar-list li.is-current a {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 34px; }
.team-card { text-align: center; }
.team-card .avatar {
  height: 210px; border-radius: 14px; background: linear-gradient(160deg, #E8F6FA, #C6E9F4);
  display: grid; place-items: center; color: var(--primary-dark); margin-bottom: 12px;
  overflow: hidden;
}
.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 14px;
}
.team-card .avatar svg { width: 70px; height: 70px; }
.team-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.35;
}
.team-card span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.about-team-intro {
  max-width: 760px;
  margin: -12px auto 28px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.about-team-intro p:last-child { margin-bottom: 0; }

/* ---------- About — Vision / Mission ---------- */
.about-vm-section {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--section-light);
}
.about-vm-section__title {
  margin: 0 0 clamp(32px, 4vw, 44px);
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
}
.about-vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
}
.about-vm-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #D8ECF4;
  border-radius: 18px;
  padding: clamp(28px, 3.5vw, 38px) clamp(26px, 3vw, 34px);
  min-height: clamp(220px, 24vw, 260px);
}
.about-vm-card__watermark {
  position: absolute;
  right: clamp(-65px, -4vw, -16px);
  bottom: clamp(70px, -3vw, -8px);
  top: auto;
  width: min(230px, 58%);
  pointer-events: none;
  z-index: 0;
  color: var(--primary);
}
.about-vm-card__watermark img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.11;
  filter: brightness(0) saturate(100%) invert(56%) sepia(72%) saturate(650%) hue-rotate(157deg) brightness(96%) contrast(92%);
}
.about-vm-card__watermark svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.11;
}
.about-vm-card__icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.about-vm-card__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.about-vm-card__icon svg {
  width: 26px;
  height: 26px;
}
.about-vm-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.about-vm-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.about-vm-card__text p {
  margin: 0 0 12px;
}
.about-vm-card__text p:last-child {
  margin-bottom: 0;
}

/* ---------- About — Operational Excellence ---------- */
.about-ops-section {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--white);
}
.about-ops__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.about-ops__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: #E6B800;
}
.about-ops__icon img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.about-ops__icon svg {
  width: 100%;
  height: 100%;
}
.about-ops__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.about-ops__intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: clamp(24px, 3vw, 32px);
}
.about-ops__intro p {
  margin: 0 0 16px;
}
.about-ops__intro p:last-child {
  margin-bottom: 0;
}
.about-ops__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(41, 171, 212, .32);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.about-ops__btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(41, 171, 212, .38);
}
.about-ops__btn-arrow {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}
.about-ops__panel {
  background: #E9FBF3;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
}
.about-ops__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-ops__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.about-ops__item:last-child {
  margin-bottom: 0;
}
.about-ops__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: #4DD2A5;
  color: #fff;
  display: grid;
  place-items: center;
}
.about-ops__check svg {
  width: 14px;
  height: 14px;
}
.about-ops__text {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
.about-ops__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  min-height: 280px;
}
@media (max-width: 991px) {
  .about-ops__grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy vm classes (other pages) */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.vm-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 30px;
  border-top: 4px solid var(--primary);
}
.vm-card h3 { font-size: 19px; margin-bottom: 10px; }
.vm-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- News listing (AFEX NEWS mosaic) ---------- */
.afex-news-section {
  padding: 48px 0 64px;
  background: var(--white);
}
.afex-news-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 36px;
  text-align: center;
}
.afex-news-heading__bar {
  width: 5px;
  height: 34px;
  border-radius: 3px;
  background: var(--primary);
  flex-shrink: 0;
}
.afex-news-empty {
  text-align: center;
  color: var(--muted);
  margin: 0;
}
.afex-news-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(260px, 34%);
  grid-template-rows: minmax(280px, 1fr) minmax(210px, auto);
  gap: 18px;
  margin-bottom: 18px;
}
.afex-news-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 200px;
  background: var(--dark);
  box-shadow: var(--shadow);
}
.afex-news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
  transition: transform .45s ease;
}
.afex-news-card:hover img {
  transform: scale(1.04);
}
.afex-news-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 37, 48, .15) 20%, rgba(14, 37, 48, .92) 100%);
  color: #fff;
}
.afex-news-card__overlay h3 {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #fff;
}
.afex-news-card__overlay p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.afex-news-card--hero { grid-column: 1 / 3; grid-row: 1; min-height: 300px; }
.afex-news-card--small-a { grid-column: 1; grid-row: 2; }
.afex-news-card--small-b { grid-column: 2; grid-row: 2; }
.afex-news-card--tall { grid-column: 3; grid-row: 1 / 3; min-height: 100%; }
.afex-news-mosaic--count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(320px, auto);
}
.afex-news-mosaic--count-1 .afex-news-card--hero { grid-column: 1; grid-row: 1; }
.afex-news-mosaic--count-2 {
  grid-template-columns: 1fr minmax(260px, 38%);
  grid-template-rows: minmax(320px, auto);
}
.afex-news-mosaic--count-2 .afex-news-card--hero { grid-column: 1; grid-row: 1; }
.afex-news-mosaic--count-2 .afex-news-card--small-a,
.afex-news-mosaic--count-2 .afex-news-card--tall { grid-column: 2; grid-row: 1; min-height: 320px; }
.afex-news-mosaic--count-3 .afex-news-card--small-b { display: none; }
.afex-news-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: linear-gradient(135deg, #14313F 0%, #29ABD4 100%);
}
.afex-news-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.afex-news-card--grid {
  min-height: 260px;
}
.afex-news-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.afex-news-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.afex-news-pagination li a,
.afex-news-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(41, 171, 212, .25);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.afex-news-pagination li.is-active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.afex-news-pagination li a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- News detail ---------- */
.afex-news-detail {
  padding: 40px 0 56px;
  background: var(--white);
}
.afex-news-detail__inner {
  max-width: 860px;
}
.afex-news-detail__hero {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.afex-news-detail__hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.afex-news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}
.afex-news-detail__meta-item:not(:last-child)::after {
  content: "•";
  margin-left: 18px;
  color: var(--line);
}
.afex-news-detail__title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
}
.afex-news-detail__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}
.afex-news-detail__body {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 32px;
}
.afex-news-detail__body p {
  margin-bottom: 1.15rem;
}
.afex-news-detail__body p:last-child {
  margin-bottom: 0;
}
.afex-news-detail__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
}
.afex-news-detail__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.afex-news-detail__gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light);
}
.afex-news-detail__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.afex-news-detail__gallery-item:hover img {
  transform: scale(1.04);
}
.afex-news-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.afex-news-detail__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}
.afex-news-detail__back {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.afex-news-detail__back .btn,
.afex-news-detail__back-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.afex-news-detail__back .btn:hover,
.afex-news-detail__back-btn:hover {
  background: var(--primary);
  color: #fff;
}
.afex-news-related {
  padding: clamp(48px, 6vw, 72px) 0 64px;
  background: var(--light);
}
.afex-news-related .afex-news-heading {
  margin-top: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #C6D3DA;
  margin-top: 0;
  padding: clamp(48px, 6vw, 64px) 0 0;
}
.afex-inner-page .site-footer {
  margin-top: 48px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand__logo {
  max-height: 120px;
  width: auto;
  display: block;
}
.footer-brand b { color: #fff; font-size: 22px; }
.footer-brand span { display: block; font-size: 8px; letter-spacing: 2.5px; color: var(--primary); font-weight: 600; }
.footer-socials { display: flex; gap: 12px; flex-shrink: 0; }
.footer-socials a,
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-socials a svg,
.socials a svg {
  width: 18px;
  height: 18px;
}
.footer-socials a:hover,
.socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.footer-desc {
  max-width: 920px;
  font-size: 14px;
  line-height: 1.75;
  color: #B7C6CE;
  margin-bottom: clamp(32px, 4vw, 44px);
}
.footer-desc p,
.footer-profile-box__text p,
.footer-profile-box__title p,
.footer-bottom p {
  margin: 0 0 10px;
}
.footer-desc p:last-child,
.footer-profile-box__text p:last-child,
.footer-profile-box__title p:last-child,
.footer-bottom p:last-child {
  margin-bottom: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr 1.15fr;
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(36px, 5vw, 48px);
}
.footer-col__title,
.footer-cols h5.footer-col__title {
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-contact-title {
  color: #fff;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a,
.footer-cols ul a {
  font-size: 14px;
  line-height: 1.5;
  color: #C6D3DA;
  transition: color .2s ease;
}
.footer-links a:hover,
.footer-cols ul a:hover { color: #fff; }
.footer-contact-line {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
  align-items: flex-start;
  color: #C6D3DA;
}
.footer-contact-line:last-child { margin-bottom: 0; }
.footer-contact-line a { color: inherit; }
.footer-contact-line a:hover { color: #fff; }
.footer-contact-line__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #fff;
  margin-top: 2px;
}
.footer-contact-line__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.footer-profile-box {
  background: rgba(8, 22, 30, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 28px);
}
.footer-profile-box__title,
.profile-box h4 {
  color: #fff;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.35;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-profile-box__text,
.profile-box p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 20px;
}
.footer-profile-box__btn,
.profile-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(41, 171, 212, .32);
  transition: background .25s ease, transform .25s ease;
}
.footer-profile-box__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-profile-box__btn:hover,
.profile-box .btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.footer-newsletter-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0 22px;
  font-size: 13px;
  color: #8298A3;
}
.contact-line { display: flex; gap: 12px; font-size: 13.5px; margin-bottom: 12px; align-items: flex-start; }
.contact-line .ic { color: var(--primary); flex-shrink: 0; }
.profile-box { background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 24px; }

/* ============================================================
   RESPONSIVE — Tablet & Mobile (matches PDF mobile views)
   ============================================================ */
@media (max-width: 992px) {
  .field-row, .cards-3, .fleet-grid, .services-overlay-grid { grid-template-columns: repeat(2, 1fr); }
  .cms-page__grid--left_side,
  .cms-page__grid--right_side {
    grid-template-columns: 1fr;
  }
  .split, .why .inner, .features .inner, .contact-grid, .vm-grid, .about-vm-grid, .about-ops__grid, .service-industries-split, .equipment-intro__inner { grid-template-columns: 1fr; }
  .service-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afex-news-mosaic,
  .afex-news-mosaic--count-1,
  .afex-news-mosaic--count-2,
  .afex-news-mosaic--count-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .afex-news-card--hero,
  .afex-news-card--small-a,
  .afex-news-card--small-b,
  .afex-news-card--tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }
  .afex-news-card--small-b { display: block; }
  .afex-news-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afex-news-detail__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .hero--overlay { padding: 104px 24px 90px; }
  .home-hero-stack { min-height: 520px; }
  .home-quote-band { padding-bottom: 72px; }
  .quote-card--hero { margin: -110px auto 0; }
  .cta-band {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .cta-band__media {
    position: relative;
    width: 100%;
    min-height: 220px;
    clip-path: none;
  }
  .cta-band__media::after {
    background: rgba(17, 54, 72, .48);
  }
}

@media (max-width: 700px) {
  /* Keep quote form behind full-screen mobile menu (quote-card z-index: 40) */
  body.mobile-nav-open {
    overflow: hidden;
  }
  body.mobile-nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(14, 37, 48, .5);
    z-index: 580;
    pointer-events: none;
  }
  body.mobile-nav-open .home-hero-stack {
    z-index: 590;
    position: relative;
  }
  body.mobile-nav-open .site-header,
  body.mobile-nav-open .site-header--hero {
    z-index: 591;
  }
  body.mobile-nav-open .home-quote-band,
  body.mobile-nav-open .quote-card--hero {
    z-index: 1 !important;
    visibility: hidden;
    pointer-events: none;
  }

  /* Mobile nav — primary panel (fixes hero header white-on-white links) */
  .main-nav {
    position: fixed;
    inset: 74px 0 0 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    flex-direction: column;
    gap: 0;
    padding: 12px 5% 28px;
    border-bottom: none;
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 250;
    box-shadow: 0 18px 36px rgba(14, 37, 48, .28);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open {
    transform: translateY(0);
    bottom: 0;
    max-height: none;
    min-height: calc(100vh - 74px);
    z-index: 592;
  }
  .main-nav a,
  .site-header--hero .main-nav a,
  .site-header .main-nav a {
    color: #fff !important;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    font-weight: 600;
  }
  .main-nav a.active,
  .site-header--hero .main-nav a.active,
  .site-header .main-nav a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .14);
  }
  .main-nav a::after,
  .site-header--hero .main-nav a::after {
    display: none !important;
  }
  .main-nav .nav-dropdown-head > a {
    flex: 1;
  }
  .main-nav .nav-submenu-toggle::before {
    border-right-color: #fff !important;
    border-bottom-color: #fff !important;
  }
  .main-nav .nav-dropdown-menu a,
  .site-header--hero .main-nav .nav-dropdown-menu a {
    color: rgba(255, 255, 255, .95) !important;
    border-bottom-color: rgba(255, 255, 255, .14) !important;
    font-weight: 500;
  }
  .main-nav .nav-dropdown-menu a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .1);
  }
  .nav-toggle { display: block; }
  .lang-switch .label { display: none; }

  .hero { padding: 54px 20px 150px; }
  .hero--overlay { padding: 96px 20px 72px; }
  .home-hero-stack { min-height: 480px; }
  .home-quote-band { padding-bottom: 64px; }
  .quote-card--hero { margin: -96px auto 0; }
  .hero h1 { font-size: 30px; }
  .quote-card { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .cards-3, .fleet-grid, .team-grid, .feature-grid, .two-col, .services-overlay-grid, .service-benefits-grid, .service-industries-grid, .afex-news-more-grid, .afex-news-detail__gallery { grid-template-columns: 1fr; }
  .afex-news-mosaic,
  .afex-news-mosaic--count-1,
  .afex-news-mosaic--count-2,
  .afex-news-mosaic--count-3 {
    grid-template-columns: 1fr;
  }
  .page-banner { padding: 38px 26px; }
  .page-banner h1 { font-size: 28px; }
  .page-terms-surface .cms-page--box .container {
    padding-left: 26px;
    padding-right: 26px;
  }
  .section-title { font-size: 25px; }
  .why .inner, .features .inner { padding: 36px 24px; }
  .cta-band__content {
    width: 100%;
    padding: 38px 26px 28px;
  }
  .cta-band h2 { font-size: 24px; }
  .cta-band__btn { width: 100%; text-align: center; }
  .cms-page__plain { padding: 0; }
  .apply-card { padding: 30px 22px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .job-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .job-row .btn { width: 100%; text-align: center; }
  .quote-card .btn { float: none; width: 100%; }
}

/* ============================================================
   RTL — Arabic layout (header, footer, home, inner pages)
   ============================================================ */
html[dir="rtl"],
html[dir="rtl"] body,
.afex-rtl {
  --font: var(--font-ar);
  font-family: var(--font-ar);
}

html[dir="rtl"] .btn,
html[dir="rtl"] button,
html[dir="rtl"] input[type="submit"],
html[dir="rtl"] input[type="button"],
html[dir="rtl"] .quote-modal-btn,
html[dir="rtl"] .footer-profile-box__btn,
html[dir="rtl"] .cta-band__btn,
html[dir="rtl"] .service-industries-btn,
html[dir="rtl"] .service-overlay-card__btn,
html[dir="rtl"] .home-services-slider__card-btn,
html[dir="rtl"] .home-deliver-trust__lead-btn,
html[dir="rtl"] .home-deliver-trust__card-btn,
html[dir="rtl"] .home-why-choose__btn,
html[dir="rtl"] .about-ops__btn,
html[dir="rtl"] .quote-card .btn,
html[dir="rtl"] .quote-card .btn-outline,
html[dir="rtl"] .toggle-pair button,
html[dir="rtl"] .service-type-card,
html[dir="rtl"] .nav-actions .btn,
html[dir="rtl"] .home-contact__form-wrap .form-card .btn,
html[dir="rtl"] .afex-news-detail__back .btn,
body.afex-rtl .btn,
body.afex-rtl button,
body.afex-rtl input[type="submit"],
body.afex-rtl input[type="button"],
body.afex-rtl .quote-modal-btn,
body.afex-rtl .footer-profile-box__btn,
body.afex-rtl .cta-band__btn,
body.afex-rtl .service-industries-btn,
body.afex-rtl .service-overlay-card__btn,
body.afex-rtl .home-services-slider__card-btn,
body.afex-rtl .home-deliver-trust__lead-btn,
body.afex-rtl .home-deliver-trust__card-btn,
body.afex-rtl .home-why-choose__btn,
body.afex-rtl .about-ops__btn,
body.afex-rtl .quote-card .btn,
body.afex-rtl .quote-card .btn-outline,
body.afex-rtl .toggle-pair button,
body.afex-rtl .service-type-card,
body.afex-rtl .nav-actions .btn,
body.afex-rtl .home-contact__form-wrap .form-card .btn,
body.afex-rtl .afex-news-detail__back .btn {
  font-family: var(--font-ar);
}

html[dir="rtl"] [class*="wc-style"],
body.afex-rtl [class*="wc-style"] {
  font-family: var(--font-ar) !important;
}

html[dir="rtl"] .nav-wrap,
html[dir="rtl"] .footer-top,
html[dir="rtl"] .footer-cols,
html[dir="rtl"] .home-about-intro__grid,
html[dir="rtl"] .home-why-choose__inner,
html[dir="rtl"] .home-deliver-trust__inner,
html[dir="rtl"] .home-contact__stage,
html[dir="rtl"] .service-industries-split,
html[dir="rtl"] .about-ops__grid,
html[dir="rtl"] .cms-page__grid--left_side,
html[dir="rtl"] .cms-page__grid--right_side,
html[dir="rtl"] .wizard-steps,
html[dir="rtl"] .field-row,
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .lang-switch {
  direction: rtl;
}

html[dir="rtl"] .main-nav a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .banner-cubes {
  right: auto;
  left: -20px;
  clip-path: polygon(0 0, 65% 0, 100% 100%, 0 100%);
}

html[dir="rtl"] .cms-page__body--plain ol,
html[dir="rtl"] .cms-page__body ol,
html[dir="rtl"] .cms-page__body ul {
  padding-left: 0;
  padding-right: 1.5rem;
}

html[dir="rtl"] .footer-contact-item,
html[dir="rtl"] .about-ops__item,
html[dir="rtl"] .home-why-choose__item {
  text-align: right;
}

html[dir="rtl"] .home-why-choose__btn-arrow,
body.afex-rtl .home-why-choose__btn-arrow {
  transform: scaleX(-1) translateY(-1px);
}

html[dir="rtl"] .home-why-choose-lightbox__close,
body.afex-rtl .home-why-choose-lightbox__close {
  right: auto;
  left: -14px;
}

@media (max-width: 767px) {
  html[dir="rtl"] .home-why-choose-lightbox__close,
  body.afex-rtl .home-why-choose-lightbox__close {
    left: 8px;
    right: auto;
  }
}

html[dir="rtl"] .quote-card,
html[dir="rtl"] .page-banner,
html[dir="rtl"] .container {
  text-align: right;
}

html[dir="rtl"] .nav-dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}

/* Home hero + sliders (below menu) */
html[dir="rtl"] .home-hero-stack,
html[dir="rtl"] .hero--overlay {
  direction: rtl;
}

html[dir="rtl"] .hero--overlay h1,
html[dir="rtl"] .hero--overlay p {
  text-align: center;
}

html[dir="rtl"] .home-about-intro__title,
html[dir="rtl"] .home-services-section__head .home-about-intro__title {
  flex-direction: row-reverse;
}

html[dir="rtl"] .home-services-section__head {
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] .home-clients__head {
  direction: rtl;
}

/* Services slider — same 3D design as English; only card text is RTL */
html[dir="rtl"] .home-services-slider,
html[dir="rtl"] .home-services-slider__stage {
  direction: ltr;
}

html[dir="rtl"] .home-services-slider__viewport,
html[dir="rtl"] .home-services-slider__track {
  direction: ltr;
}

html[dir="rtl"] .home-services-slider__card-overlay {
  direction: rtl;
}

html[dir="rtl"] .home-services-slider__card-copy,
html[dir="rtl"] .home-services-slider__card-title,
html[dir="rtl"] .home-services-slider__card-text {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .home-services-slider__card-btn {
  direction: rtl;
}

html[dir="rtl"] .home-clients__viewport,
html[dir="rtl"] .home-clients__track {
  direction: ltr;
}

html[dir="rtl"] .home-clients__nav--prev {
  left: auto;
  right: clamp(4px, 1.5vw, 12px);
}

html[dir="rtl"] .home-clients__nav--next {
  right: auto;
  left: clamp(4px, 1.5vw, 12px);
}

html[dir="rtl"] .home-clients__nav svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .home-clients__name {
  direction: rtl;
}

html[dir="rtl"] .quote-card .btn {
  float: left;
}

html[dir="rtl"] .site-header--hero .nav-wrap {
  direction: rtl;
}

html[dir="rtl"] .home-quote-band {
  direction: rtl;
}

/* Home / page — Get in touch contact form */
html[dir="rtl"] .home-contact {
  direction: rtl;
}

html[dir="rtl"] .home-contact .container {
  text-align: right;
}

html[dir="rtl"] .home-contact__title {
  text-align: right;
}

html[dir="rtl"] .home-contact__form-wrap {
  right: auto;
  left: clamp(12px, 2.5vw, 28px);
}

html[dir="rtl"] .home-contact__form-wrap .form-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .home-contact__form-wrap .form-card .field label {
  text-align: right;
}

html[dir="rtl"] .home-contact__form-wrap .form-card input:not([type="email"]),
html[dir="rtl"] .home-contact__form-wrap .form-card textarea {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .home-contact__form-wrap .form-card input[type="email"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .contact-form-alert {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .contact-line {
  direction: rtl;
  text-align: right;
}

/* Get In Touch quote modal */
#quoteModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#quoteModal .modal-title {
  order: 1;
  flex: 1;
}
#quoteModal .quote-modal-close {
  order: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1D2B36;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity .2s ease, background-color .2s ease;
}
#quoteModal .quote-modal-close:hover {
  opacity: 1;
  background-color: rgba(14, 37, 48, .08);
}
#quoteModal .quote-modal-close svg {
  display: block;
  width: 18px;
  height: 18px;
}
#quoteModal .quote-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
}
#quoteModal .quote-modal-btn--secondary {
  background-color: #E8ECF0 !important;
  border: 1px solid #D5DCE1 !important;
  color: #1D2B36 !important;
}
#quoteModal .quote-modal-btn--primary {
  background-color: #02457a !important;
  border: 1px solid #02457a !important;
  color: #fff !important;
}

html[dir="rtl"] #quoteModal .modal-header,
body.afex-rtl #quoteModal .modal-header {
  flex-direction: row;
  direction: ltr;
}

html[dir="rtl"] #quoteModal .quote-modal-close,
body.afex-rtl #quoteModal .quote-modal-close {
  order: 1;
  color: #1D2B36;
}

html[dir="rtl"] #quoteModal .modal-title,
body.afex-rtl #quoteModal .modal-title {
  order: 2;
  text-align: right;
  flex: 1;
}

html[dir="rtl"] #quoteModal .modal-body,
html[dir="rtl"] #quoteModal .name-fields {
  direction: rtl;
  text-align: right !important;
}

html[dir="rtl"] #quoteModal .wc-form-label,
html[dir="rtl"] #quoteModal label.wc-form-label,
html[dir="rtl"] #quoteModal .name-fields > span.wc-form-label {
  text-align: right !important;
}

html[dir="rtl"] #quoteModal .form-control:not([type="email"]):not([type="tel"]),
html[dir="rtl"] #quoteModal textarea.form-control {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] #quoteModal .form-control[type="email"],
html[dir="rtl"] #quoteModal .form-control[type="tel"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #quoteModal .quote-modal-footer {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

html[dir="rtl"] #quoteModal .alert {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .home-deliver-trust__pattern {
  left: auto;
  right: max(-80px, -6vw);
}

html[dir="rtl"] .home-deliver-trust__pattern img,
html[dir="rtl"] .home-deliver-trust__pattern svg {
  object-position: right center;
}

html[dir="rtl"] .home-deliver-trust__lead,
html[dir="rtl"] .home-deliver-trust__card {
  text-align: right;
}

/* About — Vision / Mission watermark on left in Arabic */
html[dir="rtl"] .about-vm-section {
  direction: rtl;
}

html[dir="rtl"] .about-vm-section__title {
  text-align: center;
}

html[dir="rtl"] .about-vm-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .about-vm-card__watermark {
  right: auto;
  left: clamp(-65px, -4vw, -16px);
}

/* ---------- Inner pages — Services, News, Terms, CMS ---------- */

/* Services listing overlay cards */
html[dir="rtl"] .services-overlay-section {
  direction: rtl;
}

html[dir="rtl"] .service-overlay-card__overlay,
html[dir="rtl"] .service-overlay-card__copy,
html[dir="rtl"] .service-overlay-card__title,
html[dir="rtl"] .service-overlay-card__text {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .service-overlay-card__btn {
  direction: rtl;
}

/* Service detail — Arabic helpers (DOM order + body class) */
html[dir="rtl"] .service-detail-section,
body.afex-rtl .service-detail-section,
.service-detail-section--rtl {
  direction: rtl;
}

html[dir="rtl"] .service-detail-split,
body.afex-rtl .service-detail-split,
.service-detail-section--rtl .service-detail-split {
  direction: ltr;
}

html[dir="rtl"] .service-detail-section--rtl .service-detail-copy,
html[dir="rtl"] .service-detail-section--rtl .service-detail-title,
html[dir="rtl"] .service-detail-section--rtl .service-detail-body,
body.afex-rtl .service-detail-section--rtl .service-detail-copy,
body.afex-rtl .service-detail-section--rtl .service-detail-title,
body.afex-rtl .service-detail-section--rtl .service-detail-body,
.service-detail-section--rtl .service-detail-copy,
.service-detail-section--rtl .service-detail-title,
.service-detail-section--rtl .service-detail-body,
.service-detail-section--rtl .service-detail-body.about-home-desc {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .service-detail-media img,
body.afex-rtl .service-detail-media img {
  object-position: center;
}

html[dir="rtl"] .service-benefits-section,
html[dir="rtl"] .service-industries-section {
  direction: rtl;
}

html[dir="rtl"] .service-benefit-card {
  text-align: right;
}

html[dir="rtl"] .service-benefit-card__icon {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .service-benefit-card h3,
html[dir="rtl"] .service-benefit-card p {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .service-industries-title,
html[dir="rtl"] .service-industry-card__label {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .service-industries-btn span {
  margin-left: 0;
  margin-right: 6px;
}

html[dir="rtl"] .service-industries-split {
  direction: rtl;
}

/* News listing */
html[dir="rtl"] .afex-news-section,
html[dir="rtl"] .afex-news-related {
  direction: rtl;
}

html[dir="rtl"] .afex-news-heading {
  flex-direction: row-reverse;
}

html[dir="rtl"] .afex-news-mosaic {
  direction: rtl;
}

html[dir="rtl"] .afex-news-card__overlay,
html[dir="rtl"] .afex-news-card__overlay h3,
html[dir="rtl"] .afex-news-card__overlay p {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .afex-news-empty {
  direction: rtl;
}

/* News detail */
html[dir="rtl"] .afex-news-detail {
  direction: rtl;
}

html[dir="rtl"] .afex-news-detail__inner {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .afex-news-detail__meta {
  direction: rtl;
  justify-content: flex-start;
}

html[dir="rtl"] .afex-news-detail__meta-item:not(:last-child)::after {
  margin-left: 0;
  margin-right: 18px;
}

html[dir="rtl"] .afex-news-detail__title,
html[dir="rtl"] .afex-news-detail__lead,
html[dir="rtl"] .afex-news-detail__body,
html[dir="rtl"] .afex-news-detail__body.about-home-desc {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .afex-news-detail__tags {
  direction: rtl;
  justify-content: flex-start;
}

/* Terms & CMS content pages */
html[dir="rtl"] .page-terms-surface,
html[dir="rtl"] .cms-page {
  direction: rtl;
}

html[dir="rtl"] .cms-page__plain,
html[dir="rtl"] .cms-page__panel,
html[dir="rtl"] .cms-page__body,
html[dir="rtl"] .cms-page__body--plain,
html[dir="rtl"] .cms-page__heading,
html[dir="rtl"] .cms-page__heading--plain,
html[dir="rtl"] .cms-page__heading--full {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .cms-page__body--plain ol,
html[dir="rtl"] .cms-page__body--plain ul {
  padding-left: 0;
  padding-right: 1.5rem;
}

html[dir="rtl"] .cms-page__sidebar {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .cms-page__sidebar-list a {
  text-align: right;
}

html[dir="rtl"] .split:not(.service-detail-split) {
  direction: rtl;
}

html[dir="rtl"] .split:not(.service-detail-split) > div:first-child {
  direction: rtl;
  text-align: right;
}

/* Keep service detail columns stable on Arabic (image left, text right) */
html[dir="rtl"] .split.service-detail-split,
body.afex-rtl .split.service-detail-split,
.service-detail-section--rtl .service-detail-split {
  direction: ltr;
}

html[dir="rtl"] .about-home-desc,
html[dir="rtl"] .about-story-body {
  direction: rtl;
  text-align: right;
}

/* Service / page sidebars (gulftech layout) */
html[dir="rtl"] .gs-service-sidebar,
html[dir="rtl"] .gs-service-sidebar .sidebar-service-list li a span,
html[dir="rtl"] .gs-service-sidebar .help-contact {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .gs-service-sidebar--left_side .sidebar-service-list li a,
html[dir="rtl"] .gs-service-sidebar--right_side .sidebar-service-list li a {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gs-service-sidebar--left_side .sidebar-service-list li a span,
html[dir="rtl"] .gs-service-sidebar--right_side .sidebar-service-list li a span {
  text-align: right;
}

html[dir="rtl"] .page-banner h1,
html[dir="rtl"] .page-banner .breadcrumb {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .page-banner .breadcrumb {
  justify-content: flex-start;
}

@media (max-width: 767px) {
  html[dir="rtl"] .page-terms-surface .cms-page--box .container {
    padding-left: 26px;
    padding-right: 26px;
  }
}

/* Equipments — RTL */
html[dir="rtl"] .equipment-intro__inner {
  direction: rtl;
}

html[dir="rtl"] .equipment-intro__copy,
html[dir="rtl"] .equipment-intro__title,
html[dir="rtl"] .equipment-intro__desc {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .equipment-fleet__title {
  text-align: center;
}

html[dir="rtl"] .fleet-item__title {
  direction: rtl;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Back to top ---------- */
.afex-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  left: auto;
  z-index: 9991;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--primary, #29abd4);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 31, 40, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.afex-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.afex-back-to-top:hover {
  background: var(--primary-dark, #0a1f28);
}
.afex-back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}
html[dir="rtl"] .afex-back-to-top {
  right: auto;
  left: 20px;
}

/* ---------- WhatsApp widget side (EN left, AR right) ---------- */
html:not([dir="rtl"]) .wc-style10 .wc-button1,
html:not([dir="rtl"]) .wc-style10 .wc-button2,
html:not([dir="rtl"]) .wc-style10 .wc-button3,
html:not([dir="rtl"]) .wc-style10 .wc-button4,
html:not([dir="rtl"]) .wc-style10 .wc-button5,
html:not([dir="rtl"]) .wc-style10 .wc-button6,
html:not([dir="rtl"]) .wc-style10 .wc-button7,
html:not([dir="rtl"]) .wc-style1.wc-right-bottom,
html:not([dir="rtl"]) .wc-style1 .wc-button,
html:not([dir="rtl"]) .wc-style2 .wc-button,
html:not([dir="rtl"]) .wc-style4,
html:not([dir="rtl"]) .wc-style4 .wc-button,
html:not([dir="rtl"]) .wc-style5,
html:not([dir="rtl"]) .wc-style6,
html:not([dir="rtl"]) .wc-style6 .wc-button,
html:not([dir="rtl"]) .wc-style7,
html:not([dir="rtl"]) .wc-style7 .wc-button,
html:not([dir="rtl"]) .wc-style8 .wc-button,
html:not([dir="rtl"]) .wc-style9 .wc-button,
body:not(.afex-rtl) .wc-style10 .wc-button3,
body:not(.afex-rtl) .wc-style10 .wc-button4,
body:not(.afex-rtl) .wc-style4 .wc-button {
  left: 17px !important;
  right: auto !important;
}
html[dir="rtl"] .wc-style10 .wc-button1,
html[dir="rtl"] .wc-style10 .wc-button2,
html[dir="rtl"] .wc-style10 .wc-button3,
html[dir="rtl"] .wc-style10 .wc-button4,
html[dir="rtl"] .wc-style10 .wc-button5,
html[dir="rtl"] .wc-style10 .wc-button6,
html[dir="rtl"] .wc-style10 .wc-button7,
html[dir="rtl"] .wc-style1.wc-right-bottom,
html[dir="rtl"] .wc-style1 .wc-button,
html[dir="rtl"] .wc-style2 .wc-button,
html[dir="rtl"] .wc-style4,
html[dir="rtl"] .wc-style4 .wc-button,
html[dir="rtl"] .wc-style5,
html[dir="rtl"] .wc-style6,
html[dir="rtl"] .wc-style6 .wc-button,
html[dir="rtl"] .wc-style7,
html[dir="rtl"] .wc-style7 .wc-button,
html[dir="rtl"] .wc-style8 .wc-button,
html[dir="rtl"] .wc-style9 .wc-button,
body.afex-rtl .wc-style10 .wc-button3,
body.afex-rtl .wc-style10 .wc-button4,
body.afex-rtl .wc-style4 .wc-button {
  right: 17px !important;
  left: auto !important;
}
html:not([dir="rtl"]) .wc-style3,
body:not(.afex-rtl) .wc-style3 {
  left: 0 !important;
  right: auto !important;
}
html:not([dir="rtl"]) .wc-style3 .wc-button,
body:not(.afex-rtl) .wc-style3 .wc-button {
  left: 280px !important;
  right: auto !important;
}
html[dir="rtl"] .wc-style3,
body.afex-rtl .wc-style3 {
  right: 0 !important;
  left: auto !important;
}
html[dir="rtl"] .wc-style3 .wc-button,
body.afex-rtl .wc-style3 .wc-button {
  right: 280px !important;
  left: auto !important;
}
