/* ==========================================================================
   The Well-Kept Home — stylesheet
   Palette and type scale live in :root. Change a value there and it updates
   everywhere on the site.
   ========================================================================== */

:root {
  /* ---- Primary: navy (structure) + cyan (anything interactive) ---- */
  --navy-900: #08192b;  /* deepest — quote section, footer */
  --navy-800: #0f2c47;  /* dark bands — trust bar, estimate card */
  --navy-700: #1a4570;  /* headings */
  --navy-600: #24608f;

  --cyan-700: #08596a;  /* button hover */
  --cyan-600: #0a6d80;  /* buttons, links, active chips — AA on white */
  --cyan-400: #3fb9d0;
  --cyan-100: #cfeaf1;
  --cyan-050: #eaf6f9;

  /* ---- Secondary: gold (accents, highlights) ---- */
  --gold-700: #7a580c;  /* gold as text */
  --gold-500: #d4a017;  /* gold as a shape */
  --gold-300: #e8c56a;  /* gold on dark backgrounds */
  --gold-100: #f7e9c4;

  /* ---- Tertiary: light green (soft fills, confirmations) ---- */
  --green-400: #8cc4a3;
  --green-300: #a9d5bc;
  --green-100: #dcefe4;

  --cream:     #f7fafb;  /* page background */
  --cream-alt: #e9f1f5;  /* alternating sections */
  --card:      #ffffff;

  --ink:       #16232e;
  --ink-soft:  #4d6070;
  --line:      #d5e2ea;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(8,25,43,.05), 0 12px 32px -12px rgba(8,25,43,.16);
  --shadow-lg: 0 2px 4px rgba(8,25,43,.06), 0 28px 60px -22px rgba(8,25,43,.28);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 1.1em; }
a  { color: var(--cyan-600); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy-800); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2.5px solid var(--cyan-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-600); margin: 0 0 .85rem;
}
.eyebrow.light { color: var(--gold-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-size: .96rem; font-weight: 600;
  padding: .78rem 1.4rem; border-radius: 100px;
  background: var(--cyan-600); color: #fff; border: 1.5px solid var(--cyan-600);
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
  box-shadow: 0 8px 20px -10px rgba(10,109,128,.7);
}
.btn:hover { background: var(--cyan-700); border-color: var(--cyan-700); transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn-ico { width: 17px; height: 17px; flex: none; }
.btn-sm  { padding: .5rem 1.05rem; font-size: .88rem; }
.btn-lg  { padding: .95rem 1.85rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--navy-800); border-color: var(--cyan-400);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--cyan-050); border-color: var(--cyan-600); color: var(--navy-800); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,250,251,.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 22px -18px rgba(8,25,43,.6); }
/* .7rem keeps the header at ~76px with the 54px lockup, under the 88px
   scroll-padding-top that anchors rely on. */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy-800); }
/* height drives the size; width:auto lets the rendered box follow whichever
   source <picture> resolved (wide lockup or square bug) instead of the
   width/height attributes, which only reserve space during load. */
.brand-logo { height: 54px; width: auto; flex: none; }
/* The lockup already reads "The Well-Kept Home" — the text would be a
   duplicate next to it, so it only returns when the bug takes over at 620px. */
.brand-text { display: none; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-size: 1.19rem; font-weight: 600; color: var(--navy-900); letter-spacing: -.02em; }
.brand-sub { font-size: .705rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }

.nav-list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-size: .945rem; font-weight: 500; }
.nav-list a:not(.btn):hover { color: var(--cyan-600); }
.nav-list a.btn { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 40px; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 19px; height: 2px; background: var(--navy-800); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--gold-700); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 2.4rem; }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: 2.2rem; list-style: none; margin: 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--display); font-size: 1.85rem; font-weight: 600; color: var(--navy-700); line-height: 1; }
.hero-proof span { font-size: .83rem; color: var(--ink-soft); margin-top: .3rem; }

