/* ============================================================
   Precise Roofing Pros — "Caldera" (forge fire on warm limestone)
   Palette: original site colors only.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ember: #fd7e03;
  --ember-deep: #e47103;
  --char: #190d00;
  --timber: #4c2601;
  --bark: #7e3f02;
  --slate: #585b5e;
  --limestone: #f4f4f4;
  --pumice: #efefef;
  --chalk: #ffffff;
  --error: #ab0a0a;

  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-quote: 'Playfair Display', Georgia, serif;

  --container: 1200px;
  --radius-card: 24px;
  --radius-pill: 999px;

  --dotted: 1.5px dotted rgba(25, 13, 0, 0.25);

  --halftone: radial-gradient(circle, var(--ember) 1.6px, transparent 1.7px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--char);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

ul[class], ol[class] { list-style: none; }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--ember); color: var(--char); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--char);
  color: var(--chalk);
  padding: 12px 24px;
  border-radius: 0 0 12px 0;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-body);
  text-wrap: balance;
}

h1, .h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
}

h2, .h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h3, .h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

h4, .h4 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

p { max-width: 62ch; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--slate);
}

/* Eyebrow: roof-pitch mark + spaced caps */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bark);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 10px;
  background: var(--ember);
  clip-path: polygon(50% 0, 100% 100%, 78% 100%, 50% 32%, 22% 100%, 0 100%);
}
.eyebrow--light { color: var(--pumice); }

.accent { color: var(--ember); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: scale(0.97); }

.btn--ember {
  background: var(--ember);
  color: var(--char);
}
.btn--ember:hover { background: var(--ember-deep); }

.btn--outline {
  background: transparent;
  color: var(--char);
  box-shadow: inset 0 0 0 2px var(--char);
}
.btn--outline:hover { background: var(--char); color: var(--chalk); }

.btn--outline-light {
  background: transparent;
  color: var(--chalk);
  box-shadow: inset 0 0 0 2px var(--chalk);
}
.btn--outline-light:hover { background: var(--chalk); color: var(--char); }

.btn[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn .btn-arrow { transition: transform 0.18s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--char);
  color: var(--pumice);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
}
.promo-bar a { color: var(--ember); text-decoration: none; }
.promo-bar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(25, 13, 0, 0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo svg { display: block; }
.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-word .lw-top {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--char);
}
.logo-word .lw-bottom {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--slate);
}
.site-footer .logo-word .lw-top { color: var(--chalk); }
.site-footer .logo-word .lw-bottom { color: rgba(244, 244, 244, 0.6); }

/* Nav pill (Caldera signature) */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--chalk);
  border-radius: var(--radius-pill);
  padding: 6px;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--char);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.site-nav a:hover { background: var(--pumice); }
.site-nav a[aria-current="page"] { background: var(--char); color: var(--chalk); }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 12px 24px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--char);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section--tight { padding-block: 72px; }

.section-head { margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { margin-top: 16px; }

.section--dark {
  background: var(--char);
  color: var(--pumice);
}
.section--dark .lede { color: rgba(244, 244, 244, 0.75); }

.section--timber {
  background: var(--timber);
  color: var(--pumice);
}

.dotted-divider {
  border: none;
  border-top: var(--dotted);
}

/* ---------- Hero ---------- */
.hero { padding-block: 64px 0; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
}

.hero-text .eyebrow { margin-bottom: 18px; }
.hero-text h1 { margin-bottom: 22px; }
.hero-text .lede { margin-bottom: 28px; }

.hero-points { display: grid; gap: 10px; margin-bottom: 8px; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.check-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ember);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check-mark svg { width: 12px; height: 12px; }

/* Hero photo band */
.hero-photo-band {
  margin-top: 56px;
  position: relative;
}
.hero-photo-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}
.hero-photo-frame img {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 13, 0, 0) 55%, rgba(25, 13, 0, 0.55) 100%);
}

