/* ==========================================================================
   Digital Rocket — styles.css
   Fonts: Lora (headings) · DM Sans (body, UI)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted variable woff2)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/dmsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand:        #2152c0;
  --brand-700:    #1b429c;
  --brand-800:    #143174;
  --brand-050:    #eef3fd;
  --brand-100:    #dbe6fa;
  --aqua:         #2bdacb;          /* decorative only - 1.8:1 on white */
  --aqua-050:     #e8faf8;
  --aqua-text:    #0d7f92;          /* readable teal - 4.7:1 on white */
  --gradient:     linear-gradient(90deg, #2152c0 0%, #2bdacb 100%);
  /* Text gradient ends on the darker teal so every word stays legible.
     The bright --gradient is kept for borders, glows and dark backgrounds. */
  --gradient-text: linear-gradient(90deg, #2152c0 0%, #0d7f92 100%);

  /* Ink — softened from the old pure #000 for comfortable long reads */
  --ink:          #14181f;
  --ink-70:       #414b5c;
  --ink-55:       #5c687a;
  --ink-40:       #6b7688;   /* 4.7:1 on white */

  /* Surfaces */
  --bg:           #ffffff;
  --bg-alt:       #f6f8fc;
  --bg-tint:      #f0f5ff;
  --bg-deep:      #0d1526;
  --bg-deep-2:    #16203a;

  /* Lines */
  --line:         #e3e8f0;
  --line-strong:  #cbd4e2;

  /* Type families */
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  --font-ar:   'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif;

  /* Fluid type scale */
  --t-xs:   0.8125rem;                                   /* 13px  */
  --t-sm:   0.9375rem;                                   /* 15px  */
  --t-base: 1.0625rem;                                   /* 17px  */
  --t-lg:   clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);   /* 18-20 */
  --t-xl:   clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);    /* 20-24 */
  --t-h4:   clamp(1.15rem, 1.08rem + 0.32vw, 1.35rem);   /* 18 - 22 px */
  --t-h3:   clamp(1.35rem, 1.24rem + 0.5vw, 1.65rem);     /* 22 - 26 px */
  --t-h2:   clamp(1.65rem, 1.42rem + 1.05vw, 2.25rem);    /* 26 - 36 px */
  --t-h1:   clamp(2rem, 1.62rem + 1.7vw, 2.9rem);         /* 32 - 46 px */

  /* Rhythm */
  --lh-tight: 1.16;
  --lh-head:  1.22;
  --lh-body:  1.65;

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.75rem;  --sp-8: 3.5rem;
  --sp-9: 4.5rem;   --sp-10: 6rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  /* Radius & shadow — restrained, no heavy drop shadows */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, .05);
  --shadow-md: 0 4px 16px rgba(20, 24, 31, .07);
  --shadow-lg: 0 12px 36px rgba(20, 24, 31, .09);

  --ring: 0 0 0 3px rgba(33, 82, 192, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

img, video, svg, picture { display: block; max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }

button { font: inherit; color: inherit; }

ul, ol { padding-left: 1.25em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-7) 0;
}

/* Visible, consistent focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

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

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: var(--lh-head);
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.011em;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: -0.021em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.016em; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
h5 { font-size: var(--t-xl); }
h6 { font-size: var(--t-lg); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

.lede {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--ink-70);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--sp-3);
}

/* The brand gradient — used sparingly, on the hero phrase only */
.grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand); /* fallback where background-clip is unsupported */
}

