/* ==========================================================================
   Johnson's Expert Services — design tokens locked in PLAN.md section 3
   Remaining placeholder content (license #, testimonials) — see index.html
   header comment for the full swap-list before launch.
   ========================================================================== */

:root {
  --ink: #1E293B;
  --body: #334155;
  --muted: #64748B;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --line: #E2E8F0;
  /* Brand palette = Andrew's logo blue + a green action accent (2026-07-13).
     Blue #0C58AE clears 6.9:1 on white, so it doubles as small-text color. */
  --blue: #0C58AE;
  --blue-hover: #094A93;
  --blue-tint: #EAF2FC;
  --blue-text: #0C58AE;
  --blue-light: #7FB2E8;
  --green: #16A34A;
  --green-hover: #15803D;
  --green-tint: #ECFDF3;
  --green-light: #34D399;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --valid: #16A34A;
  --error: #DC2626;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -14px rgba(15, 23, 42, 0.16);
  --shadow-card-hover: 0 1px 2px rgba(15, 23, 42, 0.05), 0 24px 40px -16px rgba(15, 23, 42, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --container: 1152px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 56px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.accent {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0;
}
/* the accent word sits on dark backgrounds in the hero, quote band & footer */
.hero-content .accent, .quote-intro .accent, .footer-brand .accent { color: var(--blue-light); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ── Layout helpers ── */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 10vw, 128px); }
.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-bottom: 14px;
}
.overline::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--blue-text);
  border-radius: 2px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.section-head.center { max-width: 640px; margin-inline: auto; text-align: center; }
.section-head.center .overline::before { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(12, 88, 174, 0.5); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(9, 74, 147, 0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Reveal-on-scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
}

/* Pure-CSS load-in for ABOVE-the-fold content only (hero). Runs immediately
   on paint — no JS/IntersectionObserver gate — so the LCP candidate (h1)
   never sits at opacity:0 waiting on JS to bootstrap. Scroll-triggered
   .reveal/.reveal-group above is for below-fold sections only. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.load-in-group > * {
  animation: fadeUp 800ms var(--ease) both;
}
.load-in-group > *:nth-child(1) { animation-delay: 40ms; }
.load-in-group > *:nth-child(2) { animation-delay: 130ms; }
.load-in-group > *:nth-child(3) { animation-delay: 220ms; }
.load-in-group > *:nth-child(4) { animation-delay: 320ms; }
.load-in-group > *:nth-child(5) { animation-delay: 410ms; }
@media (prefers-reduced-motion: reduce) {
  .load-in-group > * { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 250, 249, 0.96); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.wordmark-icon { height: 32px; width: auto; flex-shrink: 0; }
.wordmark-text { display: flex; align-items: baseline; gap: 2px; }
.wordmark .accent { font-size: 20px; }
.header-nav { display: flex; align-items: center; gap: 36px; }
.header-links { display: flex; gap: 28px; }
.header-links a { font-size: 14.5px; font-weight: 500; color: var(--body); transition: color 150ms var(--ease); position: relative; }
.header-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 7px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.header-phone svg { width: 17px; height: 17px; color: var(--blue); }
.header-cta { padding: 11px 22px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; color: var(--ink); }

@media (max-width: 880px) {
  .header-links { display: none; }
  .menu-toggle { display: block; }
  /* PLAN.md 4.1: header collapses to wordmark + call button on mobile */
  .header-cta { display: none; }
  .header-phone {
    padding: 9px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
  }
  .header-phone:hover, .header-phone:active { border-color: var(--blue); background: var(--blue-tint); }
}
@media (max-width: 460px) {
  .wordmark { font-size: 17px; gap: 8px; }
  .wordmark .accent { font-size: 17px; }
  .wordmark-icon { height: 26px; }
}
@media (max-width: 400px) {
  .header-phone span { display: none; }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--gutter) 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 12px 4px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; color: var(--blue); }

