/* ==========================================================================
   Anthony John Construction — design system
   Built on the logo: charcoal #424142 + orange #ea5a28

   --accent*  = brand orange. ALL primary calls-to-action, sitewide. Never varies.
   --track*   = the track signal. Orange on restoration pages, deep teal on
                remodel pages. Drives eyebrows, tints, icons, step numbers.
                Teal is the complement of the logo orange, so remodel pages read
                calmer and more premium without leaving the brand.

   Display: Zodiak (serif — craft + permanence)   Body: Switzer
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.28rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --text-3xl: clamp(2.375rem, 1.6rem + 3.2vw, 4.25rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 700px;
  --content-default: 1020px;
  --content-wide: 1260px;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Segoe UI', Helvetica, sans-serif;

  --header-h: 104px;

  /* --- Surfaces: soft greige, cooler than a cream so it reads as its own brand --- */
  --bg: #f4f2ef;
  --surface: #ffffff;
  --surface-2: #ece9e4;
  --surface-3: #e1ddd6;
  --border: #d5d0c8;
  --divider: #e4e0d9;

  /* --- Text --- */
  --text: #1c1c1c;
  --text-muted: #5a5a58;
  --text-faint: #8a8a87;
  --text-inverse: #fafaf8;

  /* --- Charcoal, taken from the logo (#424142) --- */
  --ink: #232323;
  --ink-2: #2e2e2e;
  --ink-3: #3b3b3b;
  --ink-border: #4d4d4d;

  /* --- Brand orange. --orange-logo is the exact logo value: large display only,
         it does not carry enough contrast for small text or button fills. --- */
  --orange-logo: #ea5a28;
  --orange: #c9430f;
  --orange-bright: #ea5a28;
  --orange-hover: #a63508;
  --orange-soft: #fdeee8;
  --orange-line: #f8cdbc;

  /* --- Deep teal: complement of the logo orange. Remodel track. --- */
  --teal: #10554e;
  --teal-bright: #1a7a70;
  --teal-hover: #0b3f39;
  --teal-soft: #e4f0ee;
  --teal-line: #b9d8d3;

  /* --- Support --- */
  --success: #2f6b34;
  --danger: #a3271c;

  --shadow-sm: 0 1px 2px rgba(28, 28, 28, 0.07);
  --shadow-md: 0 4px 14px -4px rgba(28, 28, 28, 0.13);
  --shadow-lg: 0 18px 44px -16px rgba(28, 28, 28, 0.26);

  /* CTA accent — brand orange, identical on every page. */
  --accent: var(--orange);
  --accent-bright: var(--orange-bright);
  --accent-hover: var(--orange-hover);
  --accent-soft: var(--orange-soft);
  --accent-line: var(--orange-line);

  /* Track signal — defaults to orange, overridden per track below. */
  --track: var(--orange);
  --track-bright: var(--orange-bright);
  --track-hover: var(--orange-hover);
  --track-soft: var(--orange-soft);
  --track-line: var(--orange-line);
}

/* A page declares its track; the signal colour follows. CTAs stay orange. */
[data-track='restoration'] {
  --track: var(--orange);
  --track-bright: var(--orange-bright);
  --track-hover: var(--orange-hover);
  --track-soft: var(--orange-soft);
  --track-line: var(--orange-line);
}
[data-track='remodel'] {
  --track: var(--teal);
  --track-bright: var(--teal-bright);
  --track-hover: var(--teal-hover);
  --track-soft: var(--teal-soft);
  --track-line: var(--teal-line);
}

/* ========================= Reset ========================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

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

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--text-inverse);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-md) 0;
  font-size: var(--text-sm); font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ========================= Type ========================= */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
/* Long headline + narrow phone = a wall of type. Step it down. */
@media (max-width: 560px) {
  h1.hero-title { font-size: 1.9375rem; line-height: 1.08; }
  .hero-inner { padding-block: 2.25rem 2.75rem; }
  .hero .lede { font-size: 1.0625rem; }
}

h2.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--track);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--track);
  flex: none;
}
.eyebrow.centered { justify-content: center; }

.lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-muted);
}