.muted { color: var(--ink-55); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

/* Arabic runs inside otherwise-English pages */
[lang="ar"], .ar {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt  { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section--deep { background: var(--bg-deep); color: #e8edf7; }
.section--deep h1, .section--deep h2,
.section--deep h3, .section--deep h4 { color: #fff; }
.section--deep .lede, .section--deep p { color: #b9c4d8; }

.section-head { max-width: 64ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .005em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--brand-050); border-color: var(--brand); color: var(--brand-700); }

.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-050); color: var(--brand-700); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

.btn--lg { padding: 1.1rem 2rem; font-size: var(--t-base); }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  font-size: var(--t-sm);
}
.link-arrow::after {
  content: '→';
  transition: transform .18s var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 74px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 168px; height: 68px; object-fit: contain; }

@media (max-width: 600px) {
  .brand img { width: 132px; height: 53px; }
  .header-inner { min-height: 64px; }
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: var(--sp-6); }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-70);
  padding: .5rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: color .16s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-caret {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  transition: transform .2s var(--ease);
}
.has-dropdown[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-item { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: block;
  padding: .65rem .85rem;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-70);
}
.dropdown a:hover { background: var(--brand-050); color: var(--brand-700); }
.dropdown a[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex: 0 0 auto;
}
.burger span {
  display: block;
  position: relative;
  width: 19px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: background .16s var(--ease);
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 19px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 74px 0 0;
  z-index: 99;
  background: #fff;
  overflow-y: auto;
  padding: var(--sp-5) var(--gutter) var(--sp-9);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: none; }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }

.mobile-nav a,
.mobile-nav .m-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.mobile-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.m-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s var(--ease);
}
.m-toggle[aria-expanded="true"] + .m-sub { max-height: 420px; }
.m-sub a {
  padding: .7rem 0 .7rem 1rem;
  font-size: var(--t-sm);
  color: var(--ink-70);
  border-left: 2px solid var(--line);
}
.m-sub li:last-child a { padding-bottom: 1.1rem; }
.m-toggle .nav-caret { transition: transform .22s var(--ease); }
.m-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.mobile-cta { margin-top: var(--sp-6); }

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { display: block; }
}
@media (max-width: 600px) { .mobile-nav { inset: 64px 0 0; } }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(900px 460px at 12% -8%, var(--brand-050) 0%, transparent 62%),
    radial-gradient(760px 420px at 92% 6%, var(--aqua-050) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero h1 { margin-bottom: var(--sp-5); }
.hero .lede { margin-bottom: var(--sp-6); max-width: 54ch; }

.hero-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}
.hero-media video,
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Centred hero variant, used on long-form landing pages */
.hero--center { text-align: center; }
.hero--center .lede { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }

.hero-note {
  margin-top: var(--sp-5);
  font-size: var(--t-sm);
  color: var(--ink-55);
}

/* "Built to be found across" chip row */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
}
.chip-row--center { justify-content: center; }
.chip {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--ink-70);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .4rem .85rem;
}

/* --------------------------------------------------------------------------
   9. Logo marquee
   -------------------------------------------------------------------------- */
.marquee {
  --marquee-duration: 48s;
  overflow: hidden;
  position: relative;
  padding-block: var(--sp-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: var(--sp-2); }

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: max-content;
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee-track img {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.marquee-track img:hover { filter: grayscale(0); opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .marquee-track img { height: 34px; max-width: 112px; }
}

/* --------------------------------------------------------------------------
   10. Alternating feature rows
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.feature + .feature { border-top: 1px solid var(--line); }

.feature--flip .feature-media { order: -1; }

.feature-body > :last-child { margin-bottom: 0; }
.feature-body h2, .feature-body h3 { margin-bottom: var(--sp-4); }
.feature-body p { color: var(--ink-70); }
.feature-body .btn, .feature-body .link-arrow { margin-top: var(--sp-5); }

.feature-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.feature-media img, .feature-media video {
  width: 100%; height: auto; display: block;
}

@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .feature--flip .feature-media { order: 0; }
  .feature-media { order: -1; }
}

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.card > :last-child { margin-bottom: 0; }
.card h3, .card h4 { margin-bottom: var(--sp-3); }
.card p { color: var(--ink-70); font-size: var(--t-sm); margin-bottom: 0; }

a.card:hover,
.card--link:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  object-fit: contain;
  margin-bottom: var(--sp-4);
}

.card--flat { background: var(--bg-alt); border-color: transparent; }
.card--num { position: relative; }
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--brand-050);
  color: var(--brand);
  font-size: var(--t-sm);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

/* Stat block */
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--t-sm);
  color: var(--ink-55);
}

/* --------------------------------------------------------------------------
   12. Prose — long-form SEO pages and blog posts
   -------------------------------------------------------------------------- */
.prose {
  max-width: 72ch;
  font-size: var(--t-lg);
  line-height: 1.72;
  color: var(--ink-70);
}
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: var(--t-h3);
  color: var(--ink);
  margin: var(--sp-8) 0 var(--sp-4);
  padding-top: var(--sp-2);
}
.prose h3 {
  font-size: var(--t-xl);
  color: var(--ink);
  margin: var(--sp-7) 0 var(--sp-3);
}
.prose h4 {
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 700;
  color: var(--ink);
  margin: var(--sp-6) 0 var(--sp-2);
  letter-spacing: 0;
}
.prose p { margin: 0 0 var(--sp-5); }
.prose ul, .prose ol { margin: 0 0 var(--sp-5); padding-left: 1.35em; }
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose img { border-radius: var(--r-md); margin: var(--sp-6) 0; border: 1px solid var(--line); }
.prose strong { color: var(--ink); }

.prose blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-left: 3px solid var(--brand);
  font-style: normal;
  color: var(--ink);
}