/* FAQ accordion chevrons */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform 220ms var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(180deg, #1c2942 0%, var(--dark) 100%);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.35) 38%, rgba(15, 23, 42, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.15) 60%);
}
.hero-content { position: relative; z-index: 2; padding-block: 64px clamp(56px, 8vw, 96px); width: 100%; }
.hero-content .overline { color: #7FB2E8; }
.hero-content .overline::before { background: #7FB2E8; }
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 6.4vw, 84px);
  max-width: 16ch;
  line-height: 1.03;
}
.hero-sub { margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 19px); color: #E2E8F0; line-height: 1.65; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { margin-top: 44px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-stars { display: flex; gap: 3px; }
.hero-stars svg { width: 16px; height: 16px; color: var(--blue-light); }
.hero-proof-text { font-size: 13.5px; color: #CBD5E1; }
.hero-proof-text strong { color: #fff; }
.hero-scroll-cue {
  position: absolute; right: var(--gutter); bottom: 36px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.55); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-scroll-cue svg { width: 16px; height: 16px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 640px) { .hero-scroll-cue { display: none; } }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar { background: var(--dark); color: #fff; padding-block: 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: 24px; }
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-num { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(26px, 3vw, 36px); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.trust-num svg { width: 26px; height: 26px; color: var(--blue-light); }
.trust-label { margin-top: 6px; font-size: 12.5px; color: #94A3B8; letter-spacing: 0.02em; }
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .trust-item:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.service-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; color: var(--blue); }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.service-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.service-link svg { width: 15px; height: 15px; transition: transform 200ms var(--ease); }
.service-card:hover .service-link svg { transform: translateX(3px); }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Before / After gallery
   ========================================================================== */
.gallery-section { background: var(--surface); border-block: 1px solid var(--line); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.gallery-filter {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13.5px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--body); cursor: pointer;
  transition: all 180ms var(--ease);
}
.gallery-filter:hover { border-color: var(--blue); color: var(--ink); }
.gallery-filter.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.gallery-item { display: none; }
.gallery-item.is-shown { display: block; }

.ba-slider {
  position: relative;
  /* 4:5 (not 4:3): the source photos are portrait phone shots — a landscape
     frame cover-crops ~44% of their height away, which reads as "zoomed in
     too much" (Andrew's complaint). 4:5 keeps ~94% of a 3:4 portrait shot. */
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  outline-offset: 4px;
}
.ba-slider:focus-visible { outline: 3px solid var(--blue); }
.ba-slider img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-after-layer { position: absolute; inset: 0; }
.ba-before-layer { position: absolute; inset: 0; will-change: clip-path; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 0; transform: translateX(-50%);
  will-change: left;
}
.ba-handle-line { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15); }
.ba-handle-grip {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
  display: flex; align-items: center; justify-content: center; gap: 2px;
  transition: transform 180ms var(--ease);
}
.ba-slider:hover .ba-handle-grip, .ba-slider:focus-visible .ba-handle-grip { transform: translate(-50%, -50%) scale(1.08); }
.ba-handle-grip svg { width: 15px; height: 15px; color: var(--dark); }
.ba-chip {
  position: absolute; top: 16px;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: 0.1em;
  padding: 7px 13px; border-radius: 999px; color: #fff;
  pointer-events: none;
}
.ba-chip-before { left: 16px; background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(4px); }
.ba-chip-after { right: 16px; background: var(--blue); }
.ba-caption { margin-top: 16px; }
.ba-caption h3 { font-size: 18px; margin-bottom: 4px; }
.ba-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.ba-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ba-meta svg { width: 14px; height: 14px; color: var(--blue); }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Why choose
   ========================================================================== */
.why-section { background: var(--dark); color: #fff; }
.why-section .overline { color: #7FB2E8; }
.why-section .overline::before { background: #7FB2E8; }
.why-section .section-head h2 { color: #fff; }
.why-section .section-head p { color: #94A3B8; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); overflow: hidden; }
.why-item { background: #16213B; padding: 32px 26px; }
.why-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(249, 115, 22, 0.15); border-radius: var(--radius-sm); margin-bottom: 20px; }
.why-icon svg { width: 22px; height: 22px; color: var(--blue-light); }
.why-item h3 { color: #fff; font-size: 16.5px; margin-bottom: 8px; }
.why-item p { font-size: 13.5px; color: #94A3B8; line-height: 1.6; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 16px; }
.testimonial-stars { display: flex; gap: 3px; }
.testimonial-stars svg { width: 16px; height: 16px; color: var(--blue); }
.testimonial-quote { font-size: 15.5px; color: var(--body); line-height: 1.65; flex: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.testimonial-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.testimonial-meta { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .testimonial-track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .testimonial-track { grid-template-columns: 1fr; } }

/* ==========================================================================
   Quote form
   ========================================================================== */
.quote-section { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.quote-section::before {
  content: '';
  position: absolute; inset: -20% -10% auto auto; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, transparent 68%);
  pointer-events: none;
}
.quote-layout { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.quote-intro .overline { color: #7FB2E8; }
.quote-intro .overline::before { background: #7FB2E8; }
.quote-intro h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.quote-intro p { margin-top: 16px; color: #94A3B8; font-size: 16px; max-width: 40ch; }
.quote-direct { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.quote-direct-item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #E2E8F0; }
.quote-direct-item svg { width: 18px; height: 18px; color: var(--blue-light); flex-shrink: 0; }
.quote-direct-item a:hover { text-decoration: underline; }

.quote-form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-family: 'Archivo', sans-serif; }
.field label .req, .consent label .req { color: var(--blue-text); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(12, 88, 174, 0.14); background: #fff;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { display: none; margin-top: 6px; font-size: 12.5px; color: var(--error); font-weight: 500; }
.field.has-error .field-error,
.consent.has-error .field-error { display: block; }
.field-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.consent { margin-bottom: 22px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.consent label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent.has-error label { color: var(--error); }
.consent .field-error { margin-left: 28px; }
.form-submit { width: 100%; padding-block: 16px; font-size: 16px; }
.form-submit .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
.form-submit.is-loading .spinner { display: inline-block; }
.form-submit.is-loading .submit-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-banner { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.form-banner.is-shown { display: block; }
.form-banner.error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

@media (max-width: 940px) {
  .quote-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0B1220; color: #94A3B8; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .wordmark { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.65; max-width: 32ch; color: #94A3B8; }
.footer-badges { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); }
.footer-badge svg { width: 13px; height: 13px; color: var(--blue-light); }
.footer-col h4 { font-family: 'Archivo', sans-serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; color: #94A3B8; }
.footer-col a:hover { color: #fff; }
.footer-col .muted-line { color: #94A3B8; font-size: 12.5px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #94A3B8; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Utility pages (thanks / privacy)
   ========================================================================== */
.utility-main { min-height: 70vh; display: flex; align-items: center; }
.utility-card { max-width: 560px; margin-inline: auto; text-align: center; padding-block: 80px; }
.utility-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--blue-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.utility-icon svg { width: 38px; height: 38px; color: var(--blue); }
.utility-card h1 { font-size: clamp(28px, 4vw, 38px); }
.utility-card p { margin-top: 16px; font-size: 16.5px; color: var(--muted); line-height: 1.65; }
.utility-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.legal-content { max-width: 720px; margin-inline: auto; padding-block: 80px; }
.legal-content h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 24px; }
.legal-content p { margin-bottom: 16px; color: var(--body); line-height: 1.7; }
.legal-content p.muted { color: var(--muted); font-size: 14px; }

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-weight: 700; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ── Responsive: tablet/mobile shared ── */
@media (max-width: 1024px) {
  .quote-layout { grid-template-columns: 1fr; }
}

/* ── Leave-a-review (testimonial submission) ── */
.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; }
.review-invite { max-width: 680px; margin: 56px auto 0; text-align: center; }
.review-invite-head h3 { font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); }
.review-invite-head p { margin: 12px auto 22px; color: var(--muted); max-width: 46ch; }
.review-form { text-align: left; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-card); }
.review-form[hidden] { display: none; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-family: 'Archivo', sans-serif; }
.field-label .req { color: var(--blue-text); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #CBD5E1; line-height: 0; transition: color 0.12s var(--ease); }
.star-input label svg { width: 32px; height: 32px; display: block; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--blue); }
.star-input input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.review-success { text-align: center; background: var(--blue-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px); margin-top: 4px; }
.review-success[hidden] { display: none; }
.review-success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.review-success-icon svg { width: 30px; height: 30px; }
.review-success h3 { font-size: 22px; color: var(--ink); }
.review-success p { margin-top: 10px; color: var(--muted); max-width: 42ch; margin-left: auto; margin-right: auto; }