.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-family: var(--font-display); font-size: var(--text-xl); margin-top: var(--space-12); letter-spacing: -0.015em; }
.prose h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li + li { margin-top: var(--space-2); }
.prose a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent); }
.prose strong { font-weight: 600; color: var(--text); }

/* ========================= Layout ========================= */

/* section intro block followed by its content — consistent vertical rhythm */
.stack-4 + .prose, .stack-5 + .prose, .stack-6 + .prose,
.stack-4 + .grid, .stack-5 + .grid, .stack-6 + .grid,
.stack-4 + .steps, .stack-5 + .steps, .stack-6 + .steps,
.stack-4 + .faq, .stack-5 + .faq, .stack-6 + .faq,
.stack-4 + .table-wrap, .stack-5 + .table-wrap, .stack-6 + .table-wrap,
.stack-4 + .stats, .stack-5 + .stats, .stack-6 + .stats,
.stack-4 + .doors, .stack-5 + .doors, .stack-6 + .doors,
.stack-4 + .checks, .stack-5 + .checks, .stack-6 + .checks {
  margin-top: var(--space-12);
}
@media (min-width: 880px) {
  .stack-4 + .prose, .stack-5 + .prose, .stack-6 + .prose,
  .stack-4 + .grid, .stack-5 + .grid, .stack-6 + .grid,
  .stack-4 + .steps, .stack-5 + .steps, .stack-6 + .steps,
  .stack-4 + .faq, .stack-5 + .faq, .stack-6 + .faq,
  .stack-4 + .table-wrap, .stack-5 + .table-wrap, .stack-6 + .table-wrap,
  .stack-4 + .stats, .stack-5 + .stats, .stack-6 + .stats,
  .stack-4 + .doors, .stack-5 + .doors, .stack-6 + .doors,
  .stack-4 + .checks, .stack-5 + .checks, .stack-6 + .checks {
    margin-top: var(--space-16);
  }
}

.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.wrap-default { max-width: var(--content-default); }
.wrap-narrow { max-width: var(--content-narrow); }

section { padding-block: clamp(3.5rem, 7vw, 7rem); }
section.tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.band-ink { background: var(--ink); color: var(--text-inverse); }
.band-ink .lede, .band-ink p { color: #c6cfc9; }
.band-ink .eyebrow { color: var(--track-bright); }
.band-ink .eyebrow::before { background: var(--track-bright); }

.band-surface { background: var(--surface); }
.band-soft { background: var(--surface-2); }

.grid { display: grid; gap: var(--space-6); }
.cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split.wide-left { grid-template-columns: 1.25fr 0.75fr; }
  .split.reverse > :first-child { order: 2; }
}

.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-8 > * + * { margin-top: var(--space-8); }
.stack-10 > * + * { margin-top: var(--space-10); }

.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-tight { max-width: 48ch; }

/* ========================= Buttons ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); }

.btn-ink { background: var(--ink); color: var(--text-inverse); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-3); border-color: var(--ink-3); }

.btn-on-ink { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.btn-on-ink:hover { background: #fff; }

.btn-ghost-on-ink { background: transparent; color: var(--text-inverse); border-color: var(--ink-border); }
.btn-ghost-on-ink:hover { border-color: #6f7d75; background: rgba(255,255,255,0.06); }

.btn-lg { padding: 1.05rem var(--space-8); font-size: var(--text-base); }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-group.centered { justify-content: center; }

/* ========================= Header ========================= */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #f6f2ea;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(35, 35, 35, 0.04);
}

.header-strip {
  background: var(--ink);
  color: #c6cfc9;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}
.header-strip .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 34px; flex-wrap: wrap;
}
.header-strip a { color: #e7ece9; text-decoration: none; font-weight: 600; }
@media (max-width: 700px) { .strip-right { display: none; } }
.header-strip a:hover { color: #fff; text-decoration: underline; }
.strip-emergency { display: inline-flex; align-items: center; gap: var(--space-2); }
.strip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 0 3px rgba(197, 67, 47, 0.22);
  flex: none;
}

.header-main .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); min-height: 70px;
}

