/* LT Chadwick Roofing & Externals
   Design system, per docs/design-standard-picsel.md and PLAN.md.

   The five decisions for this client:
   1. Type: Archivo (wide, 800) for headings, Source Serif 4 for body.
   2. Colour: navy deep ground, orange as the one accent. PROVISIONAL until
      matched against Logan's logo file.
   3. Brand shape: a shallow roof pitch. One angle, set by --pitch
      (tan of the angle: 0.16 is about 9 degrees), used on images,
      section tops and the favicon. Rise at the ridge = pitch x half width.
   4. Photo grade: soft grade plus 8% navy soft-light overlay, light grain.
   5. Signature move: documentary captions under every job photo.
   Rule break: the garage pull quote set huge over the edge of the photo. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
/* Metric-matched fallbacks, so the swap doesn't shift the layout */
@font-face {
  font-family: "Archivo-fallback";
  src: local("Arial Black"), local("Arial");
  size-adjust: 96%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Serif-fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 97%;
  ascent-override: 98%;
  descent-override: 32%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  /* Spacing scale, §1.1. Nothing outside this list. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 7.5rem;

  /* Type scale, §3.1 */
  --step--1: clamp(0.8854rem, 0.8601rem + 0.1123vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1.0136rem + 0.2174vw, 1.1875rem);
  --step-1: clamp(1.275rem, 1.1931rem + 0.3641vw, 1.4844rem);
  --step-2: clamp(1.53rem, 1.4026rem + 0.566vw, 1.8555rem);
  --step-3: clamp(1.836rem, 1.6469rem + 0.8406vw, 2.3193rem);
  --step-4: clamp(2.2032rem, 1.9309rem + 1.2104vw, 2.8992rem);
  --step-5: clamp(2.6438rem, 2.2603rem + 1.7046vw, 3.624rem);

  --font-display: "Archivo", "Archivo-fallback", "Arial", sans-serif;
  --font-body: "Source Serif 4", "Serif-fallback", Georgia, serif;

  /* Colour, matched to Logan's logo (navy #112b3a, burnt orange #c55b31,
     cream ground). Contrast measured: ink on ground 13.9:1, muted on ground
     6.3:1, link on ground 5.5:1 (5.0:1 on panels), white on the button 5.0:1,
     link orange on navy 5.2:1, mist on navy 9.3:1. The logo orange itself
     only reaches 4.3:1 with white text, so the button fill is a step darker. */
  --ground: #f8f2e8;        /* page, a lighter take on the logo cream */
  --ground-2: #f0e8db;      /* subtle panels */
  --ground-3: #e6ddce;      /* placeholder fills */
  --rule: #d3c8b6;          /* hairline rules */
  --ink: #18262f;           /* body text */
  --muted: #545a5e;         /* secondary text */
  --navy: #112b3a;          /* logo navy: deep ground, headings */
  --navy-2: #1b3b4e;        /* raised surface on navy */
  --mist: #c4d0d6;          /* secondary text on navy */
  --orange: #b5512b;        /* the solid: button fill */
  --orange-hover: #a3461f;
  --orange-logo: #c55b31;   /* the logo orange, for the mark and decoration only */
  --orange-ink: #a3461f;    /* links and focus ring on light grounds */
  --orange-soft: #e0814f;   /* links and focus on navy */
  --on-orange: #fffaf3;     /* button text */
  --error: #a12a1c;

  --radius: 2px;
  --pitch: 0.16;            /* tan of the one roof angle, about 9 degrees */

  --container-prose: 42rem;
  --container-content: 64rem;
  --container-wide: 80rem;

  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;

  --shadow-color: 203deg 55% 12%;
  --shadow-md:
    1px 2px 2px hsl(var(--shadow-color) / 0.12),
    2px 4px 4px hsl(var(--shadow-color) / 0.12),
    3px 6px 6px hsl(var(--shadow-color) / 0.12);

  --callbar-h: 4.25rem;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: var(--space-9);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  padding-bottom: var(--callbar-h); /* room for the mobile call bar from first paint */
}
@media (max-width: 640px) { body { line-height: 1.5; } }
@media (min-width: 840px) { body { padding-bottom: 0; } }

