/* =============================================================
   SUPERIOR STABILIZATION CORP - Design System
   Hand-crafted stylesheet · Trust & Authority direction
   Palette: deep ocean navy + trust teal + ocean blue
   Type: Montserrat (display) / Inter (body)
   ============================================================= */

/* ----------  Fonts (self-hosted — eliminates Google Fonts network round-trip) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter.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: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat.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;
}

/* ----------  Design Tokens  ---------- */
:root {
  /* Brand - ocean / stability */
  --navy-900: #07243a;
  --navy-800: #0a2e45;
  --navy-700: #0d3a57;
  --navy-600: #134e6f;
  --teal-700: #0f766e;
  --teal-600: #128175;
  --teal-500: #14b8a6;
  --teal-300: #5eead4;
  --blue-700: #0369a1;
  --blue-600: #0284c7;
  --sand-100: #f4f1ea;   /* subtle earth accent */
  --seafoam-50: #eefbf8;

  /* Neutrals */
  --white: #ffffff;
  --paper: #f7fafb;      /* cool off-white bg */
  --mist: #eef3f6;       /* muted surface */
  --line: #e0e8ee;       /* borders */
  --line-strong: #cdd8e1;
  --ink-900: #0c2330;    /* headings */
  --ink-700: #2c4452;    /* body strong */
  --ink-500: #5a7184;    /* muted text */
  --ink-400: #8197a6;

  /* Semantic */
  --primary: var(--navy-800);
  --brand: var(--teal-700);
  --brand-bright: var(--teal-500);
  --accent: var(--blue-700);
  --bg: var(--white);
  --fg: var(--ink-700);
  --danger: #dc2626;
  --success: #15803d;

  /* Typography */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 0.9rem + 0.6vw, 1.3125rem);
  --fs-h4: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-h3: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.5vw, 3.6rem);
  --fs-h1: clamp(2.8rem, 1.7rem + 4.6vw, 5.4rem);

  /* Spacing scale (8pt) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows - soft, layered, premium */
  --sh-xs: 0 1px 2px rgba(12, 35, 48, 0.06);
  --sh-sm: 0 2px 8px rgba(12, 35, 48, 0.07);
  --sh-md: 0 10px 30px -8px rgba(12, 35, 48, 0.14);
  --sh-lg: 0 30px 70px -22px rgba(10, 46, 69, 0.26);
  --sh-brand: 0 10px 26px -12px rgba(15, 118, 110, 0.30);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --header-h: 84px;
}

/* ----------  Reset & Base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy-900); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.015em; text-transform: uppercase; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.005em; }

:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-500); color: #04211d; }

/* ----------  Layout helpers  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(5rem, 9.5vw, 9.5rem); position: relative; overflow: hidden; }
.section-sm { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.sect-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.sect-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.section > .container { position: relative; z-index: 1; }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy-800); color: #d8e4ec; }
.bg-seafoam { background: var(--seafoam-50); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* ----------  Eyebrow / Section heading  ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-bright); border-radius: 2px; }
.bg-navy .eyebrow { color: var(--teal-300); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1.1rem; font-size: var(--fs-lg); color: var(--ink-500); }
.bg-navy .section-head h2 { color: #fff; }
.bg-navy .section-head p { color: #a9c0ce; }

.lead { font-size: var(--fs-lg); color: var(--ink-500); }

/* ----------  Buttons  ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.85rem 1.65rem; border-radius: var(--r-pill);
  min-height: 44px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--brand); box-shadow: var(--sh-brand); }
.btn-primary:hover { --btn-bg: var(--teal-600); }
.btn-accent { --btn-bg: var(--accent); box-shadow: 0 16px 40px -12px rgba(3,105,161,.45); }
.btn-accent:hover { --btn-bg: var(--blue-600); }
.btn-dark { --btn-bg: var(--navy-800); box-shadow: var(--sh-md); }
.btn-dark:hover { --btn-bg: var(--navy-700); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink-900);
  border-color: var(--line-strong);
}
.btn-ghost:hover { --btn-bg: var(--white); border-color: var(--brand); color: var(--brand); box-shadow: var(--sh-sm); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--navy-800); box-shadow: var(--sh-md); }
.btn-white:hover { --btn-bg: #eefbf8; }
.btn-lg { padding: 1.1rem 2rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { --btn-bg: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { gap: 0.45rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ----------  Promo bar  ---------- */
.promobar {
  background: linear-gradient(90deg, var(--navy-900), var(--teal-700));
  color: #eafdfa; font-size: 0.875rem; font-weight: 500;
  text-align: center; padding: 0.55rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
}
.promobar strong { color: #fff; font-weight: 700; }
.promobar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.promobar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-300); }

