/* ==========================================================================
   IBDL X — Design system
   Brand: navy #1d1d39 · red #e11119 · green #419257
   Type:  Calibri (Carlito is the metric-compatible fallback)
   ========================================================================== */

/* ---------- 0. Arabic typeface — Cairo (self-hosted) --------------------- */
/* Served from our own origin, so it needs no third-party connection and is
   covered by the strict CSP. font-display: swap keeps first paint immediate. */
@font-face {
  font-family: "Cairo";
  src: url("/assets/fonts/Cairo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("/assets/fonts/Cairo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("/assets/fonts/Cairo-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --navy: #1d1d39;
  --navy-900: #14142a;
  --navy-800: #1d1d39;
  --navy-700: #2a2a4d;
  --navy-600: #3a3a63;
  --red: #e11119;
  --red-dark: #b70d14;
  --green: #419257;
  --green-dark: #337545;

  /* Neutrals */
  --white: #ffffff;
  --paper: #fbfbfc;
  --mist: #f2f3f6;
  --line: #e2e4ea;
  --line-dark: rgba(255, 255, 255, 0.14);
  --ink: #1d1d39;
  --ink-soft: #4e5068;
  --ink-mute: #74768c;
  --on-dark: rgba(255, 255, 255, 0.94);
  --on-dark-soft: rgba(255, 255, 255, 0.72);
  --on-dark-mute: rgba(255, 255, 255, 0.52);

  /* Typography
     Every heading size is driven by these five variables — adjust here and the
     whole page rescales consistently. Each clamp() is (minimum, fluid, maximum);
     the last value is the cap on large screens. */
  --font: Calibri, Carlito, Candara, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.1rem, 1.25rem + 3.2vw, 4rem);   /* hero headline */
  --fs-h1: clamp(1.85rem, 1.15rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.55rem, 1.05rem + 1.8vw, 2.4rem);     /* section headings */
  --fs-h3: clamp(1.1rem, 0.98rem + 0.6vw, 1.4rem);
  --fs-lead: clamp(1.02rem, 0.97rem + 0.32vw, 1.18rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --fs-small: 0.9375rem;
  --fs-kicker: 0.78rem;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1280px;
  --maxw-narrow: 940px;
  --section-y: clamp(5rem, 10vw, 9.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(29, 29, 57, 0.06), 0 4px 14px rgba(29, 29, 57, 0.06);
  --shadow-md: 0 18px 50px -18px rgba(29, 29, 57, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(20, 20, 42, 0.55);

  --header-h: 88px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  padding: 0.85rem 1.5rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

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

/* ---------- 3. Layout primitives ---------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy); color: var(--on-dark); }

.section-head { max-width: 62ch; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.35rem;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  transform-origin: left;
}
.section--dark .kicker { color: #ff5a60; }
.section--dark .kicker::before { background: #ff5a60; }

.h1 { font-size: var(--fs-h1); }
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-soft);
}
.section--dark .lead { color: var(--on-dark-soft); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.9rem;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  transform: translateX(-101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::after { transform: translateX(0); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(225, 17, 25, 0.65);
}
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--red); }
.btn--primary:hover { --btn-bg: var(--red-dark); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  box-shadow: none;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  box-shadow: 0 14px 30px -14px rgba(29, 29, 57, 0.6);
}

.btn--green { --btn-bg: var(--green); }
.btn--green:hover {
  --btn-bg: var(--green-dark);
  box-shadow: 0 14px 30px -12px rgba(65, 146, 87, 0.6);
}

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn .btn-arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- 5. Header ---------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), height 0.4s var(--ease),
              box-shadow 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 42, 0.55), rgba(20, 20, 42, 0));
  opacity: 1;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck {
  height: 72px;
  background: rgba(29, 29, 57, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.7);
}
.site-header.is-stuck::before { opacity: 0; }

.site-header .shell {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
}

/* The logo asset is the white IBDL X lockup on a transparent background —
   it already contains the X mark, so it sits directly on the dark surfaces
   (hero, stuck header, footer, modal header) with no plate behind it. */
.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-mark { display: flex; }
.brand-link img {
  width: auto;
  transition: height 0.4s var(--ease), opacity 0.3s var(--ease);
}
.brand-link:hover img { opacity: 0.85; }
.site-header .brand-link img { height: 34px; }
.site-header.is-stuck .brand-link img { height: 29px; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 2rem);
}
.site-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0.1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: #fff; }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* The nav's own CTA belongs to the mobile menu only — on desktop the
   .header-cta button is the single call to action. */
.site-nav .nav-cta { display: none; }

.header-cta { flex-shrink: 0; }
.header-cta .btn {
  padding: 0.7rem 1.4rem;
  min-height: 44px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px auto;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -12% 0 -12% 0;
  z-index: -3;
  will-change: transform;
}
.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(20, 20, 42, 0.82) 0%, rgba(20, 20, 42, 0.42) 32%, rgba(20, 20, 42, 0.86) 78%, rgba(20, 20, 42, 0.97) 100%),
    linear-gradient(100deg, rgba(29, 29, 57, 0.88) 0%, rgba(29, 29, 57, 0.35) 55%, rgba(29, 29, 57, 0.1) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 80% at 20% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 80% at 20% 30%, #000 0%, transparent 72%);
  opacity: 0.9;
  will-change: transform;
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-top: calc(var(--header-h) + clamp(3rem, 10vh, 7rem));
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  color: #fff;
  will-change: transform, opacity;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.05rem 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(225, 17, 25, 0.7);
  animation: pulse-dot 2.8s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(225, 17, 25, 0.65); }
  70%  { box-shadow: 0 0 0 12px rgba(225, 17, 25, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 17, 25, 0); }
}

.hero__title {
  margin-top: 1.4rem;
  max-width: 24ch;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}
.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.11em;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-in 0.9s 1.15s var(--ease-out) forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }

.hero__sub {
  margin-top: 1.3rem;
  max-width: 46ch;
  font-size: clamp(1rem, 0.94rem + 0.42vw, 1.2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.hero__lead {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.72);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}
.hero__meta strong { color: #fff; font-weight: 700; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 6vh, 4.5rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  writing-mode: vertical-rl;
  transition: color 0.3s var(--ease);
}
.hero__scroll:hover { color: #fff; }
.hero__scroll .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll .line::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 22px;
  background: var(--red);
  animation: scroll-trace 2.4s infinite var(--ease);
}
@keyframes scroll-trace {
  0%   { transform: translateY(-24px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(62px); opacity: 0; }
}

/* ---------- 7. Track record band ---------------------------------------- */
.record {
  background: var(--navy);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.record::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 38%, var(--green) 38% 62%, transparent 62%);
}
.record__inner {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.record__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 3rem);
}
.stat { border-top: 1px solid var(--line-dark); padding-top: 1.1rem; }
.stat__value {
  font-size: clamp(1.55rem, 1.15rem + 1.25vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat:nth-child(3n + 1) .stat__value { color: #ff5a60; }
.stat:nth-child(3n + 2) .stat__value { color: #5fbd7b; }
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--on-dark-mute);
}

/* ---------- 8. About ----------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: stretch;
}
.about__aside { position: relative; }
.about__figure {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
  height: 100%;
  min-height: clamp(240px, 26vw, 360px);
  box-shadow: var(--shadow-md);
}
.about__figure picture {
  display: block;
  width: 100%;
  height: 100%;
}
.about__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}
.about__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 29, 57, 0.25), rgba(29, 29, 57, 0.85));
}
.about__body p + p { margin-top: 1.35rem; }
.about__body p { color: var(--ink-soft); font-size: var(--fs-lead); }
.about__body p:first-of-type { color: var(--ink); }

/* ---------- 8b. Vision & Mission band ------------------------------------ */
.vm-band {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vm-band__bg {
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  background:
    radial-gradient(48% 55% at 18% 22%, rgba(225, 17, 25, 0.20), transparent 66%),
    radial-gradient(48% 55% at 82% 78%, rgba(65, 146, 87, 0.20), transparent 66%);
  will-change: transform;
}
.vm-band__inner { padding-block: clamp(4rem, 8vw, 7.5rem); }

.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.vm-panel {
  position: relative;
  padding-left: clamp(1.5rem, 2.5vw, 2.5rem);
  overflow: hidden;
}
/* Full-height accent spine that draws itself in on reveal */
.vm-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: currentColor;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s var(--ease-out) 0.15s;
}
.vm-panel.is-in::before { transform: scaleY(1); }
.vm-panel--vision { color: var(--red); }
.vm-panel--mission { color: var(--green); }

/* The legible icon, beside the label */
.vm-panel__icon {
  display: grid;
  place-items: center;
  width: clamp(2.1rem, 3vw, 2.6rem);
  height: clamp(2.1rem, 3vw, 2.6rem);
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.5s var(--ease-out);
}
.vm-panel__icon svg { width: 100%; height: 100%; }
.vm-panel:hover .vm-panel__icon { transform: scale(1.06); }

.vm-panel__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
}
.vm-panel__label {
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.vm-panel__text {
  font-size: clamp(1.02rem, 0.97rem + 0.34vw, 1.2rem);
  line-height: 1.72;
  color: var(--on-dark-soft);
  max-width: 52ch;
}

@media (prefers-reduced-motion: reduce) {
  .vm-panel::before { transform: scaleY(1) !important; }
}

/* ---------- 9. Offerings (editorial rows) -------------------------------- */
.offer__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.offer__statement {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--ink-soft);
}
.offer__statement::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em; bottom: 0.35em;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--green));
}

