/* ==========================================================================
   Carolinas Mobile Collectors & Consultants — Design System
   Mobile-first. Custom properties. No frameworks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (all body text pairings meet WCAG AA) */
  --navy-900: #0e2a47;
  --navy-700: #16416e;
  --navy-050: #eaf1f8;

  --teal-600: #0f766e; /* 4.83:1 on white — primary CTA */
  --teal-700: #0b5f59; /* 6.3:1 on white — links */
  --teal-050: #e6f4f2;

  --amber-500: #f0a202; /* decorative only: rules, badges, icon fills */
  --gold-500: #c9a227;  /* decorative only — 2.4:1 on white, never text */

  --ink: #111a24;      /* 15.6:1 on white */
  --slate: #4a5a6a;    /* 6.9:1 on white */
  --line: #e2e8f0;
  --mist: #f5f8fa;
  --white: #ffffff;

  --danger: #b3261e;
  --success: #0b5f59;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--mist);
  --text: var(--ink);
  --text-muted: var(--slate);
  --border: var(--line);
  --link: var(--teal-700);
  --focus: #16416e;

  /* Type */
  --font-heading: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 0.5vw + 1.15rem, 1.375rem);
  --fs-xl: clamp(1.5rem, 1vw + 1.25rem, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.6vw + 1.35rem, 2.25rem);
  --fs-3xl: clamp(2.125rem, 3vw + 1.35rem, 3rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radius + shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Elevation. Navy-tinted rather than grey — shadows on a white page read as
     dirt unless they carry the surrounding hue. Two layers: a tight contact
     shadow and a wide ambient one. */
  --shadow-sm:
    0 1px 2px rgba(11, 26, 46, 0.05),
    0 2px 6px -1px rgba(11, 26, 46, 0.07);
  --shadow-md:
    0 2px 4px -1px rgba(11, 26, 46, 0.06),
    0 10px 20px -6px rgba(11, 26, 46, 0.12),
    0 20px 40px -18px rgba(11, 26, 46, 0.14);
  --shadow-lg:
    0 4px 8px -2px rgba(11, 26, 46, 0.08),
    0 18px 32px -10px rgba(11, 26, 46, 0.16),
    0 40px 72px -24px rgba(11, 26, 46, 0.24);
  /* Hover state: lift plus a teal-tinted halo, so elevation reads as focus. */
  --shadow-hover:
    0 4px 10px -2px rgba(11, 26, 46, 0.1),
    0 22px 40px -12px rgba(11, 26, 46, 0.2),
    0 0 0 1px rgba(15, 118, 110, 0.18);

  /* Surfaces */
  --grad-teal: linear-gradient(135deg, #12867c 0%, var(--teal-600) 45%, var(--teal-700) 100%);
  --grad-navy: linear-gradient(150deg, #14395f 0%, var(--navy-900) 100%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
  --sheen: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);

  /* Motion — one easing curve everywhere. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s;
  --t-mid: 0.32s;

  --container: 1160px;
  --header-h: 72px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); font-weight: 700; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 600; }
h4 { font-size: var(--fs-md); font-weight: 600; }

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--navy-700); }

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

ul, ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
li + li { margin-top: var(--sp-2); }

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

address { font-style: normal; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 48rem) {
  .container { padding-inline: var(--sp-6); }
}

.section { padding-block: var(--sp-7); }
@media (min-width: 48rem) { .section { padding-block: var(--sp-8); } }
@media (min-width: 64rem) { .section { padding-block: var(--sp-9); } }

.section--tight { padding-block: var(--sp-7); }
.section--alt { background: var(--bg-alt); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900) 0%, #0a1f36 100%);
  color: #dfe8f1;
}
.section--navy h2,
.section--navy h3 { color: var(--white); }

.stack > * + * { margin-top: var(--sp-4); }

.measure { max-width: 68ch; }
.measure-narrow { max-width: 56ch; }

.section-head {
  max-width: 62ch;
  margin-bottom: var(--sp-6);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 var(--sp-3);
}
.section--navy .eyebrow { color: #7fd6cb; }

.lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
}
.section--navy .lead { color: #c3d2e0; }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
}

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

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--sp-3); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  padding: 0.875rem 1.375rem;
  min-height: 48px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.05s; }
.btn svg { flex: none; }

/* Specular sweep. Sits above the fill, below the label. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sheen);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }

.btn--primary {
  background: var(--grad-teal);
  background-size: 140% 140%;
  color: var(--white);
  box-shadow:
    0 1px 2px rgba(11, 26, 46, 0.16),
    0 8px 18px -6px rgba(15, 118, 110, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover {
  color: var(--white);
  box-shadow:
    0 2px 4px rgba(11, 26, 46, 0.18),
    0 16px 30px -8px rgba(15, 118, 110, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy-900);
  border-color: #c7d4e2;
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  box-shadow: 0 14px 28px -10px rgba(11, 26, 46, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .btn::before { display: none; }
}

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.link-arrow::after {
  content: "â†’";
  transition: transform var(--t-mid) var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* Underline that grows from the left rather than blinking on. */
.link-arrow > span:not(.visually-hidden),
.link-arrow {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-mid) var(--ease), color var(--t-fast) var(--ease);
}
.link-arrow:hover { background-size: calc(100% - 1.2em) 1px; }

/* --------------------------------------------------------------------------
   Scroll reveal. js/main.js adds .reveal to eligible elements, then .is-in
   as they enter the viewport. Without JS nothing is hidden — content is
   visible by default and only opts in to animating.
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   5. Header + navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #cddaea;
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-5);
  padding-block: var(--sp-2);
  text-align: center;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 500; }
.topbar a:hover { color: #7fd6cb; text-decoration: underline; }
.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--white);
}
.topbar__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
  flex: none;
}
@media (min-width: 62rem) {
  .topbar__inner { justify-content: space-between; text-align: left; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
/* js/main.js toggles .is-stuck once the page scrolls. */
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -14px rgba(11, 26, 46, 0.4);
}
.brand__mark {
  transition: transform var(--t-mid) var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--navy-900);
  flex: none;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 24rem) { .brand__text { display: none; } }