.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.brand-tag { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: var(--space-1); }
}
.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm); font-weight: 500;
  color: var(--text); text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--accent-hover); background: var(--surface-2); }
.nav-link[aria-current='page'] { color: var(--accent-hover); font-weight: 600; }

.has-menu { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm); font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-trigger:hover { color: var(--accent-hover); background: var(--surface-2); }
.nav-trigger svg { transition: transform var(--transition); }
.nav-trigger[aria-expanded='true'] svg { transform: rotate(180deg); }

.menu-panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-menu.open .menu-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-panel a {
  display: block; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); text-decoration: none; color: var(--text);
  transition: background var(--transition);
}
.menu-panel a:hover { background: var(--surface-2); }
.menu-panel .m-title { font-weight: 600; font-size: var(--text-sm); display: block; }
.menu-panel .m-desc { font-size: var(--text-xs); color: var(--text-muted); display: block; margin-top: 2px; line-height: 1.45; }
.menu-panel .m-head {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); padding: var(--space-2) var(--space-4) var(--space-1);
}
.menu-panel .m-sep { height: 1px; background: var(--divider); margin: var(--space-2) var(--space-3); }

.header-actions { display: none; align-items: center; gap: var(--space-3); flex: none; }
@media (min-width: 1024px) { .header-actions { display: flex; } }

.header-phone { text-decoration: none; color: var(--text); display: flex; flex-direction: column; line-height: 1.15; }
.header-phone .hp-label { font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.header-phone .hp-num { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.header-phone:hover .hp-num { color: var(--accent-hover); }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer;
}
@media (min-width: 1024px) { .burger { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav .wrap { padding-block: var(--space-5); }
.mobile-nav a { display: block; padding: var(--space-3) 0; text-decoration: none; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--divider); }
.mobile-nav .mn-head {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); padding-top: var(--space-5); padding-bottom: var(--space-1);
}
.mobile-nav .mn-sub { padding-left: var(--space-4); font-size: var(--text-sm); font-weight: 400; color: var(--text-muted); }
.mobile-nav .mn-actions { padding-top: var(--space-5); display: grid; gap: var(--space-3); }

/* ========================= Hero ========================= */

.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--text-inverse); }
/* hero-inner owns the vertical rhythm — kill any inherited section padding */
.hero.section, .hero { padding-block: 0; }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.hero .split { align-items: stretch; }
.hero .split > .stack-6 { align-self: center; }
.hero .lede { color: #c9d2cc; }

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(20,29,25,0.95) 0%, rgba(20,29,25,0.78) 46%, rgba(20,29,25,0.42) 100%);
}

.hero-title-mark { color: var(--accent-bright); font-style: italic; }

.hero-points { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.hero-point { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: #d6ded9; }
.hero-point svg { color: var(--accent-bright); flex: none; }

/* Two-door hero: the track chooser */
.doors { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-content: center; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; } }

.door {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: 1.5px solid;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: var(--surface);
  color: var(--text);
}
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.door-emergency { border-color: var(--orange-line); background: var(--orange-soft); }
.door-emergency:hover { border-color: var(--orange); }
.door-remodel { border-color: var(--teal-line); background: var(--teal-soft); }
.door-remodel:hover { border-color: var(--teal); }
.door-kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.door-emergency .door-kicker { color: var(--orange-hover); }
.door-remodel .door-kicker { color: var(--teal); }
.door-title { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; }
.door-desc { font-size: var(--text-sm); color: var(--text-muted); }
.door-cta { margin-top: auto; font-size: var(--text-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.door-emergency .door-cta { color: var(--orange-hover); }
.door-remodel .door-cta { color: var(--teal-hover); }
.door:hover .door-cta svg { transform: translateX(3px); }
.door-cta svg { transition: transform var(--transition); }

/* ========================= Cards ========================= */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card.linked { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: var(--space-3); }
.card.linked:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--track-line); }

.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--track-soft);
  color: var(--track-hover);
  flex: none;
}
.card p { font-size: var(--text-sm); color: var(--text-muted); }
.card-more { margin-top: auto; font-size: var(--text-sm); font-weight: 600; color: var(--track-hover); display: inline-flex; align-items: center; gap: 6px; }
.card.linked:hover .card-more svg { transform: translateX(3px); }
.card-more svg { transition: transform var(--transition); }

