/* ============================================================
   FROC — Fire Rescue Operations Co.
   Design system + global styles  (Navy + Cream · Arabic-primary)
============================================================ */

/* Self-hosted, subset variable fonts (one file per family, all weights). */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url("fonts/readex-pro.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  /* === Dark navy field === */
  --ink: #050C18;        /* near-black blue (cover bg) */
  --ink-2: #0A1A2C;
  --ink-3: #0E2842;
  --ink-4: #11405F;      /* the framed panel mid-tone */
  --line: rgba(232, 227, 213, 0.08);
  --line-strong: rgba(232, 227, 213, 0.20);

  /* === Cream / paper === */
  --paper: #E8E3D5;      /* primary text on dark */
  --paper-2: #C9C4B5;
  --paper-dim: rgba(232, 227, 213, 0.62);
  --paper-faint: rgba(232, 227, 213, 0.32);

  /* === Brand accents === */
  --navy: #134B6E;       /* mid brand blue (panels, banner) */
  --navy-deep: #0A2942;
  --steel: #3C708F;      /* subtle accent line */
  --steel-glow: #6FA4C2; /* particle glow */
  --signal: #E8E3D5;     /* highlight = cream, not red */

  /* === Type === */
  --font-display: "Readex Pro", "Tajawal", "Inter Tight", system-ui, sans-serif;
  --font-body:    "Readex Pro", "Tajawal", "Inter Tight", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-latin:   "Inter Tight", "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --max-w: 1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(19, 75, 110, 0.32), transparent 60%),
    radial-gradient(ellipse 60% 35% at 80% 100%, rgba(60, 112, 143, 0.18), transparent 70%),
    linear-gradient(180deg, #050C18 0%, #07101F 40%, #050C18 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 16px;
}
/* Arabic-primary: html has dir="rtl" */
[dir="rtl"] body { letter-spacing: 0; }
[lang="en"], .en, .ltr { direction: ltr; unicode-bidi: isolate; }
.ar { font-family: var(--font-display); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* === Noise & grain overlay ============================================= */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}

/* === Scroll progress bar =============================================== */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; inset-inline-end: 0; height: 2px;
  background: linear-gradient(90deg, var(--navy-deep), var(--navy), var(--steel-glow));
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 100;
  box-shadow: 0 0 12px rgba(60, 112, 143, 0.5);
}
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* === Decorative corner lines (echo of the cover SVG arcs) ============== */
.corner-lines {
  position: absolute; pointer-events: none; opacity: 0.32;
  inset-inline-start: 0; bottom: 0;
  width: 220px; height: 180px;
}
.corner-lines svg { width: 100%; height: 100%; color: var(--steel); }
.corner-lines.tr { inset-inline-start: auto; inset-inline-end: 0; top: 0; bottom: auto; transform: scaleY(-1); }

/* === NAV =============================================================== */
.nav {
  position: fixed; top: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: 50;
  padding: 18px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  background: linear-gradient(180deg, rgba(5, 12, 24, 0.7), transparent);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.nav.scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(5, 12, 24, 0.88); border-bottom: 1px solid var(--line); }
.nav-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  color: var(--paper);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; letter-spacing: 0.12em;
  line-height: 1; color: var(--paper);
  direction: ltr;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.32em;
  color: var(--paper-dim); margin-top: 4px; text-transform: uppercase;
  direction: ltr;
}
.brand-ar {
  font-family: var(--font-display); font-size: 11px; color: var(--paper-dim);
  margin-top: 2px; letter-spacing: 0;
}

.nav-links {
  display: flex; gap: 36px; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
}
.nav-links a {
  position: relative; color: var(--paper-dim); transition: color 0.25s; padding: 6px 0;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.nav-links a small {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-faint);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 100%; bottom: 0; height: 1px;
  background: var(--steel-glow); transition: inset-inline-end 0.4s var(--ease-out);
}
.nav-links a:hover::after { inset-inline-end: 0; }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 14px; }

.nav-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px;
  background: rgba(19, 75, 110, 0.18);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.nav-btn:hover { background: rgba(19, 75, 110, 0.45); border-color: var(--steel-glow); transform: translateY(-1px); }
.nav-btn .arrow { width: 14px; height: 10px; }