.offer-list { border-top: 1px solid var(--line); }
/* Paragraph always in the centre column; the numeral sits in the side column
   immediately beside it — outer side for odd rows, inner for even.
   Because the columns are placed by grid line (not by left/right), RTL
   mirrors the whole rhythm automatically: what is left in English is right
   in Arabic. */
.offer-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: start;
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.45s var(--ease);
}
/* Both children are pinned to row 1 explicitly. Without grid-row, the
   auto-placement cursor moves past column 3 when the numeral is placed there
   (even rows), and the paragraph can no longer be back-filled into column 2 of
   the same row — it drops to a second row, leaving a gap beside the numeral. */
.offer-row__text {
  grid-column: 2;
  grid-row: 1;
}

/* Rows 1, 3, 5 — numeral in the leading side column, hugging the paragraph */
.offer-row__num {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}
/* Rows 2, 4 — numeral in the trailing side column, hugging the paragraph */
.offer-row:nth-child(even) .offer-row__num {
  grid-column: 3;
  justify-self: start;
}
.offer-row::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.7s var(--ease-out);
}
.offer-row:hover::before { width: 100%; }
.offer-row:hover { background: rgba(242, 243, 246, 0.55); }

.offer-row__num {
  font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(29, 29, 57, 0.28);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
}
.offer-row:hover .offer-row__num {
  color: var(--navy);
  -webkit-text-stroke-color: transparent;
}
.offer-row:nth-child(3n + 2):hover .offer-row__num { color: var(--red); }
.offer-row:nth-child(3n + 3):hover .offer-row__num { color: var(--green); }