/* Grain, §9.4 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/assets/img/noise.png");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}
@media (prefers-reduced-transparency: reduce) { body::after { display: none; } }

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
h2 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.025em; max-width: 20ch; }
h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.015em; font-stretch: 110%; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-block-start: 1.2em; }
li { text-wrap: pretty; }

a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2px; } }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--orange-ink);
  outline-offset: 2px;
}
:where(a, button, input, select, textarea, summary) { scroll-margin-block: 6rem; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -10rem;
  background: var(--navy);
  color: var(--ground);
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* Visible placeholder for facts still to confirm with Logan */
.confirm {
  background: #fff1b8;
  color: #4a3a00;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
  padding: 0 0.25em;
  border-radius: var(--radius);
}

/* ---------- Layout ---------- */

.wrap {
  width: min(var(--container-wide), 100% - 2rem);
  margin-inline: auto;
}
.wrap--content { width: min(var(--container-content), 100% - 2rem); }
.wrap--prose { width: min(var(--container-prose), 100% - 2rem); }

.section { padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }
.section--navy { background: var(--navy); color: var(--ground); }
.section--navy h2, .section--navy h3 { color: var(--ground); }
.section--navy a:not(.btn) { color: var(--orange-soft); }
.section--navy :focus-visible { outline-color: var(--orange-soft); }
.section--panel { background: var(--ground-2); }

/* Roof pitch on top of a section. Height is a fixed fraction of width,
   so the angle matches the images at every screen size. */
.roofline { position: relative; }
.roofline::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% - 1px);
  aspect-ratio: 1 / calc(var(--pitch) / 2);
  background: inherit;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  pointer-events: none;
}

.prose { max-width: 68ch; }
.prose > * + * { margin-block-start: var(--space-4); }
.lead { font-size: var(--step-1); line-height: 1.45; max-width: 46ch; }
.muted { color: var(--muted); }
.section--navy .muted { color: var(--mist); }

.stack > * + * { margin-block-start: var(--space-4); }
.section-head { margin-block-end: var(--space-7); }
.section-head > * + * { margin-block-start: var(--space-4); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: max(16px, 1rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              scale var(--dur-fast) var(--ease-out);
}
.btn:active { scale: 0.97; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--call { background: var(--orange); color: var(--on-orange); }
@media (hover: hover) { .btn--call:hover { background: var(--orange-hover); } }
.btn--call:focus-visible { outline: 2px solid var(--ground); outline-offset: 0; box-shadow: 0 0 0 4px var(--orange-ink); }
.section--navy .btn--call:focus-visible, .site-header .btn--call:focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 4px var(--orange-soft); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
@media (hover: hover) { .btn--ghost:hover { background: var(--ground-2); } }
.section--navy .btn--ghost, .hero .btn--ghost { color: var(--ground); border-color: var(--mist); }
@media (hover: hover) { .section--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--navy-2); border-color: var(--ground); } }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--ground);
  border-bottom: 1px solid var(--navy-2);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4rem;
}
.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: var(--space-3);
  align-items: center;
  color: var(--ground);
  text-decoration: none;
  font-family: var(--font-display);
  line-height: 1;
  padding-block: var(--space-2);
}
.brand__mark { grid-row: 1 / span 2; width: 3.75rem; height: auto; }
.brand__name { grid-column: 2; font-weight: 800; font-stretch: 125%; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand__sub { grid-column: 2; font-weight: 600; font-stretch: 110%; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); margin-top: var(--space-1); }
.brand:focus-visible { outline-color: var(--orange-soft); }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.site-nav a {
  display: block;
  padding: var(--space-3) var(--space-3);
  color: var(--ground);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  border-radius: var(--radius);
}
.site-nav a[aria-current="page"] { color: var(--orange-soft); box-shadow: inset 0 -2px 0 var(--orange-soft); }
@media (hover: hover) { .site-nav a:hover { background: var(--navy-2); } }
.site-nav a:focus-visible { outline-color: var(--orange-soft); }