/* ----------  Header / Nav  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
  will-change: background, box-shadow;
  transform: translateZ(0);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: var(--sh-sm); border-color: var(--line);
}
/* Transparent (over-hero) state - DJI-style blended nav with light text */
.site-header:not(.scrolled) .logo-text b { color: #fff; }
.site-header:not(.scrolled) .logo-text span { color: var(--teal-300); }
.site-header:not(.scrolled) .logo-mark rect { fill: rgba(255,255,255,0.16); }
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.86); }
.site-header:not(.scrolled) .nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.site-header:not(.scrolled) .nav-link[aria-current="page"] { color: #fff; }
.site-header:not(.scrolled) .caret { color: rgba(255,255,255,0.86); }
.site-header:not(.scrolled) .nav-phone { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; }
.site-header:not(.scrolled) .nav-phone:hover { background: rgba(255,255,255,0.25); }
.site-header:not(.scrolled) .nav-phone small { color: rgba(255,255,255,0.65); }
.site-header:not(.scrolled) .nav-phone svg { color: var(--teal-300); }
.site-header:not(.scrolled) .nav-toggle { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.28); }
.site-header:not(.scrolled) .nav-toggle svg { color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: var(--header-h); overflow: visible; padding-inline: clamp(0.5rem, 2vw, 1.25rem); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; color: var(--navy-800); letter-spacing: -0.01em; }
.logo-text span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); margin-top: 3px; }
.logo-img { width: 220px; max-width: none; height: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.9rem; border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-700);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a.nav-link:hover { color: var(--navy-800); background: var(--mist); }
.nav-links a.nav-link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-link .caret { width: 14px; height: 14px; transition: transform var(--t-fast); }
.has-mega:hover .caret { transform: rotate(180deg); }

/* Mega dropdown */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 0.8rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-item { display: flex; gap: 0.8rem; padding: 0.75rem; border-radius: var(--r-md); transition: background var(--t-fast); }
.mega-item:hover { background: var(--seafoam-50); }
.mega-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--seafoam-50); color: var(--brand); border: 1px solid var(--line); }
.mega-item:hover .mega-ico { background: var(--brand); color: #fff; border-color: var(--brand); }
.mega-ico svg { width: 21px; height: 21px; }
.mega-item b { display: block; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ink-900); }
.mega-item small { color: var(--ink-500); font-size: 0.82rem; line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: 0.85rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: #fff; background: var(--navy-800);
  padding: 0.55rem 1.1rem; border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav-phone:hover { background: var(--navy-700); }
.nav-phone svg { width: 16px; height: 16px; color: var(--teal-300); flex: none; }
.nav-phone small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--navy-800); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu .scrim { position: absolute; inset: 0; background: rgba(7,36,58,.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--t-med); }
.mobile-menu.open .scrim { opacity: 1; }
.mobile-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw);
  background: #fff; box-shadow: var(--sh-lg); padding: 1.25rem;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--t-med) var(--ease);
  overflow-y: auto;
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mobile-head .logo-img { height: 56px; width: auto; object-fit: contain; }
.mobile-close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.mobile-links { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.5rem; }
.mobile-links a { padding: 0.85rem 0.75rem; border-radius: 10px; font-weight: 600; color: var(--ink-900); font-size: 1.05rem; }
.mobile-links a:hover { background: var(--mist); color: var(--brand); }
.mobile-sub { display: flex; flex-direction: column; padding-left: 0.5rem; }
.mobile-sub a { font-size: 0.95rem; font-weight: 500; color: var(--ink-500); padding: 0.55rem 0.75rem; }
.mobile-foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.75rem; }

/* ----------  Hero  ---------- */
.hero {
  position: relative; background: var(--navy-900); color: #fff; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  height: 100svh; display: flex; flex-direction: column;
}

/* Full-bleed video background */
.hero-vid-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center;
}

/* Dark gradient overlay - heavier at edges/bottom for text legibility */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(5,20,35,.82) 0%, rgba(5,20,35,.55) 55%, rgba(5,20,35,.30) 100%),
    linear-gradient(to top,   rgba(5,20,35,.80) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(5,20,35,.60) 0%, transparent 30%);
}

/* Content sits above video + overlay */
.hero-inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 3vw, 3rem));
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

/* Single-column content - left-anchored, fills bottom-left of hero */
.hero-copy { max-width: 620px; }
.hero h1 { color: #fff; font-weight: 800; line-height: 1.06; text-transform: uppercase; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem); letter-spacing: -0.02em; }
.hero h1 .hl { color: var(--teal-300); font-weight: 800; }
.hero .eyebrow { color: var(--teal-300); }
.hero-sub { margin-top: 1.1rem; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.2rem); color: rgba(255,255,255,.7); font-weight: 400; letter-spacing: 0.01em; max-width: 50ch; }
.hero-cta { margin-top: 2rem; }
.hero-phone-link { display: inline-block; margin-top: 1rem; font-size: 0.92rem; color: rgba(255,255,255,.55); letter-spacing: 0.04em; text-decoration: none; transition: color var(--t-fast); }
.hero-phone-link:hover { color: rgba(255,255,255,.9); }