.offer-row__text {
  font-size: clamp(1.02rem, 0.96rem + 0.45vw, 1.28rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  max-width: 46ch;
}

/* ---------- 10. Pillars -------------------------------------------------- */
.pillars {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}
.pillars__bg {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 85% 12%, rgba(225, 17, 25, 0.22), transparent 62%),
    radial-gradient(55% 50% at 8% 88%, rgba(65, 146, 87, 0.22), transparent 62%);
  will-change: transform;
}
.pillars__inner { position: relative; z-index: 1; }
.pillars__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.pillars__head .h2 { color: #fff; }

/* Five pillars, never an orphaned empty cell:
   ≥1000px → 3 + 2 (spans of 2 and 3 across six columns)
   640–999px → 2 + 2 + 1 (the fifth spans the full width)
   <640px → single column                                            */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 640px) {
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(5) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .pillar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pillar { grid-column: span 2; }
  .pillar:nth-child(4),
  .pillar:nth-child(5) { grid-column: span 3; }
}
/* Content starts at the top and the box is only as tall as it needs to be —
   no reserved dead space above the title. */
.pillar {
  position: relative;
  background: var(--navy);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  padding-right: clamp(4.5rem, 7vw, 6.5rem); /* room for the numeral */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
  transition: background-color 0.5s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar:nth-child(even)::before { background: var(--green); }
.pillar:hover { background: var(--navy-700); }

/* Sits fully inside the box (nothing clipped) and aligns with the title. */
.pillar__num {
  position: absolute;
  top: clamp(1.1rem, 2vw, 1.7rem);
  right: clamp(1.1rem, 2vw, 1.7rem);
  z-index: -1;
  font-size: clamp(3rem, 2vw + 2.2rem, 4.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(65, 146, 87, 0.45);
  transition: transform 0.7s var(--ease-out), color 0.5s var(--ease);
}
.pillar:hover .pillar__num {
  transform: translateY(-4px);
  color: rgba(65, 146, 87, 0.75);
}
.pillar:nth-child(odd) .pillar__num { color: rgba(255, 255, 255, 0.28); }
.pillar:nth-child(odd):hover .pillar__num { color: rgba(255, 90, 96, 0.7); }

.pillar__title {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.75rem;
}
.pillar__text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--on-dark-soft);
  max-width: 34ch;
}

