/* ==========================================================================
   Abaad Business — design system
   Tokens sampled from the Abaad Business logo (navy / amber / sand).
   Every text-on-background pair below is verified against WCAG 2.1 AA.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy: #0F2A4A;
  --navy-deep: #0A1F38;
  --navy-soft: #1C3E64;
  --amber: #C9883B;
  --amber-light: #E4C39C;
  --amber-deep: #9A5F1C;   /* amber for TEXT on light surfaces — 5.2:1 on white */
  --sand: #F7F1E8;
  --cream: #FAF8F4;
  --ink: #1B2A3D;
  --muted: #5C6B7A;        /* 5.5:1 on white (brief's #6B7A8A measured 4.4:1 — failed AA) */
  --hairline: #DFE5EC;
  --field-border: #84919F;  /* 3.2:1 on white — WCAG 1.4.11 non-text contrast */
  --hairline-dark: #24405F;
  --white: #FFFFFF;

  /* Feedback */
  --error: #B3261E;
  --error-bg: #FDF3F2;
  --success: #1E6F4C;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;

  /* Section rhythm */
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --section-y-tight: clamp(2.5rem, 5vw, 4rem);

  /* Type scale — fluid */
  --fs-display: clamp(2.125rem, 1.35rem + 3.4vw, 3.75rem);
  --fs-h1: clamp(1.875rem, 1.3rem + 2.5vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  --fs-h3: clamp(1.1875rem, 1.06rem + 0.6vw, 1.5rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Fonts */
  --font-heading: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06);
  --shadow: 0 6px 20px -8px rgba(15, 42, 74, 0.18);
  --shadow-lg: 0 18px 44px -20px rgba(15, 42, 74, 0.32);

  /* Layout */
  --container: 1240px;
  --container-narrow: 820px;
  --header-h: 76px;
  --header-h-condensed: 62px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps anchor targets clear of the sticky header */
  scroll-padding-top: calc(var(--header-h-condensed) + var(--space-5));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--amber-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }

ul, ol { margin: 0 0 var(--space-4); padding-inline-start: 1.25rem; }
li { margin-bottom: var(--space-2); }
li:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--navy); }

hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--space-7) 0; }

:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--amber-light); color: var(--navy-deep); }

/* Screen-reader-only, and the skip link that reveals itself on focus */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; inset-inline-start: var(--space-4); z-index: 200;
  background: var(--navy); color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }
@media (min-width: 1440px) { .container { padding-inline: var(--space-8); } }

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #E6ECF4; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 62ch; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: var(--space-3);
}
.section--navy .eyebrow, .cta-band .eyebrow { color: var(--amber-light); }

.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.6; }
.section--navy .lead { color: #C4D2E2; }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--navy-deep);
  --btn-border: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
/* Amber #C9883B carries navy text at 4.9:1. White text on the same amber measures
   3.0:1 and would fail AA, so every primary button is navy-on-amber. */
.btn:hover { --btn-bg: var(--amber-light); --btn-border: var(--amber-light); color: var(--navy-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-border: var(--navy);
}
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-border: var(--navy); color: var(--white); }

.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-7); font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-heading); font-weight: 600;
  color: var(--amber-deep); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.link-arrow:hover { color: var(--navy); border-bottom-color: var(--amber); }
.link-arrow .arrow { transition: transform 0.18s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--amber-light); }
.section--navy .link-arrow:hover { color: var(--white); border-bottom-color: var(--amber-light); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  transition: min-height 0.2s var(--ease);
}
.site-header.is-scrolled .site-header__inner { min-height: var(--header-h-condensed); }

