/* ═══════════════════════════════════════════════════════════════════════
   TARRYTOWN ROOFING — bold poster design system
   White paper · warm gray panels · black bands · Tarrytown red
   Anton (display) · Archivo (body) · IBM Plex Mono (labels/numerals)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --paper: #ffffff;
  --smoke: #f3f1ec;
  --ink: #101112;
  --ink-2: #1a1c1e;
  --text: #26282a;
  --body: #43474b;
  --muted: #6c7176;
  --line: #e2dfd8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --red: #d21c1d;
  --red-dark: #b00c14;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --sans: 'Archivo', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --wrap: 1180px;
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 16px; z-index: 999;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.skip-link:focus { left: 0; }

.red-text { color: var(--red); }
.red-period { color: var(--red); }

/* ─── Scroll reveal (gentle, once) ────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.rv.in { opacity: 1; transform: none; }
.rv-2 { transition-delay: 0.08s; }
.rv-3 { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 16px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-dark); }
.btn-line { background: transparent; color: var(--text); border-color: currentColor; }
.btn-line:hover { color: var(--red); }
.band-ink .btn-line, .hero .btn-line { color: #fff; }
.band-ink .btn-line:hover, .hero .btn-line:hover { color: #fff; border-color: var(--red); background: rgba(210,28,29,0.15); }
.btn-wide { width: 100%; }

/* ─── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; }
.brand-glyph { width: 40px; height: 28px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: square; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--display); font-size: 17px; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; color: var(--ink);
}
.brand-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--red); white-space: nowrap; font-weight: 600;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--body);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--red); }
.header-phone {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  text-decoration: none; color: #fff; background: var(--ink); padding: 11px 18px;
  transition: background 0.15s;
}
.header-phone:hover { background: var(--red); }
.phone-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse 2.4s infinite; }
.header-phone:hover .phone-dot { background: #fff; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 0.2s, top 0.2s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + 54px) 0 0; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #d8dadc;
  border: 1px solid var(--line-dark); padding: 8px 14px;
}
.chip b { color: var(--red); font-weight: 600; }
.hero-h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 8.6vw, 128px);
  line-height: 0.98; letter-spacing: 0.005em; text-transform: uppercase;
  color: #fff; max-width: 12ch;
}
.hero-under {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; padding: 38px 0 54px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-sub { color: #b9bdc1; font-size: 17px; line-height: 1.7; max-width: 44ch; text-align: right; }

.hero-photo { position: relative; }
.hero-photo img {
  display: block; width: 100%; height: min(62vh, 620px); object-fit: cover;
}
.hero-photo figcaption {
  position: absolute; left: 28px; bottom: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: rgba(16,17,18,0.82); padding: 9px 14px;
}
.hero-photo figcaption b { color: var(--red); font-weight: 600; }

/* ─── Sections ────────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-smoke { background: var(--smoke); }
.band-ink { background: var(--ink); color: #fff; }
.section-head { margin-bottom: 54px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--red); }
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px); letter-spacing: 0.01em;
  text-transform: uppercase; line-height: 1.04; color: var(--ink);
  max-width: 24ch;
}
.band-ink .section-title { color: #fff; }
.section-sub { color: var(--body); margin-top: 18px; max-width: 60ch; font-size: 17px; }
.band-ink .section-sub { color: #b9bdc1; }

/* ─── Services grid ───────────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,17,18,0.1); }
.svc-card img { width: 100%; height: 190px; object-fit: cover; }
.svc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-body h3 {
  font-family: var(--display); font-weight: 400; font-size: 21px;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink);
}
.svc-body p { color: var(--body); font-size: 15px; flex: 1; }
.svc-go {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); margin-top: 6px;
}
.svc-card:hover .svc-go::after { content: ' →'; }

/* ─── Field tools ─────────────────────────────────────────────────────── */
.tools-tabs { display: flex; border: 1px solid var(--line); background: var(--paper); overflow-x: auto; }
.tool-tab {
  flex: 1; padding: 18px 14px; background: transparent; border: none;
  border-left: 1px solid var(--line); cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  color: var(--muted); transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.tool-tab:first-child { border-left: none; }
.tool-tab:hover { color: var(--ink); }
.tool-tab.is-active { color: var(--ink); background: var(--smoke); box-shadow: inset 0 -3px 0 var(--red); }

.tool-panel {
  display: none; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0;
  border: 1px solid var(--line); border-top: none; background: var(--paper);
}
.tool-panel.is-active { display: grid; }
.tool-inputs { padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  background: var(--paper); border: 1px solid #cfccc4;
  color: var(--ink); font-family: var(--sans); font-size: 16px;
  padding: 13px 14px; outline: none; border-radius: 0;
  transition: border-color 0.15s; width: 100%; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field input.input-error { border-color: var(--red); background: rgba(210, 28, 29, 0.05); }
.field-note { font-size: 13.5px; color: var(--muted); }

/* dark readout panel — the "printout" */
.tool-readout { background: var(--ink); color: #e8eaec; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 380px; }
.readout-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: #9ba0a5;
}
.readout-id { color: var(--red); }
.readout-body { flex: 1; padding: 30px 24px; position: relative; }
.readout-body::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(232,232,230,0.02) 3px 4px);
}
.readout-idle { font-family: var(--mono); font-size: 13px; color: #8b9095; }
.readout-figure { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: 0.02em; margin: 6px 0 4px; color: #fff; }
.readout-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: #9ba0a5; padding: 7px 0; border-bottom: 1px dashed var(--line-dark); display: flex; justify-content: space-between; gap: 12px; }
.readout-line strong { color: #e8eaec; font-weight: 500; }
.readout-note { font-size: 13.5px; color: #9ba0a5; margin-top: 14px; }
.readout-note a { color: var(--red) !important; }
.readout-flag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--red); text-transform: uppercase; margin-bottom: 10px; }

.is-locked { filter: blur(6px); pointer-events: none; user-select: none; }

.lead-gate { margin-top: 20px; border: 1px solid var(--red); padding: 20px; background: rgba(210,28,29,0.07); }
.lead-gate h4 { font-family: var(--sans); font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 4px; }
.lead-gate p { font-size: 13.5px; color: #b9bdc1; margin-bottom: 14px; }
.lead-gate .gate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.lead-gate input {
  background: var(--ink-2); border: 1px solid var(--line-dark); color: #fff;
  font-family: var(--mono); font-size: 14px; padding: 11px 12px; outline: none; border-radius: 0; width: 100%;
}
.lead-gate input:focus { border-color: var(--red); }
.lead-gate input.gate-email { grid-column: 1 / -1; }
.gate-status { font-family: var(--mono); font-size: 12px; margin-top: 10px; color: #9ba0a5; min-height: 18px; }
.gate-status.err { color: #ff6b6b; }

.storm-row {
  display: grid; grid-template-columns: 110px 1fr 90px; gap: 14px;
  font-family: var(--mono); font-size: 13px;
  padding: 12px 0; border-bottom: 1px dashed var(--line-dark);
}
.storm-row time { color: #8b9095; }
.storm-row .storm-mag { text-align: right; color: var(--red); font-weight: 600; }
.storm-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #8b9095; margin-bottom: 16px; }

.quiz-q { border-bottom: 1px dashed var(--line); padding-bottom: 16px; }
.quiz-q p { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.quiz-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.quiz-opt {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  background: var(--paper); color: var(--body); border: 1px solid #cfccc4;
  padding: 8px 14px; cursor: pointer; transition: all 0.12s;
}
.quiz-opt:hover { color: var(--ink); border-color: var(--ink); }
.quiz-opt.sel { color: #fff; background: var(--red); border-color: var(--red); }

.score-meter { height: 10px; border: 1px solid var(--line-dark); margin: 14px 0 6px; position: relative; }
.score-fill { height: 100%; background: var(--red); transition: width 0.6s; }
.score-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: #8b9095; }

/* ─── Why us ──────────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item { background: var(--paper); border: 1px solid var(--line); padding: 30px 28px; }
.why-item h3 {
  font-family: var(--display); font-weight: 400; font-size: 22px;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.why-item h3 span { color: var(--red); }
.why-item p { color: var(--body); font-size: 15.5px; }

/* ─── Stats band ──────────────────────────────────────────────────────── */
.stats-strip { background: var(--ink); border: none; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 64px 20px; text-align: center; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: none; }
.stat-num {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px); letter-spacing: 0.02em; color: #fff; margin-bottom: 8px;
}
.stat-num b { color: var(--red); font-weight: 400; }
.stat-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: #8b9095;
}

/* ─── Process steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { border-top: 3px solid var(--ink); padding-top: 18px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-size: 44px; color: var(--red); display: block; margin-bottom: 8px;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--body); font-size: 15px; }

/* ─── Quotes ──────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 32px 30px; }
.quote p { font-size: 17.5px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.quote footer { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.quote cite { font-style: normal; color: var(--ink); font-weight: 600; }
.certs-row {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); line-height: 2.3;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.certs-row span { color: var(--red); margin: 0 10px; }

/* ─── Programs ────────────────────────────────────────────────────────── */
.programs-list { list-style: none; border-top: 1px solid var(--line); }
.programs-list li {
  display: grid; grid-template-columns: 150px 300px 1fr; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.programs-list code { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--red); }
.programs-list strong { font-weight: 700; font-size: 17px; color: var(--ink); }
.programs-list span { color: var(--body); font-size: 15px; }

/* ─── Metros ──────────────────────────────────────────────────────────── */
.metros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.metro { padding: 38px 32px; border-left: 1px solid var(--line); }
.metro:first-child { border-left: none; }
.metro h3 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
.metro h3 a { text-decoration: none; }
.metro h3 a:hover { color: var(--red); }
.metro-radius { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; color: var(--red); margin-bottom: 20px; text-transform: uppercase; }
.metro ul { list-style: none; }
.metro li { padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--body); font-size: 15px; }
.metro li a { text-decoration: none; color: var(--text); font-weight: 600; }
.metro li a:hover { color: var(--red); }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); background: transparent; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0;
  font-weight: 700; font-size: 17px; color: var(--ink);
  position: relative; transition: color 0.15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--red);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--red); }
.faq-body { padding: 0 0 26px; color: var(--body); max-width: 70ch; }

/* ─── Field notes ─────────────────────────────────────────────────────── */
.notes-list { list-style: none; border-top: 1px solid var(--line); }
.notes-list a {
  display: grid; grid-template-columns: 130px 1fr 40px; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background 0.15s;
}
.notes-list a:hover { background: rgba(16,17,18,0.025); }
.notes-list time { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.note-title { font-weight: 700; font-size: 18px; color: var(--ink); transition: color 0.15s; }
.notes-list a:hover .note-title { color: var(--red); }
.note-arrow { font-family: var(--mono); color: var(--red); text-align: right; opacity: 0; transform: translateX(-6px); transition: opacity 0.15s, transform 0.15s; }
.notes-list a:hover .note-arrow { opacity: 1; transform: none; }

/* ─── Contact ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.band-ink .eyebrow { color: var(--red); }
.nap { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.nap > div { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.nap dt { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #8b9095; padding-top: 3px; }
.nap dd { color: #e8eaec; }
.nap dd a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.nap dd a:hover { border-bottom-color: var(--red); }

.contact-form { display: flex; flex-direction: column; gap: 18px; background: var(--paper); padding: 38px 34px; }
.contact-form .field input, .contact-form .field select, .contact-form .field textarea { background: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-fine { font-size: 12.5px; color: var(--muted); }

/* Progressive disclosure: the form asks three fields; the rest are opt-in.
   <details> so it still opens with JS off. */
.field-more > summary {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 9px;
  min-height: 44px; /* tap target */
  user-select: none;
}
.field-more > summary::-webkit-details-marker { display: none; }
.field-more > summary::before {
  content: '+'; font-size: 16px; line-height: 1;
  width: 20px; height: 20px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink);
}
.field-more[open] > summary::before { content: '–'; }
.field-more > summary:hover { color: var(--ink); }
.field-more > summary:hover::before { border-color: var(--red); color: var(--red); }
.field-more > summary em {
  font-family: var(--sans); font-style: normal; font-size: 13px;
  text-transform: none; letter-spacing: 0; opacity: .85;
}
/* Scoped to [open] so the closed state keeps the UA's own hiding — an
   unconditional display here overrides it and leaves a laid-out box. */
.field-more[open] > .field-more-body {
  display: flex; flex-direction: column; gap: 18px; padding-top: 18px;
}
.form-status { font-family: var(--mono); font-size: 13px; min-height: 20px; }
.form-status.ok { color: #1e8f4a; }
.form-status.err { color: var(--red); }

/* ─── Inspection modal ────────────────────────────────────────────────── */
.lead-modal-back {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(16, 17, 18, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity 0.2s;
  overflow-y: auto;
}
.lead-modal-back.open { opacity: 1; }
.lead-modal-back[hidden] { display: none; }
.lead-modal {
  background: var(--paper); width: 100%; max-width: 560px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(14px); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: auto;
}
.lead-modal-back.open .lead-modal { transform: none; }
.lead-modal-head {
  background: var(--ink); color: #fff; padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.lead-modal-head h2 {
  font-family: var(--display); font-weight: 400; font-size: 24px;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; color: #fff;
}
.lead-modal-ctx { color: #b9bdc1; font-size: 14px; margin-top: 7px; max-width: 42ch; }
.lead-modal-x {
  background: none; border: none; color: #8b9095; font-size: 30px; line-height: 1;
  cursor: pointer; padding: 0 2px; flex: none; transition: color 0.15s;
}
.lead-modal-x:hover { color: #fff; }
.lead-modal-form { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.lead-modal-form .field > span em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; }
.lead-modal-form .form-fine { text-align: center; }
.lead-modal-form .form-fine a { color: var(--red); font-weight: 700; text-decoration: none; }
.lead-modal-form .form-status { text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .lead-modal { transform: none; }
}
@media (max-width: 560px) {
  .lead-modal-head { padding: 18px 20px; }
  .lead-modal-head h2 { font-size: 20px; }
  .lead-modal-form { padding: 20px; }
}

/* ─── Persistent mobile call bar (CRO) ──────────────────────── */
/* Hidden on desktop; revealed under 780px. Storm callers are the best lead. */
.callbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:2147482000;border-top:1px solid rgba(255,255,255,.14)}
.callbar a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:10px 12px;
  text-decoration:none;font-family:var(--sans);font-weight:700;font-size:15.5px}
.callbar .cb-call{background:var(--red);color:#fff}
.callbar .cb-call:active{background:var(--red-dark)}
.callbar .cb-book{background:var(--ink);color:#fff}
.callbar svg{width:17px;height:17px;flex:none}

/* ─── Mid-page conversion prompts (CRO) ────────────────────── */
.cta-strip{display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap;
  margin:46px 0 0;padding:26px 30px;background:var(--ink);color:#fff}
.cta-strip p{margin:0}
.cta-strip .cs-head{font-family:var(--display);font-weight:400;font-size:22px;text-transform:uppercase;
  letter-spacing:.02em;color:#fff;line-height:1.1}
.cta-strip .cs-sub{color:#b9bdc1;font-size:14.5px;margin-top:5px}
.cta-strip .cs-actions{display:flex;gap:11px;flex-wrap:wrap}
.cta-strip .btn-line{color:#fff;border-color:rgba(255,255,255,.55)}
.cta-strip .btn-line:hover{border-color:#fff;background:rgba(255,255,255,.1)}
@media (max-width:620px){
  .cta-strip{padding:22px}
  .cta-strip .cs-actions{width:100%}
  .cta-strip .cs-actions .btn{flex:1;text-align:center}
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #b9bdc1; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.3fr 1.3fr; gap: 44px; padding: 72px 28px; max-width: var(--wrap); margin: 0 auto; }
.footer-brand .brand-glyph { width: 46px; height: 32px; margin-bottom: 16px; stroke: #fff; }
.footer-word { font-family: var(--display); font-size: 19px; letter-spacing: 0.06em; color: #fff; margin-bottom: 12px; }
.footer-desc { color: #8b9095; font-size: 14.5px; max-width: 34ch; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: #b9bdc1; font-size: 14.5px; text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: #8b9095; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: #8b9095; text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.footer-dwg { text-transform: uppercase; }

/* ─── Chat widget (shared/automation.js) — retheme ────────────────────── */
.pp-fab-stack { font-family: var(--sans) !important; }
.pp-fab { background: var(--red) !important; color: #fff !important; border-radius: 0 !important; font-family: var(--sans) !important; font-weight: 700 !important; font-size: 14px !important; box-shadow: 0 8px 24px rgba(16,17,18,0.25) !important; border: none !important; }
.pp-modal { background: var(--paper) !important; border-radius: 0 !important; border: 1px solid var(--line); }
.pp-modal-head { background: var(--ink) !important; border-bottom: none !important; }
.pp-modal-head h3 { color: #fff !important; font-family: var(--sans) !important; font-weight: 700 !important; font-size: 14px !important; }
.pp-x { color: #b9bdc1 !important; }
.pp-chat-log { background: var(--smoke) !important; }
.pp-msg { border-radius: 0 !important; font-family: var(--sans) !important; }
.pp-msg.bot { background: var(--paper) !important; border: 1px solid var(--line) !important; color: var(--text) !important; }
.pp-msg.user { background: var(--red) !important; color: #fff !important; }
.pp-msg.typing { color: var(--muted) !important; }
.pp-chat-form { background: var(--paper) !important; border-top: 1px solid var(--line) !important; }
.pp-chat-form input { background: var(--paper) !important; border: 1px solid #cfccc4 !important; border-radius: 0 !important; color: var(--ink) !important; font-family: var(--sans) !important; }
.pp-chat-form button { background: var(--red) !important; border-radius: 0 !important; font-family: var(--sans) !important; font-weight: 700 !important; }
.pp-toast { background: var(--ink) !important; color: #fff !important; border: none; border-radius: 0 !important; font-family: var(--sans) !important; }

/* ─── Inner pages (services / areas / blog) ───────────────────────────── */
.page-main { padding-top: calc(var(--header-h) + 64px); }
.page-head { padding: 40px 0 56px; }
.breadcrumb { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--red); margin: 0 8px; }
.page-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 6vw, 76px); letter-spacing: 0.01em;
  text-transform: uppercase; line-height: 1.02; color: var(--ink); max-width: 20ch;
}
.page-meta { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.page-meta b { color: var(--red); font-weight: 600; }

.prose { max-width: 720px; padding-bottom: 90px; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-family: var(--display); font-weight: 400; font-size: 27px;
  letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.2;
  color: var(--ink); margin-top: 2em; padding-top: 0.9em; border-top: 1px solid var(--line);
}
.prose h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 1.8em; }
.prose p { color: var(--body); }
.prose li { color: var(--body); margin: 0.5em 0 0.5em 1.2em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); }
.prose a:hover { color: var(--red); }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 22px; font-size: 18px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose table th { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.prose table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--body); }

.page-cta {
  background: var(--ink); color: #fff; padding: 44px 40px; margin: 70px 0 100px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.page-cta h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; }
.page-cta p { color: #b9bdc1; margin-top: 8px; font-size: 15px; }
.page-cta .btn-line { color: #fff; }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .tool-panel, .tool-panel.is-active { grid-template-columns: 1fr; }
  .tool-readout { border-left: none; border-top: 1px solid var(--line); }
  .metros { grid-template-columns: 1fr; }
  .metro { border-left: none; border-top: 1px solid var(--line); }
  .metro:first-child { border-top: none; }
  .programs-list li { grid-template-columns: 120px 1fr; }
  .programs-list span { grid-column: 2; }
  .hero-under { flex-direction: column; align-items: flex-start; }
  .hero-sub { text-align: left; }
}

@media (max-width: 780px) {
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 10px 28px 22px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .brand-tag { display: none; }

  /* CRO: the phone must never disappear on a phone. But the full number
     doesn't fit beside the nav toggle — so on mobile the header shows a
     compact icon-only call button, and the persistent bottom bar below
     carries the full "Call now". Storm callers are the best lead here. */
  .header-inner { gap: 12px; }
  .header-phone {
    padding: 0; width: 44px; height: 44px; flex: none;
    align-items: center; justify-content: center; gap: 0;
  }
  .header-phone span:not(.phone-dot) { display: none; }
  .header-phone .phone-dot { width: 0; height: 0; }
  .header-phone::after {
    content: ''; width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  /* CRO: persistent call bar so a lead is always one tap away on a long page */
  .callbar { display: flex; }
  body { padding-bottom: 62px; }
  /* keep the chat launcher clear of the bar */
  .pp-fab-stack { bottom: 74px !important; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-photo img { height: 46vh; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 40px 16px; border-top: 1px solid var(--line-dark); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(3) { border-left: none; }

  .section { padding: 72px 0; }
  .notes-list a { grid-template-columns: 1fr 24px; }
  .notes-list time { grid-column: 1 / -1; margin-bottom: -14px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 52px 28px; }
  .lead-gate .gate-fields { grid-template-columns: 1fr; }
}