.header-phone {
  display: none;
  color: var(--ground);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  padding: var(--space-3) 0;
}
.header-phone small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--mist); letter-spacing: 0.02em; }
.header-phone:focus-visible { outline-color: var(--orange-soft); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  color: var(--ground);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: max(16px, 1rem);
  cursor: pointer;
}
.menu-toggle:active { scale: 0.97; }
.menu-toggle:focus-visible { outline-color: var(--orange-soft); }

/* Mobile menu panel */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--navy-2);
  padding-block: var(--space-3) var(--space-5);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block;
  padding: var(--space-3) 0;
  color: var(--ground);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: var(--step-1);
  border-bottom: 1px solid var(--navy-2);
}
.mobile-nav a[aria-current="page"] { color: var(--orange-soft); }
.mobile-nav a:focus-visible { outline-color: var(--orange-soft); }

@media (min-width: 960px) {
  .site-nav { display: block; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
  .header-phone { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--ground);
  padding-block: var(--space-7) 0;
  overflow: hidden;
}
.hero h1 { color: var(--ground); }
.hero__grid { display: grid; gap: var(--space-7); }
.hero__copy > * + * { margin-block-start: var(--space-5); }
.hero__copy .lead { color: var(--ground); }
.hero__phone {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mist);
  font-size: var(--step--1);
}
.hero__phone a { color: var(--ground); font-weight: 700; text-decoration: none; font-size: var(--step-0); }
.hero__phone a:focus-visible { outline-color: var(--orange-soft); }

/* Proof element: the guarantee, until there are 5+ Google reviews */
.guarantee {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--orange-soft);
  border-radius: var(--radius);
  font-family: var(--font-display);
  line-height: 1.2;
}
.guarantee__num { font-weight: 800; font-stretch: 125%; font-size: var(--step-3); color: var(--orange-soft); letter-spacing: -0.03em; }
.guarantee__text { font-weight: 600; font-size: var(--step--1); max-width: 14ch; }
.guarantee--light { border-color: var(--orange-ink); }
.guarantee--light .guarantee__num { color: var(--orange-ink); }

.hero__media.photo { margin-inline: -1rem; }

@media (min-width: 840px) {
  .hero { padding-block: var(--space-9) 0; }
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: var(--space-7);
  }
  .hero__copy { padding-block-end: var(--space-9); }
  /* photo bleeds off the right edge */
  .hero__media.photo { margin-inline: 0 calc(-1 * max(1rem, (100vw - var(--container-wide)) / 2)); align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
}

/* ---------- Photos ---------- */

.photo { margin: 0; position: relative; }
.photo__frame {
  position: relative;
  aspect-ratio: var(--ar, 4 / 3);
  overflow: hidden;
  background: var(--ground-3);
  border-radius: var(--radius);
}
.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(1.02) sepia(0.08);
}
/* 8% navy soft-light overlay, §10.2 */
.photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.08;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
/* Roof pitch mask. --arn is the aspect ratio as a number (width / height),
   so the rise is the same angle as .roofline. */
.photo--pitch .photo__frame {
  --rise: calc(var(--pitch) / 2 * var(--arn, 1.3333) * 100%);
  clip-path: polygon(0 var(--rise), 50% 0, 100% var(--rise), 100% 100%, 0 100%);
  border-radius: 0;
}
.ar-4x3 { --ar: 4 / 3; --arn: 1.3333; }
.ar-3x2 { --ar: 3 / 2; --arn: 1.5; }
.ar-4x5 { --ar: 4 / 5; --arn: 0.8; }

/* Placeholder until Logan's photos arrive. Designed, not blank (§8). */
.photo__slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(21 35 61 / 0.05) 14px 15px),
    var(--ground-3);
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: var(--step--1);
  line-height: 1.4;
}
.section--navy .photo__frame, .hero .photo__frame { background: var(--navy-2); }
.section--navy .photo__slot, .hero .photo__slot {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(247 245 242 / 0.05) 14px 15px),
    var(--navy-2);
  color: var(--mist);
}

/* Documentary captions, the signature move */
.doc-caption {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.35;
}
.section--navy .doc-caption, .hero .doc-caption { color: var(--mist); }
.hero .doc-caption { padding: 0 1rem var(--space-3); }
@media (min-width: 840px) { .hero .doc-caption { padding-inline: 0; } }

