/* JF Builds LLC. Solid, full-width layout (Gabriell's pick, 2026-10-22, from the photo demo).
   Navy #022C5E and red #8E0019 from the logo; red is the action colour. Libre Caslon for headings, Public Sans for text.
   The earlier "Option B" design is in git history (commit bb608cc). */
:root {
  color-scheme: light;
  --navy: #022c5e;
  --navy-deep: #011d40;
  --red: #8e0019;
  --red-deep: #6f0014;
  --ink: #14202f;
  --muted: #4a5568;
  --stone: #f2f1ed;
  --white: #fff;
  --on-navy: #ffffff;
  --on-navy-soft: #c9d3e3;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m: 5vw;
  --gap: 24px;
  --h1: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  --h2: clamp(2rem, 1.5rem + 1.8vw, 3.125rem);
  --h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; text-wrap: balance; }
h2 { font-size: var(--h2); color: var(--navy); }
h3 { font-size: var(--h3); color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }
.break { overflow-wrap: anywhere; }
.ph { background: #fff1b8; color: #4d3a00; padding: 0 .3em; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border: 0; border-radius: 2px;
  background: var(--red); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-light { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-deep); }
  .btn-light:hover { background: var(--stone); }
  .btn-navy:hover { background: var(--navy-deep); }
  .link:hover { color: var(--red); }
}

