/* Kasim Construction — site styles (v2: dark photo hero, condensed headlines, brass accents) */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --night: #0f1a24;
  --night-2: #16232f;
  --night-3: #1f2e3c;
  --night-text: #c3cad1;
  --brass: #d2a262;
  --brass-hover: #ddb47b;
  --brass-deep: #9c6f35;
  --ink: #121b23;
  --body: #39424b;
  --muted: #5a636c;
  --paper: #ffffff;
  --concrete: #f2f3f4;
  --line: #e1e3e5;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --r-s: 6px;
  --r-m: 12px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
.on-light :focus-visible { outline-color: var(--brass-deep); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); text-wrap: balance; }
.caps {
  font-stretch: 70%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.005em;
}
.caps .lc { text-transform: none; }
h2.caps { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h3 { font-weight: 800; font-stretch: 92%; font-size: 1.4rem; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.dot { color: var(--brass); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: #fff; color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--r-s); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 54px; padding: 0.8rem 1.5rem;
  border: 1.5px solid transparent; border-radius: var(--r-s);
  font-family: var(--text); font-weight: 800; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-brass { background: var(--brass); color: var(--night); }
.btn-brass:hover { background: var(--brass-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--night-3); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Utility bar ---------- */
.util { background: #09121a; color: var(--night-text); font-size: 0.875rem; }
.util .wrap { display: flex; align-items: center; gap: 1.75rem; height: 40px; white-space: nowrap; }
.util b { color: var(--brass); font-weight: 700; }
.util a { margin-left: auto; color: #fff; font-weight: 700; text-decoration: none; }
.util a:hover { color: var(--brass); }
@media (max-width: 760px) { .util .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 27, 0.95) 0%, rgba(10, 18, 27, 0.86) 38%, rgba(10, 18, 27, 0.35) 70%, rgba(10, 18, 27, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 18, 27, 0.85) 0%, rgba(10, 18, 27, 0) 32%);
}

.site-header { position: absolute; top: 40px; left: 0; right: 0; z-index: 20; color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 60px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #fff; border-bottom-color: var(--brass); }
.site-header .btn { min-height: 46px; padding: 0.6rem 1.15rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: var(--r-s);
  background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
  padding-block: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) clamp(7rem, 12vw, 9.5rem);
}
.hero h1 { color: #fff; font-size: clamp(3.6rem, 9vw, 7.4rem); }
.hero h1 > span { display: block; }
.hero-lede { margin-top: 1.6rem; max-width: 31rem; font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.aslan { display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.aslan strong { display: block; color: #fff; font-size: 1rem; }
.avatar {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brass); color: var(--night);
  font-family: var(--display); font-weight: 900; font-size: 1.35rem;
}

/* ---------- Estimate form (hero card and footer) ---------- */
.card {
  background: #fff; color: var(--ink);
  border-radius: var(--r-m);
  padding: clamp(1.4rem, 2.6vw, 1.85rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.card h2, .card h3 { font-size: 1.75rem; font-weight: 900; font-stretch: 84%; text-transform: uppercase; line-height: 1; }
.card > p { margin: 0.45rem 0 1.25rem; color: var(--muted); font-size: 0.95rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem;
  border: 1.5px solid #cfd3d7; border-radius: var(--r-s);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(210, 162, 98, 0.45);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: 0.82rem; }
.err:empty { display: none; }
.card .btn-night { width: 100%; margin-top: 1rem; }
.form-note { margin-top: 0.75rem; font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-status { display: none; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--r-s); background: #e8f1e6; color: #1f4d22; font-size: 0.95rem; }
.form-status.is-shown { display: block; }
.form-status.is-error { background: #fbe9e7; color: #8a1c14; }

/* ---------- Photo strip under the hero ---------- */
.strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0.65rem;
  margin-top: clamp(-6.5rem, -9vw, -4.5rem);
}
.strip a { position: relative; display: block; height: clamp(170px, 19vw, 250px); border-radius: var(--r-s); overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.strip a:hover img { transform: scale(1.03); }
.strip span {
  position: absolute; left: 0.7rem; bottom: 0.7rem;
  background: var(--night); color: #fff; padding: 0.35rem 0.6rem; border-radius: 4px;
  font-size: 0.82rem; font-weight: 700;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { max-width: 34rem; font-size: 1.12rem; color: var(--muted); }
.bg-concrete { background: var(--concrete); }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 1rem;
  list-style: none; margin: 0; padding: 0;
}
.svc { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--night); color: #fff; min-height: 300px; display: flex; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 27, 0.92) 0%, rgba(10, 18, 27, 0.45) 45%, rgba(10, 18, 27, 0.05) 75%); }
.svc-body { position: relative; z-index: 1; margin-top: auto; padding: 1.5rem; }
.svc h3 .lc { text-transform: none; }
.svc h3 { color: #fff; font-size: clamp(1.5rem, 2.3vw, 1.9rem); font-stretch: 80%; font-weight: 900; text-transform: uppercase; line-height: 1; }
.svc p { margin-top: 0.6rem; color: rgba(255, 255, 255, 0.85); max-width: 30rem; font-size: 1rem; }
.svc .tag { display: inline-block; margin-bottom: 0.75rem; background: var(--brass); color: var(--night); font-size: 0.8rem; font-weight: 800; padding: 0.25rem 0.55rem; border-radius: 4px; }
.svc-adu { grid-row: span 2; min-height: 620px; }
.svc-wide { grid-column: span 2; }
/* Finishing and repair trades */
.trades-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem; }
.trades-head h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 900; font-stretch: 80%; text-transform: uppercase; line-height: 1; color: var(--ink); }
.trades-head p { max-width: 30rem; color: var(--muted); }
.trades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.trade { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.trade-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.trade-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.trade:hover .trade-img img { transform: scale(1.03); }
.trade-body { flex: 1; padding: 1.1rem 1.2rem 1.3rem; border-top: 3px solid var(--brass); }
.trade h4 { font-family: var(--display); font-size: 1.2rem; font-weight: 800; font-stretch: 90%; line-height: 1.15; color: var(--ink); }
.trade p { margin-top: 0.45rem; font-size: 0.95rem; color: var(--muted); }

/* Before and after */
.ba { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; margin: 1rem 0 0; padding: clamp(0.9rem, 2vw, 1.25rem); background: var(--night); color: #fff; border-radius: var(--r-m); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.ba-shot { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--night-3); }
.ba-shot img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag { position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.3rem 0.55rem; border-radius: 4px; background: rgba(15, 26, 36, 0.85); color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ba-tag.ba-after { background: var(--brass); color: var(--night); }
.ba figcaption { padding-right: clamp(0rem, 2vw, 1rem); }
.ba-kicker { display: block; margin-bottom: 0.6rem; color: var(--brass); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ba figcaption h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 900; font-stretch: 80%; text-transform: uppercase; line-height: 1; color: #fff; }
.ba figcaption p { margin-top: 0.75rem; color: var(--night-text); }
@media (max-width: 1000px) { .trades { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .ba { grid-template-columns: 1fr; } .ba figcaption { padding: 0 0.4rem 0.4rem; } }
@media (max-width: 520px) {
  .trades { grid-template-columns: 1fr; }
  .trade { flex-direction: row; }
  .trade-img { flex: 0 0 38%; aspect-ratio: auto; }
  .trade-body { border-top: 0; border-left: 3px solid var(--brass); padding: 0.9rem 1rem; }
  .trade h4 { font-size: 1.05rem; }
  .trade p { font-size: 0.9rem; }
}
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc-adu { grid-row: auto; grid-column: span 2; min-height: 420px; }
  .svc-wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .svc-adu, .svc-wide { grid-column: auto; }
  .svc, .svc-adu { min-height: 300px; }
}

/* ---------- Work gallery ---------- */
/* Filter bar: one white pill track with icon + count tabs; scrolls sideways when it can't fit */
.filters-wrap { position: relative; margin-bottom: 1.5rem; }
.filters {
  position: relative; display: flex; gap: 0.25rem; width: max-content; max-width: 100%;
  padding: 0.35rem; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 12px 30px -24px rgba(15, 26, 36, 0.5);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 0.35rem;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0.5rem 0.7rem 0.5rem 0.65rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: 700 0.9rem var(--text); white-space: nowrap; cursor: pointer; scroll-snap-align: start;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filters svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: color 0.2s ease; }
.filters button span { min-width: 1.5rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--concrete); color: var(--muted); font-size: 0.75rem; font-weight: 800; text-align: center; transition: inherit; }
.filters button:hover { background: var(--concrete); }
.filters button:hover svg { color: var(--ink); }
.filters button:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.filters button[aria-pressed="true"] { background: var(--night); color: #fff; }
.filters button[aria-pressed="true"] svg { color: var(--brass); }
.filters button[aria-pressed="true"] span { background: var(--brass); color: var(--night); }
.filters-wrap::before, .filters-wrap::after {
  content: ""; position: absolute; top: 1px; bottom: 1px; z-index: 1; width: 3rem;
  pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
}
.filters-wrap::before { left: 1px; border-radius: 999px 0 0 999px; background: linear-gradient(90deg, #fff 35%, rgba(255, 255, 255, 0)); }
.filters-wrap::after { right: 1px; border-radius: 0 999px 999px 0; background: linear-gradient(270deg, #fff 35%, rgba(255, 255, 255, 0)); }
.filters-wrap.fade-left::before, .filters-wrap.fade-right::after { opacity: 1; }

/* Photo grid: captions sit on the photo, category in brass above the title */
.gallery {
  --cols: 4; --gap: 0.75rem;
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: row dense;
  gap: var(--gap);
}
.gallery figure { position: relative; margin: 0; min-width: 0; }
.gallery figure[hidden], .gallery.is-collapsed[data-filter="all"] figure.is-extra { display: none; }
.gallery figure.wide { grid-column: span 2; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--concrete);
  border-radius: var(--r-m); overflow: hidden; cursor: zoom-in;
  height: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.25);
}
.gallery button:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery button:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 0.95rem 0.85rem;
  border-radius: 0 0 var(--r-m) var(--r-m); pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 18, 27, 0.9) 0%, rgba(10, 18, 27, 0.55) 48%, rgba(10, 18, 27, 0) 100%);
  color: #fff; font-size: 0.93rem; font-weight: 600; line-height: 1.3; text-wrap: balance;
}
.gallery figcaption::before { display: block; margin-bottom: 0.2rem; color: var(--brass); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.gallery [data-cat="build"] figcaption::before { content: "ADUs and builds"; }
.gallery [data-cat="kitchen"] figcaption::before { content: "Kitchen"; }
.gallery [data-cat="bath"] figcaption::before { content: "Bathroom"; }
.gallery [data-cat="living"] figcaption::before { content: "Living space"; }
.gallery [data-cat="builtin"] figcaption::before { content: "Built-ins and doors"; }
.gallery [data-cat="exterior"] figcaption::before { content: "Exterior"; }
.gallery-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.gallery-more[hidden] { display: none; }
@media (max-width: 1000px) { .gallery { --cols: 3; } }
@media (max-width: 640px) {
  .gallery { --cols: 2; --gap: 0.55rem; }
  .gallery figcaption { padding: 2rem 0.65rem 0.6rem; font-size: 0.8rem; }
  .gallery figcaption::before { display: none; }
  .filters button { padding: 0.45rem 0.8rem 0.45rem 0.7rem; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

.feature {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--night); color: var(--night-text); border-radius: var(--r-m);
}
.feature video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-s); background: #000; }
.feature h3 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); font-stretch: 70%; font-weight: 900; text-transform: uppercase; line-height: 0.95; }
.feature p { margin-top: 1rem; max-width: 34rem; }
.feature .btn { margin-top: 1.5rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature-media { max-width: 340px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(9, 18, 26, 0.9); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--r-s); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; color: #fff; }
.lightbox-bar p { font-size: 0.95rem; color: var(--night-text); }
.lightbox-nav { display: flex; gap: 0.5rem; }
.lightbox-nav button { min-width: 46px; height: 46px; padding: 0 0.9rem; border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--r-s); background: transparent; color: #fff; font: 700 0.92rem var(--text); cursor: pointer; }
.lightbox-nav button:hover { background: rgba(255,255,255,.12); }

/* ---------- Process ---------- */
.dark { background: var(--night); color: var(--night-text); }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: var(--night-text); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { padding: 1.6rem 1.5rem 1.75rem; background: var(--night-2); border-radius: var(--r-m); border-top: 3px solid var(--brass); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 1.1rem;
  font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 3.2rem; line-height: 0.9; color: var(--brass);
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.98rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.note { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem 1.75rem; align-items: start; max-width: 56rem; }
.note .avatar { width: 64px; height: 64px; font-size: 1.7rem; }
.note blockquote { margin: 0; }
.note blockquote p { font-family: var(--display); font-weight: 600; font-stretch: 95%; font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.35; color: #fff; }
.note figcaption { margin-top: 0.9rem; color: var(--brass); font-weight: 700; }
.note .btn { margin-top: 1.4rem; }
@media (max-width: 560px) { .note { grid-template-columns: 1fr; } }

/* ---------- Area ---------- */
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.area-grid > div > p { margin-top: 1.2rem; font-size: 1.12rem; color: var(--muted); max-width: 32rem; }
.area-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.area-lists h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.area-lists ul { list-style: none; margin: 0; padding: 0; }
.area-lists li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.area-map { display: block; width: 100%; height: auto; border-radius: var(--r-m); box-shadow: 0 18px 40px -24px rgba(15, 26, 36, 0.55); }
.area-map text { font-family: var(--text); }
.map-city text { font-family: var(--display); font-weight: 800; font-size: 14px; fill: #fff; paint-order: stroke; stroke: #0b141c; stroke-width: 3.5px; stroke-linejoin: round; }
.map-city .map-sub { font-family: var(--text); font-weight: 700; font-size: 11px; fill: var(--brass); }
.map-county text { font-family: var(--display); font-weight: 800; font-size: 10.5px; letter-spacing: 0.08em; fill-opacity: 0.9; }
.map-water text { font-size: 12px; }
.map-shield text { font-family: var(--display); font-weight: 800; font-size: 10px; }
.map-legend text { font-size: 12px; fill: #e9edf0; }
@media (max-width: 900px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4rem); }
.faq-grid > div > p { margin-top: 1.2rem; color: var(--muted); font-size: 1.12rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0;
  font-family: var(--display); font-weight: 800; font-stretch: 95%; font-size: 1.2rem; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; color: var(--brass-deep);
  background: linear-gradient(currentColor, currentColor) center / 14px 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; max-width: 42rem; }
.faq a { color: var(--ink); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Closing call to action ---------- */
.closer { position: relative; isolation: isolate; color: #fff; background: var(--night); }
.closer-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.closer-bg img { width: 100%; height: 100%; object-fit: cover; }
.closer-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,27,.96) 0%, rgba(10,18,27,.88) 45%, rgba(10,18,27,.55) 100%); }
.closer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.closer h2 { color: #fff; }
.closer-lede { margin-top: 1.4rem; max-width: 30rem; font-size: 1.15rem; color: rgba(255,255,255,.85); }
.ways { list-style: none; margin: 2rem 0 0; padding: 0; }
.ways li { padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.ways span { display: block; font-size: 0.85rem; color: var(--night-text); }
.ways a { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; }
.ways a:hover { color: var(--brass); }
@media (max-width: 900px) { .closer-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #09121a; color: var(--night-text); padding-block: 3.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid img { height: 64px; width: auto; }
.footer-grid p { margin-top: 1rem; max-width: 22rem; font-size: 0.95rem; }
.footer-grid h3 { font-size: 1rem; color: #fff; margin-bottom: 0.7rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 0.25rem 0; font-size: 0.97rem; }
.site-footer a { color: var(--night-text); }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(195, 202, 209, 0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; gap: 0.6rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(15, 26, 36, 0.97); border-top: 1px solid rgba(255,255,255,.12);
}
.action-bar .btn { flex: 1; min-height: 50px; }

/* ---------- Responsive header and hero ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 1.25rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .brand img { height: 50px; }
  .nav-toggle { display: grid; }
  .site-header .btn { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    background: var(--night); border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.4rem var(--gutter) 1.2rem; }
  .main-nav a { display: block; padding: 0.9rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav li:last-child a { border-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 7rem; }
  .hero .card { max-width: 560px; }
  .action-bar { display: flex; }
  body { padding-bottom: 76px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip a:first-child { grid-column: span 2; }
  .strip a:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .fields { grid-template-columns: 1fr; }
  .strip a { height: 150px; }
  .strip a:first-child { height: 200px; }
}

/* v3: SMS consent, legal pages, 404 */
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.9rem; font-size: 0.78rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 0.1rem; accent-color: var(--night); }
.consent a, .form-note a { color: inherit; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.subpage-top { position: relative; background: var(--night); min-height: calc(40px + var(--header-h)); }
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: calc(52rem + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; font-stretch: 75%; font-weight: 900; }
.legal .updated { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.legal h2 { margin-top: 2.5rem; font-size: 1.35rem; }
.legal p, .legal li { color: var(--body); line-height: 1.65; }
.legal p { margin-top: 0.9rem; }
.legal ul { margin-top: 0.7rem; padding-left: 1.2rem; }
.legal li { margin-top: 0.35rem; }
.legal a { color: var(--brass-deep); text-decoration: underline; }
.legal .callout { margin-top: 1.25rem; padding: 1rem 1.2rem; background: var(--concrete); border-left: 3px solid var(--brass); border-radius: var(--r-s); }
.legal .callout p:first-child { margin-top: 0; }
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(3rem, 8vw, 5.5rem); text-transform: uppercase; font-stretch: 75%; font-weight: 900; line-height: 0.9; }
.notfound p { margin-top: 1rem; max-width: 34rem; color: var(--body); }
.notfound .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