/* Floating badge chips - bottom-right corner over the video */
.hero-badges-float {
  position: absolute; z-index: 3;
  bottom: calc(6rem + 1rem); /* sits above cred-strip */
  right: clamp(1.5rem, 5vw, 5rem);
  display: flex; flex-direction: column; gap: 0.8rem;
  align-items: flex-end;
}
.hero-badge-float {
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  color: var(--ink-900); border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.28); padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid rgba(255,255,255,.5);
}
.hero-badge-float .ico { width: 38px; height: 38px; border-radius: 9px; background: var(--seafoam-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.hero-badge-float .ico svg { width: 20px; height: 20px; }
.hero-badge-float b { font-family: var(--font-display); display: block; font-size: 0.95rem; color: var(--ink-900); }
.hero-badge-float small { color: var(--ink-500); font-size: 0.76rem; }

/* ----------  Trust logos / credential strip  ---------- */
.cred-strip { border-top: 1px solid rgba(255,255,255,.1); }
.cred-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.6rem; padding-block: 1.6rem; }
.cred { display: inline-flex; align-items: center; gap: 0.6rem; color: #b9d0db; font-weight: 600; font-size: 0.92rem; }
.cred svg { width: 22px; height: 22px; color: var(--teal-300); flex: none; }

/* ----------  Media placeholder (designed, not broken)  ---------- */
.media-ph {
  position: relative; width: 100%; height: 100%; min-height: 200px;
  background:
    linear-gradient(135deg, #11405b, #0a2e45 60%);
  display: grid; place-items: center; overflow: hidden; color: #cfe6ef;
}
.media-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(94,234,212,.06) 0 2px, transparent 2px 16px);
}
.media-ph .ph-label {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-align: center; padding: 1.5rem;
}
.media-ph .ph-icon { width: 46px; height: 46px; opacity: .85; }
.media-ph .ph-icon svg { width: 100%; height: 100%; }
.media-ph .ph-text { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; opacity: .82; }
.media-ph .ph-tag {
  position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(94,234,212,.16); color: var(--teal-300);
  border: 1px solid rgba(94,234,212,.3); padding: 0.3rem 0.65rem; border-radius: var(--r-pill);
}
.media-ph.light { background: linear-gradient(135deg, #e7f1f5, #d4e6ec); color: #41626f; }
.media-ph.light::before { background-image: repeating-linear-gradient(45deg, rgba(15,118,110,.06) 0 2px, transparent 2px 16px); }
.media-ph.light .ph-tag { background: rgba(15,118,110,.1); color: var(--teal-700); border-color: rgba(15,118,110,.22); }

/* ----------  Cards  ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med); will-change: transform; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }

/* Service card */
.svc-card { display: flex; flex-direction: column; height: 100%; padding: 1.9rem; position: relative; isolation: isolate; }
.svc-card .svc-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--seafoam-50); color: var(--brand); display: grid; place-items: center; border: 1px solid var(--line); transition: background var(--t-med), color var(--t-med), transform var(--t-med); }
.svc-card .svc-ico svg { width: 28px; height: 28px; }
.svc-card:hover .svc-ico { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.05); border-color: var(--brand); }
.svc-card h3 { font-size: 1.22rem; margin-top: 1.2rem; }
.svc-card p { margin-top: 0.6rem; color: var(--ink-500); font-size: 0.97rem; }
.svc-card .link-arrow { margin-top: 1.2rem; font-size: 0.9rem; }
.svc-card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--brand), var(--teal-500)); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.svc-card:hover::after { transform: scaleX(1); }

/* ----------  Services Carousel  ---------- */
/* Services grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.svc-card-item {
  display: flex; flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.75rem 1.75rem;
  text-decoration: none; color: var(--ink-900);
  position: relative; overflow: hidden;
  transition: background var(--t-med);
}
.svc-card-item:nth-child(3n) { border-right: none; }
.svc-card-item:nth-child(4), .svc-card-item:nth-child(5), .svc-card-item:nth-child(6) { border-bottom: none; }
.svc-card-item:hover { background: var(--seafoam-50); }

/* Grid pattern overlay - matches React FeatureCard */
.svc-card-bg {
  pointer-events: none;
  position: absolute;
  top: 0; left: 50%;
  margin-top: -0.5rem; margin-left: -5rem;
  height: 100%; width: 100%;
  -webkit-mask-image: linear-gradient(white, transparent);
  mask-image: linear-gradient(white, transparent);
}
.svc-card-bg-inner {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,25,55,0.05), rgba(10,25,55,0.01));
  -webkit-mask-image: radial-gradient(farthest-side at top, white, transparent);
  mask-image: radial-gradient(farthest-side at top, white, transparent);
}
.svc-card-grid {
  fill: rgba(10,25,55,0.05);
  stroke: rgba(10,25,55,0.18);
  position: absolute; inset: 0;
  height: 100%; width: 100%;
  mix-blend-mode: overlay;
}
.svc-card-squares rect { fill: rgba(10,25,55,0.07); stroke: none; }

