/* Coachella Valley Remodeling: one stylesheet, no framework.
   Desert-modern palette: sand, sage, terracotta, deep teal. Fraunces (display) + Figtree (text). */

/* Self-hosted fonts (wwwroot/fonts, SIL OFL 1.1): latin subset (English + Spanish), variable weight; preloaded in the layout. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/figtree-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sand-50: #fbf8f3;
  --sand-100: #f4ede2;
  --sand-200: #e9dcc7;
  --sand-300: #d9c6a7;
  --sage-100: #e4e9dd;
  --sage-300: #b7c3aa;
  --sage-600: #5b6b4f;
  --sage-800: #3a4532;
  --terra-400: #d98b5a;
  --terra-500: #c9733f;
  --terra-600: #a9532a;
  --terra-700: #8a4220;
  --teal-500: #2b6f6a;
  --teal-700: #0f4c4a;
  --teal-800: #0b3d3c;
  --teal-900: #082d2c;
  --ink: #1f2a2b;
  --muted: #55615f;
  --line: #e2d7c5;
  --white: #fff;
  --error: #a3261b;
  --focus: #0f4c4a;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(31, 42, 43, .06), 0 10px 30px -18px rgba(31, 42, 43, .35);
  --wrap: 74rem;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over component display rules (photo picker, upload progress, wizard nav, nav toggle). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--teal-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terra-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; color: var(--teal-900); margin: 0 0 .6em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
.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; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: 46rem; }
.section { padding-block: var(--section); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-700); margin-bottom: .75rem; }
.eyebrow-light { color: var(--terra-400); }
.fine, .updated { font-size: .9rem; color: var(--muted); }
.note { background: var(--sage-100); border-left: 4px solid var(--sage-600); padding: .8rem 1rem; border-radius: var(--radius-sm); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--teal-900); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .7rem 1.35rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--terra-600); color: #fff; }
.btn-primary:hover { background: var(--terra-700); color: #fff; }
.btn-secondary { background: var(--teal-700); color: #fff; }
.btn-secondary:hover { background: var(--teal-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-800); border-color: currentColor; }
.btn-ghost:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.btn-sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .95rem; }
.btn-lg { min-height: 3.3rem; padding: .85rem 1.7rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.text-link { font-weight: 600; }
.text-link::after { content: " →"; }
.text-link-light { color: var(--sand-100); }
.text-link-light:hover { color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 243, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: flex; flex: none; align-items: center; gap: .6rem; text-decoration: none; color: var(--teal-900); margin-right: auto; }
.brand-mark { width: 2.2rem; height: 2.2rem; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav ul a:hover { color: var(--terra-700); text-decoration: underline; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-phone { font-weight: 700 !important; color: var(--teal-800) !important; white-space: nowrap; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: #fff; }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 2px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font: 600 .95rem var(--font-text); color: var(--teal-900); cursor: pointer; min-height: 2.75rem; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.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); }

@media (max-width: 74.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; padding-bottom: 1rem; flex-direction: column; align-items: stretch; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-actions { justify-content: space-between; padding-top: .75rem; }
}
/* Desktop: brand, links, phone and CTA on one row inside the 74rem wrap. */
@media (min-width: 75rem) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { flex-wrap: nowrap; gap: 1rem; }
  .site-nav ul { flex-wrap: nowrap; gap: .25rem .95rem; }
  .site-nav a { font-size: .95rem; white-space: nowrap; }
  .site-nav .nav-extra { display: none; }
  .nav-actions { gap: .75rem; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--sand-300); }
.breadcrumbs a { color: var(--muted); }
/* Phones: one line. Earlier crumbs keep their full names; the current page (which the H1 repeats) shrinks with an
   ellipsis instead of wrapping onto a second line that starts with a stray "/". */