.card-ink {
  background: var(--ink-2);
  border-color: var(--ink-border);
  color: var(--text-inverse);
}
.card-ink p { color: #b9c3bd; }
.card-ink .card-icon { background: rgba(255,255,255,0.07); color: var(--track-bright); }

/* Numbered process steps */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--divider);
}
.step:last-child { border-bottom: 1px solid var(--divider); }
.step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--track);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1.5px solid var(--track-line);
  border-radius: 50%;
  background: var(--track-soft);
  flex: none;
}
.step-num::before { content: counter(step); }
.step h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.step p { color: var(--text-muted); font-size: var(--text-sm); }

/* Stat row */
.stats { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-val { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.stat-lbl { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); }
.band-ink .stat-val { color: var(--track-bright); }
.band-ink .stat-lbl { color: #b9c3bd; }

/* ========================= Photo slots ========================= */

.shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--border);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-4x3 { aspect-ratio: 4 / 3; }
.shot-3x2 { aspect-ratio: 3 / 2; }
.shot-1x1 { aspect-ratio: 1 / 1; }
.shot-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: linear-gradient(transparent, rgba(20,29,25,0.86));
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
}
.shot-tag {
  position: absolute; top: var(--space-4); left: var(--space-4);
  background: rgba(20,29,25,0.82); color: #fff;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px var(--space-3); border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* Placeholder shown until real job photos land */
.shot-placeholder {
  display: grid; place-items: center;
  padding: var(--space-8);
  text-align: center;
  background:
    repeating-linear-gradient(135deg, var(--surface-3) 0 12px, var(--surface-2) 12px 24px);
  color: var(--text-faint);
}
.shot-placeholder span { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* Before / after pair */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.ba .shot-tag { font-size: 0.625rem; }

/* ========================= Forms ========================= */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, var(--space-8));
  box-shadow: var(--shadow-md);
}
.form-card.urgent { border-color: var(--orange-line); border-top: 4px solid var(--orange); }

.field { display: block; }
.field + .field { margin-top: var(--space-4); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field .req { color: var(--danger); }
.field .hint { font-size: var(--text-xs); color: var(--text-muted); font-weight: 400; margin-top: var(--space-1); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem var(--space-4);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.checks { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.check {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: var(--text-sm); cursor: pointer;
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition);
}
.check:hover { border-color: var(--accent-line); }
.check input { width: auto; accent-color: var(--accent); }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.form-note { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-4); }
.form-success {
  display: none;
  padding: var(--space-6);
  background: #e6efe7;
  border: 1.5px solid var(--success);
  border-radius: var(--radius-md);
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-2); }

/* ========================= Callouts ========================= */

.callout {
  border-left: 4px solid var(--track);
  background: var(--track-soft);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.callout h4 { margin-bottom: var(--space-2); }
.callout p { font-size: var(--text-sm); color: var(--text-muted); }

.pull {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  letter-spacing: -0.015em;
  border-left: 3px solid var(--track);
  padding-left: var(--space-6);
}

/* Emergency bar */
.emergency-bar {
  background: var(--orange-hover);
  color: #fff;
}
.emergency-bar .wrap {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-4);
  text-align: center;
}
.emergency-bar strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
/* Scoped away from .btn — a blanket white here made the white button invisible. */
.emergency-bar a:not(.btn) { color: #fff; text-underline-offset: 3px; }

/* ========================= FAQ ========================= */

.faq { border-top: 1px solid var(--divider); }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary {
  padding: var(--space-5) var(--space-10) var(--space-5) 0;
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--text-base);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: var(--space-2); top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--track); border-bottom: 2px solid var(--track);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding-bottom: var(--space-5); color: var(--text-muted); font-size: var(--text-sm); }
.faq .faq-body > * + * { margin-top: var(--space-3); }

/* ========================= Reviews ========================= */