/* === HERO ============================================================== */
.hero {
  position: relative; min-height: 100vh; padding: 0 var(--gutter);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 56px; overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 70% 90%, rgba(19, 75, 110, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(60, 112, 143, 0.18), transparent 70%);
}
.hero-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; left: 50%; bottom: -10%; transform: translateX(-50%);
  width: 120%; height: 60%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(60, 112, 143, 0.22), transparent 60%);
  filter: blur(20px);
}
.hero-top {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  padding-top: 140px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.eyebrow {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--paper-dim);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--steel-glow);
}
.hero-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--paper-dim);
  display: grid; gap: 4px; text-align: end; letter-spacing: 0.16em; text-transform: uppercase;
  direction: ltr;
}
.hero-meta b { color: var(--paper); font-weight: 500; }

.hero-body { position: relative; z-index: 2; padding-top: 32px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 1.3; letter-spacing: -0.005em;
  color: var(--paper);
  margin-bottom: 18px;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.16em 0.04em 0.2em; margin: -0.08em 0; }
.hero-title .word { display: inline-block; transform: translateY(120%); }
.hero-title em {
  font-style: normal; color: var(--steel-glow);
  position: relative; display: inline-block;
}
.hero-title em::before {
  content: ""; position: absolute; inset-inline-start: -4%; inset-inline-end: -4%; top: 8%; bottom: 8%;
  background: radial-gradient(ellipse, rgba(60, 112, 143, 0.45), transparent 65%);
  filter: blur(28px); z-index: -1;
}
.hero-title-en {
  font-family: var(--font-latin); font-weight: 500;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: 0.02em; color: var(--paper-dim);
  direction: ltr; margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.16em;
}

.hero-bottom {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  align-items: end; margin-top: 36px;
}
.hero-blurb { max-width: 560px; }
.hero-blurb .ar-text {
  font-size: 18px; line-height: 1.75; color: var(--paper); font-weight: 400;
  text-wrap: pretty;
}
.hero-blurb .en-text {
  font-family: var(--font-latin); direction: ltr;
  font-size: 14px; line-height: 1.6; color: var(--paper-dim); margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--line);
  text-wrap: pretty; max-width: 520px;
}
.hero-blurb b { color: var(--paper); font-weight: 600; }
.hero-actions {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  justify-self: end;
}
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px;
  position: relative; overflow: hidden; transition: transform 0.3s var(--ease-out);
  border: 1px solid transparent;
}
.btn small {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.65;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary .arrow { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn-primary:hover .arrow { transform: translateX(-4px); }

.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(232, 227, 213, 0.05); }

/* === HERO marquee strip ================================================ */
.hero-strip {
  position: relative; z-index: 2; margin-top: 56px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-strip-track {
  display: flex; gap: 80px; white-space: nowrap; animation: marquee 38s linear infinite;
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--paper-dim);
}
.hero-strip-track span { display: inline-flex; align-items: center; gap: 14px; }
.hero-strip-track span::after { content: "◆"; color: var(--steel-glow); font-size: 10px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] .hero-strip-track,
[dir="rtl"] .ind-track { animation-direction: reverse; }

/* === Stats =============================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 100px; background: linear-gradient(180deg, transparent, rgba(19, 75, 110, 0.08));
}
.stat {
  padding: 40px var(--gutter);
  border-inline-end: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-inline-end: 0; }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 1; color: var(--paper); letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 4px; direction: ltr;
}
.stat-num small { font-size: 0.4em; color: var(--steel-glow); font-weight: 500; }
.stat-label {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--paper-dim); margin-top: 14px;
}
.stat-label-en {
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--paper-faint); margin-top: 4px;
  letter-spacing: 0.24em; text-transform: uppercase; direction: ltr;
}
.stat-bar {
  height: 1px; background: var(--line); margin-top: 18px; position: relative; overflow: hidden;
}
.stat-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--steel-glow);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease-out);
}
[dir="rtl"] .stat-bar::after { transform-origin: 100% 50%; }
.stat.in-view .stat-bar::after { transform: scaleX(1); }

/* === Section frame ====================================================== */
.section {
  padding: 140px var(--gutter);
  position: relative;
}
.section-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: end;
  margin-bottom: 72px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel-glow);
  letter-spacing: 0.24em;
  direction: ltr;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.22; letter-spacing: -0.005em;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--steel-glow); }