/* ---------- 11. Service areas -------------------------------------------- */
.areas__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
/* Seven numbered tiles. Names only — no invented descriptions.
   Layout never leaves an orphan cell:
     >=1000px  4 + 3   (spans of 3 and 4 across twelve columns)
     640-999   2 + 2 + 2 + 1 (the seventh spans both columns)
     <640      single column                                             */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
}
@media (min-width: 640px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .area-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .area-tile { grid-column: span 3; }
  .area-tile:nth-child(n + 5) { grid-column: span 4; }
  .area-grid > :last-child { grid-column: span 4; }
}

.area-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  min-height: clamp(150px, 15vw, 190px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), border-color 0.4s var(--ease),
              box-shadow 0.45s var(--ease-out);
}
/* Navy wash that rises on hover */
.area-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
}
.area-tile:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}
.area-tile:hover::before { transform: scaleY(1); transform-origin: top; }

.area-tile__rule {
  width: 28px;
  height: 3px;
  background: var(--red);
  transition: width 0.5s var(--ease-out), background-color 0.4s var(--ease);
}
.area-tile:nth-child(even) .area-tile__rule { background: var(--green); }
.area-tile:hover .area-tile__rule { width: 52px; }

.area-tile__num {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(29, 29, 57, 0.3);
  transition: -webkit-text-stroke-color 0.4s var(--ease), color 0.4s var(--ease);
}
.area-tile:hover .area-tile__num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.55);
}