.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.stars { display: inline-flex; gap: 2px; color: var(--orange-bright); }
.review blockquote { font-size: var(--text-sm); line-height: 1.6; color: var(--text); }
.review cite { font-style: normal; font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; margin-top: auto; }

/* ========================= Table ========================= */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 520px; }
table.data th, table.data td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--divider); }
table.data thead th { background: var(--surface-2); font-weight: 600; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ========================= Breadcrumbs ========================= */

.crumbs { font-size: var(--text-xs); color: var(--text-muted); padding-block: var(--space-4); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-hover); text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: var(--space-2); color: var(--text-faint); }

/* ========================= Footer ========================= */

.site-footer { background: var(--ink); color: #b9c3bd; padding-block: var(--space-16) var(--space-8); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-10); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: var(--text-inverse); font-family: var(--font-body);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.site-footer a { color: #b9c3bd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.footer-brand .brand-mark { color: var(--text-inverse); }
.footer-brand .brand-name { color: var(--text-inverse); }
.footer-phone { font-family: var(--font-display); font-size: var(--text-lg); color: var(--text-inverse) !important; font-weight: 600; }
.footer-bottom {
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid var(--ink-border);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--text-xs);
}

/* ========================= Utilities ========================= */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 620ms cubic-bezier(0.16,1,0.3,1), transform 620ms cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--track-soft); color: var(--track-hover);
  border: 1px solid var(--track-line);
}
.badge-ink { background: rgba(255,255,255,0.08); color: var(--text-inverse); border-color: var(--ink-border); }

.divider-rule { height: 1px; background: var(--divider); border: 0; }