.header__cta { display: none; }
@media (min-width: 68rem) { .header__cta { display: inline-flex; } }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.625rem 0.875rem;
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span,
.nav-toggle__bars span::before,
.nav-toggle__bars span::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars span::before { content: ""; top: -5px; }
.nav-toggle__bars span::after { content: ""; top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span::after { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 62rem) { .nav-toggle { display: none; } }

/* Nav */
.primary-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.primary-nav.is-open { display: block; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-5);
}
.nav-list li + li { margin-top: 0; }

.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--navy-900);
  text-decoration: none;
  padding: 0.875rem 0.25rem;
  border-bottom: 1px solid var(--border);
}
.nav-link:hover { color: var(--teal-700); }
.nav-link[aria-current="page"] { color: var(--teal-700); }

.nav-item--has-sub { position: relative; }
.nav-item--has-sub > .nav-link { display: inline-block; border-bottom: none; }

.sub-toggle {
  position: absolute;
  right: 0;
  top: 0.375rem;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--navy-900);
  cursor: pointer;
}
.sub-toggle svg { transition: transform 0.18s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-item--has-sub { border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }

.sub-menu {
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0 0 0 var(--sp-3);
  display: none;
  border-left: 2px solid var(--teal-050);
}
.sub-menu.is-open { display: block; }
.sub-menu a {
  display: block;
  padding: 0.625rem 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}
.sub-menu a:hover,
.sub-menu a[aria-current="page"] { color: var(--teal-700); }

.nav-cta { margin-top: var(--sp-4); }

@media (min-width: 62rem) {
  .primary-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
    max-height: none;
  }
  .nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 0;
  }
  .nav-link {
    font-size: var(--fs-sm);
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    border-radius: var(--r-sm);
  }
  .nav-link[aria-current="page"] { background: var(--teal-050); }
  .nav-item--has-sub {
    display: flex;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
  }
  .nav-item--has-sub > .nav-link { padding-right: 0.375rem; }
  .sub-toggle {
    position: static;
    width: 32px;
    height: 32px;
    border: 0;
  }
  .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 268px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2);
    margin: 0;
  }
  /* Invisible bridge across the 10px gap. Without it the pointer leaves the
     parent <li> on the way down, mouseleave fires, and the menu closes before
     it can be clicked. */
  .sub-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }
  .sub-menu a {
    border-radius: var(--r-sm);
    padding: 0.625rem 0.75rem;
  }
  .sub-menu a:hover { background: var(--mist); }
  .nav-cta { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 140% at 78% 8%, rgba(20, 160, 145, 0.28) 0%, transparent 55%),
    radial-gradient(90% 120% at 8% 92%, rgba(30, 92, 158, 0.35) 0%, transparent 58%),
    linear-gradient(155deg, #061527 0%, #0d2c4c 52%, #073f45 100%);
  color: #dfe8f1;
  overflow: hidden;
}
/* Slow-drifting light. Purely atmospheric; disabled for reduced motion. */
.hero::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  top: -22%;
  right: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 200, 180, 0.16) 0%, transparent 62%);
  filter: blur(28px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--sp-7);
}
@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--sp-8);
    padding-block: var(--sp-9);
  }
}
.hero h1 { color: var(--white); }
.hero__lead {
  font-size: var(--fs-md);
  color: #c9d7e5;
  max-width: 54ch;
}
.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1px; /* gradient hairline frame */
  background: linear-gradient(150deg, rgba(127, 214, 203, 0.55), rgba(255, 255, 255, 0.05) 45%, rgba(240, 162, 2, 0.35));
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 60px -20px rgba(31, 200, 180, 0.35);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.hero__media:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 76px -22px rgba(0, 0, 0, 0.7),
    0 0 80px -18px rgba(31, 200, 180, 0.5);
}
.hero__media img {
  border-radius: calc(var(--r-lg) - 1px);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0a1f36;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .hero__media:hover { transform: none; }
}
.hero__points {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
  display: grid;
  gap: var(--sp-2);
}
.hero__points li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: #cddaea;
  margin: 0;
}
.hero__points svg { flex: none; margin-top: 3px; }