.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; flex-shrink: 0; }
.brand picture { display: block; flex-shrink: 0; }
.brand img { width: 52px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.0625rem; letter-spacing: 0.055em;
  color: var(--navy); text-transform: uppercase;
}
.brand__sub { font-size: 0.625rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
@media (min-width: 400px) {
  .brand img { width: 60px; }
  .brand__name { font-size: 1.1875rem; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); color: var(--navy); cursor: pointer;
}
.nav-toggle:hover { background: var(--sand); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav__list { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.site-nav__list li { margin: 0; }
.site-nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  color: var(--navy); text-decoration: none; border-radius: var(--radius-sm);
}
.site-nav__link:hover { background: var(--sand); color: var(--navy); }
.site-nav__link[aria-current="page"] { color: var(--amber-deep); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }

/* Mobile: slide-down panel */
@media (max-width: 1023px) {
  .site-nav {
    position: absolute; top: 100%; inset-inline: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) 0 var(--space-6);
    display: none;
    max-height: calc(100vh - var(--header-h-condensed));
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding-inline: var(--space-5); }
  /* display:flex (not inline-flex) so the divider spans the full panel width */
  .site-nav__link { display: flex; min-height: 52px; padding-inline: var(--space-3); border-bottom: 1px solid var(--hairline); border-radius: 0; }
  .site-nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
  .site-nav__cta { margin-top: var(--space-5); padding-inline: var(--space-5); }
  .site-nav__cta .btn { width: 100%; }
  .site-header__cta-desktop { display: none; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav__cta { display: none; }
  .site-header__inner { gap: var(--space-6); }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #DCE5F0;
  overflow: hidden;
  isolation: isolate;
}
/* The logo's supporting arc, abstracted into background geometry */
.hero__motif { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__motif svg { width: 100%; height: 100%; }

.hero__inner {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  max-width: 790px;
}
.hero h1 { font-size: var(--fs-display); color: var(--white); margin-bottom: var(--space-5); }
.hero__sub { font-size: var(--fs-lead); color: #C4D2E2; max-width: 62ch; margin-bottom: var(--space-7); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
  margin: var(--space-7) 0 0; padding: var(--space-5) 0 0;
  border-top: 1px solid var(--hairline-dark);
  font-size: var(--fs-sm); color: #AEC0D6;
  list-style: none;
}
.hero__meta li { display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.hero__meta svg { color: var(--amber); flex-shrink: 0; width: 18px; height: 18px; }

.page-hero { background: var(--navy); color: #C4D2E2; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 65ch; margin-bottom: 0; font-size: var(--fs-lead); }
.page-hero .eyebrow { color: var(--amber-light); }

/* Inline links on navy: --amber-deep is tuned for light surfaces and measures
   2.8:1 here, so dark bands use amber-light (8.7:1) instead. */
.hero a:not(.btn):not(.link-arrow),
.page-hero a:not(.btn):not(.link-arrow),
.section--navy a:not(.btn):not(.link-arrow),
.cta-band a:not(.btn):not(.link-arrow) { color: var(--amber-light); }

.hero a:not(.btn):not(.link-arrow):hover,
.page-hero a:not(.btn):not(.link-arrow):hover,
.section--navy a:not(.btn):not(.link-arrow):hover,
.cta-band a:not(.btn):not(.link-arrow):hover { color: var(--white); }

/* --------------------------------------------------------------------------
   7. Cards & content components
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card--service { border-top: 3px solid var(--amber); }
.card--service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--amber-light); border-top-color: var(--amber); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--muted); }
.card__foot { margin-top: auto; padding-top: var(--space-5); }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--sand); color: var(--navy);
}
.card__icon svg { width: 26px; height: 26px; }

/* Benefit list (Why Abaad) */
.benefit { display: flex; gap: var(--space-4); }
.benefit__icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--hairline); color: var(--amber-deep);
}
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: var(--fs-h4); margin-bottom: var(--space-1); }
.benefit p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* Process steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; position: relative; padding-top: var(--space-6); margin: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: var(--space-3); inset-inline-start: 0;
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--amber-deep);
}
.step::after {
  content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--amber) 0 34px, var(--hairline) 34px);
}
.section--navy .step::before { color: var(--amber-light); }
.section--navy .step::after { background: linear-gradient(90deg, var(--amber) 0 34px, var(--hairline-dark) 34px); }
.step h3 { font-size: var(--fs-h4); margin: 0 0 var(--space-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.section--navy .step p { color: #B7C6D9; }

/* Sector chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.chips li {
  margin: 0; padding: var(--space-2) var(--space-4);
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; color: var(--navy);
}

/* Compliance band items */
.compliance { display: grid; gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .compliance { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .compliance { grid-template-columns: repeat(3, 1fr); } }
.compliance li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin: 0; padding: var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm); color: #C9D8E9;
}
.compliance svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--amber); margin-top: 2px; }
.compliance strong { color: var(--white); display: block; font-family: var(--font-heading); margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   8. Service detail blocks (/services)
   -------------------------------------------------------------------------- */
.jump-links { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.jump-links li { margin: 0; }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--space-2) var(--space-5);
  background: var(--white); border: 1px solid var(--hairline); border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm);
  color: var(--navy); text-decoration: none;
}
.jump-links a:hover { border-color: var(--amber); background: var(--sand); color: var(--navy); }

.service { padding-block: var(--section-y); }
.service--alt { background: var(--sand); }

.service__head { margin-bottom: var(--space-7); max-width: 70ch; }
.service__head h2 { margin-bottom: var(--space-3); }
.service__definition { font-size: var(--fs-lead); color: var(--muted); margin: 0; }