/* ---------- Services ---------- */

.services { display: grid; gap: var(--space-7); }
.service-lead { display: grid; gap: var(--space-5); }
.service-lead h3 { font-size: var(--step-3); }
.service-lead p { max-width: 52ch; }
.service-lead p + p { margin-block-start: 0; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service-list li { border-bottom: 1px solid var(--rule); }
.service-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-5) 0;
  color: inherit;
  text-decoration: none;
}
.service-list h3 { font-size: var(--step-1); font-stretch: 112%; grid-column: 1; }
.service-list p { grid-column: 1; color: var(--muted); }
.service-list .arrow {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--orange-ink);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.service-list .arrow svg { width: 1.1rem; height: 1.1rem; }
.service-list a:active .arrow { scale: 0.95; }
@media (hover: hover) {
  .service-list a:hover h3 { color: var(--orange-ink); }
  .service-list a:hover .arrow { border-color: var(--orange-ink); background: var(--ground-2); }
}
.services__note { color: var(--muted); max-width: 52ch; }

@media (min-width: 840px) {
  .services { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-8); align-items: start; }
}

/* ---------- The garage job ---------- */

.job { display: grid; gap: var(--space-7); }
.job__story > * + * { margin-block-start: var(--space-4); }
.job__story h2 { margin-block-end: var(--space-2); }
.job__story .job__before { margin-block-start: var(--space-6); max-width: 28rem; }
/* Rule break: the quote sits over the bottom edge of the finished photo */
.pullquote {
  position: relative;
  z-index: 2;
  margin: -0.55em 0 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2rem, 1.2rem + 4.2vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ground);
  text-wrap: balance;
  max-width: 15ch;
}
.pullquote footer {
  margin-top: var(--space-4);
  font-size: var(--step--1);
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--mist);
}
.job__after .doc-caption { margin-top: var(--space-5); }

@media (min-width: 840px) {
  .job { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
  .job__media { padding-top: var(--space-6); }
  .pullquote { margin-left: calc(-1 * var(--space-6)); }
  .pullquote p { text-indent: -0.42em; }
}

/* ---------- About ---------- */

.about { display: grid; gap: var(--space-7); }
.about__words > * + * { margin-block-start: var(--space-4); }
.logan-quote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--orange-ink);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--navy);
  max-width: 34ch;
}
.logan-quote footer { margin-top: var(--space-2); font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); color: var(--muted); }
.facts { margin: var(--space-6) 0 0; display: grid; gap: var(--space-4); }
.facts div { display: grid; gap: var(--space-1); padding-top: var(--space-3); border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); color: var(--muted); letter-spacing: 0.02em; }
.facts dd { margin: 0; }

@media (min-width: 840px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); align-items: center; }
  .facts { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); }
}

/* ---------- Quote process ---------- */

.process { display: grid; gap: var(--space-7); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: var(--space-4);
  align-items: baseline;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--orange-ink);
}
.steps strong { display: block; font-family: var(--font-display); font-weight: 700; font-stretch: 108%; color: var(--navy); font-size: var(--step-1); line-height: 1.25; margin-bottom: var(--space-1); }
.steps p { color: var(--muted); }

.review-line {
  margin: 0;
  padding: var(--space-6);
  background: var(--ground);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.review-line p { font-size: var(--step-1); line-height: 1.4; color: var(--navy); }
.review-line footer, .review footer {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 840px) {
  .process { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; }
}

/* ---------- Agents block ---------- */

.agents { display: grid; gap: var(--space-5); }
.agents p { max-width: 56ch; }
@media (min-width: 840px) {
  .agents { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); align-items: baseline; }
}

/* ---------- Reviews ---------- */