/* Card content */
.svc-card-ico {
  position: relative; z-index: 1;
  color: rgba(10,25,55,0.7);
  display: flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem;
}
.svc-card-ico svg { width: 1.5rem; height: 1.5rem; }
.svc-card-name {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 1rem; font-weight: 800;
  letter-spacing: 0.02em; color: var(--navy-800);
  margin-top: 2.5rem;
}
.svc-card-desc {
  position: relative; z-index: 1;
  font-size: 0.8rem; font-weight: 300; color: var(--ink-500);
  line-height: 1.6; margin-top: 0.4rem; flex: 1;
}
.svc-card-arrow {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand);
  margin-top: 1rem;
}

/* Feature / value card */
.feat { display: flex; gap: 1.1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow var(--t-med), transform var(--t-med); }
.feat:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.feat .feat-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-sm); }
.feat .feat-ico svg { width: 24px; height: 24px; }
.feat h4 { font-size: 1.08rem; }
.feat p { margin-top: 0.35rem; color: var(--ink-500); font-size: 0.92rem; }

/* ----------  Stats band  ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.2rem; }
.stat b { font-family: var(--font-display); display: block; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, #fff, var(--teal-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-navy .stat span { color: #a9c5d2; font-weight: 500; font-size: 0.95rem; }
.stat span { display: block; margin-top: 0.6rem; color: var(--ink-500); }
.stat .stat-plain { color: var(--navy-800); -webkit-text-fill-color: var(--navy-800); background: none; }

/* ----------  Process / steps  ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.5rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.step .step-n { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--brand); letter-spacing: 0.1em; }
.step .step-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: var(--teal-300); display: grid; place-items: center; margin: 0.8rem 0 1rem; }
.step .step-ico svg { width: 26px; height: 26px; }
.step h4 { font-size: 1.12rem; }
.step p { margin-top: 0.5rem; color: var(--ink-500); font-size: 0.93rem; }
.step::after { content: ""; position: absolute; top: 3rem; right: -0.85rem; width: 1.7rem; height: 2px; background: var(--line-strong); z-index: 1; }
.steps .step:last-child::after { display: none; }

/* ----------  Why-us split  ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 5/4; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.checklist { display: grid; gap: 1rem; margin-top: 1.8rem; }
.checklist li { display: flex; gap: 0.85rem; align-items: flex-start; }
.checklist .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--seafoam-50); color: var(--brand); display: grid; place-items: center; margin-top: 2px; border: 1px solid var(--line); }
.checklist .ck svg { width: 15px; height: 15px; }
.checklist b { color: var(--ink-900); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.checklist p { color: var(--ink-500); font-size: 0.93rem; margin-top: 0.15rem; }

/* ----------  Before / After slider  ---------- */
.ba { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); aspect-ratio: 16/10; user-select: none; touch-action: pan-y; }
.ba .ba-layer { position: absolute; inset: 0; }
.ba .ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba .ba-tag { position: absolute; bottom: 0.9rem; z-index: 4; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: rgba(7,36,58,.7); color: #fff; backdrop-filter: blur(4px); }
.ba .ba-tag.before { left: 0.9rem; }
.ba .ba-tag.after { right: 0.9rem; background: rgba(15,118,110,.85); }
.ba .ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; z-index: 5; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(7,36,58,.1); }
.ba .ba-handle { position: absolute; top: 50%; left: 50%; z-index: 6; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: var(--sh-md); display: grid; place-items: center; cursor: ew-resize; }
.ba .ba-handle svg { width: 22px; height: 22px; color: var(--navy-800); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 7; }