@media (max-width: 47.99rem) {
  .breadcrumbs ol { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .breadcrumbs li { flex: none; }
  .breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- home ---------- */
.home-hero { position: relative; isolation: isolate; }
.home-hero-media img { width: 100%; height: clamp(18rem, 52vw, 40rem); object-fit: cover; }
.home-hero-inner { position: relative; }
.home-hero-card { background: var(--sand-50); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -4rem; position: relative; }
.home-hero-card h1 { max-width: 15em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .92rem; font-weight: 600; color: var(--teal-800); }
.hero-ticks li::before { content: "✓ "; color: var(--teal-700); }
/* Phones: a short hero photo so the H1, lede and "Get a free quote" fit the first screen. */
@media (max-width: 40rem) {
  .home-hero-media img { height: 10rem; }
  .home-hero-card { margin-top: -2rem; }
}
@media (min-width: 64rem) {
  /* Photo and card share one grid cell: the hero is at least min(46rem, 88vh) tall and grows with the card, so a tall
     card is never clipped under the sticky header (the photo is absolutely positioned and doesn't size the cell). */
  .home-hero { display: grid; min-height: min(46rem, 88vh); }
  .home-hero-media, .home-hero-inner { grid-area: 1 / 1; }
  .home-hero-media { position: relative; }
  .home-hero-media img { position: absolute; inset: 0; height: 100%; }
  .home-hero-inner { display: flex; align-items: flex-end; padding-block: 3.5rem; pointer-events: none; }
  .home-hero-card { max-width: 40rem; margin: 0; pointer-events: auto; background: rgba(251, 248, 243, .96); }
}

.door-grid { display: grid; gap: var(--gap); margin-top: 2rem; }
@media (min-width: 52rem) { .door-grid { grid-template-columns: repeat(3, 1fr); } }
.door { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 5px solid var(--terra-500); }
.door-premium { border-top-color: var(--teal-700); }
.door-handyman { border-top-color: var(--sage-600); }
.door-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.door-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.door-body h3 { font-style: italic; font-weight: 500; }
.door-tag { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.door-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-top: 1rem; }
.door-wide { margin-top: var(--gap); display: grid; background: var(--sand-100); border-radius: var(--radius); overflow: hidden; }
.door-wide-media img { width: 100%; height: 100%; object-fit: cover; min-height: 14rem; }
.door-wide-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 52rem) { .door-wide { grid-template-columns: 2fr 3fr; } }

.checks { list-style: none; margin: 0 0 1rem; padding: 0; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 2.5px solid var(--sage-600); border-bottom: 2.5px solid var(--sage-600); transform: rotate(-45deg); }

.standard-band { background: var(--teal-800); color: var(--sand-100); }
.standard-band h2 { color: #fff; }
.standard-band .lede { color: var(--sage-300); }
.standard-list { list-style: none; counter-reset: std; display: grid; gap: 1.25rem; padding: 0; margin: 2rem 0; }
@media (min-width: 48rem) { .standard-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .standard-list { grid-template-columns: repeat(3, 1fr); } }
.standard-list li { counter-increment: std; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.standard-list li::before { content: counter(std, decimal-leading-zero); font-family: var(--font-display); color: var(--terra-400); font-size: 1.1rem; display: block; margin-bottom: .4rem; }
.standard-title { font-weight: 700; color: #fff; margin-bottom: .35rem; }
.standard-list p:last-child { margin: 0; }
.prose .standard { margin: 2rem 0; }
.prose .standard-list { margin: 0; }
.prose .standard-list li { background: var(--sage-100); border-color: var(--sage-300); color: var(--ink); }
.prose .standard-title { color: var(--teal-900); }
.prose .standard-list li::before { color: var(--terra-600); }

.how-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .how-steps { grid-template-columns: repeat(4, 1fr); } }
.how-steps li { border-top: 2px solid var(--sand-300); padding-top: 1.25rem; }
.how-n { font-family: var(--font-display); font-size: 2.6rem; color: var(--terra-500); line-height: 1; display: block; margin-bottom: .5rem; }
.how-steps p { color: var(--muted); }

.cities-band { background: var(--sand-100); }
.city-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.city-chip a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--teal-900); font-weight: 600; min-height: 2.75rem; }
.city-chip a:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.city-chip.muted a { font-weight: 500; color: var(--muted); }

.guide-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.guide-card a:hover { border-color: var(--terra-500); transform: translateY(-2px); }
.guide-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--teal-900); font-weight: 600; line-height: 1.25; }
.guide-sum { color: var(--muted); font-size: .97rem; }
.guide-card-accent a { background: var(--terra-600); border-color: var(--terra-600); }
.guide-card-accent .guide-title, .guide-card-accent .guide-sum { color: #fff; }
.honest { background: var(--sage-100); }

/* ---------- content pages ---------- */
.doc-hero { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.doc-hero-inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 64rem) { .doc-hero-inner { grid-template-columns: 1.1fr .9fr; } }
.doc-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-trust { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; color: var(--sage-800); font-weight: 600; }
.hero-trust li::before { content: "✓"; color: var(--sage-600); margin-right: .35rem; }

/* minmax(0, 1fr): without it the implicit column grows to the cost table's min-content width and phones scroll sideways. */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-bottom: var(--section); }
@media (min-width: 64rem) { .doc-layout { grid-template-columns: minmax(0, 1fr) 19rem; } }
.aside-sticky { position: sticky; top: 5.75rem; display: grid; gap: 1.25rem; }
@media (max-width: 63.99rem) { .doc-aside { display: none; } }
.toc { border-left: 2px solid var(--line); padding-left: 1rem; }
.toc-h { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.toc li { margin-bottom: .45rem; line-height: 1.35; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--terra-700); text-decoration: underline; }
.aside-cta { background: var(--teal-800); color: var(--sand-100); padding: 1.4rem; border-radius: var(--radius); }
.aside-cta-h { font-family: var(--font-display); font-size: 1.25rem; color: #fff; line-height: 1.2; }
.aside-cta p { font-size: .95rem; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.4em; scroll-margin-top: 6rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--terra-600); }
.prose blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.25em; border-left: 3px solid var(--terra-500); font-family: var(--font-display); font-size: 1.2rem; color: var(--teal-900); }
.prose picture { margin: 2rem 0; }
.prose picture img { border-radius: var(--radius); width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose strong { color: var(--teal-900); }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--sand-100); font-weight: 700; color: var(--teal-900); }
.table-wrap tr:last-child td { border-bottom: 0; }