/* Callout — the "In short" summary block these pages use */
.callout {
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 {
  font-size: var(--t-lg);
  margin: 0 0 var(--sp-3);
  color: var(--brand-800);
}

.table-wrap { overflow-x: auto; margin: var(--sp-6) 0; }
.prose table, .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  min-width: 480px;
}
.prose th, .table-wrap th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-alt);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line-strong);
}
.prose td, .table-wrap td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

/* Article layout with sticky sidebar */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-aside { order: -1; position: static !important; }
}

.article-aside { position: sticky; top: 100px; }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  background: var(--bg-alt);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin: 0 0 var(--sp-3);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: var(--sp-2); }
.toc a {
  font-size: var(--t-sm);
  color: var(--ink-70);
  line-height: 1.45;
  display: block;
}
.toc a:hover, .toc a.is-active { color: var(--brand); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
  font-size: var(--t-sm);
  color: var(--ink-55);
  margin-bottom: var(--sp-6);
}

.breadcrumbs {
  font-size: var(--t-xs);
  color: var(--ink-40);
  margin-bottom: var(--sp-5);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0; padding: 0;
}
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .45rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-55); }
.breadcrumbs a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   13. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.faq-q:hover { color: var(--brand); }

.faq-icon {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: .25em;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: var(--brand);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after  { width: 2px; height: 14px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s var(--ease);
}
.faq-a-inner {
  padding-bottom: var(--sp-5);
  color: var(--ink-70);
  max-width: 68ch;
}
.faq-a-inner > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }

.field { display: grid; gap: var(--sp-2); }
.field--split {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: end;
}
@media (max-width: 480px) { .field--split { grid-template-columns: 110px minmax(0, 1fr); } }

.label {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-70);
}
.label .req { color: #c0392b; margin-left: .15em; }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--t-base);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: .8rem 1rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.select {
  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 d='M1 1.5 6 6.5l5-5' stroke='%235c687a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: #c0392b;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-40); }

.field-error {
  font-size: var(--t-xs);
  color: #c0392b;
  min-height: 1em;
}

.form-note { font-size: var(--t-xs); color: var(--ink-55); }
.form-note a { text-decoration: underline; }

.form-status {
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  font-size: var(--t-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok  { background: var(--aqua-050); border: 1px solid #a5e8e0; color: #0f5f57; }
.form-status--err { background: #fdeceb; border: 1px solid #f5c2bd; color: #96271c; }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Two-column contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.contact-detail { margin-bottom: var(--sp-5); }
.contact-detail dt {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: var(--sp-1);
}
.contact-detail dd { margin: 0; font-size: var(--t-base); }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--bg-deep);
  background-image:
    radial-gradient(680px 340px at 15% 0%, rgba(33, 82, 192, .38) 0%, transparent 65%),
    radial-gradient(560px 320px at 88% 100%, rgba(43, 218, 203, .22) 0%, transparent 62%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-band p {
  color: #b9c4d8;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

/* --------------------------------------------------------------------------
   16. Blog listing
   -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.post-card:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-card-media { aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post-card h2 {
  font-size: var(--t-xl);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}
.post-card h2 a { color: var(--ink); }
.post-card:hover h2 a { color: var(--brand); }
.post-card p {
  font-size: var(--t-sm);
  color: var(--ink-70);
  margin-bottom: var(--sp-4);
}
.post-card .post-meta { margin-top: auto; font-size: var(--t-xs); color: var(--ink-40); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-deep);
  color: #b9c4d8;
  padding-block: var(--sp-9) var(--sp-6);
  font-size: var(--t-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-7) var(--sp-5); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* The supplied logo has a solid white background baked in (no alpha), so on
   the dark footer it needs to sit on a deliberate white plaque rather than
   showing as a stray white rectangle. Swap this for a transparent or
   white-on-dark logo file and the plaque can go. */
.footer-brand .footer-logo {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  line-height: 0;
}
.footer-brand img {
  width: 160px; height: 64px;
  object-fit: contain;
}
.footer-about { color: #93a2bd; max-width: 34ch; margin-bottom: var(--sp-5); }

.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--sp-3); }
.footer-col a { color: #b9c4d8; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }

.social-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
  color: #b9c4d8;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.social-row a:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .4); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-xs);
  color: #7d8ba6;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: #7d8ba6; }
.footer-legal a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 58vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: var(--sp-9);
}
.error-code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 600;
  line-height: 1;
  /* Soft, but still 3:1 on white - a pale tint here failed contrast. */
  color: #6d92d0;
  margin-bottom: var(--sp-4);
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-7 { margin-bottom: var(--sp-7); }

/* Reveal-on-scroll (progressive: visible by default if JS never runs) */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .marquee, .burger, .mobile-nav { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .prose { max-width: none; }
}