.section-title-en {
  font-family: var(--font-latin); font-weight: 400;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--paper-dim); margin-top: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; letter-spacing: 0.18em;
  direction: ltr;
}
.section-aside {
  font-family: var(--font-display); font-weight: 400;
  font-size: 14px; color: var(--paper-dim); text-align: end;
  max-width: 280px; line-height: 1.7;
}

/* === Services grid ====================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.service {
  background: var(--ink-2); padding: 36px 32px 32px;
  position: relative; overflow: hidden; min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.4s var(--ease-out);
}
.service:hover { background: var(--ink-3); }
.service-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint);
  letter-spacing: 0.24em; position: absolute; top: 24px; inset-inline-end: 28px;
  direction: ltr;
}
.service-icon {
  width: 64px; height: 64px; position: relative;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color 0.4s, background 0.4s;
}
.service:hover .service-icon { border-color: var(--steel-glow); background: rgba(60, 112, 143, 0.14); }
.service-icon svg { width: 28px; height: 28px; color: var(--paper); transition: color 0.4s; }
.service:hover .service-icon svg { color: var(--steel-glow); }
.service-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; line-height: 1.15;
  margin-top: 28px;
}
.service-name-en {
  font-family: var(--font-latin); font-weight: 500;
  font-size: 12px; color: var(--paper-dim);
  margin-top: 6px; letter-spacing: 0.16em; text-transform: uppercase;
  direction: ltr;
}
.service-desc {
  font-size: 14px; line-height: 1.65; color: var(--paper-dim); margin-top: 14px;
  max-width: 38ch;
}
.service-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-dim);
  direction: ltr;
}
.service-foot .arr {
  width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; transition: all 0.3s var(--ease-out);
}
.service:hover .service-foot .arr {
  background: var(--steel-glow); border-color: var(--steel-glow);
}
.service:hover .service-foot .arr svg { color: var(--ink); }
[dir="rtl"] .service:hover .service-foot .arr { transform: translateX(-4px); }
[dir="ltr"] .service:hover .service-foot .arr { transform: translateX(4px); }
.service-glow {
  position: absolute; pointer-events: none; opacity: 0;
  width: 240px; height: 240px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(60, 112, 143, 0.32), transparent 65%);
  transition: opacity 0.3s; left: 0; top: 0;
}
.service:hover .service-glow { opacity: 1; }

/* === PROCESS ============================================================ */
.process { position: relative; }
.process-rail {
  position: absolute; inset-inline-start: var(--gutter); inset-inline-end: var(--gutter); top: 50%;
  height: 1px; background: var(--line);
}
.process-rail-fill {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--navy), var(--steel-glow), var(--paper));
  box-shadow: 0 0 18px rgba(60, 112, 143, 0.55);
  transition: transform 0.3s linear;
}
[dir="rtl"] .process-rail-fill { transform-origin: 100% 50%; }
.process-grid {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.step { padding-inline-end: 32px; position: relative; }
.step-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--ink);
  position: relative; z-index: 2; margin-bottom: 28px;
  transition: all 0.4s var(--ease-out);
}
.step.active .step-dot {
  background: var(--steel-glow); border-color: var(--steel-glow);
  box-shadow: 0 0 0 6px rgba(60, 112, 143, 0.22);
}
.step-time {
  font-family: var(--font-mono); font-size: 11px; color: var(--steel-glow);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px;
  direction: ltr;
}
.step-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; line-height: 1.1; margin-bottom: 6px;
}
.step-name-en {
  font-family: var(--font-latin); font-weight: 500;
  font-size: 12px; color: var(--paper-dim);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 16px; direction: ltr;
}
.step-desc { font-size: 13px; line-height: 1.65; color: var(--paper-dim); max-width: 30ch; }