/* Halftone signature blocks */
.halftone {
  position: absolute;
  background-image: var(--halftone);
  background-size: 12px 12px;
  pointer-events: none;
}
.hero-photo-band .halftone {
  width: 190px;
  height: 120px;
  top: -34px;
  right: -14px;
  z-index: 2;
  -webkit-mask-image: linear-gradient(200deg, #000 45%, transparent 82%);
  mask-image: linear-gradient(200deg, #000 45%, transparent 82%);
}

.hero-badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  color: var(--chalk);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-badge .stars { color: var(--ember); letter-spacing: 2px; font-size: 1.05rem; }
.hero-badge .score {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.hero-badge .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.85;
}

/* ---------- Form card ---------- */
.form-card {
  background: var(--chalk);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.form-card .halftone {
  width: 130px;
  height: 90px;
  top: -20px;
  right: -20px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(220deg, #000 40%, transparent 80%);
  mask-image: linear-gradient(220deg, #000 40%, transparent 80%);
}
.form-card h2, .form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.form-card > p {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 22px;
}
.form-card form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bark);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--char);
  background: var(--limestone);
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 14px 20px;
  width: 100%;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field input { border-radius: var(--radius-pill); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--chalk);
}
.field textarea { min-height: 120px; resize: vertical; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--slate);
  text-align: center;
}

/* Honeypot — visually removed, still in DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--timber); }

/* Dark-section form variant */
.section--dark .form-card,
.section--timber .form-card { background: rgba(255, 255, 255, 0.06); }
.section--dark .form-card h3,
.section--timber .form-card h3 { color: var(--chalk); }
.section--dark .field input,
.section--timber .field input {
  background: rgba(255, 255, 255, 0.1);
  color: var(--chalk);
  border-color: rgba(255, 255, 255, 0.25);
}
.section--dark .field input::placeholder,
.section--timber .field input::placeholder { color: rgba(244, 244, 244, 0.55); }
.section--dark .field label,
.section--timber .field label { color: rgba(244, 244, 244, 0.7); }
.section--dark .form-status.is-success,
.section--timber .form-status.is-success { color: var(--ember); }
.section--dark .form-status.is-error,
.section--timber .form-status.is-error { color: #ffb4b4; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--timber); color: var(--pumice); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 56px;
}
.stat {
  text-align: center;
  border-left: var(--dotted);
  border-left-color: rgba(244, 244, 244, 0.25);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: var(--ember);
  line-height: 1;
  display: block;
}
.stat .num sub, .stat .num .unit { font-size: 0.5em; font-weight: 800; }
.stat .stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 244, 244, 0.75);
}

/* ---------- Cards ---------- */
.card {
  background: var(--chalk);
  border-radius: var(--radius-card);
  padding: 36px;
  transition: transform 0.22s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; color: var(--slate); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--limestone);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--ember);
}
.card .card-icon svg { width: 30px; height: 30px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--char);
}
.card-link::after { content: '→'; color: var(--ember); transition: transform 0.18s ease; }
.card-link:hover::after { transform: translateX(4px); }

/* Feature card (ember) */
.card--ember {
  background: var(--ember);
  color: var(--char);
}
.card--ember p { color: rgba(25, 13, 0, 0.8); }
.card--ember .card-icon { background: rgba(255, 255, 255, 0.35); color: var(--char); }

/* ---------- Checklist (why us) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.why-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: var(--dotted);
}

/* ---------- Before / After ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ba-item {
  background: var(--chalk);
  border-radius: var(--radius-card);
  padding: 16px;
}
.ba-labels {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.ba-labels .before { color: var(--slate); }
.ba-labels .after { color: var(--ember); }
.ba-image {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.ba-image img { width: 100%; object-fit: cover; }
.ba-image::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--chalk);
  opacity: 0.9;
}
.ba-caption {
  padding: 14px 8px 6px;
  font-size: 0.88rem;
  color: var(--slate);
}
.ba-caption strong { color: var(--char); }

/* ---------- Materials tabs ---------- */
.materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}
.materials-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}
.materials-photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tab-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--chalk);
  color: var(--char);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.tab-btn:hover { background: var(--pumice); }
.tab-btn[aria-selected="true"] { background: var(--char); color: var(--chalk); }

.tab-panel h3 { margin-bottom: 12px; }
.tab-panel p { color: var(--slate); margin-bottom: 8px; }
.tab-panel .lifespan {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--char);
  background: var(--pumice);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}
.tab-panel[hidden] { display: none; }