/* Header */
.bar { display: flex; align-items: center; gap: 28px; padding: 12px var(--m); background: var(--white); position: relative; z-index: 10; }
.bar .logo img { height: 60px; width: auto; }
.bar nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; }
.bar nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.bar nav a[aria-current="page"], .bar nav a:hover { border-bottom-color: var(--red); }
.bar .tools { display: flex; align-items: center; gap: 18px; }
.bar .tel { font-weight: 600; text-decoration: none; }
.bar .langs { display: flex; align-items: center; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; }
.bar .langs a, .bar .langs .cur { padding: 6px 5px; border-bottom: 2px solid transparent; text-decoration: none; }
.bar .langs a { color: var(--muted, #5b6676); }
.bar .langs a:hover { color: var(--navy); border-bottom-color: var(--red); }
.bar .langs .cur { color: var(--navy); border-bottom-color: var(--red); }
.bar .tools a, .bar .tools .btn { white-space: nowrap; }
@media (max-width: 1240px) { .bar .tel { display: none; } .bar nav { gap: 20px; } }
.burger { display: none; min-height: 44px; padding: 8px 2px; border: 0; background: none; color: var(--navy); font: 600 1rem/1 var(--sans); cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 50; background: var(--white); padding: 14px var(--m) 40px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-top .logo img { height: 52px; width: auto; }
.nw { white-space: nowrap; }
.menu nav { display: grid; margin-top: 24px; }
.menu nav a { padding: 14px 0; border-bottom: 1px solid #e3e1da; font: 700 1.5rem/1.25 var(--serif); color: var(--navy); text-decoration: none; }
.menu-actions { display: grid; gap: 12px; margin-top: 28px; }

/* Hero: text on navy, photo filling the other half */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100svh - 84px), 820px); background: var(--navy); color: var(--on-navy); }
.hero .copy { display: flex; flex-direction: column; justify-content: center; padding: 72px var(--m); }
.hero h1 { font-size: var(--h1); color: #fff; max-width: 13em; }
.hero p { margin-top: 22px; font-size: var(--lead); max-width: 32em; color: var(--on-navy-soft); }
.hero .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hero .row .tel { font-size: 1.125rem; font-weight: 600; text-decoration: none; color: #fff; }
.hero .row .tel:hover { text-decoration: underline; }
.hero .media { position: relative; min-height: 360px; }
.hero .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--fy, 50%); }

/* Page title band (projects, contact, text pages) */
.band-title { background: var(--navy); color: #fff; padding: 72px var(--m) 64px; }
.band-title h1 { font-size: var(--h1); color: #fff; max-width: 16em; }
.band-title p { margin-top: 16px; font-size: var(--lead); color: var(--on-navy-soft); max-width: 40em; }

/* Credentials bar */
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--stone); }
.creds > div { padding: 26px var(--m); }
.creds span { display: block; color: var(--muted); font-size: 0.9375rem; }
.creds strong { color: var(--navy); font-size: 1.0625rem; }
.creds a { font-weight: 600; }

/* Photo + text blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; }
.split .media { position: relative; min-height: 320px; }
.split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--fy, 50%); }
.split .txt { display: flex; flex-direction: column; justify-content: center; padding: 80px var(--m); background: var(--stone); }
.split.flip .media { order: 2; }
.split.white .txt { background: var(--white); }
.split .txt p { margin-top: 18px; max-width: 34em; }
.split ul { margin: 20px 0 0; padding-left: 20px; display: grid; gap: 6px; max-width: 34em; }
.split .btn, .split .link { margin-top: 28px; align-self: flex-start; }
.split .txt dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 28px; max-width: 30em; }
.split dt { color: var(--muted); font-size: 0.9375rem; }
.split dd { font-weight: 600; color: var(--navy); }

/* Section with a heading */
.section { padding: 100px var(--m); }
.section.stone { background: var(--stone); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 40px; }
.head-row p { max-width: 40em; margin-top: 12px; }

/* Project grid: aligned */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.tile a { display: block; text-decoration: none; }
.tile figure { overflow: hidden; background: var(--stone); }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile a:hover img { transform: scale(1.03); } .tile a:hover .t { color: var(--red); } }
.tile .t { display: block; margin-top: 14px; font: 700 1.1875rem/1.3 var(--serif); color: var(--navy); }
.tile .m { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }
.tile[hidden] { display: none; }
.tiles-empty { padding: 40px; background: var(--stone); color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters[hidden] { display: none; }
.filters button { min-height: 44px; padding: 8px 18px; border: 2px solid var(--navy); border-radius: 2px; background: #fff; color: var(--navy); font: 600 0.9375rem/1 var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Services row (smaller services under the two main blocks) */
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mini > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; background: var(--white); }
.mini img { width: 180px; height: 100%; min-height: 180px; object-fit: cover; }
.mini .t { padding: 22px 22px 22px 0; }
.mini p { margin-top: 8px; }

/* Process band, payments and the deposit check */
.process { background: var(--navy); color: #fff; padding: 100px var(--m); }
.process h2 { color: #fff; }
.process .intro { margin-top: 14px; max-width: 40em; color: var(--on-navy-soft); font-size: var(--lead); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--red); padding-top: 18px; color: var(--on-navy-soft); }
.steps li::before { content: counter(s); display: block; font: 700 1.75rem/1 var(--serif); color: #fff; margin-bottom: 12px; }
.steps strong { display: block; color: #fff; font: 700 1.1875rem/1.3 var(--serif); margin-bottom: 8px; }
.pay { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; margin-top: 64px; align-items: start; }
.pay .law p { color: var(--on-navy-soft); margin-top: 12px; max-width: 38em; }
.pay .law h3 { color: #fff; }
.pay .law a { color: #fff; }
.check { background: #fff; color: var(--ink); padding: 28px; }
.check label { display: block; font-weight: 700; color: var(--navy); }
.check .row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 1.25rem; font-weight: 600; }
.check input { width: 100%; min-height: 52px; padding: 8px 12px; border: 2px solid var(--navy); border-radius: 2px; font: 600 1.25rem/1 var(--sans); color: var(--navy); }
.check output { display: block; margin-top: 16px; font-weight: 600; color: var(--navy); }
.check .note { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }

/* License list (about) */
.lic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lic > div { background: var(--white); padding: 26px; }
.lic dt { color: var(--muted); font-size: 0.9375rem; }
.lic dd { margin-top: 4px; font: 700 1.25rem/1.3 var(--serif); color: var(--navy); }
.lic-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.three h3 { font-size: 1.375rem; }
.three p { margin-top: 10px; }
.src { margin-top: 32px; font-size: 0.875rem; color: var(--muted); }

/* Contractors band */
.contractors { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 64px var(--m); background: var(--stone); }
.contractors p { max-width: 40em; margin-top: 10px; }

/* FAQ: heading left, questions right */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.faq details { border-bottom: 1px solid #dcdad2; }
.faq details:first-child { border-top: 1px solid #dcdad2; }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; font: 700 1.1875rem/1.35 var(--serif); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.75rem/1 var(--sans); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 44px 22px 0; max-width: 46em; }

/* Call-to-action band */
.cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 72px var(--m); background: var(--stone); }
.cta .face { width: 120px; height: 120px; object-fit: cover; object-position: 50% 22%; }
.cta p { margin-top: 8px; }
.cta .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* Case study */
.case-split h1 { font-size: var(--h2); color: var(--navy); }
.case-split .txt dl { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 24px; }
.case-note { margin-top: 16px; font-style: italic; }
.case-did { margin-top: 10px; font-weight: 600; }
.video-sec { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: center; }
.video-sec video { width: 100%; height: auto; background: var(--navy); }
.video-sec p { margin-top: 14px; max-width: 34em; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery li:only-child { grid-column: 1 / -1; max-width: 640px; }
.prose-body { max-width: 46em; }
.prose-body h2 { font-size: var(--h3); margin: 32px 0 10px; }
.prose-body h2:first-child { margin-top: 0; }
.ticks { margin: 0; padding-left: 20px; }
.quote { margin-top: 32px; font: 400 var(--lead)/1.5 var(--serif); }

/* Before/after slider (case pages, when photos exist) */
.ba { margin: 0; }
.ba-frame { position: relative; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; --pos: 50%; }
.ba-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; }
.ba-after { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--pos)); }
.ba-knob { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; }
.ba-knob::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--navy); }
.ba:focus-within .ba-knob::after { outline: 3px solid var(--red); outline-offset: 2px; }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; background: var(--navy); color: #fff; font-size: 0.875rem; }
.ba-tag-b { left: 12px; }
.ba-tag-a { right: 12px; }
.ba-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Contact page */
.contact-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.form-h { font-size: var(--h3); margin-bottom: 24px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field label { font-weight: 600; }
.req { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid #a9b2bf; border-radius: 2px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #c7d3e6; border-color: var(--navy); }
.field input[type="file"] { padding: 12px; }
.field textarea { resize: vertical; }
.hint { font-size: 0.9375rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-msg { color: #14532d; font-weight: 600; margin-top: 12px; }
.form-err { color: var(--red); font-weight: 600; margin-top: 12px; }
.form-msg:empty, .form-err:empty { margin: 0; }
.contact-side { background: var(--stone); padding: 32px; }
.contact-side .face { width: 120px; height: 120px; object-fit: cover; object-position: 50% 22%; margin-bottom: 20px; }
.contact-side h2 { font-size: var(--h3); }
.contact-list { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.contact-list li > span:first-child { color: var(--muted); }
.license-mini { background: #fff; padding: 20px; }
.license-mini p { margin: 0 0 4px; }

/* Text pages */
.prose { max-width: 46em; }
.prose h2 { font-size: var(--h3); margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1em; }
.alt-lang { margin-top: 48px; padding-top: 28px; border-top: 1px solid #dcdad2; }
.alt-lang h2 { font-size: var(--h3); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 32px; }

/* Footer */
.foot { background: var(--navy-deep); color: var(--on-navy-soft); padding: 64px var(--m) 28px; font-size: 0.9375rem; }
.foot .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.foot li:first-child { color: #fff; font-weight: 700; }
.foot a { color: inherit; }
.foot a:hover { color: #fff; }
.foot .legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.foot .legal p { margin: 0 0 6px; }

/* Phone quick bar */
.mbar { display: none; }

/* Motion: a short rise as things come into view (content stays visible without script) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1020px) {
  .bar nav, .bar .langs, .bar .tel { display: none; }
  .bar .tools { margin-left: auto; }
  .burger { display: inline-flex; align-items: center; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pay { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .contact-page { grid-template-columns: 1fr; }
  .mini { grid-template-columns: 1fr; }
  .cta { grid-template-columns: auto minmax(0, 1fr); }
  .cta .row { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --m: 20px; }
  .bar { padding: 10px var(--m); gap: 12px; }
  .bar .logo img { height: 50px; }
  .bar .tools .btn { min-height: 44px; padding: 10px 14px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .media { order: -1; min-height: 0; }
  .hero .media img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .hero .media { position: relative; }
  .hero .copy { padding: 36px var(--m) 44px; }
  .band-title { padding: 44px var(--m) 40px; }
  .creds { grid-template-columns: 1fr 1fr; }
  .creds > div { padding: 18px var(--m); }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split .media { min-height: 0; }
  .split .media img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .split.flip .media { order: 0; }
  .split .txt { padding: 44px var(--m) 52px; }
  .section { padding: 64px var(--m); }
  .tiles { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .tile:first-child { grid-column: 1 / -1; }
  .tile:first-child img { aspect-ratio: 3 / 2; }
  .tile .t { font-size: 1.0625rem; }
  .mini > div { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .mini img { width: 120px; min-height: 140px; }
  .mini .t { padding: 16px 16px 16px 0; }
  .process { padding: 64px var(--m); }
  .steps { grid-template-columns: 1fr; gap: 22px; margin-top: 36px; }
  .pay { margin-top: 44px; }
  .lic, .three { grid-template-columns: 1fr; }
  .contractors { padding: 48px var(--m); }
  .cta { grid-template-columns: 1fr; padding: 52px var(--m); }
  .cta .face { width: 96px; height: 96px; }
  .gallery { grid-template-columns: 1fr; }
  .video-sec { grid-template-columns: 1fr; gap: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .contact-side { padding: 24px; }
  .contact-list li { grid-template-columns: 84px minmax(0, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--navy); padding-bottom: env(safe-area-inset-bottom); transition: transform 240ms var(--ease); }
  .mbar a { display: grid; place-items: center; min-height: 60px; color: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: none; border-left: 1px solid rgba(255,255,255,.18); }
  .mbar a:first-child { border-left: 0; }
  .mbar a:last-child { background: var(--red); }
  .mbar.is-away { transform: translateY(110%); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .bar, .menu, .mbar { display: none !important; } }

/* Hero with the estimate form (home, kitchen, bathroom): video or photo fills the background, copy | form on top */
.hero.has-form { position: relative; isolation: isolate; grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); min-height: min(calc(100svh - 84px), 780px); background: var(--navy-deep); }
.hero-bg .bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .bg img, .hero-bg .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--fy, 50%); }
.hero-bg .bg video { opacity: 0; transition: opacity 900ms var(--ease); }
.hero-bg .bg video.is-on { opacity: 1; }
.hero-bg .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 29, 64, 0.9) 0%, rgba(1, 29, 64, 0.72) 38%, rgba(1, 29, 64, 0.3) 72%, rgba(1, 29, 64, 0.18) 100%); }
.hero.has-form .copy { padding-right: 48px; }
.hero.has-form h1 { font-size: clamp(2.5rem, 3.6vw, 3.75rem); max-width: 12em; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 1.0625rem; color: #fff; }
.checks li::before { content: ""; position: absolute; left: 5px; top: 0.3em; width: 7px; height: 13px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qcol { display: flex; align-items: center; padding: 56px var(--m) 56px 0; }
.qform { width: 100%; background: #fff; color: var(--ink); padding: 28px 26px 20px; border-radius: 2px; box-shadow: 0 20px 44px rgba(1, 29, 64, 0.38); }
.qform h2 { font-size: 1.625rem; color: var(--navy); }
.hero .qform p { margin-top: 0; max-width: none; font-size: 0.9375rem; color: #4a5566; }
.hero .qform .q-sub { margin: 6px 0 18px; }
.qform .row2 { gap: 0 14px; }
.qform .field { margin-bottom: 14px; }
.qform .field input, .qform .field select { min-height: 48px; }
.qform .btn { width: 100%; margin-top: 4px; }
/* Two steps: tap the project, then name, phone and town. Without script both show and step 1 hides. */
.q-label { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.hero .qform .q-label { font-size: 1rem; color: var(--ink); }
.q-count { display: block; margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); }
.q-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.q-pick { min-height: 56px; padding: 10px 14px; border: 1px solid #a9b2bf; border-radius: 2px; background: #fff; color: var(--navy); font: 600 1rem/1.25 var(--sans); text-align: left; cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 120ms var(--ease); }
.q-pick:last-child { grid-column: 1 / -1; }
.q-pick:active { transform: scale(0.98); }
.q-pick[aria-pressed="true"] { border-color: var(--navy); background: #eef2f8; }
@media (hover: hover) and (pointer: fine) { .q-pick:hover { border-color: var(--navy); background: #f4f6fa; } }
.q-chosen [data-chosen] { color: var(--navy); }
.q-back { margin-left: 8px; padding: 4px 2px; border: 0; background: none; color: var(--navy); font: 500 0.9375rem/1 var(--sans); text-decoration: underline; cursor: pointer; }
html:not(.js) .q-step[data-step="1"], html:not(.js) .q-chosen { display: none; }
.q-step[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .q-step.is-in { animation: q-in 260ms var(--ease); } }
@keyframes q-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero .qform .q-alt { margin-top: 12px; text-align: center; }
.qform .q-alt a { color: var(--navy); font-weight: 600; white-space: nowrap; }
.hero .qform .form-msg, .hero .qform .form-err { margin-top: 8px; font-weight: 600; }
.hero .qform .form-msg { color: #14532d; }
.hero .qform .form-err { color: var(--red); }
.hero .qform .form-msg:empty, .hero .qform .form-err:empty { display: none; }

/* Towns we work in */
.towns { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
.towns p { margin-top: 14px; max-width: 30em; }
.towns-list { list-style: none; padding: 0; margin: 0; columns: 4 10em; column-gap: 28px; }
.towns-list li { padding: 9px 0; border-bottom: 1px solid #d9d6cc; break-inside: avoid; font-weight: 500; }
.three.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1240px) {
  .hero.has-form { grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); min-height: 0; }
}
@media (max-width: 1020px) {
  .towns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero.has-form { grid-template-columns: 1fr; }
  .hero-bg .bg::after { background: linear-gradient(180deg, rgba(1, 29, 64, 0.62) 0%, rgba(1, 29, 64, 0.8) 45%, rgba(1, 29, 64, 0.9) 100%); }
  .hero.has-form .copy { padding: 36px var(--m) 8px; }
  .checks { margin-top: 20px; gap: 9px; }
  .checks li { font-size: 1rem; }
  .hero.has-form .qcol { padding: 22px var(--m) 36px; }
  .qform { padding: 22px 18px 16px; box-shadow: none; }
  .qform .row2 { grid-template-columns: 1fr 1fr; }
  .towns-list { columns: 2; }
  .three.two { grid-template-columns: 1fr; }
}
@media (max-width: 340px) { .qform .row2 { grid-template-columns: 1fr; } }