/* === FLEET / EQUIPMENT ================================================== */
.fleet-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px;
}
.fleet-card {
  position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.fleet-card.large { grid-row: span 2; min-height: 584px; }
.fleet-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent, transparent 22px,
      rgba(232, 227, 213, 0.025) 22px, rgba(232, 227, 213, 0.025) 23px),
    linear-gradient(135deg, var(--ink-3), var(--ink-2));
}
.fleet-placeholder::before {
  content: attr(data-tag);
  position: absolute; top: 16px; inset-inline-start: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  color: var(--paper-faint); text-transform: uppercase;
  direction: ltr;
}
.fleet-placeholder::after {
  content: ""; position: absolute; inset: 18% 24%;
  border: 1px dashed rgba(232, 227, 213, 0.12); border-radius: 2px;
}
.fleet-meta {
  position: relative; z-index: 2; padding: 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end;
  background: linear-gradient(180deg, transparent, rgba(5, 12, 24, 0.92) 70%);
}
.fleet-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.15;
}
.fleet-name-en {
  font-family: var(--font-latin); font-size: 11px; color: var(--paper-dim);
  margin-top: 4px; letter-spacing: 0.18em; text-transform: uppercase;
  direction: ltr;
}
.fleet-id {
  font-family: var(--font-mono); font-size: 10px; color: var(--steel-glow);
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid rgba(60, 112, 143, 0.42); border-radius: 4px;
  direction: ltr;
}
.fleet-spec { font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim);
  margin-top: 8px; letter-spacing: 0.14em; text-transform: uppercase; direction: ltr;
}

/* === Industries marquee ================================================= */
.industries { padding: 90px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.industries-label {
  text-align: center; font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--paper-dim);
  margin-bottom: 8px;
}
.industries-label-en {
  text-align: center; font-family: var(--font-mono); font-size: 10px;
  color: var(--paper-faint); letter-spacing: 0.32em; text-transform: uppercase;
  margin-bottom: 40px; direction: ltr;
}
.ind-track {
  display: flex; gap: 80px; white-space: nowrap;
  animation: marquee 42s linear infinite;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--paper);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ind-track span { display: inline-flex; align-items: center; gap: 64px; }
.ind-track span::after {
  content: ""; width: 10px; height: 10px; background: var(--steel-glow);
  border-radius: 50%; flex: none;
}

/* === Training ============================================================= */
.training {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start;
}
.training-list {
  border-top: 1px solid var(--line);
}
.training-row {
  display: grid; grid-template-columns: 50px 1fr auto auto; gap: 24px;
  align-items: center; padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative; cursor: pointer;
  transition: padding 0.3s var(--ease-out);
}
.training-row::before {
  content: ""; position: absolute; inset-inline-start: -40%; inset-inline-end: 110%; top: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(60, 112, 143, 0.10));
  transition: inset-inline-end 0.5s var(--ease-out);
  z-index: -1;
}
.training-row:hover::before { inset-inline-end: -10%; }
.training-row:hover { padding-inline-start: 12px; }
.training-row:hover .tr-name { color: var(--steel-glow); }
.tr-num { font-family: var(--font-mono); font-size: 11px; color: var(--paper-faint);
  letter-spacing: 0.2em; direction: ltr; }
.tr-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.2;
  transition: color 0.3s;
}
.tr-name small {
  display: block; margin-top: 4px;
  font-family: var(--font-latin); font-weight: 500;
  font-size: 11px; color: var(--paper-faint);
  letter-spacing: 0.16em; text-transform: uppercase;
  direction: ltr;
}
.tr-tag { font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim);
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; direction: ltr;
}
.tr-arrow { width: 32px; height: 32px; display: grid; place-items: center; color: var(--paper-dim);
  transition: transform 0.3s; }
[dir="rtl"] .training-row:hover .tr-arrow { transform: translateX(-6px); color: var(--steel-glow); }
[dir="ltr"] .training-row:hover .tr-arrow { transform: translateX(6px); color: var(--steel-glow); }

.training-card {
  border: 1px solid var(--line); padding: 36px;
  background: linear-gradient(180deg, var(--navy-deep), var(--ink-2));
  position: relative; overflow: hidden;
}
.training-card .badge {
  display: inline-block; padding: 6px 12px;
  border: 1px solid var(--steel-glow); color: var(--steel-glow);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 999px; direction: ltr;
}
.training-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; line-height: 1.1;
  margin: 24px 0 6px;
}
.training-card .h3-en {
  font-family: var(--font-latin); font-weight: 500;
  font-size: 13px; color: var(--paper-dim);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px; direction: ltr;
}
.training-card p { color: var(--paper-dim); font-size: 14px; line-height: 1.7; }
.training-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.training-stats .tn {
  font-family: var(--font-display); font-weight: 700;
  font-size: 40px; line-height: 1; color: var(--paper); direction: ltr;
}
.training-stats .tl { font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim);
  letter-spacing: 0.2em; text-transform: uppercase; margin-top: 8px; direction: ltr; }