.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(8,25,43,.13)); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-800); color: var(--cyan-100); }
.trustbar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .9rem 2rem;
  padding: 1.05rem 0; font-size: .89rem; font-weight: 500;
}
.trust-item { display: flex; align-items: center; gap: .6rem; }
.trust-ico {
  width: 20px; height: 20px; flex: none;
  color: var(--cyan-400);          /* icons read as accent, text stays cyan-100 */
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--cream-alt); }
.section-head { max-width: 60ch; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.04rem; margin-bottom: 0; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.35rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.6rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card p { font-size: .955rem; color: var(--ink-soft); }
.card-ico {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1.05rem;
  background: var(--cyan-050); color: var(--cyan-600); border-radius: 12px;
}
.card-ico svg { width: 23px; height: 23px; }
.card-feature { border-color: var(--gold-500); background: linear-gradient(180deg, #ffffff, #fffbf0); }
.card-list { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: .89rem; }
.card-list li { position: relative; padding-left: 1.35rem; margin-bottom: .42rem; color: var(--ink-soft); }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green-400);
}
.card-note {
  margin: 1.2rem 0 0; padding-top: .9rem; border-top: 1px dashed var(--line);
  font-size: .84rem; font-style: italic; color: var(--gold-700);
}

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.approach-copy p { color: var(--ink-soft); max-width: 58ch; }
.approach-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2.3rem; }
.point h4 { margin-bottom: .3em; color: var(--navy-900); }
.point h4::before {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--gold-500); margin-bottom: .65rem;
}
.point p { font-size: .91rem; margin: 0; }

.aside-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.aside-card h3 { font-size: 1.05rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; margin-bottom: .9rem; }
.aside-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.x-list, .check-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.x-list li, .check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; color: var(--ink-soft); }
/* Drawn as SVG rather than the "×" and "✓" characters — font glyphs vary in
   weight and vertical centering between platforms, these do not. The stroke
   color is baked into each data URI (gold-700 / navy-700). */
.x-list li::before, .check-list li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px;
  border-radius: 50%; background-repeat: no-repeat; background-position: center;
}
.x-list li::before {
  background-color: var(--gold-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a580c' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
  background-size: 10px 10px;
}
.check-list li::before {
  background-color: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a4570' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6l4.6 4.6L19 7.2'/%3E%3C/svg%3E");
  background-size: 11px 11px;
}

/* ---------- Reviews ---------- */
.quote-feature {
  max-width: 780px; margin: 0 auto; text-align: center; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.6rem, 5vw, 3.6rem) clamp(2rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
}
.quote-mark { width: 42px; height: 34px; color: var(--cyan-100); margin: 0 auto 1.3rem; }
.quote-feature blockquote { margin: 0; }
.quote-feature blockquote p {
  font-family: var(--display); font-size: clamp(1.22rem, 2.4vw, 1.6rem); line-height: 1.45;
  font-weight: 400; color: var(--navy-900); margin: 0;
}
.quote-feature figcaption { margin-top: 1.7rem; display: flex; flex-direction: column; gap: .15rem; }
.cite-name { font-weight: 600; font-size: .97rem; color: var(--navy-700); }
.cite-loc { font-size: .85rem; color: var(--ink-soft); }
.reviews-cta { text-align: center; margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.town-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: .5rem .75rem; list-style: none; margin: 2rem 0 1.5rem; padding: 0;
}
.town-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: .42rem .95rem; font-size: .875rem; color: var(--navy-700); text-align: center;
}
.area-note { font-size: .9rem; color: var(--ink-soft); margin: 0; max-width: 52ch; }
.radius-svg { width: 100%; max-width: 380px; margin-inline: auto; }

/* ---------- Calculator ---------- */
.calc {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.6rem;
  align-items: start; max-width: 1000px; margin-inline: auto;
}
.calc-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--shadow);
}
.calc-row { margin-bottom: 1.6rem; border: 0; padding: 0; }
.calc-row:last-child { margin-bottom: 0; }
.calc-row > label, .calc-row legend {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: .89rem; font-weight: 600; color: var(--navy-900);
  margin-bottom: .7rem; padding: 0; width: 100%;
}
.calc-row output { font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--cyan-600); }
.legend-note { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }

/* Room picker. Each room reuses the .chip pill from the add-ons row; rooms you
   can have more than one of get a quantity box alongside. */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .55rem; }