.page-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, #10365b 100%);
  color: #cddaea;
  padding-block: var(--sp-7);
}
@media (min-width: 48rem) { .page-hero { padding-block: var(--sp-8); } }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #c9d7e5; max-width: 64ch; }

.breadcrumb {
  font-size: var(--fs-xs);
  margin-bottom: var(--sp-4);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: #7f95ac; }
.breadcrumb a { color: #a9c0d6; text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* --------------------------------------------------------------------------
   7. Trust strip / stats
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-strip__grid {
  display: grid;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 62rem) { .trust-strip__grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.trust-item svg { flex: none; margin-top: 2px; }
.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--navy-900);
}
.trust-item span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  isolation: isolate;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Cursor-tracked spotlight. --mx/--my are set by js/main.js on pointer move;
   with no JS they stay at 50% and the layer never fades in. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(15, 118, 110, 0.07),
    transparent 42%
  );
  transition: opacity var(--t-mid) var(--ease);
}
.card:hover::before { opacity: 1; }

/* Hairline of light along the top edge — the "polished surface" cue. */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.55), transparent);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.card:hover::after { opacity: 1; }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, #ecf8f6 0%, var(--teal-050) 100%);
  color: var(--teal-700);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
  transition: transform var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease),
              color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}
.card:hover .card__icon {
  transform: translateY(-2px) scale(1.06) rotate(-3deg);
  background: var(--grad-teal);
  color: var(--white);
  box-shadow: 0 10px 20px -8px rgba(15, 118, 110, 0.65);
}