/* === Vision 2030 callout ================================================ */
.vision {
  position: relative; padding: 40px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(19, 75, 110, 0.18), transparent);
}
.vision-inner {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 16px; color: var(--paper);
  flex-wrap: wrap; text-align: center;
}
.vision-inner b {
  font-weight: 700; color: var(--steel-glow); font-size: 32px; line-height: 1; direction: ltr;
  font-family: var(--font-display);
}
.vision-inner small {
  display: block; font-family: var(--font-latin); font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper-dim);
  margin-top: 4px;
}

/* === CTA ================================================================ */
.cta {
  position: relative; padding: 140px var(--gutter); overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(19, 75, 110, 0.55), transparent 70%),
    radial-gradient(ellipse 30% 40% at 30% 30%, rgba(60, 112, 143, 0.18), transparent 70%);
}
.cta-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-inner {
  position: relative; z-index: 2; text-align: center;
  display: grid; gap: 28px; justify-items: center;
}
.cta-eyebrow {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--steel-glow);
  letter-spacing: 0.04em;
}
.cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 9.5vw, 144px);
  line-height: 1.15; letter-spacing: -0.01em;
  max-width: 18ch; text-wrap: balance;
}
.cta-title em { font-style: normal; color: var(--steel-glow); display: inline-block; }
.cta-title-en {
  font-family: var(--font-latin); font-weight: 500;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--paper-dim); letter-spacing: 0.22em; text-transform: uppercase;
  direction: ltr; max-width: 50ch;
}
.cta-form {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center;
  margin-top: 16px;
}
.cta-input {
  padding: 18px 24px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 12, 24, 0.5);
  color: var(--paper);
  font-family: var(--font-display); font-size: 14px;
  min-width: 280px; outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.cta-input::placeholder { color: var(--paper-faint); }
.cta-input:focus { border-color: var(--steel-glow); background: rgba(19, 75, 110, 0.22); }

.cta-alt {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center;
  margin-top: 4px;
}
.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.5);
  color: var(--paper);
}
.btn-whatsapp:hover { background: rgba(37, 211, 102, 0.22); border-color: #25D366; }
.btn-whatsapp svg { color: #25D366; }
.cta-direct {
  font-family: var(--font-mono); font-size: 13px; color: var(--paper-dim);
  letter-spacing: 0.12em; padding: 6px 0; transition: color 0.25s;
}
.cta-direct:hover { color: var(--steel-glow); }
.cta-note {
  font-family: var(--font-display); font-size: 13px; color: var(--steel-glow);
  min-height: 18px; margin-top: 4px;
}

/* === Footer ============================================================= */
.footer {
  padding: 80px var(--gutter) 40px; position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; color: var(--paper-dim);
  margin-bottom: 18px;
}
.footer h4 small {
  display: block; font-family: var(--font-mono); font-size: 9px;
  color: var(--paper-faint); letter-spacing: 0.24em; text-transform: uppercase;
  margin-top: 4px; direction: ltr;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--paper); font-size: 14px; transition: color 0.25s; }
.footer ul a:hover { color: var(--steel-glow); }
.footer-brand .brand-word { font-size: 48px; line-height: 1; }
.footer-brand p { color: var(--paper-dim); margin-top: 18px; max-width: 36ch;
  font-size: 14px; line-height: 1.7; }
.footer-brand .en { display: block; margin-top: 12px; font-family: var(--font-latin);
  font-size: 13px; color: var(--paper-faint); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim);
  letter-spacing: 0.18em; text-transform: uppercase;
  direction: ltr;
}
.footer-bottom .ar { font-family: var(--font-display); font-size: 13px; letter-spacing: 0;
  text-transform: none; direction: rtl; }

/* === Sticky WhatsApp FAB ================================================ */
.wa-fab {
  position: fixed; z-index: 90;
  inset-inline-end: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #052b14;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.wa-fab svg { width: 32px; height: 32px; position: relative; z-index: 2; }
.wa-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.wa-fab-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: 1;
  animation: wa-pulse 2.4s var(--ease-out) infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* === Scroll-to-top FAB (stacked above the WhatsApp button) ============= */
.to-top {
  position: fixed; z-index: 90;
  inset-inline-end: clamp(16px, 3vw, 32px);
  bottom: calc(clamp(16px, 3vw, 32px) + 58px + 14px);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(19, 75, 110, 0.55); color: var(--paper);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.25s, visibility 0.3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); border-color: var(--steel-glow); transform: translateY(-2px); }

