/* ==========================================================================
   Ridgeline Plumbing & Electric - shared styles for every page
   --------------------------------------------------------------------------
   REBRANDING: change the custom properties in :root below.
   - --slate-*        dark brand color for the header, hero and footer
   - --orange         safety-orange accent for buttons and highlights
   - --orange-text    darker orange for text on light backgrounds (AA contrast)
   - --paper / --paper-2  off-white page backgrounds
   - --font-display / --font-body  heading and body fonts. If you change them,
     also update the Google Fonts <link> in the <head> of every page.
   Keep text/background pairs at 4.5:1 contrast or better.
   ========================================================================== */
:root {
  --slate-950: #121a21;
  --slate-900: #1b2631;
  --slate-800: #253442;
  --slate-700: #34495a;
  --slate-500: #5d7283;
  --slate-300: #b4c1cb;
  --orange: #f26b1d;
  --orange-hover: #ff8a42;
  --orange-text: #b04607;
  --orange-soft: #fde6d6;
  --paper: #f6f3ee;
  --paper-2: #ece7df;
  --white: #ffffff;
  --ink: #18222b;
  --muted: #50606d;
  --line: #ddd6cb;
  --ok: #1e7a4c;
  --ok-bg: #e3f3ea;
  --error: #b3261e;
  --error-bg: #fcefee;

  --font-display: "Saira Condensed", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --radius: 6px;
  --shadow: 0 18px 40px -22px rgba(18, 26, 33, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: var(--orange-text); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: clamp(2.9rem, 9vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.visually-hidden { position: absolute !important; 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: 1rem; top: -100px; z-index: 100; background: var(--orange); color: var(--slate-950); padding: .7rem 1.1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; color: var(--slate-950); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }
.label { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; font: 700 .9rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.label::before { content: ""; width: 1.6rem; height: .5rem; background: repeating-linear-gradient(-45deg, var(--orange) 0 4px, transparent 4px 8px); }
.on-dark .label { color: var(--orange); }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head-row .section-head { margin-bottom: 0; }
.lead { font-size: clamp(1.08rem, 2vw, 1.2rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .75rem 1.4rem; border: 2px solid transparent; border-radius: var(--radius); font: 800 1.1rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn-orange { background: var(--orange); color: var(--slate-950); }
.btn-orange:hover { background: var(--orange-hover); color: var(--slate-950); transform: translateY(-1px); }
.btn-dark { background: var(--slate-900); color: var(--white); }
.btn-dark:hover { background: var(--slate-700); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--slate-950); color: var(--white); border-bottom: 3px solid var(--orange); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.logo-text { font: 800 1.45rem/.9 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.logo-text small { display: block; white-space: nowrap; font-size: .7rem; letter-spacing: .2em; color: var(--orange); font-weight: 700; margin-top: .25rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-call { display: none; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .45rem .9rem; background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, .35); border-radius: var(--radius); font: 700 1rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; transition: transform .25s var(--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); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--slate-900); border-bottom: 3px solid var(--orange); box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1.25rem; }
.site-nav a { display: block; padding: .9rem 0; color: var(--white); text-decoration: none; font: 700 1.25rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-nav a[aria-current="page"] { color: var(--orange); }
.site-nav .nav-cta { margin-top: 1rem; border: 0; text-align: center; background: var(--orange); color: var(--slate-950); border-radius: var(--radius); }
.site-nav .nav-cta[aria-current="page"] { color: var(--slate-950); background: var(--orange-hover); }
@media (min-width: 640px) { .header-call { display: inline-flex; min-height: 2.75rem; padding: .5rem .95rem; font-size: 1rem; } }
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: 1.4rem; padding: 0; }
  .site-nav a { padding: .4rem 0; border: 0; font-size: 1.08rem; position: relative; white-space: nowrap; }
  .site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-nav a:not(.nav-cta):hover::after, .site-nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
  .site-nav a[aria-current="page"] { color: var(--white); }
  .site-nav .nav-cta { margin: 0; padding: .65rem 1.1rem; }
  .site-nav .nav-cta:hover { background: var(--orange-hover); color: var(--slate-950); }
  .header-inner { gap: 1.5rem; }
  .header-actions { order: 3; }
  .site-nav { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--slate-900); color: #dbe3e9; padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px; }
.hero::after { content: ""; position: absolute; right: -8rem; bottom: -3rem; width: 30rem; height: 4.5rem; transform: rotate(-12deg); background: repeating-linear-gradient(-45deg, var(--orange) 0 18px, var(--slate-950) 18px 36px); opacity: .9; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--orange); display: block; }
.hero .lead { color: #c3cfd8; max-width: 34rem; margin-bottom: 1.75rem; }
.badge-247 { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; padding: .45rem .9rem .45rem .7rem; border-radius: 999px; background: rgba(242, 107, 29, .14); border: 1px solid rgba(242, 107, 29, .55); color: #ffd2b6; font: 700 1rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.badge-247 .pulse { width: .65rem; height: .65rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(242, 107, 29, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 107, 29, .65); } 70% { box-shadow: 0 0 0 10px rgba(242, 107, 29, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 107, 29, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-call { font-size: 1.25rem; min-height: 3.5rem; padding: .8rem 1.5rem; }
.hero-facts { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.5rem; }
.hero-facts strong { display: block; font: 800 clamp(1.6rem, 5vw, 2.3rem)/1 var(--font-display); color: var(--white); }
.hero-facts span { display: block; margin-top: .3rem; font-size: .86rem; line-height: 1.35; color: #aebcc7; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Service area checker ---------- */
.checker { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2rem); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); border-top: 6px solid var(--orange); position: relative; }
.checker h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin-bottom: .35rem; }
.checker > p { color: var(--muted); font-size: .98rem; }
.checker-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.checker-form .field { flex: 1 1 11rem; margin: 0; }
.checker-form .btn { flex: 0 0 auto; }
.checker-result { margin-top: 1rem; border-radius: var(--radius); padding: 0; font-size: .98rem; }
.checker-result:empty { display: none; }
.checker-result.is-yes, .checker-result.is-no, .checker-result.is-error { display: flex; gap: .75rem; padding: .95rem 1rem; align-items: flex-start; }
.checker-result.is-yes { background: var(--ok-bg); color: #145235; border: 1px solid #b9dfc9; }
.checker-result.is-no { background: #fff3e8; color: #6e3205; border: 1px solid #f6caa8; }
.checker-result.is-error { background: var(--error-bg); color: var(--error); border: 1px solid #f0c3c0; }
.checker-result svg { width: 1.4rem; height: 1.4rem; flex: none; margin-top: .05rem; }
.checker-result strong { display: block; }
.checker-result a { color: inherit; font-weight: 700; }
.checker-areas { margin: 1.1rem 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust { background: var(--orange); color: var(--slate-950); }
.trust ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .9rem 1.5rem; }
.trust li { display: flex; align-items: center; gap: .65rem; font: 700 1.1rem/1.15 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.trust li small { display: block; font: 500 .82rem/1.3 var(--font-body); text-transform: none; letter-spacing: 0; }
.trust svg { width: 2rem; height: 2rem; flex: none; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { position: relative; background: var(--white); padding: 1.9rem 1.6rem 1.7rem; transition: background-color .25s; }
.svc:hover { background: #fffaf6; }
.svc .ic { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; background: var(--slate-900); color: var(--orange); border-radius: var(--radius); margin-bottom: 1.25rem; }
.svc .ic svg { width: 1.9rem; height: 1.9rem; }
.svc h3 { margin-bottom: .4rem; }
.svc p { color: var(--muted); margin: 0 0 1rem; font-size: .98rem; }
.svc a { font: 700 1rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.svc a::after { content: ""; position: absolute; inset: 0; }
.svc a svg { width: 1rem; height: 1rem; transition: transform .2s; }
.svc:hover a svg { transform: translateX(4px); }
.svc .num { position: absolute; top: 1.4rem; right: 1.5rem; font: 800 1.1rem var(--font-display); color: var(--slate-300); }

/* ---------- How it works ---------- */
.dark-band { background: var(--slate-950); color: #c9d3db; position: relative; overflow: hidden; }
.dark-band h2, .dark-band h3 { color: var(--white); }
.dark-band .lead { color: #aebcc7; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: how; }
.how li { counter-increment: how; position: relative; padding: 1.75rem 1.5rem 1.5rem; background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: var(--radius); }
.how li::before { content: "0" counter(how); display: block; font: 800 3.6rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--orange); margin-bottom: .75rem; }
.how p { margin: 0; color: #b9c6d0; }
@media (min-width: 820px) { .how { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1.25rem; }
.review { margin: 0; background: var(--white); padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); border-left: 5px solid var(--orange); display: flex; flex-direction: column; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.review-tag { font: 700 .8rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; background: var(--paper-2); color: var(--ink); padding: .4rem .6rem; border-radius: 4px; }
.stars { display: flex; gap: .1rem; color: var(--orange-text); }
.stars svg { width: 1.05rem; height: 1.05rem; }
.review blockquote { margin: 0 0 1.25rem; font-size: 1.04rem; }
.review figcaption { margin-top: auto; font-size: .92rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }
@media (min-width: 880px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: var(--slate-950); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 1.25rem; background: repeating-linear-gradient(-45deg, var(--slate-950) 0 10px, transparent 10px 20px); }
.cta-band .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; padding-top: clamp(2.25rem, 5vw, 3rem); padding-bottom: clamp(2.25rem, 5vw, 3rem); }
.cta-band h2 { margin: 0 0 .25rem; color: var(--slate-950); }
.cta-band p { margin: 0; font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-band .btn-outline { border-color: var(--slate-950); color: var(--slate-950); }
.cta-band .btn-outline:hover { background: var(--slate-950); color: var(--white); }

/* ---------- Page hero ---------- */
.page-hero { background: var(--slate-900); color: #c9d3db; padding: clamp(3rem, 7vw, 4.75rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -6rem; top: 50%; width: 22rem; height: 3.25rem; transform: rotate(-12deg); background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, transparent 14px 28px); opacity: .55; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 7vw, 4.4rem); }
.page-hero .lead { color: #c3cfd8; max-width: 40rem; margin: 0; }
.page-hero .label { color: var(--orange); }

/* ---------- Services detail ---------- */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.jump a { display: inline-block; padding: .5rem .9rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; color: var(--white); text-decoration: none; font: 700 .98rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.jump a:hover { border-color: var(--orange); color: var(--orange); }
.detail { display: grid; gap: 1.75rem; padding: clamp(2.75rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; align-items: center; }
.detail:last-of-type { border-bottom: 0; }
.detail-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.detail-head .ic { width: 3.4rem; height: 3.4rem; flex: none; display: grid; place-items: center; background: var(--slate-900); color: var(--orange); border-radius: var(--radius); }
.detail-head .ic svg { width: 1.9rem; height: 1.9rem; }
.detail-head h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 2.8rem); }
.detail p { color: var(--muted); }
.jobs { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.jobs li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .8rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: .98rem; }
.jobs li::before { content: ""; flex: none; width: .55rem; height: .55rem; margin-top: .55rem; background: var(--orange); transform: rotate(45deg); }
.jobs-title { font: 700 1rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0; }
.ph { position: relative; min-height: 15rem; border-radius: var(--radius); overflow: hidden; background:
  repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px),
  linear-gradient(135deg, var(--slate-800), var(--slate-700)); display: grid; place-items: center; }
.ph svg { width: 40%; max-width: 9rem; color: rgba(242, 107, 29, .65); }
.ph-label { position: absolute; left: 1rem; bottom: 1rem; background: var(--paper); color: var(--ink); padding: .4rem .75rem; border-radius: 4px; font: 700 .9rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 560px) { .jobs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.2fr .8fr; gap: 3.5rem; }
  .detail:nth-of-type(even) .detail-body { order: 2; }
  .ph { min-height: 22rem; }
}

/* ---------- Quote form ---------- */
.quote-wrap { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) { .quote-wrap { grid-template-columns: minmax(0, 1fr) 19rem; } .quote-aside { position: sticky; top: 6rem; } }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--slate-950); counter-reset: prog; }
.progress li { counter-increment: prog; position: relative; padding: .9rem .4rem .8rem; text-align: center; color: #8fa1af; font: 700 .9rem/1.1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; border-bottom: 4px solid var(--slate-800); min-width: 0; }
.progress li::before { content: counter(prog); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin: 0 auto .35rem; border-radius: 50%; border: 2px solid currentColor; font-size: 1rem; }
.progress li.is-done { color: #e5ecf1; border-bottom-color: var(--slate-500); }
.progress li.is-done::before { content: "\2713"; background: var(--slate-700); border-color: var(--slate-700); }
.progress li[aria-current="step"] { color: var(--white); border-bottom-color: var(--orange); }
.progress li[aria-current="step"]::before { background: var(--orange); border-color: var(--orange); color: var(--slate-950); }
.progress .p-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .progress .p-text { font-size: .76rem; letter-spacing: .04em; } }
.q-form { padding: clamp(1.25rem, 4vw, 2.25rem); }
.q-step:focus { outline: none; }
.q-step h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .3rem; }
.q-step .step-intro { color: var(--muted); margin-bottom: 1.5rem; }
.q-fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.q-fieldset legend { padding: 0; margin-bottom: .65rem; font: 700 1.15rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.tiles { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); }
.tile { position: relative; display: block; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-body { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color .2s, background-color .2s; }
.tile-body svg { width: 1.8rem; height: 1.8rem; color: var(--slate-700); }
.tile-body strong { font: 700 1.2rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.tile-body small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.tile input:hover + .tile-body { border-color: var(--slate-500); }
.tile input:checked + .tile-body { border-color: var(--orange); background: #fff6ef; box-shadow: inset 0 0 0 1px var(--orange); }
.tile input:checked + .tile-body svg { color: var(--orange-text); }
.tile input:focus-visible + .tile-body { outline: 3px solid var(--orange); outline-offset: 2px; }
.tiles.urgency { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.urg-dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; margin-right: .4rem; vertical-align: middle; }
.q-fieldset[aria-invalid="true"] .tile-body { border-color: #e8aaa5; }
.field { display: grid; gap: .35rem; margin-bottom: 1.15rem; min-width: 0; }
.field > label, .field-label { font-weight: 600; font-size: .97rem; }
.opt { font-weight: 400; color: var(--muted); }
.hint { margin: 0; font-size: .87rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 2px solid #c9c0b3; border-radius: var(--radius); background: var(--white); font: inherit; font-size: 1rem; color: var(--ink); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2318222b' stroke-width='2'/%3E%3C/svg%3E") right .85rem center / 1rem no-repeat; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate-900); box-shadow: 0 0 0 3px rgba(242, 107, 29, .45); }
.field [aria-invalid="true"] { border-color: var(--error); background-color: var(--error-bg); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.counter { font-size: .82rem; color: var(--muted); text-align: right; margin: 0; }
.check-row { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px dashed #c9c0b3; border-radius: var(--radius); background: var(--paper); margin-bottom: 1.15rem; cursor: pointer; }
.check-row input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--orange-text); flex: none; }
.check-row strong { display: block; }
.photo-note { margin: -.5rem 0 1.15rem; padding: .85rem 1rem; border-left: 4px solid var(--orange); background: #fff6ef; font-size: .93rem; }
.photo-note[hidden] { display: none; }
.radio-inline { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radio-inline label { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; cursor: pointer; }
.radio-inline input { width: 1.15rem; height: 1.15rem; accent-color: var(--orange-text); margin: 0; }
.error-msg { margin: 0; color: var(--error); font-weight: 600; font-size: .88rem; }
.error-msg:empty { display: none; }
.q-nav { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--line); margin-top: .5rem; }
.q-nav .spacer { flex: 1; }
.btn[hidden] { display: none; }
.review-list { margin: 0 0 1.25rem; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review-list .row { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--white); }
.review-list .row:nth-child(even) { background: var(--paper); }
.review-list .row:last-child { border-bottom: 0; }
.review-list dt { font: 700 .95rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .1rem; }
.review-list dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.edit-btn { background: none; border: 0; padding: .1rem .2rem; color: var(--orange-text); font: 600 .9rem var(--font-body); text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) { .review-list .row { grid-template-columns: 1fr auto; } .review-list dd { grid-column: 1 / -1; grid-row: 2; } }
.form-alert { margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--error-bg); color: var(--error); font-weight: 600; border: 1px solid #f0c3c0; }
.form-alert:empty { display: none; }
.q-done { padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 2.5rem); text-align: center; }
.q-done:focus { outline: none; }
.q-done .ic { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.q-done .ic svg { width: 2.2rem; height: 2.2rem; }
.q-done h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.q-done .ref { display: inline-block; margin: .25rem 0 1.25rem; padding: .45rem .9rem; background: var(--paper-2); border-radius: 4px; font: 700 1.05rem var(--font-display); letter-spacing: .1em; }
.quote-aside { display: grid; gap: 1rem; }
.aside-card { background: var(--slate-900); color: #c9d3db; border-radius: var(--radius); padding: 1.5rem; }
.aside-card h2 { color: var(--white); font-size: 1.7rem; margin-bottom: .5rem; }
.aside-card p { font-size: .95rem; }
.aside-card .btn { width: 100%; }
.aside-list { list-style: none; padding: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.aside-list li { display: flex; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.aside-list li:last-child { border-bottom: 0; }
.aside-list svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--orange-text); margin-top: .1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-950); color: #b7c4ce; padding: clamp(3rem, 7vw, 4.5rem) 0 1.75rem; font-size: .95rem; border-top: 6px solid var(--orange); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h2 { font-size: 1.15rem; letter-spacing: .12em; color: var(--white); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #e7edf1; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-tag { margin: 1rem 0 0; max-width: 22rem; }
.footer-hours { margin: .75rem 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; font-size: .85rem; color: #93a4b1; }
.footer-bottom p { margin: 0; }
.built { font-size: .75rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .badge-247 .pulse { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Small helpers ---------- */
.page-hero .lead a { color: var(--white); font-weight: 600; }
.urg-1 { background: #d93c1c; }
.urg-2 { background: #f2a91d; }
.urg-3 { background: #2f8f5b; }
@media (max-width: 420px) {
  .header-inner { gap: .5rem; }
  .logo-mark { width: 2.2rem; height: 2.2rem; }
  .logo-text { font-size: 1.3rem; }
  .logo-text small { font-size: .62rem; letter-spacing: .12em; }
  .nav-toggle { padding: .45rem .7rem; }
}
@media (max-width: 699px) { .page-hero::after { top: auto; bottom: .5rem; right: -10rem; opacity: .35; } }