.reviews { display: grid; gap: var(--space-6); }
.review { margin: 0; }
.review blockquote { margin: 0; }
.review p { max-width: 62ch; }
.review--long { padding-top: var(--space-5); border-top: 2px solid var(--navy); }
.review--short { padding: var(--space-6); background: var(--ground-2); border-radius: var(--radius); align-self: start; }
.review--short p { font-size: var(--step-1); line-height: 1.45; color: var(--navy); }
.review__job { font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); color: var(--orange-ink); margin-bottom: var(--space-3); letter-spacing: 0.02em; }
.reviews__note { margin-top: var(--space-6); color: var(--muted); font-size: var(--step--1); }

@media (min-width: 840px) {
  .reviews { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8); }
}

/* ---------- Areas ---------- */

.areas { display: grid; gap: var(--space-7); align-items: center; }
.areas__words > * + * { margin-block-start: var(--space-4); }
.town-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.town-list li { padding: var(--space-1) var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); }
.area-map { margin: 0; width: 100%; max-width: 34rem; }
.area-map figcaption { margin-top: var(--space-2); }
@media (min-width: 840px) {
  .areas { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); }
}

/* ---------- Quote form ---------- */

.quote { display: grid; gap: var(--space-7); }
.quote__intro > * + * { margin-block-start: var(--space-4); }
.form-panel {
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}
@media (min-width: 600px) { .form-panel { padding: var(--space-6); } }
.form-panel .guarantee { margin-bottom: var(--space-6); }
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label, .field legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.25;
}
.field .hint { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-3);
  font: inherit;
  font-size: max(16px, 1rem);
  color: var(--ink);
  background: #fffdfb;
  border: 1px solid #7a7468; /* 4.4:1 on ground, passes 3:1 for UI */
  border-radius: var(--radius);
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: 0; border-color: var(--orange-ink); }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--space-5); min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: var(--space-2); }
.checks { display: grid; gap: var(--space-2); }
@media (min-width: 480px) { .checks { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.3;
}
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--navy); flex: none; margin: 0; }
.check:has(input:checked) { border-color: var(--navy); background: var(--ground-2); }
.field-error { color: var(--error); font-size: 0.9rem; font-family: var(--font-display); font-weight: 600; display: none; }
.field-error::before { content: "! "; }
.field.has-error input { border-color: var(--error); border-width: 2px; }
.field.has-error .field-error { display: block; }
.form-panel .btn { width: 100%; min-height: 3.5rem; font-size: 1.1rem; }
.btn[disabled] { opacity: 0.7; pointer-events: none; }
.form-small { margin-top: var(--space-4); font-size: var(--step--1); color: var(--muted); }
.botcheck { display: none !important; }

@media (min-width: 840px) {
  .quote { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); align-items: start; }
}


/* ---------- Inner pages ---------- */

.breadcrumb { padding-block: var(--space-4) 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); color: var(--mist); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--mist); }
.breadcrumb a { color: var(--ground); text-decoration: none; }
@media (hover: hover) { .breadcrumb a:hover { text-decoration: underline; } }
.breadcrumb [aria-current] { color: var(--mist); }
.hero--inner { padding-block-start: var(--space-6); }
@media (min-width: 840px) { .hero--inner { padding-block-start: var(--space-7); } }
.hero--inner .hero__copy { padding-block-start: var(--space-5); }

/* Two column text + media blocks, alternating sides */
.split { display: grid; gap: var(--space-7); }
.split__words > * + * { margin-block-start: var(--space-4); }
.split__words h2 { margin-block-end: var(--space-2); }
@media (min-width: 840px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); align-items: center; }
  .split--flip .split__words { order: 2; }
  .split--top { align-items: start; }
}

/* Before and after, side by side */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.pair .doc-caption { font-size: var(--step--1); }

/* Steps with photos */
.rr-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); max-width: 40rem; }
.rr-steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--space-4); align-items: baseline; }
.rr-steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: var(--step-3); line-height: 1; color: var(--orange-ink); }
.rr-steps strong { display: block; font-family: var(--font-display); font-weight: 700; font-stretch: 108%; color: var(--navy); font-size: var(--step-1); line-height: 1.25; margin-bottom: var(--space-1); }
.strip { display: grid; gap: var(--space-5); margin-block-start: var(--space-8); }
@media (min-width: 600px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 840px) { .strip > :nth-child(2) { transform: translateY(var(--space-7)); } }