.area { display: flex; align-items: center; gap: .4rem; }
.area[hidden] { display: none; }
.area .chip { flex: 1 1 auto; min-width: 0; }
.area .chip span { display: flex; justify-content: center; }

.area-count {
  flex: none; width: 3.4rem; padding: .5rem .25rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--navy-900);
  text-align: center; transition: all .16s ease;
}
.area-count:hover:not(:disabled) { border-color: var(--cyan-400); }
.area-count:disabled { opacity: .3; cursor: not-allowed; }
.area-count:focus-visible { outline: 2.5px solid var(--cyan-600); outline-offset: 2px; }

.areas-empty { margin: .9rem 0 0; font-size: .85rem; font-weight: 500; color: var(--cyan-600); }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip[hidden] { display: none; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--cream);
  font-size: .875rem; font-weight: 500; color: var(--ink-soft); cursor: pointer;
  transition: all .16s ease; user-select: none;
}
.chip:hover span { border-color: var(--cyan-400); color: var(--cyan-600); }
.chip input:checked + span {
  background: var(--cyan-600); border-color: var(--cyan-600); color: #fff;
  box-shadow: 0 6px 14px -8px rgba(10,109,128,.9);
}

/* White tick on the selected pill, so a choice reads at a glance and not by
   fill colour alone. Inline SVG rather than a "✓" glyph — the character's
   weight and baseline vary by font, the drawn path doesn't. */