.area-tile__name {
  margin-top: auto;
  font-size: clamp(1.02rem, 0.95rem + 0.45vw, 1.28rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
  transition: color 0.4s var(--ease);
  padding-right: 2.5rem;
}
.area-tile:hover .area-tile__name { color: #fff; }

/* ---------- 12. Conversion band ------------------------------------------ */
.convert {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark);
  overflow: hidden;
}
.convert__bg {
  position: absolute;
  inset: -25% -5%;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(90% 70% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 40%, #000, transparent 75%);
  will-change: transform;
}
.convert__inner { position: relative; z-index: 1; }
.convert__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.convert__head .h2 { color: #fff; }
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: transform 0.5s var(--ease-out), background-color 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.path:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
}
.path::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--red);
  border-radius: 6px 6px 0 0;
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.path:hover::after { transform: scaleX(1); }
.path:nth-child(2)::after { background: var(--green); }
.path__title { color: #fff; margin-bottom: 0.9rem; }
.path__text {
  color: var(--on-dark-soft);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex: 1;
}
.path .btn { align-self: flex-start; }

/* ---------- 13. Footer --------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 3px solid var(--red);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__brand img { height: 40px; width: auto; }
.footer__brand .brand-mark { display: inline-flex; margin-bottom: 1.4rem; }
.footer__tag {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer__note {
  font-size: 0.92rem;
  color: var(--on-dark-mute);
  max-width: 40ch;
}
.footer__title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: 1.35rem;
}
.footer__links li + li { margin-top: 0.7rem; }
.footer__links a {
  position: relative;
  display: inline-block;
  color: var(--on-dark-soft);
  transition: color 0.25s var(--ease), transform 0.35s var(--ease-out);
}
.footer__links a:hover { color: #fff; transform: translateX(4px); }

.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-block: 0.55rem;
  color: var(--on-dark-soft);
}
.contact-list svg { flex-shrink: 0; margin-top: 0.28rem; color: var(--green); }
.contact-list a { transition: color 0.25s var(--ease); }
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__cta { margin-top: 1.75rem; }

.footer__bar {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--on-dark-mute);
}

/* ---------- 14. Floating CTA --------------------------------------------- */
.float-cta {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.35rem 0.9rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 16px 40px -14px rgba(225, 17, 25, 0.7), 0 2px 8px rgba(20, 20, 42, 0.3);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.5s var(--ease),
              background-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.float-cta.is-visible { transform: translateY(0); opacity: 1; }
.float-cta:hover {
  background: var(--red-dark);
  box-shadow: 0 22px 50px -14px rgba(225, 17, 25, 0.8);
}
.float-cta:hover .float-cta__icon { transform: rotate(90deg); }
.float-cta__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.5s var(--ease-out);
}
.float-cta__icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: halo 3.4s infinite var(--ease-out);
}
@keyframes halo {
  0%   { transform: scale(0.7); opacity: 0.8; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.float-cta__label { white-space: nowrap; }
.float-cta.is-nudge { animation: nudge 1.1s var(--ease-out); }
@keyframes nudge {
  0%, 100% { transform: translateY(0) scale(1); }
  25%      { transform: translateY(-6px) scale(1.03); }
  55%      { transform: translateY(0) scale(1); }
  75%      { transform: translateY(-3px) scale(1.01); }
}

/* ---------- 15. Modal ---------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 3vw, 2rem);
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 26, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  border: 0;
  cursor: pointer;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92svh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: translateY(0) scale(1); }

.modal__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3vw, 2.25rem);
  background: var(--navy);
  color: #fff;
  border-radius: 8px 8px 0 0;
}
.modal__header img { height: 26px; width: auto; }
.modal__heading { flex: 1; min-width: 0; }
.modal__title { font-size: clamp(1.08rem, 0.98rem + 0.5vw, 1.3rem); font-weight: 700; line-height: 1.2; }
.modal__sub { font-size: 0.93rem; color: var(--on-dark-soft); margin-top: 0.35rem; }
.modal__close {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.3s var(--ease-out),
              border-color 0.25s var(--ease);
}
.modal__close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}
.modal__body { padding: clamp(1.25rem, 3vw, 2.25rem); }

/* Segmented type switch */
.type-switch__label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.type-switch__opt { position: relative; }
.type-switch__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.type-switch__opt span {
  display: block;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  color: var(--ink-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
              background-color 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.type-switch__opt small {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 0.2rem;
}
.type-switch__opt input:hover + span { border-color: var(--ink-mute); }
.type-switch__opt input:checked + span {
  border-color: var(--red);
  background: rgba(225, 17, 25, 0.05);
  color: var(--navy);
}
.type-switch__opt input:checked + span small { color: var(--red); }
.type-switch__opt input:focus-visible + span {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.field .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2374768c' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink-mute); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(29, 29, 57, 0.12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
  background: rgba(225, 17, 25, 0.03);
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(225, 17, 25, 0.16); }
.field__error {
  font-size: 0.82rem;
  color: var(--red);
  font-weight: 600;
  min-height: 0;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.field.has-error .field__error { opacity: 1; transform: translateY(0); }

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.fieldset-panel {
  display: none;
  animation: panel-in 0.45s var(--ease-out);
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}
.fieldset-panel.is-active { display: block; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-foot {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.form-foot .fineprint {
  font-size: 0.84rem;
  color: var(--ink-mute);
  max-width: 34ch;
}

.form-alert {
  display: none;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 4px solid;
  animation: panel-in 0.35s var(--ease-out);
}
.form-alert.is-shown { display: flex; }
.form-alert--error {
  background: rgba(225, 17, 25, 0.07);
  border-color: var(--red);
  color: #8e0a10;
}
/* Duplicate registration is an informational state, not a rejection — it uses
   the calm green accent rather than the red error treatment. */
.form-alert--warn {
  background: rgba(65, 146, 87, 0.07);
  border-color: var(--green);
  color: #2c6b41;
}
.form-alert strong { display: block; margin-bottom: 0.15rem; }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
}
.form-success.is-shown { display: block; animation: panel-in 0.5s var(--ease-out); }
.form-success__mark {
  width: 68px; height: 68px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(65, 146, 87, 0.12);
  color: var(--green);
}
.form-success__mark svg { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.6s 0.2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Duplicate registration reuses the whole success panel — identical size,
   spacing, typography and button. Only the mark and its colour differ. */
.form-success__icon { display: none; }
.form-success__icon--ok { display: block; }
.form-success.is-duplicate .form-success__icon--ok { display: none; }
.form-success.is-duplicate .form-success__icon--dup { display: block; }
.form-success.is-duplicate .form-success__mark {
  background: rgba(225, 17, 25, 0.1);
  color: var(--red);
}
.form-success h3 { margin-bottom: 0.75rem; }
.form-success p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.form-success .btn { margin-top: 1.75rem; }

.spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.is-submitting .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 16. Reveal animations ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.hero__inner > * {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-in 1s var(--ease-out) forwards;
}
.hero__inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.3s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.45s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.58s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.7s; }
.hero__inner > *:nth-child(6) { animation-delay: 0.82s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ---------- 17. Responsive ---------------------------------------------- */
@media (max-width: 1080px) {
  .record__inner { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__aside { max-width: 520px; }
  .offer__head,
  .pillars__head,
  .areas__head { grid-template-columns: 1fr; align-items: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: grid; margin-left: auto; }
  .header-cta { display: none; }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    margin-left: 0;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem;
    background: rgba(20, 20, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-101%);
    transition: transform 0.5s var(--ease-out);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { padding: 1.05rem 0; font-size: 1.1rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { display: block; margin-top: 1.6rem; }
  .site-nav .nav-cta .btn { width: 100%; }

  .record__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Too narrow for side columns — stack to numeral + paragraph. */
  .offer-row { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.85rem; }
  .offer-row__text,
  .offer-row:nth-child(even) .offer-row__text { grid-column: 2; grid-row: 1; }
  .offer-row__num,
  .offer-row:nth-child(even) .offer-row__num { grid-column: 1; grid-row: 1; justify-self: start; }
  .offer-row__num { -webkit-text-stroke-width: 1px; }


  .hero__scroll { display: none; }
  .hero { min-height: 92svh; }
  .hero__title { max-width: 100%; }


  .field-grid { grid-template-columns: 1fr; }
  .type-switch { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }

  .modal { padding: 0; align-items: flex-end; }
  .modal__panel {
    width: 100%;
    max-height: 94svh;
    border-radius: 12px 12px 0 0;
    transform: translateY(40px);
  }
  .modal__header { border-radius: 12px 12px 0 0; }

  .float-cta {
    padding: 0.8rem 1.1rem 0.8rem 0.8rem;
    right: 0.9rem;
    bottom: 0.9rem;
  }
  .float-cta__label { font-size: 0.92rem; }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .record__stats { grid-template-columns: 1fr; }
  .float-cta__label { display: none; }
  .float-cta { padding: 0.8rem; border-radius: 50%; }
  .float-cta__icon { width: 30px; height: 30px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 18. Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .hero__inner > * { opacity: 1 !important; transform: none !important; }
  .float-cta { transform: none; opacity: 1; }
  .hero__media, .hero__grid, .pillars__bg, .convert__bg { transform: none !important; }
  .hero__title em::after { transform: scaleX(1); }
}

/* ---------- 19. Print ---------------------------------------------------- */
@media print {
  .site-header, .float-cta, .modal, .hero__scroll { display: none !important; }
  .hero { min-height: auto; color: #000; }
  body { color: #000; }
}

/* ==========================================================================
   20. Bilingual — Arabic typography, RTL layout, language switcher
   ==========================================================================
   RTL is a real direction change (dir="rtl" on <html>), not a text-align
   flip. Most of the layout is flex/grid and adapts automatically; the rules
   below fix the places that use physical offsets, directional transforms or
   directional icons. The logo and non-directional icons are never mirrored.
   ========================================================================== */

/* ---------- 20.1 Arabic typography -------------------------------------- */
:root {
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* The direction attributes live on <html>, but `body` sets font-family
   directly and everything inherits from body — so the Arabic stack has to be
   applied to body (and the modal, which is a body-level element) as well,
   otherwise it never reaches the content. */
html[lang="ar"],
html[dir="rtl"],
html[lang="ar"] body,
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  font-family: var(--font-ar);
}

html[lang="ar"] body,
html[dir="rtl"] body {
  /* Arabic needs a little more room to breathe than Latin at the same size. */
  line-height: 1.85;
  letter-spacing: 0;
}

/* Latin fragments inside Arabic (IBDL X, emails, URLs) keep the brand face. */
[dir="rtl"] [dir="ltr"],
[dir="rtl"] .stat__value,
[dir="rtl"] .brand-link {
  font-family: var(--font);
}

[dir="rtl"] .h2,
[dir="rtl"] .h3,
[dir="rtl"] .hero__title,
[dir="rtl"] .pillar__title,
[dir="rtl"] .area-tile__name,
[dir="rtl"] .vm-panel__label,
[dir="rtl"] .modal__title,
[dir="rtl"] .path__title {
  /* Tight Latin tracking makes Arabic look cramped. */
  letter-spacing: 0;
  line-height: 1.45;
}
[dir="rtl"] .hero__title { line-height: 1.3; }
[dir="rtl"] .h2 { line-height: 1.35; }

[dir="rtl"] .kicker,
[dir="rtl"] .footer__title,
[dir="rtl"] .vm-panel__label,
[dir="rtl"] .hero__eyebrow,
[dir="rtl"] .area__num {
  letter-spacing: 0.04em;
}

[dir="rtl"] .offer-row__text,
[dir="rtl"] .pillar__text,
[dir="rtl"] .vm-panel__text,
[dir="rtl"] .path__text,
[dir="rtl"] .about__body p,
[dir="rtl"] .lead {
  line-height: 1.9;
}

/* Numerals and codes always read left-to-right, but they must still sit on
   the same edge as the label beneath them — dir="ltr" would otherwise make
   `start` resolve to the left while the Arabic label aligns right. */
[dir="rtl"] .stat__value { text-align: right; }
[dir="rtl"] .offer-row__num { text-align: right; }

[dir="rtl"] .stat__value,
[dir="rtl"] .offer-row__num,
[dir="rtl"] .pillar__num,
[dir="rtl"] .area-tile__num { direction: ltr; unicode-bidi: isolate; }

/* ---------- 20.2 Language switcher -------------------------------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease);
}
.lang-switch:hover { border-color: rgba(255, 255, 255, 0.38); }

.lang-switch__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.lang-switch__opt {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  min-height: 26px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-switch__opt:hover { color: #fff; }
.lang-switch__opt.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.lang-switch__opt:focus-visible { outline-offset: 1px; }

/* Order in the header: language switcher, then the Join CTA */
.header-lang { flex-shrink: 0; margin-inline-start: 0.35rem; }
.nav-lang { display: none; }

/* Cross-fade while the content is rewritten */
html.is-switching-lang body { opacity: 0.55; }
html body { transition: opacity 0.16s var(--ease); }

/* ---------- 20.3 RTL layout corrections --------------------------------- */
/* Directional icons mirror; everything else keeps its orientation. */
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .btn::after { transform: translateX(101%); }
[dir="rtl"] .btn:hover::after { transform: translateX(0); }

[dir="rtl"] .site-nav { margin-inline-start: auto; margin-left: 0; }
[dir="rtl"] .nav-toggle { margin-inline-start: auto; margin-left: 0; }
[dir="rtl"] .site-nav a::after { transform-origin: left; }
[dir="rtl"] .site-nav a:hover::after,
[dir="rtl"] .site-nav a[aria-current="true"]::after { transform-origin: right; }

[dir="rtl"] .kicker::before { transform-origin: right; }

[dir="rtl"] .hero__scroll { right: auto; left: var(--gutter); }
[dir="rtl"] .hero__title em::after { transform-origin: right; }
@keyframes underline-in-rtl { to { transform: scaleX(1); } }

[dir="rtl"] .record::before {
  background: linear-gradient(270deg, var(--red) 0 38%, var(--green) 38% 62%, transparent 62%);
}

[dir="rtl"] .offer__statement { padding-left: 0; padding-right: 1.75rem; }
[dir="rtl"] .offer__statement::before { left: auto; right: 0; }
[dir="rtl"] .offer-row::before { left: auto; right: 0; }

[dir="rtl"] .pillar { padding-right: clamp(1.5rem, 2.4vw, 2.1rem); padding-left: clamp(4.5rem, 7vw, 6.5rem); }
[dir="rtl"] .pillar__num { right: auto; left: clamp(1.1rem, 2vw, 1.7rem); }
[dir="rtl"] .pillar::before { transform-origin: right; }
[dir="rtl"] .pillar:hover::before { transform: scaleX(1); }

[dir="rtl"] .area-tile__num { right: auto; left: clamp(1rem, 2vw, 1.5rem); }
[dir="rtl"] .area-tile__name { padding-right: 0; padding-left: 2.5rem; }

[dir="rtl"] .vm-panel { padding-left: 0; padding-right: clamp(1.5rem, 2.5vw, 2.5rem); }
[dir="rtl"] .vm-panel::before { left: auto; right: 0; }
/* The eye and target are non-directional — never mirror them. */
[dir="rtl"] .vm-panel__icon svg { transform: none; }

[dir="rtl"] .path::after { transform-origin: right; }
[dir="rtl"] .path:hover::after { transform: scaleX(1); }

[dir="rtl"] .footer__links a:hover { transform: translateX(-4px); }

[dir="rtl"] .float-cta { right: auto; left: clamp(1rem, 2.5vw, 2rem); }

[dir="rtl"] .field select {
  background-position: left 0.95rem center;
  padding-right: 0.95rem;
  padding-left: 2.4rem;
}
[dir="rtl"] .modal__panel { text-align: right; }
[dir="rtl"] .form-alert { border-left: 0; border-right: 4px solid; }
[dir="rtl"] .form-alert--error { border-right-color: var(--red); }
[dir="rtl"] .form-alert--warn { border-right-color: var(--navy); }
[dir="rtl"] .hp-field { left: auto; right: -9999px; }

[dir="rtl"] .type-switch__opt input:focus-visible + span { outline-offset: 2px; }

/* Reveal animations come from the correct side in RTL */
[dir="rtl"] [data-reveal="left"] { transform: translateX(32px); }
[dir="rtl"] [data-reveal="right"] { transform: translateX(-32px); }

/* Mobile menu slides from the same edge in both directions (top), so nothing
   to flip there — but the nav CTA and switcher stack correctly. */
@media (max-width: 860px) {
  .header-lang { display: none; }
  .nav-lang { display: block; margin-top: 1.25rem; }
  .nav-lang .lang-switch { justify-content: center; }
  .nav-lang .lang-switch__opt { padding: 0.45rem 1.1rem; min-height: 34px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html body { transition: none; }
  html.is-switching-lang body { opacity: 1; }
}

/* ---------- 21. Powered by IBDL ------------------------------------------ */
/* Sits between the footer content and the legal bar. Quiet by design — it
   states the brand relationship without competing with IBDL X. */
/* Lives inside the footer's brand column, under the attribution paragraph. */
.powered-by {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line-dark);
  max-width: 22rem;
}
.powered-by__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.powered-by__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  white-space: nowrap;
}
/* The logo is dark artwork; a soft plate keeps it legible on navy without
   altering the mark itself. */
/* The supplied logo is the white variant, so it sits straight on the navy —
   no plate, no recolouring. */
.powered-by__link {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease);
}
.powered-by__link:hover {
  transform: scale(1.04);
  opacity: 1;
}
.powered-by__link:active { transform: scale(1); }
.powered-by__link img {
  height: 26px;
  width: auto;
  display: block;
}

/* Arabic sets a slightly wider label tracking; the flex row reverses with
   dir="rtl" on its own, and the logo keeps its orientation. */
[dir="rtl"] .powered-by__label { letter-spacing: 0.04em; text-transform: none; font-size: 0.9rem; }

@media (max-width: 620px) {
  .powered-by { max-width: none; }
  .powered-by__link img { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .powered-by__link:hover { transform: none; }
}