/* ----------  Gallery filter  ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn { padding: 0.6rem 1.15rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 0.9rem; color: var(--ink-700); cursor: pointer; transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast); }
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-item { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--line); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); animation: fadeUp .5s var(--ease) both; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.gallery-item .g-media { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.gallery-item .g-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .g-body { padding: 1.1rem 1.25rem 1.3rem; background: #fff; }
.gallery-item .g-body b { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink-900); }
.gallery-item .g-body span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink-500); font-size: 0.85rem; margin-top: 0.25rem; }
.gallery-item .g-body span svg { width: 14px; height: 14px; color: var(--brand); }
.is-hidden { display: none !important; }

/* ----------  Testimonials  ---------- */
/* Testimonials - stacked card layout */
.tsec { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; max-width: 860px; margin: 0 auto; }
.tsec-cards { position: relative; }
.tsec-quote-ico { position: absolute; top: -1.5rem; left: -1.5rem; z-index: 1; color: var(--brand); opacity: 0.15; }
.tsec-quote-ico svg { width: 3rem; height: 3rem; }
.tsec-stack { position: relative; height: 290px; }
.tsec-card {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(80px); pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem 2rem; display: flex; flex-direction: column;
  box-shadow: var(--sh-md);
}
.tsec-card.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.tsec-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.tsec-author { display: flex; align-items: center; gap: 1rem; }
.tsec-avatar {
  width: 3rem; height: 3rem; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--navy-700), var(--teal-600));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  border: 2px solid rgba(255,255,255,0.3);
}
.tsec-author-info h4 { font-size: 0.95rem; font-weight: 600; margin: 0; color: var(--ink-900); }
.tsec-author-info p { font-size: 0.8rem; color: var(--ink-500); margin: 0.1rem 0 0; }
.tsec-stars { display: flex; gap: 2px; color: #eab308; }
.tsec-stars svg { width: 1rem; height: 1rem; }
.tsec-sep { border: none; border-top: 1px solid var(--line); margin: 1rem 0; }
.tsec-quote { flex: 1; font-style: italic; font-size: 0.97rem; line-height: 1.7; color: var(--ink-700); margin: 0; }
.tsec-verified { margin-top: 1rem; font-size: 0.72rem; text-align: right; color: var(--ink-400); }
/* Nav column */
.tsec-nav { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.tsec-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-700);
  display: grid; place-items: center; cursor: pointer; flex: none;
  box-shadow: var(--sh-sm); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.tsec-btn:hover { background: var(--navy-800); color: #fff; box-shadow: var(--sh-md); }
.tsec-btn svg { width: 1rem; height: 1rem; }
.tsec-dots { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.tsec-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; padding: 0;
  background: rgba(10,25,55,0.2); border: none; cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.tsec-dot.active { background: var(--brand); transform: scale(1.3); }

/* ----------  Service areas  ---------- */
.areas-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.area-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.area-chips span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: 0.875rem; font-weight: 500; color: var(--ink-700); transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.area-chips span:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.area-chips span svg { width: 13px; height: 13px; color: var(--brand); }
.map-ph { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); aspect-ratio: 16/12; border: 1px solid var(--line); }

/* ----------  FAQ accordion  ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: 0.85rem; overflow: hidden; transition: box-shadow var(--t-med), border-color var(--t-med); }
.faq-item.open { box-shadow: var(--sh-md); border-color: var(--line-strong); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-900); }
.faq-q .faq-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background var(--t-med), border-color var(--t-med), color var(--t-med); }
.faq-q .faq-ico svg { width: 16px; height: 16px; transition: transform var(--t-med); }
.faq-item.open .faq-ico { background: var(--brand); border-color: var(--brand); color: #fff; }
.faq-item.open .faq-ico svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease); }
.faq-a-inner { padding: 0 1.5rem 1.4rem; color: var(--ink-500); }

/* ----------  Forms  ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: clamp(1.5rem, 3vw, 2.6rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink-900); margin-bottom: 0.45rem; }
.field label .req { color: var(--danger); }
.field .hint { font-size: 0.8rem; color: var(--ink-400); margin-top: 0.35rem; }
.input, .select, .textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  min-height: 44px;
  background: var(--paper); font-size: 1rem; color: var(--ink-900); transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(20,184,166,.14); }
.textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* Choice chips (service select) */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; font-weight: 500; font-size: 0.95rem; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); background: #fff; }
.choice label .c-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--seafoam-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.choice label .c-ico svg { width: 18px; height: 18px; }
.choice input:checked + label { border-color: var(--brand); background: var(--seafoam-50); box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.choice input:focus-visible + label { outline: 3px solid var(--brand-bright); outline-offset: 2px; }

/* Multi-step */
.stepper { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.8rem; }
.stepper .sdot { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.stepper .sdot.done, .stepper .sdot.active { background: var(--brand); }
.step-labels { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; color: var(--ink-400); margin-bottom: 1.5rem; }
.step-labels span.on { color: var(--brand); }
.fstep { display: none; animation: fadeUp .35s var(--ease) both; }
.fstep.active { display: block; }
.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.25rem; padding: 1.5rem 1rem; border-radius: var(--r-sm);
  border: 2px dashed var(--line); background: var(--paper);
  cursor: pointer; text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--brand); background: var(--seafoam-50); }
.file-drop-text { font-weight: 600; font-size: 0.95rem; color: var(--ink-700); }
.file-drop-sub { font-size: 0.8rem; color: var(--ink-400); }
.file-drop-names { font-size: 0.82rem; color: var(--brand); font-weight: 600; margin-top: 0.35rem; }
.form-note { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-500); margin-top: 1rem; }
.form-note svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; animation: fadeUp .4s var(--ease) both; }
.form-success .fs-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--seafoam-50); color: var(--success); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.form-success .fs-ico svg { width: 38px; height: 38px; }

