/* Template C8 v1 — Miami-Dade Hurricane Windows.
   Desktop values are the design's (design/DESIGN-HANDOFF.md, Appendix A) moved out of inline
   styles. Below 768px the mobile artboard (Appendix B) takes over. The design ships
   `*{box-sizing:border-box}`, so containers here are border-box too: 1240px overall. */

/* ---------- 1. Fonts + tokens ---------- */
@font-face { font-family: "Red Hat Display"; src: url("/fonts/red-hat-display-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/fonts/red-hat-text-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --ink: #1A1440;          /* dark blocks, text */
  --ink-deep: #120E2E;     /* footer */
  --coral: #FF6B81;        /* buttons, accents on dark */
  --coral-lt: #FF9AA9;     /* labels on dark */
  --berry: #B8233F;        /* accent text on light */
  --lilac: #F4F2F9;        /* pale ground */
  --line: #DCD8E8;         /* borders */
  --muted: #554E6E;        /* muted text on light */
  --muted-dk: #D6D2E8;     /* muted text on dark */
  --input: #8E87AB;        /* input border */
  --rule-dk: #332C5C;      /* rules on dark */
  --rule-dk2: #453E70;
  --foot-text: #C9C4DE;
  --display: "Red Hat Display", "Trebuchet MS", sans-serif;
  --body: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #FFFFFF; font-size: 17px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: var(--berry); transition: color .15s ease-out; }
a:hover { color: var(--ink); }
input, textarea, select, button { font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
section[id], main[id], form[id] { scroll-margin-top: 16px; }
h1, h2, h3 { font-family: var(--display); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #FFFFFF; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.only-mobile { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-lt); }
.h2 { margin: 0; font-weight: 900; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.h2--sm { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.08; text-wrap: initial; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 17px; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: #FF8798; color: var(--ink); }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { background: #2B2363; color: #FFFFFF; }
.btn-line-ink { border: 2px solid var(--ink); color: var(--ink); }
.btn-line-ink:hover { background: var(--ink); color: #FFFFFF; }
.btn-line-coral { border: 2px solid var(--coral); color: #FFFFFF; }
.btn-line-coral:hover { background: var(--coral); color: var(--ink); }

/* ---------- 3. Header (sits inside the dark top block) ---------- */
.top { background: var(--ink); color: #FFFFFF; }
.site-header { border-bottom: 1px solid var(--rule-dk); position: relative; }
.header-inner { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #FFFFFF; white-space: nowrap; min-height: 44px; }
.logo:hover { color: #FFFFFF; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo-img { display: block; height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.logo-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-lt); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.nav a { text-decoration: none; color: #FFFFFF; }
.nav a:hover { color: var(--coral-lt); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.call-pill { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 2px solid var(--coral); color: #FFFFFF; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; transition: background-color .15s ease-out, color .15s ease-out; }
.call-pill:hover { background: var(--coral); color: var(--ink); }
.call-pill svg { width: 18px; height: 18px; stroke: var(--coral); }
.call-pill:hover svg { stroke: var(--ink); }
.call-word { display: none; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-dk2); border-radius: 999px; background: transparent; color: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s ease-out; }
.menu-button:hover { border-color: var(--coral); }
.menu-button svg { width: 20px; height: 20px; }
.menu-panel { display: none; }

/* ---------- 4. Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #1A1440 0%, #1A1440 46%, rgba(26,20,64,0.7) 100%); }
.hero-inner { padding-top: 68px; padding-bottom: 76px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; padding-top: 10px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--coral); flex: none; }
.hero h1, .page-hero h1 { margin: 0; font-weight: 900; font-size: clamp(40px, 4.7vw, 66px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.hl { color: var(--coral); white-space: nowrap; }
.hero-lede { margin: 0; max-width: 560px; font-size: 19.5px; line-height: 1.5; color: var(--muted-dk); }
.checks { display: flex; flex-direction: column; gap: 12px; font-size: 17px; font-weight: 500; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks svg { width: 22px; height: 22px; flex: none; }
.hero-call { font-size: 17px; color: var(--muted-dk); }
.hero-call a { color: #FFFFFF; font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.hero-call a:hover { color: var(--coral-lt); }

/* ---------- 5. Quote form ---------- */
.quote { flex: 0 1 430px; min-width: 0; background: #FFFFFF; color: var(--ink); border-radius: 14px; border-top: 6px solid var(--coral); padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.quote-head { display: flex; flex-direction: column; gap: 4px; }
.quote-title { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.15; letter-spacing: -0.01em; }
.quote-sub { font-size: 15px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--input); border-radius: 8px; font-size: 16px; background: #FFFFFF; color: var(--ink); }
.field input { height: 46px; padding: 0 12px; }
.field select { height: 46px; padding: 0 36px 0 12px; appearance: none; -webkit-appearance: none; cursor: pointer; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1440' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.field select:invalid { color: var(--muted); }
.field select option { color: var(--ink); }
.field textarea { padding: 10px 12px; resize: vertical; }
.field-row { display: flex; gap: 12px; }
.field-row .field:first-child { flex: 1 1 0; }
.field-row .field:last-child { flex: 1 1 0; }
.quote button { height: 54px; border: 0; border-radius: 999px; background: var(--coral); color: var(--ink); font-weight: 800; font-size: 18px; cursor: pointer; transition: background-color .15s ease-out; }
.quote button:hover { background: #FF8798; }
.quote button:disabled { opacity: .7; cursor: progress; }
.quote-foot { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.form-error { color: var(--berry); font-weight: 600; font-size: 14px; }
.form-error a { color: var(--berry); }
.form-done { text-align: center; padding: 24px 6px; display: flex; flex-direction: column; gap: 8px; }
.form-done strong { font-family: var(--display); font-size: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 6. Proof bar ---------- */
.proof { background: var(--lilac); border-bottom: 1px solid var(--line); }
.proof-grid { padding-top: 30px; padding-bottom: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px 36px; font-size: 15.5px; }
.proof-item { display: flex; gap: 14px; align-items: flex-start; }
.proof-item svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.proof-item strong { display: block; font-size: 16.5px; }
.proof-item span { color: var(--muted); }
.options-row { padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; font-size: 16px; }
.options-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.options-list { display: contents; }
.options-list span { font-family: var(--display); font-weight: 800; font-size: 18px; }

/* ---------- 7. Services ---------- */
.section { padding-top: 92px; padding-bottom: 92px; }
.services-inner { display: flex; flex-direction: column; gap: 44px; }
.services-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.services-head .h2 { flex: 1 1 520px; max-width: 700px; }
.services-head p { margin: 0; flex: 1 1 340px; max-width: 440px; color: var(--muted); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.svc { border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; gap: 22px; align-items: flex-start; }
.svc svg { width: 64px; height: 72px; flex: none; }
.svc-body { display: flex; flex-direction: column; gap: 6px; }
.svc h3 { margin: 0; font-weight: 800; font-size: 21px; line-height: 1.2; }
.svc h3 a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.svc h3 a:hover { color: var(--berry); }
.svc p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- 8. Miami-Dade code ---------- */
.dark { background: var(--ink); color: #FFFFFF; }
.code-inner { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.code-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.code-copy p { margin: 0; color: var(--muted-dk); max-width: 540px; }
.code-copy .btn { align-self: flex-start; margin-top: 8px; }
.code-data { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; }
.scale { display: flex; flex-direction: column; gap: 10px; padding-bottom: 34px; }
.scale-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.scale-label { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dk); padding-bottom: 8px; }
.speed { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding-right: 5%; }
.speed-num { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.speed-cap { font-size: 14.5px; font-weight: 600; color: var(--coral-lt); }
.speed-tick { width: 2px; height: 16px; background: var(--coral); margin: 4px 28px 0 0; }
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.cat { color: #FFFFFF; padding: 14px 14px 16px; }
.cat:first-child { border-radius: 8px 0 0 8px; }
.cat:last-child { border-radius: 0 8px 8px 0; }
.cat-name { font-family: var(--display); font-weight: 800; font-size: 17px; }
.cat-range { font-size: 14px; color: var(--muted-dk); }
.cat--1 { background: #332C5C; }
.cat--2 { background: #4A3A6E; }
.cat--3 { background: #74487A; }
.cat--3 .cat-range { color: #F0EAF6; }
.cat--4 { background: #A84C7C; }
.cat--4 .cat-range { color: #FFFFFF; }
.cat--5 { background: var(--coral); color: var(--ink); }
.cat--5 .cat-range { color: var(--ink); }
.scale-note { font-size: 15px; color: var(--foot-text); }
.test { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--rule-dk2); }
.test:last-child { border-bottom: 1px solid var(--rule-dk2); }
.test-name { flex: 0 0 150px; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--coral-lt); }
.test-text { color: var(--muted-dk); font-size: 16.5px; }

/* ---------- 9. Why impact ---------- */
.lilac { background: var(--lilac); border-bottom: 1px solid var(--line); }
.why-inner { display: flex; flex-direction: column; gap: 40px; }
.why-inner .h2 { max-width: 760px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tile { background: #FFFFFF; padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; }
.tile-num { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--berry); }
.tile-body { display: flex; flex-direction: column; gap: 8px; }
.tile h3 { margin: 0; font-weight: 800; font-size: 21px; line-height: 1.2; }
.tile p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- 10. Photo row ---------- */
.work { padding-bottom: 0; }
.work-inner { display: flex; flex-direction: column; gap: 36px; }
.work-inner .h2 { text-wrap: initial; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.work-item { position: relative; height: 300px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: repeating-linear-gradient(135deg, #F4F2F9 0 14px, #E9E5F3 14px 28px); }
.work-item img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.work-cap { position: absolute; left: 16px; bottom: 16px; background: #FFFFFF; border-radius: 6px; padding: 5px 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* ---------- 11. Process ---------- */
.process-inner { display: flex; flex-direction: column; gap: 40px; }
.process-inner .h2 { max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 0; border-top: 3px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.step { padding: 26px 28px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.step:last-child { padding-right: 0; }
.step-num { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--berry); }
.step-body { display: flex; flex-direction: column; gap: 8px; }
.step h3 { margin: 6px 0 0; font-weight: 800; font-size: 21px; }
.step p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- 12. Pricing summary (added: BUILD-SYSTEM §7c, homepage price block) ---------- */
.pricing { padding-top: 0; }
.pricing-inner { display: flex; flex-wrap: wrap; gap: 36px 72px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 72px; }
.pricing-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pricing-copy p { margin: 0; color: var(--muted); max-width: 460px; }
.price-rows { flex: 1 1 560px; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.price-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.price-rows strong { font-family: var(--display); font-weight: 800; font-size: 19px; white-space: nowrap; }
.price-note { font-size: 15px; color: var(--muted); margin: 12px 0 0; }

/* ---------- 13. Estimate band ---------- */
.band { background: var(--coral); color: var(--ink); }
.band-inner { padding-top: 54px; padding-bottom: 54px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band-copy { flex: 1 1 460px; min-width: 0; }
.band h2 { margin: 0; font-weight: 900; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.02em; }
.band p { margin: 8px 0 0; font-size: 18px; font-weight: 500; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.band .btn { min-height: 54px; padding: 0 30px; }
.band .btn-line-ink { padding: 0 28px; }

/* ---------- 14. Reviews (hidden until real reviews exist) ---------- */
.reviews { background: var(--lilac); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-inner { padding-top: 84px; padding-bottom: 84px; display: flex; flex-direction: column; gap: 36px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.review { margin: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.review blockquote { margin: 0; font-size: 17px; }
.review figcaption { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- 15. Service areas ---------- */
.areas-inner { display: flex; flex-wrap: wrap; gap: 36px 72px; align-items: flex-start; }
.areas-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.areas-copy p { margin: 0; color: var(--muted); max-width: 460px; }
.regions { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 28px; }
.region h3 { margin: 0; padding-bottom: 10px; border-bottom: 3px solid var(--ink); font-weight: 800; font-size: 19px; }
.region ul { margin: 0; padding: 0; list-style: none; font-size: 17px; font-weight: 500; }
.region li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.region a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.region a:hover { color: var(--berry); }

/* ---------- 16. FAQ ---------- */
.faq { background: var(--lilac); border-top: 1px solid var(--line); }
.faq-inner { max-width: 920px; display: flex; flex-direction: column; gap: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; }
.faq-list summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; padding: 10px 0; }
.faq-list summary svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease-out; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list summary:hover { color: var(--berry); }
.faq-list details p { margin: 0; padding: 0 0 22px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .faq-list summary svg { transition: none; } }

/* ---------- 17. Contact / About ---------- */
.contact-inner { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.contact-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-copy p { margin: 0; color: var(--muted-dk); max-width: 560px; }
.facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 22px 32px; max-width: 560px; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-lt); }
.facts dd { margin: 4px 0 0; font-size: 18px; }
.facts dd.big { font-size: 20px; font-weight: 700; }
.facts a { color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.facts a:hover { color: var(--coral-lt); }
.contact-call { display: none; }
.contact-inner .quote { flex: 0 1 430px; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--foot-text); font-size: 15px; }
.footer-inner { padding-top: 36px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 18px; color: #FFFFFF; }
.footer-nav, .footer-pages { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.footer-nav a, .footer-pages a { color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.footer-nav a:hover, .footer-pages a:hover { color: var(--coral-lt); }
.footer-pages { border-top: 1px solid var(--rule-dk); padding-top: 18px; padding-bottom: 32px; font-weight: 500; font-size: 14px; gap: 4px 22px; }
.footer-pages a { color: var(--foot-text); }
.call-bar { display: none; }

/* ---------- 19. Inner pages ---------- */
.page-hero-inner { padding-top: 56px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.page-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { font-size: clamp(38px, 4.2vw, 58px); }
.page-hero .hero-lede { font-size: 19px; }
.center-hero { justify-content: flex-start; }
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted-dk); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--rule-dk2); }
.breadcrumb a { color: var(--muted-dk); text-decoration: none; }
.breadcrumb a:hover { color: #FFFFFF; text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.page-body { padding-top: 72px; padding-bottom: 92px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-weight: 900; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.015em; margin: 48px 0 14px; text-wrap: balance; }
.prose h3 { font-weight: 800; font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--berry); }
.prose .answer { font-size: 19px; line-height: 1.55; padding: 22px 24px; background: var(--lilac); border-left: 4px solid var(--coral); border-radius: 0 12px 12px 0; }
.prose figure { margin: 28px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 3 / 2; object-fit: cover; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.estimate-note { font-size: 15.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.estimate-note strong { color: var(--berry); }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.price-table caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--ink); color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 15px; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.prose .faq-list { margin-top: 8px; }
.prose .faq-list details { background: var(--lilac); }
.aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.side-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.side-card h2 { margin: 0 0 10px; font-weight: 800; font-size: 20px; }
.side-card p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.side-card ul { margin: 0; padding: 0; list-style: none; }
.side-card li { border-top: 1px solid var(--line); }
.side-card li a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.side-card li a:hover { color: var(--berry); }
.side-card--dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.side-card--dark p { color: var(--muted-dk); }
.side-card--dark .btn { width: 100%; }
.legal .prose { max-width: 820px; }
.updated { font-size: 14px; color: var(--muted); margin-top: 32px; }

/* Menu dropdowns (Services, Service Areas) — every inner page is one click from the menu. */
.site-header { z-index: 30; }
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group > a { display: inline-flex; align-items: center; gap: 5px; }
.caret { width: 14px; height: 14px; transition: transform .15s ease-out; }
.nav-group:hover .caret, .nav-group:focus-within .caret { transform: rotate(180deg); }
.dropdown { display: none; position: absolute; top: 100%; left: -14px; margin-top: 14px; min-width: 250px; background: #FFFFFF; border-radius: 12px; box-shadow: 0 12px 32px rgba(18,14,46,.28); padding: 8px; z-index: 50; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown { display: block; }
.nav .dropdown a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-weight: 600; transition: background-color .15s ease-out, color .15s ease-out; }
.nav .dropdown a:hover { background: var(--lilac); color: var(--berry); }
.menu-panel a.sub { padding-left: 18px; font-weight: 500; font-size: 15.5px; color: var(--muted-dk); min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .caret { transition: none; } }

/* ---------- 20. Width steps the design does not draw ---------- */
/* 1100–1239: the seven-link nav plus the phone pill would overflow, so tighten. */
@media (max-width: 1239px) {
  .nav { gap: 18px; font-size: 15px; }
  .header-inner { gap: 18px; }
}
/* 768–1099: nav moves into the menu panel; header stays on one row. */
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-button { display: inline-flex; }
  .menu-panel.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--ink); border-top: 1px solid var(--rule-dk); border-bottom: 1px solid var(--rule-dk); padding: 8px 20px 16px; box-shadow: 0 12px 24px rgba(18,14,46,.35); }
  .menu-panel a { color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 17px; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--rule-dk); }
  .menu-panel a:last-child { border-bottom: 0; }
  .menu-panel a:hover { color: var(--coral-lt); }
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}

/* Short desktop viewports: keep the quote form above the fold (BUILD-SYSTEM §7d). */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero-inner { padding-top: 44px; padding-bottom: 56px; }
  .hero-copy { gap: 22px; padding-top: 4px; }
  .quote { gap: 12px; padding: 20px 24px 22px; }
  .page-hero-inner { padding-top: 40px; }
}

/* ---------- 21. Mobile artboard (< 768px) ---------- */
@media (max-width: 767px) {
  body { font-size: 16.5px; padding-bottom: 56px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .only-mobile { display: inline; }
  .only-desktop { display: none; }
  .eyebrow { font-size: 12.5px; }

  /* header */
  .header-inner { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .logo { gap: 10px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-img { height: 36px; }
  .logo-name { font-size: 17px; letter-spacing: 0; }
  .logo-sub { font-size: 10.5px; letter-spacing: 0.14em; }
  .call-pill { min-height: 44px; height: 44px; padding: 0 16px; gap: 8px; background: var(--coral); color: var(--ink); border: 0; font-weight: 800; font-size: 15.5px; }
  .call-pill svg { width: 16px; height: 16px; stroke: currentColor; }
  .call-num { display: none; }
  .call-word { display: inline; }

  /* hero: form moves up between the lede and the checks */
  .hero::before { background: linear-gradient(180deg, #1A1440 0%, #1A1440 34%, rgba(26,20,64,0.74) 100%); }
  .hero-inner { padding-top: 34px; padding-bottom: 40px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; }
  .hero-copy { display: contents; }
  .hero-eyebrow { gap: 10px; }
  .hero .hero-eyebrow { order: 1; }
  .hero-eyebrow::before { width: 22px; }
  .hero h1 { order: 2; font-size: 39px; line-height: 1.06; }
  .hero-lede { font-size: 17px; }
  .hero .hero-lede { order: 3; }
  .hero .quote { order: 4; margin-top: 6px; }
  .hero .checks { order: 5; }
  .checks { gap: 11px; font-size: 16px; padding-top: 6px; }
  .checks li { align-items: flex-start; gap: 10px; }
  .checks svg { width: 20px; height: 20px; margin-top: 3px; }
  .hero .hero-call { order: 6; display: none; }
  .quote, .hero .quote { flex: none; padding: 20px 18px 22px; gap: 13px; }
  .quote-head { gap: 3px; }
  .quote-title { font-size: 23px; letter-spacing: 0; }
  .quote-sub { font-size: 14.5px; }
  .field-row { gap: 10px; }
  .field-row input { padding: 0 10px; }

  /* proof */
  .proof-grid { padding-top: 26px; padding-bottom: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; font-size: 14.5px; line-height: 1.4; }
  .proof-item svg { display: none; }
  .proof-item strong { font-size: 15.5px; }
  .options-row { margin: 20px 20px 0; padding: 18px 0 26px; border-top: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 4px; }
  .options-label { font-size: 12px; }
  .options-list { display: block; font-family: var(--display); font-weight: 800; font-size: 15.5px; }
  .options-list span { font-size: 15.5px; }
  .options-list span + span::before { content: " · "; }

  /* sections */
  .section { padding-top: 56px; padding-bottom: 56px; }
  .h2 { font-size: 30px; line-height: 1.08; text-wrap: initial; }
  .h2--sm { font-size: 28px; line-height: 1.1; }

  /* services: list rows */
  .services-inner { gap: 26px; }
  .services-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .services-head .h2, .services-head p { flex: none; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0; gap: 16px; }
  .svc:last-child { border-bottom: 1px solid var(--line); }
  .svc svg { width: 48px; height: 54px; }
  .svc-body { gap: 4px; }
  .svc h3 { font-size: 19px; }
  .svc p { font-size: 15.5px; }

  /* code */
  .code-inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px; }
  .code-copy, .code-data { display: contents; }
  .code-copy .btn { order: 10; align-self: stretch; margin-top: 10px; min-height: 54px; }
  .code-copy .code-p2 { display: none; }
  .scale { margin-top: 10px; gap: 8px; padding-bottom: 0; }
  .scale-label { display: none; }
  .scale-top { justify-content: flex-end; }
  .speed { gap: 2px; padding-right: 2%; }
  .speed-num { font-size: 30px; }
  .speed-cap { font-size: 13.5px; }
  .speed-tick { height: 14px; margin-right: 26px; }
  .cats { gap: 3px; }
  .cat { padding: 9px 4px 10px; text-align: center; }
  .cat:first-child { border-radius: 6px 0 0 6px; }
  .cat:last-child { border-radius: 0 6px 6px 0; }
  .cat-name { font-size: 13.5px; }
  .cat-range { font-size: 12px; }
  .scale-note { font-size: 13.5px; }
  .tests { margin-top: 6px; }
  .test { flex-direction: column; gap: 4px; padding: 18px 0; }
  .test-name { flex: none; font-size: 18px; }
  .test-text { font-size: 15.5px; }

  /* why */
  .why-inner { gap: 22px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 18px; flex-direction: row; gap: 14px; align-items: flex-start; }
  .tile-num { flex: 0 0 24px; letter-spacing: 0.1em; padding-top: 3px; }
  .tile-body { gap: 3px; }
  .tile h3 { font-size: 18px; }
  .tile p { font-size: 15px; }

  /* photos */
  .work { padding-bottom: 0; }
  .work-inner { gap: 22px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-item { height: 150px; }
  .work-item:first-child { grid-column: 1 / -1; height: 220px; }
  .work-cap { left: 10px; bottom: 10px; padding: 4px 8px; font-size: 12px; }
  .work-item:first-child .work-cap { left: 14px; bottom: 14px; font-size: 13px; padding: 5px 10px; }

  /* process */
  .process-inner { gap: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 20px 0; border-bottom: 1px solid var(--line); flex-direction: row; gap: 18px; align-items: flex-start; }
  .step-num { flex: 0 0 50px; font-size: 34px; }
  .step-body { gap: 4px; }
  .step h3 { margin: 0; font-size: 19px; }
  .step p { font-size: 15.5px; }

  /* pricing */
  .pricing-inner { padding-top: 48px; gap: 20px; }
  .pricing-copy { gap: 12px; }
  .price-rows li { font-size: 15.5px; }
  .price-rows strong { font-size: 17px; }

  /* band */
  .band-inner { padding-top: 40px; padding-bottom: 40px; flex-direction: column; align-items: stretch; gap: 14px; }
  .band-copy { flex: none; }
  .band h2 { font-size: 28px; line-height: 1.1; }
  .band p { font-size: 16.5px; }
  .band-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 4px; }

  /* areas: one row per region, towns inline */
  .areas-inner { flex-direction: column; flex-wrap: nowrap; gap: 16px; }
  .areas-copy { flex: none; gap: 16px; }
  .regions { flex: none; margin-top: 6px; display: flex; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .region { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; }
  .region h3 { flex: 0 0 68px; padding: 0; border: 0; font-size: 17px; }
  .region ul { font-size: 16px; }
  .region li { display: inline; padding: 0; border: 0; }
  .region li + li::before { content: " · "; }

  /* faq */
  .faq-inner { gap: 22px; }
  .faq-list { gap: 10px; }
  .faq-list details { padding: 0 18px; }
  .faq-list summary { min-height: 60px; padding: 12px 0; gap: 14px; font-size: 16.5px; line-height: 1.3; }
  .faq-list summary svg { width: 16px; height: 16px; }
  .faq-list details p { padding: 0 0 18px; font-size: 15.5px; }

  /* contact */
  .contact-inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px; }
  .contact-copy { flex: none; gap: 18px; }
  .contact-call { display: flex; min-height: 54px; gap: 10px; font-size: 18px; }
  .contact-call svg { width: 18px; height: 18px; stroke: var(--coral); }
  .contact-call:hover svg { stroke: var(--ink); }
  .facts { margin-top: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .facts .fact-wide { display: none; }
  .facts dt { font-size: 12px; }
  .facts dd { margin-top: 3px; font-size: 16.5px; }
  .contact-inner .quote { flex: none; margin-top: 10px; }

  /* footer + call bar */
  .site-footer { font-size: 14.5px; }
  .footer-inner { padding-top: 30px; padding-bottom: 20px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-name { font-size: 17px; }
  .footer-nav { display: none; }
  .footer-pages { padding-bottom: 40px; gap: 0 20px; }
  .footer-pages a { min-height: 44px; }
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 56px; background: var(--ink); border-top: 1px solid var(--rule-dk2); }
  .call-bar a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 17px; }
  .call-bar svg { width: 18px; height: 18px; }
  .cb-call { background: var(--coral); color: var(--ink); }
  .cb-call:hover { background: #FF8798; color: var(--ink); }
  .cb-quote { color: #FFFFFF; }
  .cb-quote:hover { color: var(--coral-lt); }

  /* inner pages */
  .page-hero-inner { padding-top: 28px; padding-bottom: 40px; gap: 24px; }
  .page-hero-copy { gap: 16px; }
  .page-hero h1 { font-size: 36px; line-height: 1.06; }
  .page-hero .hero-lede { font-size: 17px; }
  .page-hero .quote { flex: none; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .page-body { padding-top: 44px; padding-bottom: 56px; }
  .page-grid { gap: 36px; }
  .prose h2 { font-size: 25px; margin-top: 36px; }
  .prose .answer { font-size: 17px; padding: 18px; }
}

/* Very narrow phones: keep the header on one row at 320px. */
@media (max-width: 369px) {
  .header-inner { gap: 8px; }
  .logo { gap: 8px; }
  .header-actions { gap: 6px; }
  .logo svg { width: 28px; height: 28px; }
  .logo-img { height: 32px; }
  .logo-name { font-size: 15px; }
  .logo-sub { font-size: 9px; letter-spacing: 0.1em; }
  .call-pill { padding: 0 12px; }
  .hero h1 { font-size: 34px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