/* ---- city link grid ------------------------------------------------- */
.citylinks {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  border-radius: var(--radius-md); overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .citylinks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .citylinks { grid-template-columns: repeat(4, 1fr); } }
.citylinks li { background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.citylinks a {
  display: block; padding: var(--space-4) var(--space-5); text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.citylinks .cl-name {
  display: block; color: var(--text); font-weight: 600; font-size: var(--text-sm);
}
.citylinks a:hover .cl-name { color: var(--accent-hover); }
.citylinks a:hover { background: var(--accent-soft); }
.citylinks .cl-meta {
  display: block; margin-top: 2px; font-weight: 400;
  font-size: var(--text-xs); color: var(--text-muted);
}
.stack-4 + .citylinks, .stack-5 + .citylinks, .stack-6 + .citylinks { margin-top: var(--space-12); }
@media (min-width: 880px) {
  .stack-4 + .citylinks, .stack-5 + .citylinks, .stack-6 + .citylinks { margin-top: var(--space-16); }
}

/* ---- real photo grids + before/after ---- */
.photo-grid .shot { border-radius: var(--radius-md); }
.ba-wrap { display: block; }
.ba-cap {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}
.ba .shot { border-radius: var(--radius-md); }
@media (max-width: 520px) {
  .ba { gap: 6px; }
  .ba .shot-tag { top: 8px; left: 8px; padding: 3px 8px; }
}
.stack-4 + .photo-grid, .stack-5 + .photo-grid, .stack-6 + .photo-grid,
.stack-4 + .ba-wrap, .stack-5 + .ba-wrap, .stack-6 + .ba-wrap { margin-top: var(--space-10); }
@media (min-width: 880px) {
  .stack-4 + .photo-grid, .stack-5 + .photo-grid, .stack-6 + .photo-grid,
  .stack-4 + .ba-wrap, .stack-5 + .ba-wrap, .stack-6 + .ba-wrap { margin-top: var(--space-12); }
}
/* project cards on the portfolio page */
.proj { display: grid; gap: var(--space-5); }
.proj-meta h3 { font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.proj-meta p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-3); }
.proj-tags span {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em;
  background: var(--surface-2); color: var(--text-muted);
  padding: 4px 10px; border-radius: var(--radius-full);
}

/* homepage service-card photo thumbnails */
.card-thumb {
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) 0;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-thumb .shot {
  border: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* --- Logo sizing ---------------------------------------------------------
   Source PNG is 725x307 (from the original designer artwork). Rendered at
   236px wide it lands at ~3.1x pixel density -- sharp on any display. */
.brand-logo {
  display: block;
  width: 236px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}
@media (max-width: 640px) {
  .brand-logo { width: 182px; }
}
.footer-brand .brand-logo { width: 224px; }

/* ==========================================================================
   BRIGHT & AIRY — adopted style layer (overrides the tokens above)
   ========================================================================== */


:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff4ec;
  --surface-3: #ffe9dc;
  --border: #ecdfd5;
  --divider: #f4eae2;

  --text: #1a1614;
  --text-muted: #5f5651;
  --text-faint: #8f847d;

  --orange-logo: #ea5a28;
  --orange: #e2500f;
  --orange-bright: #ff7038;
  --orange-hover: #bd3f07;
  --orange-soft: #fff2ea;
  --orange-line: #ffd3bb;

  --teal: #0e8478;
  --teal-bright: #18bda9;
  --teal-hover: #0a6459;
  --teal-soft: #e8faf7;
  --teal-line: #aeeae0;

  --ink: #1e1a18;
  --ink-2: #2a2422;
  --ink-3: #37302c;
  --ink-border: #4e433e;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 6px rgba(190, 110, 65, 0.1);
  --shadow-md: 0 14px 34px -12px rgba(190, 100, 55, 0.28);
  --shadow-lg: 0 30px 70px -26px rgba(180, 95, 50, 0.34);
}

/* --- LIGHT HERO. Warm gradient paper, dark type, photo held back behind a
       strong white scrim so the headline always stays readable. --- */
.hero {
  background: linear-gradient(150deg, #fff6ef 0%, #ffeadd 46%, #ffe0f0 100%);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.hero h1, .hero h2 { color: #1a1614; }
.hero .lede { color: #554b45; }
.hero-point { color: #4c433e; }
.hero-point svg { color: var(--orange); }
.hero-bg img { opacity: 1; filter: saturate(1.06) brightness(1.04); }
/* Photo stays visible on the right; a strong warm scrim protects the text on the left. */
.hero-scrim {
  background:
    linear-gradient(100deg,
      rgba(255, 251, 247, 0.985) 0%,
      rgba(255, 249, 244, 0.965) 34%,
      rgba(255, 244, 236, 0.80) 52%,
      rgba(255, 240, 230, 0.30) 74%,
      rgba(255, 238, 228, 0.10) 100%),
    linear-gradient(to top, rgba(255, 246, 239, 0.55) 0%, rgba(255, 246, 239, 0) 38%);
}
@media (max-width: 900px) {
  /* One column on phones: text sits over the photo, so cover the whole frame. */
  .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(255, 251, 247, 0.975) 0%,
        rgba(255, 249, 243, 0.94) 55%,
        rgba(255, 244, 236, 0.90) 100%);
  }
}
/* Emergency pages keep their bite: hotter photo, orange keyline under the hero. */
[data-track="restoration"] .hero-bg img { filter: saturate(1.14) contrast(1.05) brightness(1.02); }
[data-track="restoration"] .hero { border-bottom: 3px solid var(--orange); }
.hero-title-mark { color: var(--orange); font-style: italic; }
.hero .btn-on-ink { background: var(--orange); color: #fff; border-color: var(--orange); }
.hero .btn-on-ink:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.hero .btn-ghost-on-ink { color: #2a2422; border-color: #e0cfc2; }
.hero .btn-ghost-on-ink:hover { background: rgba(255, 255, 255, 0.75); border-color: var(--orange); color: var(--orange-hover); }

/* --- Pill buttons --- */
.btn { border-radius: var(--radius-full); font-weight: 640; padding-inline: var(--space-6); }
.btn-lg { padding: 1.05rem var(--space-10); }
.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 8px 20px -8px rgba(226, 80, 15, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(226, 80, 15, 0.6); }

/* --- Bands: soft warm tint, and a friendlier dark band --- */
.band-soft { background: linear-gradient(180deg, #fff4ec 0%, #fff9f5 100%); }
.band-ink { background: linear-gradient(155deg, #1e1a18 0%, #2c2320 60%, #123c37 100%); }
.band-ink .lede, .band-ink p { color: #e2dbd6; }
.band-ink .eyebrow, .band-ink .stat-val { color: var(--track-bright); }
.band-ink .stat-lbl { color: #ddd4ce; }

/* --- Eyebrow becomes a soft pill --- */
.eyebrow {
  color: var(--track-hover);
  font-weight: 700;
  background: var(--track-soft);
  border: 1px solid var(--track-line);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  width: fit-content;
}
.eyebrow::before { display: none; }
.band-ink .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }

/* --- Cards: rounded, tinted, soft warm shadow --- */
.card {
  border-radius: var(--radius-lg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.card.linked:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--track-line);
}
.card-icon {
  border-radius: 16px;
  background: var(--track-soft);
  color: var(--track);
}
.card-ink { border-radius: var(--radius-lg); }
.card-ink .card-icon { border-radius: 16px; }

/* Alternating tint across card grids keeps long pages lively */
.cards > .card:nth-child(3n + 2) { background: #fffaf6; }
.cards > .card:nth-child(3n + 3) { background: #f7fdfc; }

/* --- Photos: rounded and bright --- */
.shot, .photo, .card-thumb { border-radius: var(--radius-lg); overflow: hidden; }
.shot img, .photo img { filter: saturate(1.12) brightness(1.02); }

/* --- Numbers --- */
.stat-val { color: var(--orange); }

/* --- Header: white and light --- */
.site-header {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--divider);
}

/* light-hero legibility fixes */
.hero .badge-ink{color:#1c1c1c;border-color:rgba(28,28,28,.28);background:rgba(255,255,255,.55)}
.hero .badge-ink strong{color:#1c1c1c}

/* Hero door cards sit on top of the hero photo — keep them crisp, not translucent. */
.hero .door { background: rgba(255, 255, 255, 0.96); box-shadow: 0 18px 44px -22px rgba(60, 34, 20, 0.45); }
.hero .door-emergency { background: rgba(255, 245, 238, 0.97); }
.hero .door-remodel { background: rgba(238, 250, 248, 0.97); }
/* Portrait job photos crop hard in a wide hero — bias the framing above centre. */
.hero-bg img { object-position: center 38%; }

/* Form submission error (added for Netlify Forms handling) */
.form-error {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: #fbeceb;
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-error[hidden] { display: none; }
.form-error a { color: inherit; text-decoration: underline; white-space: nowrap; }

/* v2 */
.callbar{display:none}
@media (max-width:879px){
 .callbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:200;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#1c1c1c;box-shadow:0 -6px 18px rgba(0,0,0,.25)}
 .callbar a{flex:1;text-align:center;padding:13px 8px;border-radius:8px;font-weight:700;font-size:1rem;text-decoration:none}
 .callbar .cb-call{background:var(--orange);color:#fff;flex:1.6}
 .callbar .cb-quote{background:#fff;color:#1c1c1c}
 body{padding-bottom:76px}
}
.quick-quote{padding:clamp(1rem,2.4vw,1.5rem)}
.quick-quote .qq-title{font-size:1.25rem;margin:0 0 .75rem;color:#1a1614}
.quick-quote .field{margin-bottom:.6rem}
.quick-quote .form-note{margin-top:.6rem}
.hero .hero-qq{align-items:center}
.hero-right{display:flex;flex-direction:column;gap:var(--space-4)}
.footer-cities{font-size:var(--text-sm);opacity:.85;margin:1.5rem 0 0}
.footer-cities a{color:inherit}
.trust-list{display:flex;flex-wrap:wrap;gap:1rem 2rem;list-style:none;padding:0;margin:0}
.trust-strip[hidden],.trust-list li:empty{display:none}

/* v2 city */
.toc{list-style:none;padding:0;margin:0;display:grid;gap:.45rem;font-size:var(--text-sm)}
.toc.checks li{display:flex;gap:.5rem;align-items:baseline}
.toc.checks svg{color:var(--orange);flex:none}
.grid.cols-4{display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.nearby .card-title{font-size:1rem}
.quick-quote .field-row{align-items:end}.quick-quote .field-row .field{margin-top:0}