/* ----------  CTA band  ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--navy-900), var(--teal-700)); color: #fff; padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(94,234,212,.25), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9d6e0; margin: 1rem auto 2rem; max-width: 50ch; font-size: var(--fs-lg); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ----------  Page hero (interior)  ---------- */
.page-hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding-block: calc(var(--header-h) + 0.6rem) 1.25rem; }
.page-hero .hero-bg { z-index: 0; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.page-hero .hero-bg svg { width: 100%; height: 100%; }
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #aecbd8; font-size: var(--fs-lg); margin-top: 1.1rem; max-width: 56ch; }
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #8fb3c2; margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--teal-300); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* ----------  Service detail rows  ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(2.5rem,5vw,4rem); }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); aspect-ratio: 4/3; position: relative; }
.svc-row-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-row .tagn { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; color: var(--brand); letter-spacing: 0.1em; }
.svc-row h3 { margin-top: 0.6rem; }
.svc-row p { margin-top: 1rem; color: var(--ink-500); }
.svc-row .mini-list { margin-top: 1.3rem; display: grid; gap: 0.6rem; }
.svc-row .mini-list li { display: flex; gap: 0.6rem; align-items: center; font-weight: 500; color: var(--ink-700); font-size: 0.96rem; }
.svc-row .mini-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ----------  Blog cards  ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .p-media { aspect-ratio: 16/10; position: relative; }
.post-card .p-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card .p-cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.post-card h3 { font-size: 1.18rem; margin-top: 0.6rem; }
.post-card p { color: var(--ink-500); font-size: 0.93rem; margin-top: 0.6rem; flex: 1; }
.post-card .p-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; font-size: 0.83rem; color: var(--ink-400); }

/* ----------  Footer  ---------- */
.site-footer { background: var(--navy-900); color: #9fbccb; padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo-text b { color: #fff; }
.footer-brand p { margin-top: 1.1rem; font-size: 0.93rem; line-height: 1.7; max-width: 34ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #cfe3ec; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h5 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.93rem; transition: color var(--t-fast), transform var(--t-fast); }
.footer-col a:hover { color: var(--teal-300); transform: translateX(4px); }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; margin-bottom: 0.9rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal-300); flex: none; margin-top: 2px; }
.footer-contact a:hover { color: var(--teal-300); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.6rem; font-size: 0.85rem; color: #7fa0b0; }
.footer-bottom .fb-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--teal-300); }

