/* Denver Junk Haul — shared styles
   ------------------------------------------------------------------
   Direction: clean trust-blue local service. White ground, confident
   blue, soft depth, rounded geometry, Inter throughout. Photography
   carries the warmth; the UI stays quiet so the CTA is always the
   loudest thing on screen.

   Kept deliberately distinct from the hot tub property, which runs a
   serif display face on a deep water palette.

   Contents:
     1. Tokens
     2. Base + typography
     3. Header / navigation
     4. Buttons + focus
     5. Hero
     6. Load estimator (signature element)
     7. Photo bands
     8. Sections, cards, tables, FAQ, areas
     9. CTA band, forms, footer
    10. Quiz funnel
   ------------------------------------------------------------------ */

/* ===================================================================
   1. Tokens
   =================================================================== */

:root {
  /* Brand blue */
  --blue-900: #10275C;
  --blue-800: #14357F;
  --blue-700: #1748A8;
  --blue-600: #1D5BD6;   /* primary */
  --blue-500: #3B7BEE;
  --blue-100: #DCE8FD;
  --blue-50:  #F0F5FF;

  /* Neutrals */
  --ink:      #0E1726;
  --ink-soft: #33415C;
  --slate:    #5A6A85;   /* 4.9:1 on white */
  --line:     #E1E8F2;
  --line-soft:#EDF2F8;
  --bg:       #FFFFFF;
  --bg-alt:   #F6F9FD;

  /* Green — the second brand colour, not a status signal. Carries the
     "clean / hauled away / recycled" half of the story while blue carries
     trust. Blue stays the primary CTA; green never competes with it. */
  --green-800: #075740;
  --green-700: #0B7350;   /* 5.8:1 on white — safe for text */
  --green-600: #0E8F63;   /* fills and large shapes only */
  --green-500: #17A876;
  --green-100: #D5F2E5;
  --green-50:  #EFFBF6;

  /* Signal — used sparingly, never as the primary CTA */
  --amber:     #B45309;
  --amber-bg:  #FEF6E7;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-lede: clamp(1.125rem, 1.02rem + 0.5vw, 1.3125rem);
  --t-h3:   clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-h2:   clamp(1.625rem, 1.3rem + 1.5vw, 2.375rem);
  --t-h1:   clamp(2.125rem, 1.5rem + 2.9vw, 3.5rem);

  /* Space */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --section-y: clamp(3.5rem, 7vw, 5.5rem);

  /* Layout */
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --shell: 1200px;

  /* Shape + depth */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(14, 23, 38, 0.06), 0 1px 3px rgba(14, 23, 38, 0.05);
  --sh-2: 0 2px 4px rgba(14, 23, 38, 0.05), 0 6px 16px rgba(14, 23, 38, 0.07);
  --sh-3: 0 8px 20px rgba(14, 23, 38, 0.09), 0 18px 44px rgba(14, 23, 38, 0.10);
  --sh-blue: 0 6px 18px rgba(29, 91, 214, 0.28);

  /* Motion */
  --fast: 0.15s;
  --mid:  0.25s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-nav: 40;
  --z-drop: 60;
}

*, *::before, *::after { box-sizing: border-box; }

/* The quiz toggles buttons via the hidden attribute; .btn sets an explicit
   display, which would otherwise out-specify the UA rule and leave Next and
   Send on screen together. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@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;
  }
}

/* ===================================================================
   2. Base + typography
   =================================================================== */

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); font-weight: 750; }
h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.015em; }

p { margin: 0 0 1.15em; max-width: var(--measure); text-wrap: pretty; }
a { color: var(--blue-700); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }

:target, h1, h2, h3, section[id] { scroll-margin-top: 88px; }

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }

.eyebrow {
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 var(--s-3);
}

/* ===================================================================
   3. Header / navigation
   =================================================================== */