/* === Language switcher control ========================================= */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 3px; background: rgba(5, 12, 24, 0.4);
}
.lang-switch button {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--paper-dim); padding: 6px 11px; border-radius: 999px;
  line-height: 1; transition: color 0.2s, background 0.2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.lang-switch button:hover[aria-pressed="false"] { color: var(--paper); }

/* === English-primary mode (html.lang-en) =============================== */
/* Swap visual hierarchy: the English sibling becomes the headline, the
   Arabic heading becomes the small secondary line. Reuses existing markup. */
.lang-en .hero-title { display: none; }
.lang-en .hero-title-en {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 9vw, 132px); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--paper); text-transform: none; margin-bottom: 14px; max-width: 16ch;
}

.lang-en .section-title { font-size: clamp(15px, 1.4vw, 19px); color: var(--paper-dim);
  font-weight: 500; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase;
  order: 2; margin-top: 10px; }
.lang-en .section-title em { color: var(--steel-glow); }
.lang-en .section-title-en {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.8vw, 72px); line-height: 1.06; letter-spacing: -0.005em;
  color: var(--paper); text-transform: none; margin-top: 0; order: 1;
}
.lang-en .section-head > div:nth-child(2) { display: flex; flex-direction: column; }

.lang-en .cta-title { display: none; }
.lang-en .cta-title-en {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 8vw, 116px); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--paper); text-transform: none; max-width: 20ch;
}

/* Paired sub-labels: brighten English, dim Arabic counterpart. */
.lang-en .service-name, .lang-en .step-name, .lang-en .fleet-name,
.lang-en .tr-name, .lang-en .training-card h3 {
  font-size: 0.62em; color: var(--paper-dim); font-weight: 500; order: 2;
}
.lang-en .service-name-en, .lang-en .step-name-en, .lang-en .fleet-name-en,
.lang-en .tr-name small, .lang-en .h3-en {
  font-family: var(--font-display); font-weight: 700; color: var(--paper);
  text-transform: none; letter-spacing: 0; font-size: 1.6em; margin-top: 0; order: 1;
}
.lang-en .eyebrow .en { opacity: 1 !important; }

/* Hero blurb: English becomes primary, Arabic the secondary line. */
.lang-en .hero-blurb { display: flex; flex-direction: column; }
.lang-en .hero-blurb .en-text {
  order: 1; margin-top: 0; padding-top: 0; border-top: 0;
  font-size: 18px; line-height: 1.7; color: var(--paper);
}
.lang-en .hero-blurb .ar-text {
  order: 2; font-size: 14px; line-height: 1.7; color: var(--paper-dim);
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}

/* === Reveal animations ================================================== */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal-stagger].in-view > * { opacity: 1; transform: none; }
[data-reveal-stagger].in-view > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].in-view > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-stagger].in-view > *:nth-child(3) { transition-delay: 0.18s; }
[data-reveal-stagger].in-view > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].in-view > *:nth-child(5) { transition-delay: 0.30s; }
[data-reveal-stagger].in-view > *:nth-child(6) { transition-delay: 0.36s; }

/* Word-reveal for hero */
.hero-title.in .word { transform: translateY(0); transition: transform 0.95s var(--ease-out); }
.hero-title .word { transition: transform 0.95s var(--ease-out); }
.hero-title .word:nth-child(1) { transition-delay: 0.10s; }
.hero-title .word:nth-child(2) { transition-delay: 0.18s; }
.hero-title .word:nth-child(3) { transition-delay: 0.26s; }
.hero-title .word:nth-child(4) { transition-delay: 0.34s; }

/* === Reduced motion ====================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], [data-reveal-stagger] > *, .hero-title .word { opacity: 1 !important; transform: none !important; }
  .wa-fab-pulse { display: none; }
}

/* === Responsive ========================================================= */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 56px; }
  .process-rail { display: none; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .fleet-card.large { grid-row: auto; min-height: 320px; }
  .training { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-meta { text-align: start; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-aside { text-align: start; max-width: none; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .cta-input { min-width: auto; width: 100%; }
}