/* ----------  Scroll reveal  ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .45s var(--ease), transform .45s var(--ease); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ----------  Utilities  ---------- */
.stack-sm > * + * { margin-top: 0.75rem; }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); }
.hide-mobile { } .show-mobile { display: none; }
.pill-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border-radius: var(--r-pill); background: var(--seafoam-50); color: var(--teal-700); border: 1px solid rgba(15,118,110,.18); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.pill-badge svg { width: 15px; height: 15px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .logo-img { width: 300px; }
  .hero-badges-float { bottom: 5.5rem; right: 1.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .areas-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none; }
  .nav-cta .btn { display: inline-flex; padding: 0.45rem 0.85rem; font-size: 0.82rem; }
  .nav-toggle { display: grid; }
  .logo-img { width: 300px; }
}
@media (max-width: 480px) {
  .nav-cta .btn { display: inline-flex; padding: 0.35rem 0.6rem; font-size: 0.75rem; }
  .logo-img { width: 170px; }
  .nav-toggle { width: 38px; height: 38px; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .svc-row, .svc-row:nth-child(even) .svc-row-media { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-row-media { order: -1; }
  .svc-row-media { order: -1; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .tsec { grid-template-columns: 1fr; }
  .tsec-nav { flex-direction: row; margin-top: 1rem; }
  .tsec-dots { flex-direction: row; }
  .tsec-stack { height: 340px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-badges-float { display: none; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; white-space: normal; text-align: center; }
  /* Fix service row buttons clipping on narrow screens */
  .svc-row .btn { white-space: normal; }
  /* Fix map: aspect-ratio makes container shorter than the inner 420px min-height, clipping tiles */
  .map-ph { aspect-ratio: unset; height: 300px; }
  #fl-map { min-height: 0 !important; height: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* Contact page: single column, natural DOM order (pre-quote → form → sidebar) */
  .contact-layout { grid-template-columns: 1fr !important; }
  .contact-layout .prequote-card,
  .contact-layout .form-card,
  .contact-layout aside { grid-column: 1 !important; grid-row: auto !important; }
  /* Mobile nav link touch targets */
  .mobile-links a { min-height: 44px; display: flex; align-items: center; }
  /* Sidebar info on contact stacks below form */
  #contact-map { min-height: 220px !important; }
}

/* Contact page desktop grid placement */
@media (min-width: 681px) {
  .contact-layout .prequote-card { grid-column: 2; grid-row: 1; }
  .contact-layout .form-card     { grid-column: 1; grid-row: 1 / 3; }
  .contact-layout aside          { grid-column: 2; grid-row: 2; }
}

/* ============================================================
   Accessibility & Security Utilities  (WCAG 2.1 AA)
   ============================================================ */

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

/* Skip navigation link — hidden until focused by keyboard */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* Inline field error messages */
.field-err {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.35rem;
}
.field-err.show { display: block; }
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* Ensure all interactive elements have a visible focus ring */
a:focus-visible,
button:focus-visible,
[role="menuitem"]:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Range slider — larger touch target for mobile */
input[type="range"] { height: 44px; cursor: pointer; touch-action: manipulation; }

/* Nav phone link touch target */
.nav-phone { min-height: 44px; }

/* Decorative sect-art background containers */
.sect-art { pointer-events: none; }

/* High-contrast focus for form success region */
.form-success:focus { outline: none; }

/* ================================================================
   QUOTE CALCULATOR
   ================================================================ */

/* ── Keyframe animations ── */
@keyframes qs-result-reveal {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}
@keyframes qs-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qs-select-ring {
  0%   { box-shadow: 0 6px 24px rgba(20,184,166,.22), 0 0 0 0   rgba(20,184,166,.45), inset 0 0 0 1px rgba(20,184,166,.15); }
  65%  { box-shadow: 0 6px 24px rgba(20,184,166,.22), 0 0 0 10px rgba(20,184,166,.0),  inset 0 0 0 1px rgba(20,184,166,.15); }
  100% { box-shadow: 0 6px 24px rgba(20,184,166,.22), 0 0 0 0   rgba(20,184,166,.0),  inset 0 0 0 1px rgba(20,184,166,.15); }
}

/* Section background */
.qs-section { background: var(--paper); }

/* ── Progress tracker ── */
.qs-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.qs-prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
.qs-prog-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--mist);
  color: var(--ink-400);
  border: 2px solid var(--line);
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.qs-prog-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.qs-prog-step.active .qs-prog-num {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 5px rgba(20,184,166,.16);
}
.qs-prog-step.active .qs-prog-label { color: var(--brand); }
/* Done state: show checkmark via pseudo-element */
.qs-prog-step.done .qs-prog-num {
  background: var(--teal-700);
  color: #fff;
  border-color: var(--teal-700);
  font-size: 0;
}
.qs-prog-step.done .qs-prog-num::after {
  content: '';
  display: block;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.qs-prog-step.done .qs-prog-label { color: var(--teal-700); }

.qs-prog-line {
  flex: 1;
  height: 3px;
  background: var(--mist);
  border-radius: 2px;
  max-width: 100px;
  margin: 0 0.75rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.qs-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-700), var(--teal-500));
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.22,1,0.36,1);
}
.qs-prog-fill.filled { width: 100%; }

/* ── Main card ── */
.qs-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.4rem 2.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 8px 20px rgba(7,36,58,.06), 0 24px 60px rgba(7,36,58,.07);
  border: 1px solid rgba(20,184,166,.12);
  position: relative;
  overflow: hidden;
}
.qs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-700), var(--teal-500), var(--blue-600));
}
@media (max-width: 600px) {
  .qs-card { padding: 1.6rem 1.25rem; border-radius: 16px; }
}

/* ── Step header ── */
.qs-step-hd { margin-bottom: 1.8rem; }
.qs-step-hd h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 0.4rem;
}
.qs-step-hd p {
  font-size: 0.95rem;
  color: var(--ink-500);
  margin: 0;
}
.qs-for-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.3rem;
}

/* ── Service card grid ── */
.qsvc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 580px) { .qsvc-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

.qsvc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.5rem 0.9rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s, background 0.18s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
/* Affordance dot: empty circle → filled check on active */
.qsvc-card::before {
  content: '';
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: transparent;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}
.qsvc-card.active::before {
  background: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6L5 8.5L9.5 3.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 68%;
  background-position: center;
  background-repeat: no-repeat;
}
/* Shimmer overlay */
.qsvc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20,184,166,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 0;
}
.qsvc-card:hover {
  border-color: var(--teal-500);
  box-shadow: 0 4px 16px rgba(20,184,166,.12), 0 2px 6px rgba(7,36,58,.06);
  transform: translateY(-3px);
}
.qsvc-card:hover::after { opacity: 1; }
.qsvc-card:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.qsvc-card.active {
  border-color: var(--brand);
  background: rgba(20,184,166,.04);
  transform: translateY(-3px);
  animation: qs-select-ring 0.55s ease-out both;
}
.qsvc-card.active::after { opacity: 1; }

.qsvc-ico {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy-800) 0%, var(--teal-700) 100%);
  border-radius: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(7,36,58,.28), inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.qsvc-card:hover .qsvc-ico,