/* ---------- Comparison table ---------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--chalk);
  padding: 8px;
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: var(--dotted);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table thead th {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.compare-table tbody th {
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.compare-table .yes { color: var(--ember); font-weight: 900; }
.compare-table .no { color: var(--slate); opacity: 0.55; }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--chalk);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review-card .stars { color: var(--ember); letter-spacing: 3px; }
.review-card blockquote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--char);
  flex: 1;
}
.review-card blockquote::before { content: '\201C'; color: var(--ember); font-size: 1.6em; line-height: 0; margin-right: 2px; }
.review-card cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.review-card cite::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--ember);
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- Service area / marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 36s linear infinite;
  padding-block: 6px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.town-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pumice);
  border: 1.5px solid rgba(244, 244, 244, 0.3);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  white-space: nowrap;
}
.town-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
}

.town-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
}
.town-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: var(--dotted);
}
.town-grid li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.faq-item {
  background: var(--chalk);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  text-align: left;
  color: var(--char);
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 28px;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--limestone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.2s ease;
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--char);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq-q .faq-icon::before { width: 14px; height: 2.5px; }
.faq-q .faq-icon::after { width: 2.5px; height: 14px; }
.faq-item.is-open .faq-q .faq-icon { background: var(--ember); }
.faq-item.is-open .faq-q .faq-icon::after { transform: rotate(90deg) scaleY(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 28px 26px;
  color: var(--slate);
  font-size: 0.96rem;
  max-width: none;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ember);
  color: var(--char);
  border-radius: var(--radius-card);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 32px;
  align-items: center;
}
.cta-band .halftone {
  width: 260px;
  height: 100%;
  top: 0;
  right: 0;
  background-image: radial-gradient(circle, rgba(25, 13, 0, 0.35) 1.6px, transparent 1.7px);
  background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(250deg, #000 30%, transparent 75%);
  mask-image: linear-gradient(250deg, #000 30%, transparent 75%);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { font-weight: 600; color: rgba(25, 13, 0, 0.8); }
.cta-band .btn--dark {
  background: var(--char);
  color: var(--chalk);
  position: relative;
  z-index: 1;
}
.cta-band .btn--dark:hover { background: var(--timber); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-block: 72px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lede { max-width: 58ch; }
.page-hero .halftone {
  width: 300px;
  height: 170px;
  top: 40px;
  right: -40px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(230deg, #000 35%, transparent 78%);
  mask-image: linear-gradient(230deg, #000 35%, transparent 78%);
}

/* ---------- Service detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 28px;
  padding-block: 44px;
  border-top: var(--dotted);
}
.service-row:last-of-type { border-bottom: var(--dotted); }
.service-row .service-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--chalk);
  color: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row .service-icon svg { width: 38px; height: 38px; }
.service-row h3 { margin-bottom: 10px; }
.service-row p { color: var(--slate); margin-bottom: 10px; }
.service-row ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
}
.service-row ul li { display: flex; align-items: center; gap: 10px; }

/* ---------- Process (about) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  background: var(--chalk);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  counter-increment: step;
  position: relative;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; color: var(--slate); }

/* ---------- Values (about) ---------- */
.value-list { display: grid; gap: 0; }
.value-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding-block: 20px;
  border-bottom: var(--dotted);
}
.value-list h4 { margin-bottom: 4px; }
.value-list p { font-size: 0.92rem; color: var(--slate); }

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.about-split .about-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}
.about-split .about-photo img { width: 100%; object-fit: cover; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.contact-aside { display: grid; gap: 32px; }
.contact-aside .aside-block h3 { margin-bottom: 12px; }
.contact-aside .aside-block p { color: var(--slate); font-size: 0.95rem; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
}
.legal-body p { margin-bottom: 14px; color: var(--slate); max-width: none; }
.legal-body a { color: var(--bark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--char);
  color: var(--pumice);
  padding-block: 64px 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-grid .footer-about p {
  margin-top: 18px;
  font-size: 0.92rem;
  color: rgba(244, 244, 244, 0.65);
  max-width: 40ch;
}
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ember);
  margin-bottom: 18px;
}
.footer-links { display: grid; gap: 10px; font-size: 0.95rem; }
.footer-links a {
  color: rgba(244, 244, 244, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--ember); }
.footer-bottom {
  border-top: 1.5px dotted rgba(244, 244, 244, 0.2);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(244, 244, 244, 0.55);
}
.footer-bottom a { color: rgba(244, 244, 244, 0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--ember); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

/* Hero load sequence */
@keyframes rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
.hero .hero-text > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .hero-text > *:nth-child(2) { animation-delay: 0.08s; }
.hero .hero-text > *:nth-child(3) { animation-delay: 0.16s; }
.hero .hero-text > *:nth-child(4) { animation-delay: 0.24s; }
.hero .form-card { animation: rise 0.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .hero-photo-band { animation: rise 0.9s 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .form-card { max-width: 560px; }
  .card-grid, .review-grid, .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .stat:nth-child(3) { border-left: none; }
  .materials-layout, .about-split, .contact-layout { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-card);
    padding: 12px;
    box-shadow: 0 18px 40px rgba(25, 13, 0, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav a { padding: 13px 18px; text-align: center; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .section--tight { padding-block: 48px; }
  .card-grid, .review-grid, .ba-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .process-grid { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row .service-icon { width: 60px; height: 60px; }
  .service-row ul { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; }
  .hero { padding-top: 40px; }
  .hero-badge { left: 18px; bottom: 18px; }
  .hero-badge .score { font-size: 1.5rem; }
}