/* Callout blocks: guarantee and price */
.callouts { display: grid; gap: var(--space-5); }
@media (min-width: 840px) { .callouts { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.callout { padding: var(--space-6); border-radius: var(--radius); background: var(--ground); border-top: 2px solid var(--navy); }
.callout > * + * { margin-block-start: var(--space-4); }
.callout h2 { font-size: var(--step-3); }
.callout .big { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: var(--step-5); line-height: 1; letter-spacing: -0.03em; color: var(--orange-ink); }

/* Case study */
.case-photos { display: grid; gap: var(--space-5); }
@media (min-width: 840px) { .case-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case-facts { display: grid; gap: var(--space-5); margin: 0; }
.case-facts div { padding-top: var(--space-3); border-top: 1px solid var(--navy-2); }
.case-facts dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); color: var(--mist); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-2); }
.case-facts dd { margin: 0; }
.full-review { margin: 0; max-width: 68ch; }
.full-review blockquote { margin: 0; }
.full-review blockquote > * + * { margin-block-start: 1.1em; }
.full-review footer { margin-top: var(--space-5); font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mist); }
.pullquote--light { color: var(--ground); margin: 0; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.75rem); max-width: 18ch; }

/* FAQ */
.faq { max-width: 48rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 3.5rem; padding: var(--space-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: var(--step-1); line-height: 1.3; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2rem; text-align: center; font-size: var(--step-2); color: var(--orange-ink); transition: rotate var(--dur-fast) var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
@media (hover: hover) { .faq summary:hover { color: var(--orange-ink); } }
.faq details > div { padding-bottom: var(--space-5); max-width: 62ch; }
.faq details > div > * + * { margin-block-start: var(--space-3); }

/* Quote section quote line */
.quote__intro .review-line { margin-top: var(--space-6); background: var(--navy-2); box-shadow: none; }
.quote__intro .review-line p { color: var(--ground); }
.quote__intro .review-line footer { color: var(--mist); }

/* Room for the roof pitch on the next section, so it never covers content.
   The pitch is var(--pitch) / 2 of the viewport width tall. */
.section:has(+ .roofline) { padding-block-end: calc(clamp(3.5rem, 8vw, 7.5rem) + 100vw * var(--pitch) / 2); }
.callout .big .confirm { font-size: 0.32em; vertical-align: middle; }
@media (min-width: 840px) { .pullquote--sticky { position: sticky; top: 7rem; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--mist); padding-block: var(--space-8) var(--space-6); border-top: 1px solid var(--navy-2); }
.site-footer a { color: var(--ground); }
.site-footer a:focus-visible { outline-color: var(--orange-soft); }
.footer-grid { display: grid; gap: var(--space-7); }
.footer-nap { font-style: normal; }
.footer-nap > * + * { margin-block-start: var(--space-3); }
.footer-nap .brand__name { color: var(--ground); font-family: var(--font-display); font-size: var(--step-1); display: block; }
.footer-phone { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: var(--step-2); text-decoration: none; letter-spacing: -0.01em; }
.footer-links h2 { font-size: var(--step-0); color: var(--ground); letter-spacing: 0; margin-bottom: var(--space-3); }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
@media (hover: hover) { .footer-links a:hover { text-decoration: underline; } }
.footer-base p { margin: 0; }
.footer-base { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--navy-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: var(--step--1); }
@media (min-width: 840px) { .footer-grid { grid-template-columns: 5fr 3fr 3fr; } }

/* ---------- Mobile call bar ---------- */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  height: var(--callbar-h);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  border-top: 1px solid var(--navy-2);
}
.callbar .btn { min-height: 0; height: 100%; padding-inline: var(--space-3); }
.callbar .btn--ghost { color: var(--ground); border-color: var(--mist); }
.callbar .btn--call:focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 4px var(--orange-soft); }
.callbar .btn--ghost:focus-visible { outline-color: var(--orange-soft); }
@media (min-width: 840px) { .callbar { display: none; } }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Contact details sitting on the navy hero */
.hero .facts div { border-top-color: var(--navy-2); }
.hero .facts dt { color: var(--mist); }