.topbar {
  background: var(--blue-900);
  color: #C9D8F5;
  font-size: var(--t-sm);
  padding: var(--s-2) 0;
}
.topbar .shell { display: flex; gap: var(--s-5); justify-content: space-between; flex-wrap: wrap; }
.topbar strong { color: #FFFFFF; font-weight: 600; }

.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  /* Solid, not a blurred backdrop: backdrop-filter on a sticky element
     triggers repaint artifacts and costs GPU on low-end phones, which is
     most of this traffic. */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: 72px; padding: var(--s-3) 0;
}

/* Logo lockup: mark + two-tone wordmark. Inline flex on the <a>, but the
   words live in their own spans so no whitespace can collapse. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark__mark { width: 34px; height: 34px; flex: none; display: block; }
.wordmark__text { display: inline-flex; gap: 0.3em; }
/* "Denver" navy, "Junk Haul" green — the two brand colours in the name. */
.wordmark__a { color: var(--blue-900); }
.wordmark__b { color: var(--green-700); }

/* On the navy footer both halves invert to stay legible. */
.footer .wordmark { color: #FFFFFF; }
.footer .wordmark__a { color: #FFFFFF; }
.footer .wordmark__b { color: var(--green-500); }

.nav { display: flex; gap: var(--s-2); align-items: center; }
.nav a, .drop__btn {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 42px; padding: 0 var(--s-3);
  font-family: inherit; font-size: var(--t-sm); font-weight: 550;
  color: var(--ink-soft); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  border-radius: var(--r-sm);
  transition: background var(--fast) linear, color var(--fast) linear;
}
.nav a:hover, .drop__btn:hover, .drop__btn[aria-expanded="true"] {
  background: var(--blue-50); color: var(--blue-700);
}
.drop { position: relative; }
.drop__btn::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.drop__menu {
  position: absolute; top: calc(100% + var(--s-2)); left: 0;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-3);
  list-style: none; margin: 0; padding: var(--s-2); min-width: 248px;
  display: none; z-index: var(--z-drop);
}
.drop__btn[aria-expanded="true"] + .drop__menu { display: block; }
.drop__menu a {
  display: block; padding: var(--s-3); border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-soft); font-size: var(--t-sm);
  transition: background var(--fast) linear, color var(--fast) linear;
}
.drop__menu a:hover { background: var(--blue-50); color: var(--blue-700); }

.burger {
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer;
}
.burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); margin: 3px auto;
  transition: transform var(--mid) var(--ease), opacity var(--fast) linear;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobilenav { display: none; border-top: 1px solid var(--line); background: var(--bg); padding: var(--s-4) 0 var(--s-6); }
.mobilenav.open { display: block; }
.mobilenav ul { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; }
.mobilenav a {
  display: flex; align-items: center; min-height: 46px;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobilenav .eyebrow { margin-top: var(--s-3); }

@media (max-width: 1040px) { .nav { display: none; } .burger { display: grid; } }
@media (min-width: 1041px) { .mobilenav { display: none !important; } }
@media (max-width: 640px) {
  .topbar { font-size: var(--t-xs); }
  .masthead .shell { min-height: 62px; }
  .masthead .btn { padding: 0 var(--s-4); font-size: var(--t-sm); min-height: 42px; }
}

/* ===================================================================
   4. Buttons + focus
   =================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-6);
  font-family: inherit; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em;
  text-decoration: none; text-align: center;
  color: #FFFFFF; background: var(--blue-600);
  border: 1px solid transparent; border-radius: var(--r-pill);
  box-shadow: var(--sh-blue); cursor: pointer;
  transition: background var(--fast) linear, transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}
.btn:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 91, 214, 0.34); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-1); }

.btn--quiet {
  background: var(--bg); color: var(--blue-700);
  border-color: var(--line); box-shadow: var(--sh-1);
}
.btn--quiet:hover { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-100); box-shadow: var(--sh-2); }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.hero :focus-visible, .band :focus-visible, .footer :focus-visible, .result :focus-visible {
  outline-color: #FFFFFF;
}

/* ===================================================================
   5. Hero
   =================================================================== */

.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(760px 380px at 92% 4%, var(--green-50), transparent 68%),
    radial-gradient(900px 420px at 12% 0%, var(--blue-50), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: var(--s-4); }
.hero .lede { font-size: var(--t-lede); color: var(--ink-soft); max-width: 54ch; }
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

/* Photo panel — only the homepage hero carries one.
   <figure> ships a UA default of `margin: 1em 40px`, which would inset the
   image 40px inside the shell and make it narrower than the text beside it. */
.hero__media {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--s-6) var(--s-4) var(--s-3);
  /* Reaches full strength before the text band starts, so the caption stays
     legible over a bright photo rather than only over a dark one. */
  background: linear-gradient(to top,
              rgba(14, 23, 38, 0.92) 0%,
              rgba(14, 23, 38, 0.88) 55%,
              rgba(14, 23, 38, 0) 100%);
  color: #FFFFFF; font-size: var(--t-sm); font-weight: 500;
}