.cta-card { margin: 2.5rem 0; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--sand-100); border: 1px solid var(--sand-200); display: grid; gap: 1.25rem; position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; right: -3rem; top: -3rem; width: 9rem; height: 9rem; border-radius: 50%; background: var(--terra-400); opacity: .18; }
.cta-card-h { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--teal-900); line-height: 1.2; margin-bottom: .5rem; }
.cta-points { list-style: none; padding: 0 !important; margin: 0 !important; font-size: .95rem; }
.cta-points li { padding-left: 1.5rem; position: relative; }
.cta-points li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-600); font-weight: 700; }
.cta-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.cta-alt { font-size: .93rem; color: var(--muted); margin: 0; }
@media (min-width: 48rem) { .cta-card { grid-template-columns: 1fr auto; align-items: center; } }

.pp-list { list-style: none; padding: 0 !important; display: grid; gap: 1rem; margin: 1.5rem 0 2rem !important; }
@media (min-width: 40rem) { .pp-list { grid-template-columns: repeat(2, 1fr); } }
.pp-item { margin: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; border-left: 4px solid var(--terra-500); }
.pp-title { font-weight: 700; color: var(--teal-900); margin-bottom: .3rem; }
.pp-pain { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.pp-promise { font-size: .95rem; margin: 0; }
.pp-label { font-weight: 700; color: var(--sage-800); }

.service-grid { list-style: none; padding: 0 !important; display: grid; gap: .8rem; margin: 1.5rem 0 !important; }
@media (min-width: 40rem) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-tile { margin: 0 !important; }
.service-tile a { display: block; height: 100%; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.service-tile a:hover { border-color: var(--terra-500); }
.service-tile-name { display: block; font-weight: 700; color: var(--teal-900); }
.service-tile-sum { display: block; font-size: .92rem; color: var(--muted); }

.faq { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; color: var(--teal-900); position: relative; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.6rem; font-weight: 400; color: var(--terra-600); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 1rem; color: var(--ink); }
.faq-a p:last-child { margin-bottom: 0; }

.related { padding-bottom: var(--section); }
.related h2 { font-size: 1.4rem; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
@media (min-width: 48rem) { .related-list { grid-template-columns: repeat(2, 1fr); } }
.related-list a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; font-weight: 600; }
.related-list a:hover { border-color: var(--terra-500); }

/* ---------- calculator ---------- */
.page-head { padding-top: clamp(1.75rem, 4vw, 3rem); }
.calc-page { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-bottom: var(--section); }
@media (min-width: 64rem) { .calc-page { grid-template-columns: minmax(0, 1fr) 20rem; } }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); margin: 1.5rem 0; }
.calc-h { font-size: 1.4rem; }
.calc-group { border: 0; padding: 0; margin: 0 0 1.4rem; }
.calc-group legend { font-weight: 700; color: var(--teal-900); margin-bottom: .6rem; padding: 0; }
.js .calc-submit { display: none; }
.calc-result { background: var(--teal-800); color: var(--sand-100); border-radius: var(--radius); padding: 1.4rem; margin-top: 1rem; }
.calc-result[hidden] { display: none; }
.calc-label { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--sage-300); margin-bottom: .2rem; }
.calc-tag { display: inline-block; background: var(--terra-500); color: #fff; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; margin-left: .4rem; letter-spacing: .06em; vertical-align: middle; }
.calc-range { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; line-height: 1.1; margin-bottom: .6rem; }
.calc-note { font-size: .92rem; color: var(--sand-200); }
.calc-note a { color: #fff; }
.calc-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.calc-actions .btn-ghost { color: #fff; }
.calc-actions .btn-ghost:hover { background: #fff; color: var(--teal-900); border-color: #fff; }
.calc-aside-h { font-size: 1.2rem; }
.sources { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .93rem; }
.sources li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.sources .src, .sources .src-note { display: block; color: var(--muted); font-size: .88rem; }
.capture { margin-top: 2.5rem; }

/* ---------- forms ---------- */
.form-page { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(1.5rem, 4vw, 3rem) var(--section); }
@media (min-width: 64rem) { .form-page { grid-template-columns: minmax(0, 1fr) 22rem; } }
.form-main { max-width: 42rem; }
.form-main h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.not-contractor { font-size: .9rem; color: var(--sage-800); background: var(--sage-100); border-radius: var(--radius-sm); padding: .7rem 1rem; }
.form-aside { align-self: start; position: sticky; top: 5.75rem; background: var(--sand-100); border-radius: var(--radius); overflow: hidden; padding-bottom: 1.25rem; }
.form-aside > :not(.form-aside-media) { margin-inline: 1.4rem; }
.form-aside-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.25rem; }
.form-aside-h { font-size: 1.25rem; margin-top: 1.25rem; }
.form-aside-media + .form-aside-h { margin-top: 0; }
@media (max-width: 63.99rem) { .form-aside { position: static; } .form-aside-media { display: none; } }
.next-steps { padding-left: 1.2rem; }
.next-steps li { margin-bottom: .8rem; }
.next-steps-lg { font-size: 1.05rem; max-width: 42rem; }
.next-steps-lg li { margin-bottom: 1.1rem; }
.next-steps-lg li span { display: block; color: var(--muted); }

.lead-form { margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.step-q { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.65rem); font-weight: 600; color: var(--teal-900); line-height: 1.2; margin-bottom: .5rem; padding: 0; }
.step-q:focus { outline: none; }
.step-help { color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 1.15rem; }
.field-label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field-hint { font-size: .9rem; color: var(--muted); margin: -.15rem 0 .45rem; }
.field-error { color: var(--error); font-weight: 600; font-size: .93rem; margin: 0 0 .4rem; }
.field-error::before { content: "⚠ "; }
.choice-set { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
  border: 2px solid var(--sand-300); border-radius: var(--radius-sm); padding: .7rem .85rem; min-height: 3rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-700); outline: 3px solid rgba(15, 76, 74, .25); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.choices { display: grid; gap: .6rem; }
@media (min-width: 36rem) { .choices-2 { grid-template-columns: repeat(2, 1fr); } .choices-3 { grid-template-columns: repeat(3, 1fr); } }
.choice { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; background: #fff; border: 2px solid var(--sand-200); border-radius: var(--radius-sm); cursor: pointer; min-height: 3.2rem; transition: border-color .12s, background-color .12s; }
.choice:hover { border-color: var(--sage-600); }
.choice input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: none; accent-color: var(--teal-700); }
.choice:has(input:checked) { border-color: var(--teal-700); background: #f1f6f4; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-body { display: flex; flex-direction: column; }
.choice-label { font-weight: 600; line-height: 1.3; }
.choice-hint { font-size: .88rem; color: var(--muted); line-height: 1.35; margin-top: .15rem; }
.choice-compact { padding: .7rem .9rem; }
.consent { display: flex; gap: .8rem; align-items: flex-start; background: var(--sand-100); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: 1rem; font-size: .88rem; line-height: 1.5; margin-top: 1.5rem; }
.consent input { width: 1.4rem; height: 1.4rem; flex: none; margin-top: .1rem; accent-color: var(--teal-700); }
.consent label { cursor: pointer; }
.consent:has(.consent-detail) { flex-wrap: wrap; }
.consent .consent-sms { flex: 1; min-width: 0; }
.consent-detail { flex-basis: 100%; margin: 0 0 0 2.2rem; color: var(--muted); font-size: .84rem; }
.consent-terms { font-size: .95rem; flex-wrap: wrap; background: #fff; border-color: var(--sand-300); }
.consent-terms .field-error { flex-basis: 100%; }
.consent-terms label { flex: 1; min-width: 0; }
.consent-terms.has-error { border-color: var(--error); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.submit-hint { flex-basis: 100%; font-size: .88rem; color: var(--muted); margin: 0; }
.input-short { max-width: 11rem; }

/* Google Places search box (address step) */
.field-places { background: #f1f6f4; border: 1px solid var(--sage-300); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.places-box { position: relative; }
.places-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .25rem 0; list-style: none; background: #fff; border: 2px solid var(--teal-700); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 18rem; overflow-y: auto; }
.places-list [role="option"] { display: flex; flex-direction: column; padding: .6rem .85rem; cursor: pointer; line-height: 1.3; }
.places-list [role="option"][aria-selected="true"], .places-list [role="option"]:hover { background: var(--sand-100); }
.place-main { font-weight: 600; }
.place-sec { font-size: .88rem; color: var(--muted); }
.places-attrib { margin: .4rem 0 0; }
.places-attrib img { width: 116px; height: 15px; }

/* Photos step */
.photo-input-enhanced { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-input-enhanced:focus-visible + .photo-picker .photo-add { outline: 3px solid var(--focus); outline-offset: 3px; }
input[type="file"]:not(.photo-input-enhanced) { font: inherit; max-width: 100%; }
.photo-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.photo-add { cursor: pointer; }
.photo-count { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
.photo-thumbs { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .6rem; width: 100%; }
.photo-thumb { position: relative; background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); overflow: hidden; }
.photo-thumb img, .photo-ph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-ph { display: grid; place-items: center; background: var(--sand-100); color: var(--muted); font-size: .8rem; text-align: center; padding: .4rem; }
.photo-name { display: block; font-size: .72rem; color: var(--muted); padding: .2rem .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-remove { position: absolute; top: .25rem; right: .25rem; width: 2rem; height: 2rem; border-radius: 999px; border: 0; background: rgba(8, 45, 44, .82); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.photo-remove:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.photo-progress { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; }
.photo-progress progress { flex: 1; height: .6rem; accent-color: var(--terra-600); }
.photo-progress-text { font-size: .9rem; font-weight: 600; }
.email-only { font-size: .93rem; margin-top: .6rem; }
.submit-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0 1rem; }
.notice { font-size: .82rem; color: var(--muted); line-height: 1.5; max-width: 42rem; }
/* "Delete my data" under every form's disclaimers, on the thank-you page and the privacy pages */
.privacy-delete { font-size: .82rem; margin: .5rem 0 0; }
.delete-kept li { margin-bottom: .4rem; }
.error-summary { border: 2px solid var(--error); background: #fdf1ef; border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.error-summary-h { font-weight: 700; color: var(--error); margin-bottom: .4rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); }

/* wizard (JS on): one step per screen */
.wizard-progress { margin-bottom: 1.5rem; }
.progress-track { height: .5rem; background: var(--sand-200); border-radius: 999px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--terra-500), var(--terra-600)); border-radius: 999px; transition: width .3s ease; }
.progress-text { font-size: .88rem; color: var(--muted); margin: .45rem 0 0; font-weight: 600; }
.wizard-nav { display: flex; gap: .75rem; margin-top: 1.5rem; }
.js .wizard.ready .step { display: none; }
.js .wizard.ready .step.active { display: block; animation: rise .25s ease; }
.js .wizard.ready .submit-row { display: none; }
.js .wizard.ready.on-last .submit-row { display: flex; }
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
.form-picker { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .form-picker { grid-template-columns: repeat(2, 1fr); } }
.picker-card { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.picker-card:hover { border-color: var(--terra-500); }
.picker-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--teal-900); }
.picker-sum { grid-column: 1; color: var(--muted); font-size: .97rem; }
.picker-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.5rem; color: var(--terra-600); }
.picker-alt { background: var(--sand-100); }

.thanks { padding-block: clamp(2.5rem, 6vw, 5rem); max-width: 50rem; }
.thanks-mark { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--sage-600); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.25rem; }
.thanks-more { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.status-banner { background: var(--sage-100); border: 2px solid var(--sage-600); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.stack { display: grid; gap: .25rem; max-width: 30rem; margin-bottom: 1.5rem; }
.search-row { display: flex; gap: .6rem; }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.link-list li a { font-weight: 600; }
.link-list li span { display: block; color: var(--muted); font-size: .92rem; }

/* areas */
.areas { padding-bottom: var(--section); }
.area-region { margin-top: 3rem; }
.area-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .area-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; scroll-margin-top: 6rem; }
.area-card h3 { margin-bottom: .3rem; }
.area-facts { font-size: .85rem; color: var(--muted); font-weight: 600; }
.area-card p { font-size: .96rem; }
.area-card:target { border-color: var(--terra-500); box-shadow: 0 0 0 3px rgba(201, 115, 63, .25); }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-900); color: var(--sage-300); padding: 3.5rem 0 6rem; font-size: .95rem; }
.site-footer a { color: var(--sand-100); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.footer-h { font-weight: 700; color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-cities { columns: 2; column-gap: 1rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.75rem; font-size: .85rem; line-height: 1.6; color: var(--sage-300); }
.footer-legal strong { color: var(--sand-100); }
.footer-links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .88rem; }
.footer-copy { font-size: .85rem; }
.gpc-banner { background: rgba(255, 255, 255, .08); border: 1px solid var(--sage-300); color: var(--sand-100); padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }

/* ---------- sticky mobile bar ---------- */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: .9fr 1.3fr 1.2fr; gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(251, 248, 243, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .4); }
.mobile-bar:has(> :only-child) { grid-template-columns: 1fr; }
.mobile-bar-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3rem; border-radius: 999px; border: 2px solid var(--teal-700); color: var(--teal-800); font-weight: 700; text-decoration: none; }
.mobile-bar-btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.mobile-bar-primary { background: var(--terra-600); border-color: var(--terra-600); color: #fff; }
.mobile-bar-primary:hover { color: #fff; }
.mobile-bar-btn { font-size: .95rem; line-height: 1.15; text-align: center; padding: 0 .4rem; }
.mobile-bar:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1.4fr; }
/* "Text us a photo": a button on phones, the plain number on larger screens. */
.text-us-mobile { display: none; }
@media (max-width: 47.99rem) { .text-us-mobile { display: inline-flex; } .cta-alt { display: none; } }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); max-width: 34rem; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px -12px rgba(8, 45, 44, .45); }
.page-form .cookie-banner, .cookie-banner-wide { bottom: calc(.75rem + env(safe-area-inset-bottom)); }
@media (min-width: 75rem) { .cookie-banner { bottom: 1rem; right: 1rem; } }
/* Compact two-line bottom sheet (about 96px on a phone) so it never covers the hero CTA. */
.cookie-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; padding: .6rem .8rem; }
.cookie-banner-h { font-family: var(--font-text); font-size: 1rem; font-weight: 700; margin: 0 0 .3rem; color: var(--teal-900); letter-spacing: 0; }
.cookie-banner-text { font-size: .85rem; margin: 0; line-height: 1.35; flex: 1 1 16rem; }
.cookie-banner-actions { display: flex; gap: .5rem; flex: 1 1 12rem; }
.cookie-banner-actions .btn { flex: 1 1 0; min-height: 2.5rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.footer-text { margin-top: -.5rem; }
@media (min-width: 75rem) { .mobile-bar { display: none; } .site-footer { padding-bottom: 3.5rem; } }
.page-form .mobile-bar, .page-thanks .mobile-bar { display: none; }
.page-form .site-footer { padding-bottom: 3.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .mobile-bar, .doc-aside, .site-footer .footer-grid { display: none; }
}
.pp-share { font-style: normal; font-size: .85rem; white-space: nowrap; }
.pp-pain { font-style: italic; }
.pp-detail { font-size: .88rem; color: var(--muted); margin: .5rem 0 0; }
@media (max-width: 30rem) {
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .nav-toggle { padding: .45rem .7rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-inner { flex-wrap: nowrap; }
  .js .site-nav.open { position: absolute; left: 0; right: 0; top: 100%; background: var(--sand-50); padding: 0 1.1rem 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
}

/* ---- local credibility + snowbird welcome (SPEC 11) ---- */
.credibility { font-weight: 600; color: var(--teal-800); }
.credibility-form { font-size: .9rem; margin-top: .75rem; }
.home-hero-card .credibility { margin-top: 1rem; font-size: .95rem; }
.flags { display: inline-flex; gap: .3rem; vertical-align: middle; }
.flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.footer-cred { display: grid; gap: .4rem; margin: 0 0 1.25rem; }
.footer-cred .credibility { color: var(--sand-100); }
.footer-snowbird { font-size: .9rem; color: var(--sage-300); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.footer-snowbird a { color: var(--sand-100); }
.snowbird { margin: 2rem 0; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--sand-100); border: 1px solid var(--sand-200); }
.snowbird .flags { margin-bottom: .5rem; }
.snowbird-h { font-family: var(--font-display); font-size: 1.35rem; color: var(--teal-900); margin: 0 0 .5rem; }

/* ---- address check (SPEC 6.2) ---- */
.addr-check { font-size: .92rem; margin: .35rem 0 .9rem; color: var(--sage-800); min-height: 0; }
.addr-check:empty { margin: 0; }
.addr-suggest { background: var(--sand-100); border: 1px solid var(--sand-300); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.addr-suggest p { margin: 0 0 .5rem; }
.addr-suggest .btn { margin: .15rem .4rem .15rem 0; }
.addr-out { background: #fbeceb; border-left: 4px solid var(--error); padding: .7rem .9rem; border-radius: var(--radius-sm); color: var(--error); }

/* ---- AI kitchen makeover (SPEC 6.1) ---- */
.makeover { padding-block: 2rem 3rem; display: grid; gap: 1.75rem; max-width: 60rem; }
.makeover-head h1 { margin-bottom: .5rem; }
.ai-label { background: var(--sand-100); border-left: 4px solid var(--terra-500); padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.makeover-form .step { display: block; border: 0; padding: 0; margin: 0 0 1.5rem; }
.makeover-result { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.75rem); }
.makeover-progress progress { width: 100%; height: .8rem; accent-color: var(--teal-700); }
.makeover-msg { font-weight: 600; color: var(--teal-800); }
.makeover-images { display: grid; gap: 1rem; }
.makeover-figure { margin: 0; }
.makeover-figure img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; background: var(--sand-100); }
.makeover-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.makeover-gate { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.makeover-promo { margin: 2rem 0; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--sage-100); border: 1px solid var(--sage-300); }
.makeover-promo-h { font-family: var(--font-display); font-size: 1.3rem; color: var(--teal-900); margin: 0 0 .4rem; font-weight: 600; }
.cf-turnstile { margin: 0 0 1rem; }

/* ---- AI tools: handyman triage, cabinet advisor, permit & HOA checker (SPEC 8) ---- */
.hazard-note { font-size: .95rem; border-left: 4px solid var(--error); padding: .5rem .9rem; background: #fdf1ef; border-radius: var(--radius-sm); }
.hazard-box { border: 2px solid var(--error); background: #fdf1ef; border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.5rem); }
.hazard-box h2 { color: var(--error); margin-top: 0; font-size: 1.4rem; }
.hazard-box li { margin-bottom: .6rem; }
.tool-result h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.result-rec { font-size: 1.2rem; color: var(--teal-800); }
.result-list { padding-left: 1.2rem; }
.result-list li { margin-bottom: .55rem; }
.result-caution { display: block; color: var(--muted); font-size: .93rem; }
.result-facts { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .4rem 1rem; margin: 1rem 0; }
.result-facts dt { font-weight: 600; color: var(--teal-800); }
.result-facts dd { margin: 0; }
@media (max-width: 40rem) { .result-facts { grid-template-columns: 1fr; } .result-facts dd { margin-bottom: .5rem; } }
.result-obs { color: var(--muted); }
.permit-tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--sand-200); margin-left: .35rem; }
.permit-yes .permit-tag:first-of-type, .permit-often .permit-tag:first-of-type { background: #f6d9cf; color: var(--terra-700); }
.permit-usually-no .permit-tag:first-of-type { background: var(--sage-100); color: var(--sage-800); }
.permit-tag-hoa { background: var(--sand-100); border: 1px solid var(--sand-300); }
.civil-code { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.civil-code summary { cursor: pointer; font-weight: 600; color: var(--teal-800); }
.tool-promo { background: var(--sand-50); border-color: var(--sand-300); }

/* "Quick answer" box (SPEC section 13): answer-first facts from front matter summary. */
.quick-answer { margin: 0 0 2rem; padding: 1.1rem 1.25rem 1rem; background: var(--sand-50); border: 1px solid var(--line); border-left: 4px solid var(--terra-500); border-radius: var(--radius-sm); }
.prose .quick-answer-h { font-family: var(--font-text); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-700); margin: 0 0 .5rem; }
.quick-answer p { margin: 0 0 .6rem; }
.quick-answer p:last-child { margin-bottom: 0; }
.quick-answer-who { font-size: .95rem; }
.quick-answer-meta { font-size: .85rem; color: var(--muted); }

/* Header: referral tagline under the wordmark (visible on phones) and the language switch outside the collapsible menu. */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-tagline { font-size: .72rem; font-weight: 600; color: var(--teal-700); letter-spacing: .01em; white-space: nowrap; }
/* Desktop: the logo stays two short lines (name, tagline); tighter spacing keeps the whole header on one row at 75rem. */
@media (min-width: 75rem) {
  .header-inner { gap: .75rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-tagline { font-size: .68rem; }
  .site-nav { gap: .85rem; }
  .site-nav ul { gap: .25rem .8rem; }
  .lang-switch { margin-left: .5rem; }
}
.lang-switch { margin-left: .5rem; margin-right: .5rem; font-size: .9rem; font-weight: 700; color: var(--teal-800); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
@media (min-width: 64rem) { .lang-switch { order: 3; margin-left: .75rem; margin-right: 0; } }

/* AI tools and makeover: upload first; the limits sit under the submit button, folded. */
.free-line { font-weight: 700; color: var(--teal-800); margin: .25rem 0 0; }
.ai-note { margin-top: .75rem; font-size: .9rem; }
.ai-note .ai-label { margin: 0 0 .25rem; }
.ai-note-details summary { cursor: pointer; font-weight: 600; color: var(--teal-800); }
.ai-note-details p { margin: .4rem 0 0; }
.hazard-note-short { font-size: .92rem; }
.notice-gloss { font-size: .88rem; margin: 1rem 0 .25rem; color: var(--teal-900); }

/* "Text us" block: big sms: button on phones, QR code (white plate, black modules: scans in light, dark and forced-colors
   mode) on desktop. */
.text-us { display: grid; gap: 1.25rem; align-items: center; }
.text-us-full { margin: 2.5rem 0; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.text-us-h { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--teal-900); line-height: 1.2; margin: 0 0 .4rem; }
.text-us-copy > p { margin: 0 0 .5rem; }
.text-us-number { font-weight: 700; white-space: nowrap; }
.text-us-fine { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.text-us-qr { margin: 0; text-align: center; }
.text-us-qr svg { display: block; width: 10rem; height: 10rem; margin: 0 auto; padding: .35rem; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); forced-color-adjust: none; color-scheme: light; }
.text-us-qr figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.text-us-tap { display: none; width: 100%; justify-content: center; margin: .5rem 0 .75rem; }
@media (min-width: 48rem) { .text-us-full { grid-template-columns: 1fr auto; } }
.text-us-compact { grid-template-columns: auto 1fr; gap: .9rem; margin-top: .75rem; max-width: 28rem; }
/* Version-4 code (41 modules with quiet zone): 7.5rem keeps about 3 CSS px per module so a 1x desktop screen still scans. */
.text-us-compact .text-us-qr svg { width: 7.5rem; height: 7.5rem; padding: .2rem; }
.text-us-compact .text-us-line { margin: 0 0 .25rem; }
.text-us-compact .text-us-fine { margin: 0; }
.form-aside .text-us-full { margin: 1.25rem 1.4rem 0; padding: 1rem; grid-template-columns: 1fr; }
.form-aside .text-us-qr svg { width: 8.5rem; height: 8.5rem; }
@media (max-width: 47.99rem), (hover: none) and (pointer: coarse) {
  .text-us-tap { display: inline-flex; }
  .text-us-full .text-us-qr, .text-us-scan, .text-us-compact .text-us-qr { display: none; }
  .text-us-compact { grid-template-columns: 1fr; }
}
.site-footer .text-us-fine { color: var(--sage-300); }
.site-footer .text-us-qr svg { border-color: transparent; }
