/* ==========================================================================
   Arab MD Group — design system
   Tokens, reset, layout, components. Logical properties only.
   ========================================================================== */

:root {
  --ink: #0F2740;
  --ink-2: #1F2D3A;
  --crescent: #B8272E;
  --crescent-dark: #9E2027;
  --calligraphy: #2078B0;
  --sand: #F6F4EF;
  --rule: #E3DED4;
  --paper: #FFFFFF;
  --muted: #5A6875;
  --on-ink: #E8EEF4;
  --on-ink-muted: #A9BDD1;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --radius: 10px;
  --radius-sm: 2px;

  --fs-display: clamp(2.4rem, 4.6vw + 1rem, 4rem);
  --fs-h1: clamp(2rem, 3vw + 1rem, 3rem);
  --fs-h2: clamp(1.6rem, 2vw + 1rem, 2.25rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-figure: clamp(2.5rem, 4vw, 3.5rem);

  --space-section: 112px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.9;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body { font-size: 1rem; line-height: 1.65; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--calligraphy); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.35; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.45; }
html[lang="en"] h1 { line-height: 1.15; }
html[lang="en"] h2 { line-height: 1.2; }
html[lang="en"] h3 { line-height: 1.3; }

:focus-visible {
  outline: 3px solid var(--calligraphy);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--ink); color: var(--on-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(15 39 64 / .18);
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke-width: 1.75;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--on-ink);
  border-block-end: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.site-header--over { background: transparent; }
.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  border-block-end-color: var(--rule);
}
.site-header.is-scrolled .brand-sub { color: var(--muted); }
.site-header.is-scrolled .nav-link { color: var(--ink); }
.site-header.is-scrolled .center-btn { border-color: var(--ink); }
.site-header.is-scrolled .lang-switch { color: var(--ink); }
.site-header.is-scrolled .menu-toggle { color: var(--ink); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  flex: none;
}
.brand:hover { color: inherit; }
.brand-mark { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.0625rem; font-weight: 700; color: currentColor; }
.brand-sub {
  font-size: .625rem;
  font-weight: 600;
  color: var(--on-ink-muted);
  letter-spacing: .02em;
}
html[lang="en"] .brand-name { font-size: 1.125rem; }

.primary-nav { margin-inline-start: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--on-ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 8px;
  height: 2px;
  background: var(--crescent);
  transform: scaleX(0);
  transform-origin: var(--origin-start, left);
  transition: transform .2s var(--ease);
}
[dir="rtl"] .nav-link::after { transform-origin: right; }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover { color: inherit; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}
.primary-nav + .header-actions { margin-inline-start: 0; }

.center-btn {
  border-color: currentColor;
  color: inherit;
}
.center-btn:hover { background: currentColor; }
.center-btn:hover span,
.center-btn:hover .icon { color: var(--paper); mix-blend-mode: normal; }
[dir="rtl"] .center-btn .icon,
[dir="rtl"] .center-icon { transform: none; }