.trustrow {
  display: flex; gap: var(--s-5); flex-wrap: wrap;
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm); font-weight: 550; color: var(--ink-soft);
}
.trustrow span { display: flex; align-items: center; gap: var(--s-2); }
.trustrow span::before {
  content: "";
  width: 20px; height: 20px; flex: none; border-radius: var(--r-pill);
  /* Tick is an inline SVG, so its stroke can't reference a CSS variable —
     it is --green-700 (#0B7350) hand-encoded. Update both together. */
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7350' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.breadcrumb { font-size: var(--t-sm); color: var(--slate); padding-top: var(--s-5); }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-700); text-decoration: underline; }

/* ===================================================================
   6. Load estimator — signature element
   =================================================================== */

.estimator {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
/* Standalone feature placement: the estimator gets its own band under the
   hero rather than being squeezed into a column beside it. */
.estimator--feature { max-width: 640px; margin-inline: auto; }
/* Service and area pages nest a table inside the estimator card. Flatten it
   so it doesn't read as a card inside a card. */
.estimator .table-wrap { border: 0; box-shadow: none; border-radius: 0; margin-top: var(--s-3); }
.estimator .compare { background: transparent; }
.estimator .compare th, .estimator .compare td { padding: var(--s-3) 0; }
.estimator .compare thead th { background: transparent; }
.estimator .compare tbody tr:hover { background: transparent; }
.estimator h2 { font-size: 1.3125rem; margin-bottom: var(--s-2); }
.estimator .hint { font-size: var(--t-sm); color: var(--slate); margin-bottom: var(--s-4); }

.rig-wrap {
  position: relative;
  background: var(--blue-900);
  border-radius: var(--r);
  padding: var(--s-4);
  overflow: hidden;
}
.rig { width: 100%; height: auto; display: block; }
.rig .body-line { fill: none; stroke: #FFFFFF; stroke-width: 3.2; stroke-linejoin: round; }
.rig .bed-void { fill: #0A1836; }
.rig .glass { fill: #2E4A85; }
.rig .tyre { fill: #0A1836; stroke: #FFFFFF; stroke-width: 3.2; }
.rig .hub { fill: #7E9BD4; }
/* The load fills green against the navy truck: it is the "cleared away"
   half of the story, and it separates the payload from the vehicle. */
.rig .bed-fill {
  fill: var(--green-500);
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(var(--fill, 0));
  transition: transform 0.5s var(--ease);
}
.rig .hatch { stroke: #1B3168; stroke-width: 6; }
.rig .ground { stroke: #46639F; stroke-width: 3; stroke-dasharray: 12 10; }

.rig-caption {
  position: absolute; left: 50%; top: 16%;
  transform: translate(-50%, -50%);
  font-size: var(--t-sm); font-weight: 650;
  color: var(--blue-900); background: #FFFFFF;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
  pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity var(--mid) linear 0.1s;
}
.rig-caption.on { opacity: 1; }

.loads { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-4); }
@media (max-width: 420px) { .loads { grid-template-columns: repeat(2, 1fr); } }
.loads button {
  min-height: 48px; padding: var(--s-2);
  font-family: inherit; font-size: var(--t-sm); font-weight: 600;
  color: var(--ink-soft); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--fast) linear, border-color var(--fast) linear,
              color var(--fast) linear, box-shadow var(--fast) linear;
}
.loads button:hover { background: var(--blue-50); border-color: var(--blue-100); }
/* Selected state carries fill, border and ring — not colour alone. */
.loads button[aria-pressed="true"] {
  background: var(--blue-600); color: #FFFFFF;
  border-color: var(--blue-600);
  box-shadow: inset 0 0 0 2px #FFFFFF, 0 0 0 2px var(--blue-600);
}

.readout { margin-top: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.readout__price {
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.375rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--blue-700);
}
.estimator .readout__note { font-size: var(--t-sm); color: var(--slate); margin: var(--s-2) 0 0; max-width: none; }

/* ===================================================================
   7. Photo bands
   =================================================================== */

.photoband {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) { .photoband { grid-template-columns: 1fr; } }
.photoband--flip .photoband__media { order: -1; }
@media (max-width: 860px) { .photoband--flip .photoband__media { order: 0; } }
.photoband__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
}
.photoband__media img { width: 100%; height: 100%; object-fit: cover; }

/* ===================================================================
   8. Sections, cards, tables, FAQ, areas
   =================================================================== */

.section { padding: var(--section-y) 0; }
.section--paper { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { margin-bottom: var(--s-6); max-width: 62ch; }
.section__head h2 { margin-bottom: var(--s-3); }
.section__head p { color: var(--slate); }

.grid { display: grid; gap: var(--s-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  text-decoration: none;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
              border-color var(--fast) linear;
}
a.card:hover, a.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--blue-100);
}
.card h3 { margin: 0; }
.card p { font-size: var(--t-sm); color: var(--slate); margin: 0; }
/* Service icons carry the green half of the palette so the grid doesn't read
   as a wall of blue, and the CTA stays the only saturated blue on screen. */
.card__icon {
  width: 40px; height: 40px; padding: 8px;
  border-radius: var(--r-sm);
  background: var(--green-50);
  stroke: var(--green-700); stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: var(--s-2);
  transition: background var(--fast) linear, stroke var(--fast) linear;
}
a.card:hover .card__icon { background: var(--green-100); stroke: var(--green-800); }
/* Optional photo slot — drop an <img class="card__photo"> as the first
   child of any .card to give it a picture. Nothing else needs to change. */
.card__photo {
  width: calc(100% + (var(--s-5) * 2));
  margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-3);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r) var(--r) 0 0;
}
.card__more {
  margin-top: auto; padding-top: var(--s-3);
  font-size: var(--t-sm); font-weight: 600; color: var(--blue-600);
}
a.card:hover .card__more { color: var(--blue-800); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  margin-top: var(--s-5);
  background: var(--bg);
}
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.compare th, .compare td { text-align: left; padding: var(--s-4); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th {
  font-size: var(--t-sm); font-weight: 650; color: var(--ink);
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: var(--blue-50); }
.compare td:first-child { font-weight: 600; color: var(--ink); }

.faq { max-width: 78ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 60px; padding: var(--s-4) 0;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-700); }
.faq summary::after {
  content: ""; flex: none;
  width: 28px; height: 28px; border-radius: var(--r-pill);
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5BD6' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--mid) var(--ease);
}
.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5BD6' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.faq details p { padding-bottom: var(--s-4); margin: 0; color: var(--slate); }

.arealist { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); padding: 0; list-style: none; }
.arealist a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--s-4);
  font-size: var(--t-sm); font-weight: 550;
  color: var(--ink-soft); text-decoration: none;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-pill); box-shadow: var(--sh-1);
  transition: background var(--fast) linear, color var(--fast) linear,
              border-color var(--fast) linear, transform var(--fast) var(--ease);
}
.arealist a:hover, .arealist a:focus-visible {
  background: var(--blue-600); color: #FFFFFF; border-color: var(--blue-600);
  transform: translateY(-2px);
}

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s-7); margin-bottom: var(--s-4); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose ul { max-width: var(--measure); padding-left: 1.2rem; }
.prose li { margin-bottom: var(--s-2); }