.qsvc-card.active .qsvc-ico {
  transform: scale(1.1) translateY(-1px);
  box-shadow: 0 6px 18px rgba(7,36,58,.35), inset 0 1px 0 rgba(255,255,255,.15);
}
.qsvc-ico svg { width: 24px; height: 24px; }

.qsvc-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.qsvc-sub {
  font-size: 0.73rem;
  color: var(--ink-400);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* ── Step 2: fields ── */
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.55rem;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
}
.q-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--mist);
  cursor: pointer;
  outline: none;
  position: relative;
}
.q-range:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.q-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(20,184,166,.4);
  cursor: pointer;
}
.q-range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  box-shadow: 0 2px 8px rgba(20,184,166,.4);
  cursor: pointer;
  border: none;
}
.range-num-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.q-num-input {
  width: 6.5ch;
  min-width: 6.5ch;
  padding: 0.3rem 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(20,184,166,.1);
  border: 1.5px solid var(--teal-500);
  border-radius: 6px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
  min-height: 44px;
  touch-action: manipulation;
}
.q-num-input::-webkit-inner-spin-button,
.q-num-input::-webkit-outer-spin-button { opacity: 1; cursor: pointer; }
.q-num-input:focus { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.range-unit {
  font-size: 0.78rem;
  color: var(--ink-400);
  white-space: nowrap;
}
.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ink-400);
  margin-top: 0.3rem;
  padding: 0 0.25rem;
}

/* ── Step 2 nav ── */
.qs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ── Step 3: result ── */
/* Blur-reveal entrance animation (magic MCP dark-gradient pattern) */
#qs-step3:not([hidden]) .qs-result-wrap {
  animation: qs-result-reveal 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
#qs-step3:not([hidden]) .qs-range-display {
  animation: qs-fade-up 0.4s 0.28s ease both;
}
#qs-step3:not([hidden]) .qs-disclaimer,
#qs-step3:not([hidden]) .qs-actions {
  animation: qs-fade-up 0.4s 0.38s ease both;
}

.qs-result-wrap {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 48%, var(--teal-700) 100%);
  border-radius: 18px;
  padding: 2.4rem 1.8rem 2.2rem;
  text-align: center;
  margin-bottom: 1.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(7,36,58,.28), 0 2px 8px rgba(7,36,58,.12);
}
.qs-result-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 15%, rgba(20,184,166,.3) 0%, transparent 60%);
  pointer-events: none;
}
/* Decorative ring accent */
.qs-result-wrap::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(94,234,212,.12);
  pointer-events: none;
}
.qs-result-inner { position: relative; z-index: 1; }
.qs-result-wrap .qs-for-label { color: var(--teal-300); margin-bottom: 0.25rem; }
.qs-result-wrap h2 {
  color: rgba(255,255,255,.92);
  font-size: 1.25rem;
  margin: 0 0 1.2rem;
  font-weight: 600;
}
.qs-range-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.3rem;
  line-height: 1;
}
.qs-range-low,
.qs-range-high {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 8.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qs-range-low { color: var(--teal-300); }
.qs-range-sep {
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(255,255,255,.35);
  margin: 0 0.15rem;
}
.qs-range-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,.5);
  margin: 0.7rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.qs-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-500);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.6rem;
  line-height: 1.55;
}
.qs-disclaimer svg { width: 16px; height: 16px; color: var(--ink-400); flex-shrink: 0; margin-top: 2px; }

.qs-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.qs-actions .btn { flex: 1 1 auto; min-width: 200px; justify-content: center; }

.qs-restart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto;
  background: none;
  border: none;
  font-size: 0.83rem;
  color: var(--ink-400);
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s;
  font-family: inherit;
}
.qs-restart:hover { color: var(--brand); }
.qs-restart svg { width: 14px; height: 14px; }

/* ── Legal note below card ── */
.qs-legal {
  text-align: center;
  font-size: 0.77rem;
  color: var(--ink-400);
  margin-top: 1.2rem;
  line-height: 1.6;
}

/* ── Shared button variants ── */
.btn-dark {
  background: var(--navy-900);
  color: #fff;
  border: 2px solid var(--navy-900);
}
.btn-dark:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  #qs-step3:not([hidden]) .qs-result-wrap,
  #qs-step3:not([hidden]) .qs-range-display,
  #qs-step3:not([hidden]) .qs-disclaimer,
  #qs-step3:not([hidden]) .qs-actions { animation: none; }
  .qsvc-card.active { animation: none; }
  .qs-prog-fill { transition: none; }
}

@media (max-width: 560px) {
  .qs-actions { flex-direction: column; }
  .qs-actions .btn { min-width: 0; width: 100%; white-space: normal; text-align: center; }
  .qs-nav { flex-direction: column-reverse; }
  .qs-nav .btn { width: 100%; justify-content: center; }
}