.chip input:checked + span::before {
  content: ""; flex: none; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6l4.6 4.6L19 7.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip input:focus-visible + span { outline: 2.5px solid var(--cyan-600); outline-offset: 3px; }

/* Frequency field greys out for move-in/move-out (always a single visit) */
.calc-row.is-disabled { opacity: .42; }
.calc-row.is-disabled .chip span { cursor: not-allowed; }
.calc-row.is-disabled .chip:hover span { border-color: var(--line); color: var(--ink-soft); }

.calc-result {
  background: var(--navy-800); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-lg); position: sticky; top: 100px;
}
.result-label { font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--cyan-100); margin: 0 0 .5rem; }
.result-range {
  font-family: var(--display); font-size: clamp(2rem, 4.6vw, 2.6rem); font-weight: 600;
  line-height: 1; margin: 0 0 .5rem; letter-spacing: -.02em;
}
.result-freq { font-size: .9rem; color: var(--cyan-100); margin: 0 0 1.3rem; }
.result-lines { list-style: none; margin: 0 0 1.5rem; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.18); font-size: .87rem; }
.result-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; color: var(--cyan-100); }
.result-lines li span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; color: #fff; }
.calc-result .btn { background: var(--cream); color: var(--navy-800); border-color: var(--cream); box-shadow: none; }
.calc-result .btn:hover { background: #fff; border-color: #fff; }
/* cyan-600 keeps white text at 5.98:1; the lighter tints all fail AA here */
.calc-result .btn.is-sent { background: var(--cyan-600); border-color: var(--cream); color: #fff; }
.result-disclaimer { font-size: .78rem; line-height: 1.55; color: rgba(255,255,255,.72); margin: 1rem 0 0; }

/* ---------- Quote form ---------- */
.section-deep { background: var(--navy-900); color: var(--cream); }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quote-copy h2 { color: #fff; }
.quote-copy p { color: rgba(255,255,255,.76); max-width: 46ch; }
.steps { margin: 2rem 0 0; padding-left: 1.2rem; color: rgba(255,255,255,.76); font-size: .94rem; }
.steps li { margin-bottom: .75rem; padding-left: .3rem; }
.steps strong { color: #fff; font-weight: 600; }

.quote-form-wrap {
  background: var(--card); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.3rem); box-shadow: var(--shadow-lg); color: var(--ink);
}
.field { margin: 0 0 1.05rem; display: flex; flex-direction: column; gap: .4rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field label { font-size: .855rem; font-weight: 600; color: var(--navy-900); }
.req { color: var(--gold-700); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: .96rem; color: var(--ink);
  padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--cream); width: 100%; transition: border-color .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan-600); background: #fff; outline-offset: 2px;
}
.field input::placeholder, .field textarea::placeholder { color: #8fa3b0; }
.hp-field { position: absolute; left: -5000px; }
.form-status {
  margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 11px;
  background: #fdecec; border: 1.5px solid #e6b8b8; color: #8a2020;
  font-size: .88rem; line-height: 1.5;
}
/* Handing off to a mail client is a success, not an error — the default red
   would read as "something broke" the moment the mail window appears. */
.form-status.is-ok {
  background: var(--green-100); border-color: var(--green-400); color: #1d4b34;
}
.form-status.is-ok a { color: #16603f; }
.form-status[hidden] { display: none; }
.form-fine { font-size: .78rem; color: var(--ink-soft); margin: 1rem 0 0; text-align: center; line-height: 1.55; }

/* ---------- Footer ---------- */
/* Same navy as the quote section above it — a hairline keeps them from
   reading as one undifferentiated dark block. */
.site-footer {
  background: var(--navy-900); color: rgba(255,255,255,.72);
  padding: 3rem 0 1.6rem; border-top: 1px solid rgba(255,255,255,.09);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { max-width: 34ch; }
.footer-logo { width: 250px; max-width: 100%; height: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .89rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-content: start; }
.footer-nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem;
  font-size: .8rem; color: rgba(255,255,255,.55);
}
.footer-bottom p { margin: 0; }

/* ---------- Thank-you page ---------- */
.thanks-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.thanks-card { max-width: 540px; }
.thanks-ico {
  width: 76px; height: 76px; margin: 0 auto 1.6rem; border-radius: 50%;
  background: var(--green-100); color: var(--navy-700); display: grid; place-items: center;
}
.thanks-ico svg { width: 36px; height: 36px; }
/* These replace inline style="" attributes, which would have forced
   'unsafe-inline' into the Content-Security-Policy in staticwebapp.config.json. */
.thanks-lede { margin-inline: auto; }
.thanks-actions {
  margin-top: 2rem; display: flex; flex-wrap: wrap;
  gap: .8rem; justify-content: center;
}
.footer-bottom--bare { border-top: 0; padding-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .approach-grid, .area-grid, .calc, .quote-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin-inline: auto; }
  .approach-points { grid-template-columns: 1fr 1fr; }
  .aside-card { position: static; }
  .radius-svg { max-width: 320px; }

  /* Stacked, the price would sit below the controls — you'd drag a slider and
     see nothing change. Pin it above the form instead, and drop the line-item
     breakdown, which only repeats what the sliders already show. */
  .calc { display: flex; flex-direction: column; }
  /* Must clear the sticky header (~76px) or the price card slides under it. */
  .calc-result { order: -1; position: sticky; top: 88px; z-index: 5; }
  .calc-result .result-lines { display: none; }
  .calc-result .result-range { font-size: 2.15rem; }
  .calc-result .result-disclaimer { font-size: .74rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 86px; }
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute; top: calc(100% + 1px); right: 1.25rem; left: 1.25rem;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .5rem; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; padding: .6rem .3rem .3rem; }
  .nav-list a:not(.btn) { display: block; padding: .8rem .75rem; }
  .nav-list a.btn { width: 100%; }
  .site-nav { position: static; }
  .header-inner { position: relative; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 76px; }
  body { font-size: 16px; }
  .field-pair, .approach-points, .trustbar-inner { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .trustbar-inner { display: grid; }
  .hero-proof { gap: 1.5rem; }
  .hero-actions .btn { width: 100%; }

  /* <picture> has swapped to the bug here, so the wordmark comes back as text —
     set in Fraunces it stays sharp at a size the raster lockup could not hold. */
  .brand-logo { height: 44px; }
  .brand-text { display: flex; }
  .brand-sub { display: none; }
  .footer-logo { width: 215px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .card:hover, .btn:hover { transform: none; }
}

@media print {
  /* The footer lockup is the reversed art — cream ink that vanishes once the
     navy background drops out. The copyright line still carries the name. */
  .site-header, .hero-art, .calc-result .btn, .site-footer nav, .footer-logo { display: none; }
  body { background: #fff; }
}