.stepnum {
  display: inline-grid; place-items: center;
  align-self: start;   /* .card is a flex column; stop the badge stretching */
  flex: none;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--blue-600); color: #FFFFFF;
  font-size: 1.0625rem; font-weight: 700; line-height: 1;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ===================================================================
   9. CTA band, forms, footer
   =================================================================== */

.band {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  /* Solid colour first so white text is never stranded on white if the
     gradient fails to paint. */
  background-color: var(--blue-700);
  /* Blue into green — the two brand colours meeting is the site's one big
     colour moment, and it lands on the strongest CTA. */
  background-image: linear-gradient(115deg, var(--blue-800) 0%, var(--blue-600) 48%, var(--green-700) 100%);
  color: #FFFFFF;
}
.band h2 { color: #FFFFFF; margin-bottom: var(--s-3); }
.band p { color: #DCEAF7; font-size: var(--t-lede); }
.band .btn { background: #FFFFFF; color: var(--blue-700); box-shadow: var(--sh-2); }
.band .btn:hover { background: var(--blue-50); color: var(--blue-800); }

.form { display: grid; gap: var(--s-4); max-width: 560px; }
.form label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4);
  font-family: inherit; font-size: 1rem;   /* 16px min — stops iOS zoom */
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--fast) linear, box-shadow var(--fast) linear;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.form textarea { min-height: 130px; resize: vertical; }
/* Legacy modifier from the previous dark-panel theme. The panel it lived in
   (.estimator) is now a white card, so the old white-on-white label colour
   made the whole contact form invisible. Neutralised rather than deleted so
   the class stays harmless wherever it is still in the markup. */
.form--dark label { color: var(--ink); }
.form--dark input, .form--dark select, .form--dark textarea { border-color: var(--line); }

.contactblock { display: grid; gap: var(--s-5); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.contactblock p { margin: 0; }
.bignum { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 750; letter-spacing: -0.03em; color: var(--ink); }
.bignum a { color: var(--blue-700); text-decoration: none; }
.bignum a:hover { text-decoration: underline; }

/* Phone links are a primary conversion path on mobile, so give them a real
   tap target rather than the height of the text alone. */
a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.quizfoot a[href^="tel:"] { min-height: 0; display: inline; }
@media (max-width: 640px) { .quizfoot a[href^="tel:"] { min-height: 44px; display: inline-flex; } }

.footer {
  background: var(--blue-900);
  color: #A9BEE4;
  padding: var(--s-8) 0 var(--s-6);
  font-size: var(--t-sm);
}
.footer a { color: #DCE8FD; text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer .wordmark { color: #FFFFFF; }
.footer .wordmark span { color: var(--blue-500); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: var(--t-sm); font-weight: 650; color: #FFFFFF; margin: 0 0 var(--s-3); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer__legal { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,0.14); font-size: var(--t-xs); }

/* ===================================================================
   10. Quiz funnel
   =================================================================== */

.quizshell { max-width: 720px; margin-inline: auto; }
.quizhead { margin-bottom: var(--s-6); }
.quiztitle { font-size: clamp(1.875rem, 1.5rem + 2vw, 2.75rem); margin-bottom: var(--s-3); }
.quizsub { color: var(--slate); font-size: var(--t-lede); }

.progress { height: 8px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.progress__bar {
  height: 100%; width: 16.6%;
  background: linear-gradient(90deg, var(--blue-600), var(--green-600));
  border-radius: var(--r-pill);
  transition: width var(--mid) var(--ease);
}
.progress__label { font-size: var(--t-sm); font-weight: 550; color: var(--slate); margin: var(--s-3) 0 var(--s-6); }

.quiz .step { display: none; border: 0; padding: 0; margin: 0; }
.quiz .step.is-active { display: block; animation: stepin var(--mid) var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz .step.is-active { animation: none; } }

/* <legend> shrink-wraps and ignores block layout; float it to full width
   so the question wraps predictably. .opts clears it. */
.q {
  float: left; width: 100%;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 750; letter-spacing: -0.025em; line-height: 1.2;
  color: var(--ink); padding: 0; margin-bottom: var(--s-2);
}
/* Everything following the floated legend must clear it — the final step
   puts a result card there, not just the option list. */
.quiz .step > .q ~ * { clear: both; }
.qhint { color: var(--slate); font-size: var(--t-sm); margin: 0; padding-top: var(--s-2); }

.opts { clear: both; display: grid; gap: var(--s-3); padding-top: var(--s-5); }
.opt { position: relative; display: block; cursor: pointer; }
/* Input stays in the layout so it remains focusable and announced; the
   visible control is drawn by .opt span::before. */
.opt input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.opt span {
  display: grid; grid-template-columns: 24px 1fr; column-gap: var(--s-4);
  align-items: center;
  min-height: 60px; padding: var(--s-4);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-1);
  transition: border-color var(--fast) linear, box-shadow var(--fast) var(--ease),
              background var(--fast) linear, transform var(--fast) var(--ease);
}
.opt span::before {
  content: ""; grid-row: 1 / span 2;
  width: 24px; height: 24px; border-radius: var(--r-pill);
  border: 2px solid var(--line); background: var(--bg);
  transition: border-color var(--fast) linear, box-shadow var(--fast) linear;
}
.opt span strong { grid-column: 2; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.opt span em { grid-column: 2; font-style: normal; font-size: var(--t-sm); color: var(--slate); margin-top: 2px; }
.opt:hover span { border-color: var(--blue-100); box-shadow: var(--sh-2); transform: translateY(-2px); }
.opt:hover span::before { border-color: var(--blue-500); }

/* Selection carries border, tint, ring and a filled dot — not colour alone. */
.opt input:checked + span {
  background: var(--blue-50);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 2px var(--blue-600), var(--sh-2);
}
.opt input:checked + span::before {
  border-color: var(--blue-600);
  box-shadow: inset 0 0 0 5px var(--blue-600);
}
.opt input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 3px; }

.quiznav { display: flex; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.quiznav .btn:disabled {
  background: var(--line-soft); color: var(--ink-soft);  /* 4.4:1 was too tight */
  box-shadow: none; transform: none; cursor: not-allowed;
}

.result {
  background-color: var(--blue-700);
  background-image: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #FFFFFF;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.result .eyebrow { color: #B9CFF8; }
.result__size { font-size: var(--t-sm); font-weight: 600; color: #D8E4FB; margin: 0 0 var(--s-1); }
.result__price {
  font-size: clamp(1.875rem, 1.5rem + 1.8vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: #FFFFFF; margin: 0;
}
.result__note { font-size: var(--t-sm); color: #CFDEFA; margin: var(--s-3) 0 0; max-width: none; }

.done { padding: var(--s-7) 0; }
.quizfoot { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--slate); }

/* The wordmark is the header's home link; give it a full-height hit area.
   Padding, not flex: a flex container drops the whitespace between the
   wordmark's text nodes and its <span>/<em>, running the words together. */
.masthead .wordmark { display: inline-block; padding-block: 0.8rem; }