.service__body { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .service__body { grid-template-columns: 1.1fr 1fr; gap: var(--space-6); align-items: start; } }

.service__panel {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: var(--space-6);
}
.service--alt .service__panel { border-color: #EBE1D2; }
.service__panel + .service__panel { margin-top: var(--space-5); }
.service__panel h3 {
  font-family: var(--font-heading); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep);
  margin-bottom: var(--space-4);
}
.service__col > .service__panel:first-child { margin-top: 0; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: var(--space-3); margin-bottom: var(--space-3); font-size: var(--fs-sm); }
.ticks li:last-child { margin-bottom: 0; }
.ticks svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--amber-deep); margin-top: 4px; }

.service__cta { margin-top: var(--space-6); }

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.compare {
  width: 100%; min-width: 660px; border-collapse: collapse;
  background: var(--white); font-size: var(--fs-sm);
}
.compare th, .compare td {
  padding: var(--space-4); text-align: start; vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
.compare thead th {
  background: var(--navy); color: var(--white);
  font-family: var(--font-heading); font-weight: 600;
  border-bottom: 0;
}
.compare thead th:first-child { background: var(--navy-deep); }
.compare tbody th { font-weight: 600; color: var(--navy); background: var(--sand); width: 28%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Mobile restack of the comparison table */
.compare-cards { display: grid; gap: var(--space-5); }
.compare-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--space-5); }
.compare-card h3 { font-size: var(--fs-h4); margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--amber); }
.compare-card dl { margin: 0; }
.compare-card dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.compare-card dd { margin: 0 0 var(--space-4); font-size: var(--fs-sm); color: var(--ink); font-weight: 500; }
.compare-card dd:last-child { margin-bottom: 0; }

@media (max-width: 899px) { .table-scroll { display: none; } }
@media (min-width: 900px) { .compare-cards { display: none; } }

/* --------------------------------------------------------------------------
   9. CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--navy-deep); color: #C9D6E6; text-align: center; position: relative; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 6vw, 5rem); max-width: 62ch; margin-inline: auto; }
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: var(--fs-lead); color: #C4D2E2; margin-bottom: var(--space-7); }
.cta-band .btn-row { justify-content: center; }
/* The logo's arc, anchored to the base of the band so it reads as a support
   line under the message rather than a stripe across it. */
.cta-band__arc {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: -2px;
  width: 160%; min-width: 900px; height: clamp(80px, 11vw, 150px);
  color: var(--amber); opacity: 0.3;
}
.cta-band__arc svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   10. Contact page & form
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1.25fr 1fr; gap: var(--space-9); align-items: start; } }

.form-card {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .form-card { padding: var(--space-7); } }

.field { margin-bottom: var(--space-5); }

.field > label, .field .label {
  display: block; margin-bottom: var(--space-2);
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm);
  color: var(--navy);
}
.field .req { color: var(--error); margin-inline-start: 2px; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 156px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F2A4A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--space-4) center;
  /* flipped for RTL in the direction section at the end of this file */
  padding-inline-end: var(--space-8);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.14); outline: none;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--amber-deep); outline-offset: 2px;
}

/* Matches the specificity of the `.field input[type="…"]` rules above, so the
   error border actually wins. */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16); }

.field__error {
  display: none; align-items: flex-start; gap: var(--space-2);
  margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--error); font-weight: 500;
}
.field__error.is-visible { display: flex; }
.field__error svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; }

.field__hint { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--muted); }
.field__counter { font-variant-numeric: tabular-nums; }

.field--check { display: flex; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.field--check input[type="checkbox"] {
  flex-shrink: 0; width: 24px; height: 24px; margin: 2px 0 0;
  accent-color: var(--navy); cursor: pointer;
}
.field--check label {
  flex: 1; margin: 0; padding: var(--space-2) 0;
  font-family: var(--font-body); font-weight: 400;
  font-size: var(--fs-sm); color: var(--ink); line-height: 1.55;
  cursor: pointer;
}
.field--check .field__error { flex-basis: 100%; }

/* Honeypot — kept out of the layout and the a11y tree, but still fillable by bots */
.hp-field { position: absolute; inset-inline-start: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: none; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5);
  border-radius: var(--radius-sm); font-size: var(--fs-sm);
  border: 1px solid var(--error); background: var(--error-bg); color: #7A1A14;
}
.form-alert.is-visible { display: flex; }
.form-alert svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--error); margin-top: 2px; }
.form-alert a { color: #7A1A14; }
.form-alert p { margin: 0; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(10, 31, 56, 0.3); border-top-color: var(--navy-deep);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: var(--space-7) var(--space-4); }
.form-success__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: var(--space-5);
  border-radius: 50%; background: #E7F3ED; color: var(--success);
}
.form-success h2 { margin-bottom: var(--space-3); }
.form-success p { color: var(--muted); max-width: 46ch; margin-inline: auto; margin-bottom: var(--space-6); }