.lang-switch {
  color: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lang-switch:hover { color: inherit; text-decoration: underline; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: inherit;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile sheet */
.mobile-menu {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 300;
  width: min(92vw, 420px);
  background: var(--paper);
  color: var(--ink);
  padding: 96px 28px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  box-shadow: -24px 0 60px rgb(15 39 64 / .2);
}
[dir="rtl"] .mobile-menu { transform: translateX(-100%); box-shadow: 24px 0 60px rgb(15 39 64 / .2); }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__close {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgb(15 39 64 / .55);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.menu-backdrop.is-open { opacity: 1; }
.mobile-nav { display: grid; gap: 4px; margin-block-end: 28px; }
.mobile-nav__link {
  display: block;
  padding: 14px 0;
  border-block-end: 1px solid var(--rule);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-nav__link.is-active { color: var(--crescent); }
.mobile-menu__actions { display: grid; gap: 12px; margin-block-end: 28px; }
.mobile-menu__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}
.mobile-menu__contact { display: grid; gap: 10px; border-block-start: 1px solid var(--rule); padding-block-start: 20px; }
.mobile-menu__contact a { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { color: inherit; }
.btn--primary { background: var(--crescent); border-color: var(--crescent); color: #fff; }
.btn--primary:hover { background: var(--crescent-dark); border-color: var(--crescent-dark); color: #fff; }
.btn--secondary { border-color: currentColor; color: inherit; }
.btn--secondary:hover { background: rgb(255 255 255 / .1); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .875rem; border-radius: 8px; }
.btn--on-ink { border-color: var(--on-ink); color: var(--on-ink); }
.btn--on-ink:hover { background: var(--on-ink); color: var(--ink); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #1A679B;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
[dir="ltr"] .link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: translateX(-4px); }
[dir="rtl"] .link-arrow .icon { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  max-height: 920px;
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-media, .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster { z-index: 0; }
.hero-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgb(15 39 64 / .88) 0%, rgb(15 39 64 / .62) 45%, rgb(15 39 64 / .18) 100%);
}
[dir="rtl"] .hero-shade {
  background: linear-gradient(270deg, rgb(15 39 64 / .88) 0%, rgb(15 39 64 / .62) 45%, rgb(15 39 64 / .18) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  max-height: 920px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: calc(var(--header-h) + 72px) 120px;
}
.hero-content { max-width: 640px; margin-block-end: auto; padding-block-start: 8vh; }
.hero-kicker {
  display: inline-block;
  margin-block-end: 18px;
  color: var(--on-ink);
  font-size: .875rem;
  font-weight: 700;
  border-inline-start: 3px solid var(--crescent);
  padding-inline-start: 12px;
}
.hero-title {
  color: #fff;
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.25;
  margin-block-end: 20px;
  max-width: 15ch;
}
html[lang="en"] .hero-title { line-height: 1.08; max-width: 18ch; }
.hero-sub {
  color: var(--on-ink);
  font-size: var(--fs-lead);
  line-height: 1.85;
  max-width: 58ch;
  margin-block-end: 28px;
}
html[lang="en"] .hero-sub { line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn--secondary { border-color: var(--on-ink); color: var(--on-ink); }
.hero-ctas .btn--secondary:hover { background: var(--on-ink); color: var(--ink); }

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-block-start: 1px solid rgb(232 238 244 / .25);
  padding-block-start: 18px;
}
.hero-strip { color: var(--on-ink); font-size: .875rem; font-weight: 600; max-width: 52ch; }
.hero-strip strong { color: #fff; font-weight: 800; }
.hero-buttons { display: flex; align-items: center; gap: 8px; }
.slide-btn {
  position: relative;
  min-width: 92px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgb(232 238 244 / .35);
  border-radius: 8px;
  background: transparent;
  color: var(--on-ink);
  font-size: .75rem;
  font-weight: 600;
  text-align: start;
  overflow: hidden;
}
.slide-btn::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 100%;
  background: var(--crescent);
  transform: scaleX(0);
  transform-origin: var(--origin-start, left);
}
[dir="rtl"] .slide-btn::after { transform-origin: right; }
.slide-btn.is-active { border-color: var(--on-ink); }
.slide-btn.is-active::after { transform: scaleX(1); }
.slide-btn.is-playing::after { animation: slide-progress 9s linear forwards; }
@keyframes slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-pause {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(232 238 244 / .35);
  border-radius: 8px;
  background: transparent;
  color: var(--on-ink);
}

/* --------------------------------------------------------------------------
   Page title band
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: calc(var(--header-h) + 88px) 72px;
}
.page-hero h1 { color: #fff; margin-block-end: 14px; max-width: 24ch; }
.page-hero .lead { color: var(--on-ink); max-width: 62ch; font-size: var(--fs-lead); line-height: 1.85; }
.page-hero .kicker { color: var(--on-ink-muted); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--space-section); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--tight { padding-block: 72px; }

.section-head { max-width: 760px; margin-block-end: 44px; }
.section-head--wide { max-width: 900px; }
.kicker {
  display: inline-block;
  margin-block-end: 14px;
  color: var(--crescent);
  font-size: 1.125rem;
  font-weight: 700;
}
html[lang="en"] .kicker { font-size: 1.125rem; }
.section-head h2 { margin-block-end: 14px; }
.lead { font-size: var(--fs-lead); line-height: 1.85; color: var(--ink-2); }
html[lang="en"] .lead { line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split-text p { max-width: 62ch; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Figures ledger */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}
.figure {
  padding: 28px 24px;
  border-inline-start: 1px solid var(--rule);
}
.figure:first-child { border-inline-start: 0; }
.figure-value {
  display: block;
  color: var(--ink);
  font-size: var(--fs-figure);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-block-end: 10px;
}
.figure-title { display: block; font-weight: 700; color: var(--ink); font-size: 1.0625rem; line-height: 1.4; margin-block-end: 4px; }
.figure-note { display: block; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }
.figures--extras { margin-block-start: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block-start: 0; }
.figures--extras .figure { border-inline-start: 0; padding-inline: 0; }

/* Sectors hub */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "c1 h c2" "c3 h c4"; gap: 20px; align-items: stretch; }
.sector { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.sector:nth-child(1) { grid-area: c1; }
.sector:nth-child(2) { grid-area: c2; }
.sector:nth-child(3) { grid-area: c4; }
.sector:nth-child(4) { grid-area: c3; }
.sector--hub { grid-area: h; background: var(--ink); color: var(--on-ink); border-color: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 40px 28px; }
.sector--hub h3 { color: #fff; font-size: 1.5rem; }
.sector--hub p { color: var(--on-ink); }
.sector--hub .sector-num { color: var(--on-ink-muted); }
.sector h3 { font-size: 1.125rem; margin-block-end: 8px; }
.sector p { color: var(--muted); font-size: .9375rem; line-height: 1.75; margin: 0; }
.sector.sector--hub p { color: var(--on-ink); }
.sector-num { display: block; margin-block-end: 10px; color: #1A679B; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sector-icon { width: 30px; height: 30px; color: var(--calligraphy); margin-block-end: 14px; }
.sector--hub .sector-icon { color: var(--on-ink); width: 38px; height: 38px; }

/* Hajj */
.hajj-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hajj-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-block: 28px; }
.hajj-figure { background: var(--sand); padding: 18px; }
.hajj-figure strong { display: block; color: var(--ink); font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hajj-figure span { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.5; margin-block-start: 4px; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; }
.flags img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; border: 1px solid var(--rule); }
.flags img[alt] { display: block; }
.map-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
}
.map-wrap svg { width: 100%; height: auto; }
.hajj-map .route { fill: none; stroke: var(--calligraphy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hajj-map .node { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.hajj-map .node--branch { stroke: var(--crescent); stroke-width: 3; }
.hajj-map .label { fill: var(--ink); font-family: "Cairo", sans-serif; font-size: 11px; font-weight: 600; }
.hajj-map .label--small { font-size: 9px; fill: var(--muted); }
.hajj-map .pulse { fill: none; stroke: var(--crescent); stroke-width: 2; opacity: 0; }
.hajj-map .vehicle { fill: var(--crescent); }
.hajj-map .break { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 4 4; }
.map-caption { margin-block-start: 10px; color: var(--muted); font-size: .75rem; }

/* Projects */
.project-list { border-block-start: 1px solid var(--rule); }
.project-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding-block: 26px;
  border-block-end: 1px solid var(--rule);
  align-items: center;
}
.project-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.project-row h3 { margin-block-end: 6px; font-size: 1.125rem; }
.project-row p { color: var(--muted); font-size: .9375rem; line-height: 1.75; margin: 0; }

/* Logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 20px;
  border-inline-start: 1px solid var(--rule);
  border-block-start: 1px solid var(--rule);
}
.logo-cell:nth-child(-n+6) { border-block-start: 0; }
.logo-cell:nth-child(6n+1) { border-inline-start: 0; }
.logo-cell img { max-height: 48px; max-width: 100%; width: auto; object-fit: contain; }
.compliance-line { margin-block-start: 20px; color: var(--muted); font-size: .875rem; line-height: 1.8; }

/* Medical center card */
.center-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.center-card__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.center-card__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.center-card__tag { color: var(--crescent); font-weight: 700; font-size: 1.125rem; margin-block-end: 10px; }
.center-card__body h2 { margin-block-end: 14px; }
.center-card__body p { color: var(--muted); margin-block-end: 24px; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--on-ink); padding-block: 88px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { color: #fff; margin-block-end: 10px; }
.cta-inner p { color: var(--on-ink); max-width: 60ch; margin: 0; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.chairman { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.chairman-quote { font-size: 1.125rem; line-height: 1.95; }
html[lang="en"] .chairman-quote { line-height: 1.7; }
.chairman-sign { margin-block-start: 24px; padding-block-start: 18px; border-block-start: 1px solid var(--rule); }
.chairman-sign strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.chairman-sign span { color: var(--muted); font-size: .875rem; }
.chairman-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.vision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.vision-item { border-block-start: 3px solid var(--crescent); padding-block-start: 18px; }
.vision-item h3 { font-size: 1.125rem; }
.vision-item p { color: var(--muted); font-size: .9375rem; line-height: 1.8; }

.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.value-item { background: var(--paper); padding: 28px; }
.value-item h3 { font-size: 1.0625rem; margin-block-end: 8px; }
.value-item p { color: var(--muted); font-size: .9375rem; line-height: 1.75; margin: 0; }
.value-num { display: block; color: var(--calligraphy); font-size: .75rem; font-weight: 700; margin-block-end: 12px; font-variant-numeric: tabular-nums; }

.timeline { position: relative; margin-block-start: 8px; padding-inline-start: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 5px;
  width: 2px;
  background: var(--rule);
}
.timeline-progress { position: absolute; inset-block-start: 0; inset-inline-start: 5px; width: 2px; height: 0; background: var(--calligraphy); }
.timeline-item { position: relative; padding-block-end: 32px; }
.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -28px;
  inset-block-start: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--calligraphy);
}
.timeline-item:last-child { padding-block-end: 0; }
.timeline-year { display: block; color: var(--ink); font-weight: 800; font-size: 1.0625rem; margin-block-end: 4px; font-variant-numeric: tabular-nums; }
.timeline-item p { color: var(--muted); margin: 0; max-width: 60ch; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data caption { text-align: start; padding: 18px 20px; font-weight: 700; color: var(--ink); }
table.data th, table.data td { padding: 12px 16px; text-align: start; border-block-start: 1px solid var(--rule); font-size: .9375rem; }
table.data thead th { background: var(--sand); color: var(--ink); font-weight: 700; border-block-start: 0; }
table.data td.num, table.data th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 800; color: var(--ink); background: var(--sand); }
.bar-cell { min-width: 120px; }
.bar { display: block; margin-inline-end: auto; height: 6px; background: var(--calligraphy); border-radius: 3px; transform-origin: var(--origin-start, left); }
[dir="rtl"] .bar { transform-origin: right; }
.flag-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.flag-cell img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; border: 1px solid var(--rule); }

.clients-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.client-group h3 { font-size: 1.0625rem; margin-block-end: 8px; }
.client-group p { color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: .8125rem; }

.compliance-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.compliance-item { background: var(--paper); padding: 18px 20px; }
.compliance-item strong { display: block; color: var(--ink); font-size: .9375rem; }
.compliance-item span { color: var(--muted); font-size: .8125rem; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.services-layout > * { min-width: 0; }
.services-index { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.services-index h2 { font-size: .875rem; color: var(--muted); margin-block-end: 12px; font-weight: 700; }
.services-index ol { border-inline-start: 2px solid var(--rule); min-width: 0; }
.services-index a {
  display: block;
  padding: 9px 0 9px 14px;
  margin-inline-start: -2px;
  border-inline-start: 2px solid transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}
[dir="rtl"] .services-index a { padding: 9px 14px 9px 0; }
.services-index a:hover { color: var(--ink); }
.services-index a.is-active { color: var(--ink); border-inline-start-color: var(--crescent); }

.service-block { padding-block: 44px; border-block-start: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 24px); }
.service-block:first-child { border-block-start: 0; padding-block-start: 0; }
.service-block h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin-block-end: 10px; }
.service-promise { color: var(--crescent); font-size: 1.125rem; font-weight: 700; margin-block-end: 14px; }
.service-desc { color: var(--ink-2); max-width: 68ch; }
.scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-block: 18px 0; }
.scope-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .9375rem; line-height: 1.7; }
.scope-list .icon { color: var(--calligraphy); width: 18px; height: 18px; margin-block-start: 4px; }
.svc-meta { display: grid; gap: 12px; margin-block-start: 18px; }
.svc-meta p { margin: 0; font-size: .9375rem; color: var(--muted); }
.svc-meta strong { color: var(--ink); }
.svc-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-block: 20px; }
.svc-model { background: var(--paper); padding: 20px; }
.svc-model h3 { font-size: 1rem; margin-block-end: 6px; }
.svc-model p { font-size: .875rem; color: var(--muted); margin-block-end: 8px; }
.svc-model span { font-size: .75rem; color: var(--calligraphy); }
.svc-note { border-inline-start: 3px solid var(--calligraphy); background: var(--sand); padding: 14px 18px; font-size: .875rem; color: var(--ink-2); margin-block: 18px; }
.svc-photo { margin-block: 22px; }
.svc-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
.svc-cta { margin-block-start: 22px; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.step { border-block-start: 2px solid var(--rule); padding-block-start: 14px; }
.step-num { display: block; color: var(--calligraphy); font-size: .8125rem; font-weight: 800; margin-block-end: 8px; }
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: .8125rem; line-height: 1.65; margin: 0; }

.readiness { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-block: 18px; }
.readiness-item { background: var(--paper); padding: 18px; }
.readiness-item h3 { font-size: 1rem; margin-block-end: 6px; }
.readiness-item p { color: var(--muted); font-size: .875rem; margin: 0; }

/* --------------------------------------------------------------------------
   Branches
   -------------------------------------------------------------------------- */
.branch-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin-block-end: 32px; }
.branch-card__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.branch-card__body { padding: 32px; }
.branch-card__body h2 { margin-block-end: 6px; }
.branch-card__address { color: var(--muted); margin-block-end: 16px; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.branch-map { margin-block-start: 18px; }
.branch-map iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }
.map-placeholder { background: var(--sand); border: 1px dashed var(--rule); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.map-placeholder p { margin: 0; color: var(--muted); font-size: .875rem; }

.specialty-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.specialty-chips .chip { font-size: .875rem; padding: 8px 14px; }
.diag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.diag-item h3 { font-size: 1.0625rem; }
.diag-item p { color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.info-line { border-inline-start: 3px solid var(--crescent); background: var(--sand); padding: 16px 20px; color: var(--ink-2); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.contact-form { background: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .875rem; font-weight: 600; }
.req { color: var(--crescent); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--calligraphy);
  box-shadow: 0 0 0 3px rgb(32 120 176 / .18);
}
.field .hint { color: var(--muted); font-size: .75rem; }
.field .error { color: var(--crescent); font-size: .8125rem; font-weight: 600; min-height: 0; }
.field .error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--crescent); }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-img { border: 1px solid var(--rule); border-radius: 6px; height: 56px; width: 160px; background: var(--sand); }
.captcha-refresh { background: none; border: 0; color: var(--calligraphy); font-size: .8125rem; font-weight: 600; text-decoration: underline; padding: 8px 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 20px; height: 20px; min-height: 0; margin-block-start: 3px; accent-color: var(--crescent); }
.checkbox-row label { font-weight: 400; color: var(--ink-2); font-size: .875rem; line-height: 1.6; }
.form-actions { margin-block-start: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .4); border-block-start-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-sending .spinner { display: inline-block; }
.form-success { border: 1px solid var(--rule); border-inline-start: 4px solid var(--calligraphy); background: var(--sand); padding: 20px; border-radius: var(--radius); color: var(--ink); font-weight: 600; }
.form-success[hidden] { display: none; }

.contact-details { background: var(--sand); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; }
.contact-details h2 { font-size: 1.25rem; margin-block-end: 18px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .9375rem; line-height: 1.7; }
.contact-list .icon { color: var(--calligraphy); margin-block-start: 4px; }
.contact-list a { color: var(--ink-2); text-decoration: none; }
.contact-list a:hover { color: var(--calligraphy); text-decoration: underline; }
.contact-sub { margin-block-start: 24px; padding-block-start: 18px; border-block-start: 1px solid var(--rule); }
.contact-sub h3 { font-size: .875rem; color: var(--muted); margin-block-end: 8px; }
.contact-sub p { font-size: .875rem; color: var(--ink-2); margin-block-end: 4px; }
.contact-map { margin-block-start: 32px; }
.contact-map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; padding-block: 120px; }
.notfound__code { color: var(--crescent); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; margin: 0; }
.notfound h1 { font-size: var(--fs-h2); }
.notfound p { color: var(--muted); max-width: 50ch; margin-inline: auto; }
.notfound .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-block-start: 24px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding-block: 72px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr 1fr; gap: 48px; }
.brand--footer .brand-name { color: #fff; }
.brand--footer .brand-sub { color: var(--on-ink-muted); }
.footer-about { color: var(--on-ink-muted); font-size: .875rem; line-height: 1.8; margin-block: 20px; }
.footer-profile { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink); font-size: .875rem; font-weight: 600; text-decoration: none; }
.footer-profile:hover { color: #fff; }
.footer-title { color: #fff; font-size: .875rem; font-weight: 700; margin-block-end: 16px; }
.footer-title--legal { margin-block-start: 24px; }
.footer-links, .footer-contact, .footer-branches, .footer-legal { display: grid; gap: 10px; }
.footer-links a, .footer-contact a, .footer-branches span, .footer-legal li { color: var(--on-ink-muted); font-size: .875rem; line-height: 1.7; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact a, .footer-branches li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .icon, .footer-branches .icon { color: var(--calligraphy); width: 16px; height: 16px; margin-block-start: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block-start: 56px;
  padding-block-start: 22px;
  border-block-start: 1px solid rgb(232 238 244 / .16);
}
.copyright { color: var(--on-ink-muted); font-size: .8125rem; margin: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 16px; }
.social-links a { color: var(--on-ink); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.social-links a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .services-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .split, .hajj-grid, .chairman, .center-card, .branch-card, .contact-layout { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .chairman-media { order: -1; }
  .chairman-media img { aspect-ratio: 16 / 9; }
  .center-card__media { order: -1; }
  .center-card__media img { min-height: 260px; }
  .branch-card__media { order: -1; }
  .sectors { grid-template-columns: 1fr 1fr; grid-template-areas: "h h" "c1 c2" "c3 c4"; }
  .vision-grid, .diag-grid { grid-template-columns: 1fr; gap: 24px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc-models { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-cell:nth-child(-n+6) { border-block-start: 1px solid var(--rule); }
  .logo-cell:nth-child(-n+3) { border-block-start: 0; }
  .logo-cell:nth-child(3n+1) { border-inline-start: 0; }
  .logo-cell:nth-child(6n+1) { border-inline-start: 1px solid var(--rule); }
}

@media (max-width: 768px) {
  :root { --space-section: 72px; --header-h: 64px; --gutter: 18px; }
  .lang-switch { display: none; }
  .header-actions { gap: 8px; }
  .hero, .hero-inner { min-height: 88svh; }
  .hero-inner { padding-block-end: 96px; }
  .hero-content { padding-block-start: 4vh; }
  .hero-title { max-width: 100%; }
  .hero-sub { font-size: 1.0625rem; }
  .hero-controls { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-strip { order: 2; font-size: .8125rem; }
  .hero-buttons { order: 1; justify-content: space-between; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure { border-block-start: 1px solid var(--rule); }
  .figure:nth-child(-n+2) { border-block-start: 0; }
  .figure:nth-child(odd) { border-inline-start: 0; }
  .project-row { grid-template-columns: 1fr; gap: 14px; }
  .project-row img { max-width: 100%; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { min-height: 92px; }
  .logo-cell:nth-child(-n+3) { border-block-start: 1px solid var(--rule); }
  .logo-cell:nth-child(-n+2) { border-block-start: 0; }
  .logo-cell:nth-child(3n+1) { border-inline-start: 1px solid var(--rule); }
  .logo-cell:nth-child(2n+1) { border-inline-start: 0; }
  .services-layout { grid-template-columns: minmax(0, 1fr); }
  .services-index { position: static; top: auto; }
  .services-index ol { display: flex; gap: 8px; overflow-x: auto; border: 0; padding-block-end: 8px; scrollbar-width: thin; }
  .services-index a { white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; margin: 0; }
  .services-index a.is-active { border-color: var(--crescent); }
  .scope-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .readiness { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .clients-grid, .compliance-list { grid-template-columns: 1fr; }
  .figures--extras { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding-block: 64px; }
  .page-hero { padding-block: calc(var(--header-h) + 56px) 52px; }
  .center-card__body { padding: 28px; }
  .branch-card__body { padding: 24px; }
  .contact-details { padding: 24px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: .9375rem; }
  .brand-sub { font-size: .5625rem; }
  .header-actions { gap: 8px; }
  .center-btn span { display: none; }
  .center-btn { width: 42px; padding: 0; }
  .lang-switch { font-size: .8125rem; }
  .hero-ctas .btn { width: 100%; }
  .figures { grid-template-columns: 1fr; }
  .figure { border-inline-start: 0; }
  .figure:nth-child(2) { border-block-start: 1px solid var(--rule); }
  .hajj-figures { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .figures--extras { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: 1fr; }
  .logo-cell { border-inline-start: 0 !important; }
}

/* --------------------------------------------------------------------------
   Motion fallbacks
   -------------------------------------------------------------------------- */
.no-js .hero-slide:not(:first-child) { display: none; }
.no-js .hero-slide:first-child { opacity: 1; visibility: visible; }
.no-js .hero-pause, .no-js .slide-btn { display: none; }
.js .hero-slide:not(.is-active) video { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active video { display: none; }
  .timeline-progress { height: 100% !important; }
  .bar { transform: none !important; }
}

/* --- added with the page build ------------------------------------------- */
.hp {
  position: absolute !important;
  inset-inline-start: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.slide-btn { display: inline-flex; align-items: center; gap: 8px; }
.slide-btn__num { font-variant-numeric: tabular-nums; font-weight: 800; opacity: .7; }
.map-node { cursor: pointer; }
.map-node:focus-visible .node { stroke: var(--calligraphy); stroke-width: 3; }
.map-node:hover .node { stroke: var(--crescent); }
.js .hajj-map.is-armed .route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hajj-map.is-armed .node,
.js .hajj-map.is-armed .label { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .hajj-map.is-armed .route { stroke-dashoffset: 0; }
  .js .hajj-map.is-armed .node,
  .js .hajj-map.is-armed .label { opacity: 1; }
}

.icon[hidden] { display: none !important; }
.hero-copy.is-entering .hero-kicker { animation: hero-in .45s var(--ease) both; }
.hero-copy.is-entering .hero-title { animation: hero-in .55s var(--ease) .06s both; }
.hero-copy.is-entering .hero-sub { animation: hero-in .55s var(--ease) .16s both; }
.hero-copy.is-entering .hero-ctas { animation: hero-in .55s var(--ease) .26s both; }
@keyframes hero-in { from { transform: translateY(16px); } to { transform: translateY(0); } }

.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }

.site-header .center-btn { color: inherit; border-color: currentColor; }
.site-header .center-btn:hover { background: transparent; color: var(--crescent); border-color: var(--crescent); }
.site-header .center-btn:hover span,
.site-header .center-btn:hover .icon { color: inherit; }

.no-js .hero-video { display: none; }
.no-js .hero-buttons { display: none; }