.card h3 { margin-bottom: var(--sp-2); transition: color var(--t-fast) var(--ease); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }
.card .link-arrow { margin-top: auto; padding-top: var(--sp-4); }
.card__list {
  padding-left: var(--sp-4);
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.card--link {
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
.card--link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 118, 110, 0.28);
}
.card--link:hover h3 { color: var(--teal-700); }
.card--link:hover .link-arrow::after { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .card--link:hover { transform: none; }
  .card:hover .card__icon { transform: none; }
}

.card--flush { padding: 0; overflow: hidden; }
.card--flush img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--navy-050);
}
.card--flush .card__body { padding: var(--sp-5); }

.card--outline-teal { border-left: 4px solid var(--teal-600); }

/* Numbered steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  margin: 0;
  padding-top: var(--sp-4);
  border-top: 3px solid var(--teal-050);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--teal-700);
  margin-bottom: var(--sp-2);
}
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.steps p { font-size: var(--fs-sm); color: var(--text-muted); }
.section--navy .steps li { border-top-color: rgba(127, 214, 203, 0.35); }
.section--navy .steps li::before { color: #7fd6cb; }
.section--navy .steps p { color: #c3d2e0; }

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}
@media (min-width: 40rem) { .checklist--2 { grid-template-columns: repeat(2, 1fr); } }
.checklist li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin: 0;
  font-size: var(--fs-sm);
}
.checklist svg { flex: none; margin-top: 3px; color: var(--teal-600); }
.section--navy .checklist svg { color: #7fd6cb; }

/* Pill list */
.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0;
  margin: 0;
}
.pills li { margin: 0; }
.pill {
  display: inline-block;
  background: var(--navy-050);
  color: var(--navy-700);
  border: 1px solid #d3e0ec;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 0.375rem 0.75rem;
}

/* Callout */
.callout {
  background: var(--teal-050);
  border: 1px solid #bfe0dc;
  border-left: 4px solid var(--teal-600);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.callout h3 { margin-bottom: var(--sp-2); }
.callout p { font-size: var(--fs-sm); }
.callout p:last-child { margin-bottom: 0; }

.note {
  background: var(--mist);
  border: 1px dashed #c3ced9;
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 34rem;
}
caption {
  text-align: left;
  padding: var(--sp-4) var(--sp-4) 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
th, td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  background: var(--mist);
}
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--navy-900); }

/* --------------------------------------------------------------------------
   9. Reviews
   -------------------------------------------------------------------------- */
.review-panel {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 62rem) {
  .review-panel { grid-template-columns: 1.2fr 0.8fr; }
}
.qr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.qr-card img {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--mist);
}
.qr-card p { font-size: var(--fs-xs); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10. Team
   -------------------------------------------------------------------------- */
.team-card { text-align: left; }
.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--navy-050);
  margin-bottom: var(--sp-4);
}
.team-card h3 { margin-bottom: var(--sp-1); }
.team-card .role {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-700);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   11. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.faq-group + .faq-group { margin-top: var(--sp-7); }
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}
.accordion__item + .accordion__item { border-top: 1px solid var(--border); }
.accordion__header { margin: 0; }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
  background: none;
  border: 0;
  padding: var(--sp-4) var(--sp-5);
  min-height: 56px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--navy-900);
}
.accordion__trigger:hover { background: var(--mist); }
.accordion__trigger svg { flex: none; color: var(--teal-700); transition: transform 0.18s ease; }
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.accordion__panel {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 74ch;
}
.accordion__panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 48rem) { .form-card { padding: var(--sp-6); } }

.field { margin-bottom: var(--sp-5); }
.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy-900);
  margin-bottom: var(--sp-2);
}
.req { color: var(--danger); }
.hint {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 400;
  margin-top: var(--sp-1);
}

.input,
.select,
.textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--white);
  border: 1px solid #c3ced9;
  border-radius: var(--r-sm);
  padding: 0.75rem 0.875rem;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 9rem; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234a5a6a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}
.input:hover,
.select:hover,
.textarea:hover { border-color: #93a5b6; }
.input:focus,
.select:focus,
.textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--navy-700);
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--danger); }

.field-error {
  display: block;
  color: var(--danger);
  font-size: var(--fs-xs);
  font-weight: 500;
  margin-top: var(--sp-2);
}
.field-error:empty { display: none; }

.checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.checkbox input {
  width: 20px; height: 20px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--teal-600);
}
.checkbox label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}

/* Fieldsets on the long listing form */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + hr { margin: var(--sp-6) 0; }
legend { padding: 0; margin-bottom: var(--sp-4); }
legend h2 { margin: 0; }

/* Dense, scannable checkbox grids (50 states, services, labs). */
.checkgrid {
  display: grid;
  gap: var(--sp-2) var(--sp-4);
  grid-template-columns: 1fr;
  max-height: 22rem;
  overflow-y: auto;
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--mist);
}
@media (min-width: 30rem) { .checkgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .checkgrid { grid-template-columns: repeat(3, 1fr); } }
.checkgrid--wide { max-height: none; }
@media (min-width: 48rem) { .checkgrid--wide { grid-template-columns: repeat(2, 1fr); } }

.checkgrid .checkbox label { font-size: var(--fs-sm); color: var(--text); }
.checkgrid .checkbox { padding: 0.15rem 0; }

/* Honeypot — visually and programmatically out of the way for humans */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-5);
}
.form-status[hidden] { display: none; }
.form-status--error { background: #fdecea; border: 1px solid #f2c2be; color: #7d1a15; }
.form-status--success { background: var(--teal-050); border: 1px solid #bfe0dc; color: #08443f; }

/* --------------------------------------------------------------------------
   13. Contact blocks
   -------------------------------------------------------------------------- */
.contact-methods { display: grid; gap: var(--sp-4); }
@media (min-width: 40rem) { .contact-methods { grid-template-columns: repeat(2, 1fr); } }

.contact-method {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.contact-method svg { flex: none; color: var(--teal-700); margin-top: 2px; }
.contact-method h3 { font-size: var(--fs-sm); margin-bottom: var(--sp-1); }
.contact-method a { font-weight: 600; }
.contact-method p { font-size: var(--fs-xs); color: var(--text-muted); margin: var(--sp-1) 0 0; }

.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--r-md);
  display: block;
  background: var(--mist);
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900) 0%, #0b4f52 100%);
  color: #dfe8f1;
}
.cta-band__inner {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-7);
  align-items: center;
}
@media (min-width: 62rem) {
  .cta-band__inner { grid-template-columns: 1.3fr 0.7fr; padding-block: var(--sp-8); }
}
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-3); }
.cta-band p { color: #c3d2e0; max-width: 58ch; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 62rem) { .cta-band .btn-row { justify-content: flex-end; } }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0a1f36;
  color: #a9bacb;
  font-size: var(--fs-sm);
  padding-block: var(--sp-7) var(--sp-5);
}
.footer__grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 48rem) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-7); } }

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}
.site-footer a { color: #cddaea; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: var(--sp-2); }

.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__tag { color: #7f95ac; }
.footer__blurb { margin-top: var(--sp-4); color: #a9bacb; max-width: 40ch; }

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  background: rgba(240, 162, 2, 0.14);
  border: 1px solid rgba(240, 162, 2, 0.4);
  color: #ffd479;
  border-radius: var(--r-pill);
  padding: 0.3rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.social-row {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.social-row a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm);
  color: #cddaea;
}
.social-row a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #7f95ac;
}
.footer__bottom p { margin: 0; }

.disclaimer {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: #7f95ac;
  max-width: 90ch;
}

/* --------------------------------------------------------------------------
   16. Sticky mobile call bar
   -------------------------------------------------------------------------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(14, 42, 71, 0.1);
}
.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 56px;
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.call-bar a:first-child { background: var(--teal-600); color: var(--white); }
body { padding-bottom: 56px; }
@media (min-width: 62rem) {
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-8);
  min-height: 60vh;
}
.error-code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--teal-050);
  -webkit-text-stroke: 2px var(--teal-600);
  margin-bottom: var(--sp-4);
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }


@media print {
  .site-header, .topbar, .call-bar, .cta-band, .site-footer { display: none; }
}