/* Contact aside */
.contact-aside { display: grid; gap: var(--space-5); align-content: start; }
.info-block { background: var(--sand); border-radius: var(--radius); padding: var(--space-6); }
.info-block h2, .info-block h3 { font-size: var(--fs-h4); margin-bottom: var(--space-4); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); font-size: var(--fs-sm); }
.info-list li:last-child { margin-bottom: 0; }
.info-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--amber-deep); margin-top: 3px; }
.info-list a { color: var(--navy); }
.info-list a:hover { color: var(--amber-deep); }
.info-list .label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

.next-steps { counter-reset: ns; list-style: none; padding: 0; margin: 0; }
.next-steps li { counter-increment: ns; position: relative; padding-inline-start: var(--space-9); margin-bottom: var(--space-4); font-size: var(--fs-sm); }
.next-steps li:last-child { margin-bottom: 0; }
.next-steps li::before {
  content: counter(ns); position: absolute; inset-inline-start: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.next-steps strong { display: block; }

.map-block { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); background: var(--sand); }
.map-block iframe { display: block; width: 100%; height: 320px; border: 0; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #B8C7DA; padding-block: var(--space-9) var(--space-6); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: var(--space-7); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: var(--space-8); } }

.site-footer h2, .site-footer h3 {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white); margin-bottom: var(--space-4);
}
.site-footer p { color: #A9BACF; }
.site-footer a { color: #D3DFEC; text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); text-decoration: underline; }
.site-footer__logo { width: 190px; height: auto; margin-bottom: var(--space-5); }
.site-footer picture { display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-3); }
.site-footer li:last-child { margin-bottom: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 32px; }

.site-footer__bar {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
  align-items: center; justify-content: space-between;
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid var(--hairline-dark);
  font-size: var(--fs-xs); color: #92A5BC;
}
.site-footer__bar ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.site-footer__bar li { margin: 0; }
.footer-endorsement {
  display: inline-block; margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 2px solid var(--amber); font-family: var(--font-heading);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber-light);
}

/* --------------------------------------------------------------------------
   12. Cookie consent
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; inset-inline: var(--space-4); bottom: var(--space-4);
  z-index: 150; max-width: 760px; margin-inline: auto;
  display: none; gap: var(--space-5); align-items: center; flex-wrap: wrap;
  padding: var(--space-5);
  background: var(--white); border: 1px solid var(--hairline);
  border-inline-start: 4px solid var(--amber);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { flex: 1 1 280px; margin: 0; color: var(--muted); }
.cookie-banner .btn-row { flex: 0 0 auto; gap: var(--space-3); }
.cookie-banner .btn { min-height: 44px; padding-inline: var(--space-5); font-size: var(--fs-sm); }
@media (max-width: 479px) { .cookie-banner .btn-row { width: 100%; } }

/* --------------------------------------------------------------------------
   13. Editorial / legal / error pages
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--space-8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--space-6); }
.prose .updated { font-size: var(--fs-sm); color: var(--muted); }

.error-page { text-align: center; padding-block: clamp(4rem, 12vw, 7rem); }
.error-page .code {
  font-family: var(--font-heading); font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700; line-height: 1; color: var(--amber); margin-bottom: var(--space-4);
}
.error-page .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   14. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .cta-band, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
}

/* --------------------------------------------------------------------------
   15. Language switcher
   -------------------------------------------------------------------------- */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 40px;
  padding-inline: var(--space-3);
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm);
  color: var(--navy); text-decoration: none;
}
.lang-switch a:hover { background: var(--sand); color: var(--navy); }
.lang-switch [aria-current="true"] { background: var(--navy); color: var(--white); }
.lang-switch .lang-switch__sep { min-width: 0; padding: 0; width: 1px; background: var(--hairline); align-self: stretch; }

/* Arabic set in Latin UI, and vice versa: each label keeps its own face. */
.lang-switch [lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-heading); letter-spacing: normal; }
.lang-switch [lang="en"] { font-family: "Barlow", sans-serif; }

@media (max-width: 1023px) {
  .site-nav__lang { margin-top: var(--space-5); padding-inline: var(--space-5); }
  .site-nav__lang .lang-switch { width: 100%; }
  .site-nav__lang .lang-switch a, .site-nav__lang .lang-switch span { flex: 1; min-height: 48px; }
  .site-header__lang-desktop { display: none; }
}
@media (min-width: 1024px) {
  .site-nav__lang { display: none; }
}

/* --------------------------------------------------------------------------
   16. Arabic typography & RTL
   Arabic runs through the same tokens; only the faces, the tracking and the
   handful of genuinely one-directional details change.
   -------------------------------------------------------------------------- */
[lang="ar"] {
  --font-heading: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
}

/* Letter-spacing breaks the joins between Arabic letters, so it goes to zero
   everywhere — including the places where the Latin design leans on tracking. */
[lang="ar"],
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4,
[lang="ar"] .eyebrow, [lang="ar"] .btn, [lang="ar"] .brand__name,
[lang="ar"] .brand__sub, [lang="ar"] .site-footer h2, [lang="ar"] .site-footer h3,
[lang="ar"] .service__panel h3, [lang="ar"] .compare-card dt,
[lang="ar"] .info-list .label, [lang="ar"] .footer-endorsement,
[lang="ar"] .step::before {
  letter-spacing: normal;
}

/* Arabic needs a little more leading than the Latin setting to stay readable. */
[lang="ar"] { line-height: 1.85; }
[lang="ar"] h1, [lang="ar"] h2 { line-height: 1.3; }
[lang="ar"] h3, [lang="ar"] h4 { line-height: 1.4; }
[lang="ar"] .lead, [lang="ar"] .hero__sub { line-height: 1.8; }

/* Latin brand names, addresses and codes stay LTR inside Arabic prose. */
[lang="ar"] .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Counters render as Arabic-Indic digits in Arabic contexts unless told otherwise;
   the design uses them as Latin-style numerals. */
[lang="ar"] .step::before { content: counter(step, decimal-leading-zero); }
[lang="ar"] .next-steps li::before { content: counter(ns, decimal); }

/* --- the genuinely one-directional details --- */
[dir="rtl"] .field select {
  background-position: left var(--space-4) center;
}
[dir="rtl"] .step::after {
  background: linear-gradient(270deg, var(--amber) 0 34px, var(--hairline) 34px);
}
[dir="rtl"] .section--navy .step::after {
  background: linear-gradient(270deg, var(--amber) 0 34px, var(--hairline-dark) 34px);
}
[dir="rtl"] .link-arrow:hover .arrow { transform: translateX(-4px); }

/* The hero motif reads left-to-right; mirror it so the figures sit on the
   side the eye reaches last in either direction. */
[dir="rtl"] .hero__motif { transform: scaleX(-1); }

@media (max-width: 1023px) {
  [dir="rtl"] .site-nav__link[aria-current="page"] { box-shadow: inset -3px 0 0 var(--amber); }
}

/* --------------------------------------------------------------------------
   17. Client logo strip - single-row marquee
   Third-party marks keep their own colours - recolouring them can breach the
   owners' brand guidelines - so the strip unifies them by size and spacing.
   Each file is pre-fitted to the same 180x56 box, which is why no per-logo
   rule is needed here.

   The loop runs two identical groups back to back and translates the track by
   exactly one group plus one gap, so the seam never shows.
   -------------------------------------------------------------------------- */
.logo-strip {
  border-top: 1px solid var(--hairline);
  --marquee-gap: var(--space-8);
  --marquee-duration: 46s;
}

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2);
  /* The track is wider than this box. In an RTL containing block an
     overflowing max-content box anchors to the RIGHT edge, which would push
     every logo off-screen to the left, so the overflow container is pinned
     LTR in both languages. Motion direction is handled by the animation. */
  direction: ltr;
  /* Logos dissolve at both edges instead of being cut off mid-letter. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--marquee-gap);
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}

.marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--marquee-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.marquee__group li { margin: 0; flex: 0 0 auto; }
.marquee__group img { width: 180px; height: 56px; object-fit: contain; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  /* One group is 50% of the track minus half the inter-group gap. */
  to   { transform: translateX(calc(-50% - (var(--marquee-gap) / 2))); }
}

/* Arabic reads right to left, so the motion is mirrored to match. */
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* Pausing: on hover, and while anything inside has keyboard focus. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@media (max-width: 479px) {
  .logo-strip { --marquee-gap: var(--space-6); }
  .marquee__group img { width: 138px; height: 43px; }
}

/* Motion off: no animation, and the row becomes a normal scrollable list so
   every logo is still reachable. The duplicate group has no purpose once the
   loop stops, so it goes away too. */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__track { animation-name: none !important; transform: none !important; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
