/* ============================================================
   Madison County Roofing — design system
   Heritage trade brand · slate + brick + warm paper · since 1937
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Primary brand — refined navy. Closer to the existing blue brand,
     just deeper and more saturated. Honors the existing palette. */
  --ink:           #1A2D44;
  --ink-soft:      #2C4366;
  --ink-deep:      #0F1B2C;
  --paper:         #F7F4ED;
  --paper-warm:    #EFEAE0;
  --paper-card:    #FCFAF4;
  --bone:          #FBF8F1;

  /* Accent — muted copper-bronze. Premium warm tone, less aggressive
     than the previous orange-brick. Used for CTAs, hover states, accent lines. */
  --brick:         #9D5B35;  /* slightly darker than original #A6633E so paper text on brick passes WCAG AA 4.5:1 contrast */
  --brick-bright:  #D78F62;
  --brick-deep:    #7A4730;

  /* Emergency-only — saturated terra-cotta. Reserved for storm-damage
     callouts where urgency is the point. */
  --emergency:     #C0442B;

  --copper-warm:   #C8845A;
  --steel:         #6B7280;
  --steel-soft:    #9CA3AF;
  --safety:        #E8C547;
  --success:       #4A9D4F;

  --text:        var(--ink);
  --text-muted:  #4B5563;
  --bg:          var(--paper);
  --bg-elevated: var(--bone);
  --divider:     rgba(26, 35, 50, 0.12);
  --shadow:      rgba(26, 35, 50, 0.12);
  --shadow-lift: rgba(26, 35, 50, 0.22);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script:  'Caveat', 'Bradley Hand', cursive;

  --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-section: clamp(4rem, 6vw + 1rem, 8rem);

  --fs-lead: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  --dur: 400ms;
  --dur-fast: 220ms;
  --dur-slow: 700ms;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle paper grain */
  background-image:
    radial-gradient(circle at 25% 30%, rgba(184, 84, 40, 0.012) 0%, transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(26, 35, 50, 0.015) 0%, transparent 50%);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--brick); color: var(--paper); }

/* ---------- Typography ---------- */
h1, .h1, h2, .h2, h3, .h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
h1, .h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.022em; }
h3, .h3 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); }
h4 { font-size: 1.125rem; }

.italic-display { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--brick); letter-spacing: -0.01em; }
.display { font-family: var(--font-display); font-weight: 700; }
.script { font-family: var(--font-script); font-weight: 500; font-style: italic; }

p { margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); max-width: 60ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container--narrow { max-width: 880px; }
.container--reading { max-width: 720px; }
.container--wide { max-width: 1400px; }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 4vw + 1rem, 5rem); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--brick { background: var(--brick); color: var(--paper); }
.section--brick h1, .section--brick h2, .section--brick h3, .section--brick h4 { color: var(--paper); }

.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; }
.no-scroll { overflow: hidden; }

/* ---------- Navigation ----------
   Fully transparent at the top so the hero image (the sky) reads through.
   Switches to solid paper background when the user scrolls past the hero. */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  padding-top: env(safe-area-inset-top);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.is-scrolled, .nav--solid {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.05);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 0.75rem; min-height: 72px; flex-wrap: nowrap; }
.nav.is-scrolled .nav__inner, .nav--solid .nav__inner { min-height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 0.625rem; color: var(--paper); text-decoration: none; flex-shrink: 0; }
.nav__brand img { height: 48px; width: auto; flex-shrink: 0; transition: opacity 250ms ease; }
/* Light/dark logo swap based on nav state. */
.nav__brand-img--dark { display: none; }
.nav.is-scrolled .nav__brand-img--light,
.nav--solid .nav__brand-img--light { display: none; }
.nav.is-scrolled .nav__brand-img--dark,
.nav--solid .nav__brand-img--dark { display: block; }
.nav.is-scrolled .nav__brand, .nav--solid .nav__brand { color: var(--ink); }
/* Brand text removed from nav — logo's SVG already carries the wordmark */
.nav__brand-text { display: none !important; }

.nav__links { display: none; align-items: center; gap: clamp(0.875rem, 1.4vw, 1.5rem); list-style: none; padding: 0; margin: 0; flex-wrap: nowrap; white-space: nowrap; }
.nav__links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
  white-space: nowrap;
}
.nav.is-scrolled .nav__links a, .nav--solid .nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--brick-bright); }
.nav__links a[aria-current="page"] { color: var(--brick); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--brick); }
/* Show nav links at 1180px+ — below this we use the hamburger drawer */
@media (min-width: 1180px) { .nav__links { display: flex; } }

.nav__actions { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--brick);
  color: var(--paper) !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.nav__cta:hover { background: var(--brick-deep); transform: translateY(-1px); }
.nav__cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav__cta-label { display: none; }
@media (min-width: 1180px) { .nav__cta-label { display: inline; } }
.nav__menu-btn { display: inline-flex; padding: 0.5rem; background: transparent; border: 0; color: var(--paper); flex-shrink: 0; }
.nav.is-scrolled .nav__menu-btn, .nav--solid .nav__menu-btn { color: var(--ink); }
@media (min-width: 1180px) { .nav__menu-btn { display: none; } }

/* ---------- Mobile drawer ---------- */
.nav__drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink);
  padding: var(--space-6) var(--space-5);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  visibility: hidden;
  color: var(--paper);
  overflow-y: auto;
}
.nav__drawer[data-open="true"] { transform: translateX(0); visibility: visible; }
.nav__drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-7); }
.nav__drawer-head img { height: 48px; }
.nav__drawer-head .nav__menu-btn { color: var(--paper); }
.nav__drawer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.nav__drawer-links a { font-family: var(--font-display); font-size: 1.625rem; color: var(--paper); }
.nav__drawer-foot { margin-top: auto; padding-top: var(--space-6); border-top: 1px solid rgba(247, 244, 237, 0.18); display: grid; gap: var(--space-2); font-size: 0.875rem; color: rgba(247, 244, 237, 0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), background-color 300ms ease, color 300ms ease, border-color 300ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary { background: var(--brick); color: var(--paper); border-color: var(--brick); }
.btn--primary:hover { background: var(--brick-deep); border-color: var(--brick-deep); transform: translateY(-2px); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--brick-deep) 65%, transparent); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--brick-deep); padding: 0.5rem 0; border: 0; letter-spacing: 0.14em; }
.btn--ghost:hover { color: var(--ink); }
.btn--ghost::after { content: "→"; transition: transform var(--dur-fast) var(--ease); }
.btn--ghost:hover::after { transform: translateX(4px); }
.btn--lg { padding: 1rem 1.75rem; font-size: 0.875rem; }

.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 92svh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Sky at the top (so the transparent nav reads against blue), roof in the
     middle-upper, house body filling the rest. */
  object-position: center 15%;
  opacity: 0.92;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* Top shade — guarantees contrast for white nav over bright sky */
    linear-gradient(180deg,
      rgba(15,27,44,0.62) 0%,
      rgba(15,27,44,0.38) 8%,
      rgba(15,27,44,0.0) 22%,
      rgba(15,27,44,0.0) 60%,
      rgba(15,27,44,0.0) 100%),
    /* Body gradient — image read at top middle, dark at bottom for form */
    linear-gradient(180deg, rgba(26,45,68,0.18) 0%, rgba(26,45,68,0.32) 45%, rgba(26,45,68,0.82) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(7rem, 14vh, 10rem) clamp(4rem, 8vh, 6rem); display: grid; gap: var(--space-5); max-width: 760px; }
/* Hero eyebrow uses paper instead of brick so it cuts through busy backgrounds
   (sky, trees, brick). Subtle shadow gives it a touch more lift on bright crops. */
.hero__eyebrow { color: var(--paper); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.hero__tagline { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); color: var(--brick-bright); line-height: 1.15; }
.hero__title { color: var(--paper); }
.hero__title .italic-display { color: var(--brick-bright); }
.hero__sub { font-size: var(--fs-lead); line-height: 1.6; color: rgba(247, 244, 237, 0.92); max-width: 56ch; }

/* (1937 ghost removed — heritage is communicated by H1, marquee, and affiliations) */

/* ============================================================
   FAQ — simple stacked Q/A pairs for service pages (FAQPage schema)
   ============================================================ */
.faq { display: grid; gap: 0; max-width: 880px; margin-inline: auto; }
.faq__item {
  padding-block: clamp(1.5rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--divider);
  transition: background-color 250ms ease;
}
.faq__item:first-child { border-top: 1px solid var(--divider); }
.faq__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}
.faq__a {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Page heroes — deeper presence + legible eyebrow / subtitle on any photo */
.hero--page { min-height: clamp(560px, 78svh, 720px); }
.hero--page .hero__inner { padding-block: clamp(7rem, 14vh, 9rem) clamp(3rem, 6vh, 5rem); }
.hero--page .eyebrow {
  color: var(--paper);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  font-size: 0.75rem;
}
.hero__page-title { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); color: var(--paper); margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero__page-title .italic-display { color: var(--brick-bright); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.hero__page-subtitle {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  margin: 0;
}

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-7); max-width: 64ch; }
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-head__flourish { width: 56px; height: 16px; color: var(--brick); }
.section-head--center .section-head__flourish { margin-inline: auto; }
.section-head .lead { color: var(--text-muted); }

/* ---------- Split layout ---------- */
.split { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
  .split--wide-text { grid-template-columns: 1.1fr 1fr; }
  .split--wide-media { grid-template-columns: 1fr 1.2fr; }
  .split--text-first .split__media { order: 1; }
}
.split__body { display: grid; gap: var(--space-4); align-content: center; }
.split__media { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; }
.split__media--wide { aspect-ratio: 3/2; }
.split__media--landscape { aspect-ratio: 16/10; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media-cap {
  position: absolute; bottom: 0; left: 0;
  padding: 0.5rem 0.875rem;
  background: var(--brick);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
}

/* ---------- Info cards (service cards) ---------- */
.info-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .info-grid--two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .info-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .info-grid--three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .info-grid--four { grid-template-columns: repeat(4, 1fr); } }

.info-card {
  padding: var(--space-6);
  border: 1px solid var(--divider);
  background: var(--paper-card);
  display: grid;
  gap: var(--space-3);
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease), border-color 400ms ease;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--brick);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 700ms var(--ease);
}
.info-card.is-visible::before,
.is-visible .info-card::before,
.info-grid:not(.reveal):not([data-stagger]) .info-card::before { transform: scaleX(1); }
@media (hover: hover) {
  .info-card:hover { transform: translateY(-6px); border-color: var(--brick); box-shadow: 0 28px 60px -20px color-mix(in srgb, var(--brick-deep) 30%, var(--shadow)); }
}
.info-card h3 { font-size: 1.375rem; letter-spacing: -0.012em; }
.info-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.info-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.info-card li { font-size: 0.9375rem; color: var(--text-muted); display: flex; gap: 0.625rem; }
.info-card li::before { content: "—"; color: var(--brick); flex-shrink: 0; }

/* Service card with photo */
.service-card { display: grid; gap: var(--space-4); }
.service-card__media { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; position: relative; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease), filter 800ms ease; }
@media (hover: hover) {
  .service-card:hover .service-card__media img { transform: scale(1.06); filter: brightness(1.04); }
}
.service-card__body { display: grid; gap: 0.625rem; }
.service-card__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink);
  letter-spacing: -0.012em; line-height: 1.1;
  position: relative; display: inline-block;
  transition: color 500ms ease;
  /* Reserve space for a 2nd line so 1-line and 2-line names align uniformly */
  min-height: 2.2em;
}
.service-card__name::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--brick);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 700ms var(--ease);
}
@media (hover: hover) {
  .service-card:hover .service-card__name { color: var(--brick-deep); }
  .service-card:hover .service-card__name::after { transform: scaleX(1); }
}
.service-card__desc {
  color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55;
  /* Hard-lock all descriptions to exactly 4 lines: reserved minimum + clipped
     maximum. Source copy is trimmed to fit, so no ellipsis should ever show. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  min-height: calc(0.9375rem * 1.55 * 4);
}
.service-card__tag {
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--brick);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form-field { display: grid; gap: 0.375rem; position: relative; }
.form-field label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 300ms ease, letter-spacing 400ms var(--ease);
}
.form-field:focus-within label { color: var(--brick); letter-spacing: 0.18em; }
.form-field input, .form-field textarea, .form-field select {
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--divider);
  padding: 0.75rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 350ms ease;
}
.form-field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--brick);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 500ms var(--ease);
  pointer-events: none;
}
.form-field:focus-within::after { transform: scaleX(1); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-bottom-color: transparent; }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Prefooter ---------- */
.prefooter {
  background: var(--ink-soft);
  color: var(--paper);
  padding-block: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--brick) 30%, transparent);
}
.prefooter__inner { display: flex; flex-direction: column; gap: var(--space-3); text-align: center; align-items: center; }
.prefooter__eyebrow { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--brick-bright); }
.prefooter__title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--paper); margin: 0; }
.prefooter__phone { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--paper); letter-spacing: -0.02em; }
.prefooter__phone:hover { color: var(--brick-bright); }
@media (min-width: 720px) { .prefooter__inner { flex-direction: row; justify-content: space-between; text-align: left; gap: var(--space-6); } }

/* ---------- Footer (premium polish) ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 7vw, 6rem) var(--space-6);
  position: relative;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brick-deep) 0%, var(--brick) 50%, var(--brick-deep) 100%);
}
.footer__top { display: grid; gap: var(--space-5); grid-template-columns: 1fr; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(247, 244, 237, 0.12); }
/* Small phones: brand spans full width, link columns go 2-up to halve the height */
@media (min-width: 380px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-5); row-gap: var(--space-5); }
  .footer__brand { grid-column: 1 / -1; }
}
/* Larger phones / small tablets: 3-up link columns */
@media (min-width: 600px) {
  .footer__top { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .footer__top { grid-template-columns: 1.8fr 1fr 1fr 1fr; row-gap: clamp(2.5rem, 5vw, 4rem); }
  .footer__brand { grid-column: auto; }
}
.footer__brand { display: grid; gap: var(--space-4); align-content: start; }
.footer__brand-mark {
  display: flex; align-items: center; gap: 1rem;
}
.footer__brand-mark img {
  width: 84px; height: 84px;
  flex-shrink: 0;
}
.footer__brand-name {
  display: grid; gap: 0.25rem;
}
.footer__brand-name strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  color: var(--paper);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.footer__brand-name span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  color: var(--brick-bright);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.footer__tag { font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; color: var(--brick-bright); margin-top: 0.25rem; }
.footer__addr { font-size: 0.9375rem; color: rgba(247, 244, 237, 0.75); line-height: 1.65; font-style: normal; }
.footer__addr a { color: var(--brick-bright); }
.footer h4, .footer .footer__col-heading { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brick); margin: 0 0 var(--space-3); }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.625rem; }
.footer__col a {
  color: rgba(247, 244, 237, 0.85);
  font-size: 0.9375rem;
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 500ms var(--ease), color 300ms ease;
}
@media (hover: hover) {
  .footer__col a:hover { background-size: 100% 1px; color: var(--brick-bright); }
}
.footer__bottom { display: grid; gap: var(--space-3); padding-top: var(--space-5); font-size: 0.8125rem; color: rgba(247, 244, 237, 0.55); }
@media (min-width: 720px) { .footer__bottom { grid-template-columns: 1fr auto; align-items: center; } }
.footer__social { display: flex; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.footer__social a { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: rgba(247, 244, 237, 0.08); color: var(--paper); }
.footer__social svg { width: 16px; height: 16px; }

/* ============================================================
   Wow components
   ============================================================ */

/* Reveals */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1100ms var(--ease), transform 1100ms var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
[data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
[data-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 100ms; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 400ms; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 500ms; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: 600ms; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: 700ms; }

/* Hero choreography — gentle Ken Burns so more of the image (and the sky)
   stays in view. Strong zoom was cropping the sky out from behind the nav. */
.hero__bg img { animation: kenBurns 26s ease-out forwards; transform-origin: center 50%; }
@keyframes kenBurns { 0% { transform: scale(1.08); } 100% { transform: scale(1.00); } }
.hero__inner > * { animation: heroFade 1300ms var(--ease) both; }
.hero__inner > *:nth-child(1) { animation-delay: 200ms; }
.hero__inner > *:nth-child(2) { animation-delay: 400ms; }
.hero__inner > *:nth-child(3) { animation-delay: 600ms; }
.hero__inner > *:nth-child(4) { animation-delay: 800ms; }
.hero__inner > *:nth-child(5) { animation-delay: 1000ms; }
@keyframes heroFade { 0% { opacity: 0; transform: translateY(28px); } 100% { opacity: 1; transform: none; } }

/* Marquee */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 1.25rem;
  border-block: 1px solid color-mix(in srgb, var(--brick) 22%, transparent);
  position: relative;
}
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 120px); z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(2.5rem, 5vw, 4.5rem); animation: marqueeSlide 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); white-space: nowrap; }
.marquee__item { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); }
.marquee__star { color: var(--brick-bright); font-size: 0.875rem; transform: translateY(-1px); display: inline-block; }
@keyframes marqueeSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Editorial pull quote — wider container, shorter cap on font, tighter padding */
.pull-quote--editorial {
  position: relative;
  padding-block: clamp(2.5rem, 4.5vw, 4.5rem) clamp(2.5rem, 4vw, 4rem);
  padding-inline: clamp(2rem, 6vw, 5rem);
  text-align: center;
  max-width: 1080px;
  margin-inline: auto;
  border: 0;
}
.pull-quote--editorial .pull-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  position: relative;
  z-index: 1;
}
.pull-quote--editorial .pull-quote__mark {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 0.75;
  color: var(--brick);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.pull-quote--editorial .pull-quote__mark--open { top: -0.1em; left: 0; }
.pull-quote--editorial .pull-quote__mark--close { bottom: -0.35em; right: 0; }
.pull-quote--editorial .pull-quote__cite {
  display: inline-block; margin-top: var(--space-4);
  font-family: var(--font-body); font-style: normal; font-size: 0.8125rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
}
.pull-quote--editorial .pull-quote__cite::before { content: "— "; }

/* Stats strip */
.stats { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, color-mix(in srgb, var(--brick) 20%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 85% 50%, color-mix(in srgb, var(--brick-deep) 14%, transparent) 0%, transparent 55%);
}
.stats__inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); text-align: center; }
.stat { display: grid; gap: 0.625rem; padding-block: 0.5rem; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: calc(-1 * clamp(1rem, 2vw, 1.75rem)); top: 20%; bottom: 20%; width: 1px; background: color-mix(in srgb, var(--brick) 30%, transparent); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(3rem, 4rem + 4vw, 6.5rem); line-height: 0.85; letter-spacing: -0.04em; color: var(--brick-bright); font-variant-numeric: tabular-nums; }
.stat__label { font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: rgba(247, 244, 237, 0.7); line-height: 1.4; }
@media (max-width: 720px) { .stat:not(:last-child)::after { display: none; } }

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-body); font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 8%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--success) 40%, var(--divider));
  color: #2d6a30;
}
.status-pill__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 35%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 0%, transparent); }
}
.status-pill--dark { background: color-mix(in srgb, var(--success) 14%, var(--ink)); color: #82d188; border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.status-pill--closed { background: color-mix(in srgb, var(--brick) 8%, var(--paper)); color: var(--brick-deep); border-color: color-mix(in srgb, var(--brick) 30%, var(--divider)); }
.status-pill--closed .status-pill__dot { background: var(--brick); animation: none; }

/* ============================================================
   THE HANDWRITTEN CARD SCRAPBOOK — brand's killer asset
   ============================================================ */
.scrapbook {
  position: relative;
  padding-block: clamp(3rem, 6vw, 6rem);
}
.scrapbook__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 640px)  { .scrapbook__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .scrapbook__grid { grid-template-columns: repeat(3, 1fr); } }
.notecard {
  position: relative;
  background: var(--paper-card);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem);
  box-shadow:
    0 1px 1px rgba(26, 35, 50, 0.04),
    0 8px 24px -8px rgba(26, 35, 50, 0.12),
    0 24px 48px -24px rgba(26, 35, 50, 0.18);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
  /* Slight tilt for each card via individual rotations applied inline or by nth-child */
}
.notecard:nth-child(1) { transform: rotate(-1.6deg); }
.notecard:nth-child(2) { transform: rotate(1.2deg); }
.notecard:nth-child(3) { transform: rotate(-0.7deg); }
.notecard:nth-child(4) { transform: rotate(2.1deg); }
.notecard:nth-child(5) { transform: rotate(-1.4deg); }
.notecard:nth-child(6) { transform: rotate(0.8deg); }
.notecard:nth-child(7) { transform: rotate(-2deg); }
.notecard:nth-child(8) { transform: rotate(1.5deg); }
.notecard:nth-child(9) { transform: rotate(-0.4deg); }
.notecard:nth-child(10) { transform: rotate(1.8deg); }
.notecard:nth-child(11) { transform: rotate(-1.2deg); }
.notecard:nth-child(12) { transform: rotate(0.5deg); }
@media (hover: hover) {
  .notecard:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 1px 1px rgba(26, 35, 50, 0.06), 0 18px 36px -8px rgba(26, 35, 50, 0.2), 0 40px 80px -32px rgba(26, 35, 50, 0.28); z-index: 2; }
}

/* Masking tape strip at the top of each card */
.notecard::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 88px; height: 22px;
  background: rgba(232, 197, 71, 0.55); /* warm tape color */
  border: 1px solid rgba(232, 197, 71, 0.4);
  box-shadow: inset 0 0 8px rgba(232, 197, 71, 0.3);
  z-index: 1;
}
.notecard:nth-child(odd)::before {
  background: rgba(184, 84, 40, 0.18);
  border-color: rgba(184, 84, 40, 0.15);
}

/* Faint paper-grain on each card */
.notecard::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(26, 35, 50, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(184, 84, 40, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.notecard__text {
  font-family: var(--font-script);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  position: relative;
  z-index: 0;
}
.notecard__sig {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-script);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  color: var(--brick-deep);
}
.notecard__meta {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

/* Variants of card paper for visual variety */
.notecard--cream { background: #FBF6E8; }
.notecard--blue { background: #EAF1F5; }
.notecard--rose { background: #F7EDE6; }

/* ============================================================
   PORTFOLIO GRID — real job photos as editorial
   ============================================================ */
.portfolio {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.5rem, 1vw, 1rem);
}
@media (min-width: 720px) {
  .portfolio { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .portfolio { grid-template-columns: repeat(3, 1fr); }
}
.portfolio__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}
.portfolio__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms var(--ease), filter 600ms ease, opacity 600ms ease;
}
.portfolio__item:hover img { transform: scale(1.05); filter: brightness(1.08); }
.portfolio__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 35, 50, 0.7) 100%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.portfolio__item:hover::after { opacity: 1; }
.portfolio__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-4);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms var(--ease);
  z-index: 1;
}
.portfolio__item:hover .portfolio__caption { opacity: 1; transform: translateY(0); }
.portfolio--tall .portfolio__item:nth-child(4n+1) { aspect-ratio: 4/5; }
.portfolio--tall .portfolio__item:nth-child(4n+3) { aspect-ratio: 1; }

/* ============================================================
   CREDENTIAL ROW (manufacturer badges - legacy)
   ============================================================ */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--divider);
}
.credential {
  text-align: center;
  display: grid;
  gap: 0.5rem;
  opacity: 0.85;
  transition: opacity 300ms ease;
}
.credential:hover { opacity: 1; }
.credential__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.credential__detail {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brick);
}

/* ============================================================
   AFFILIATIONS — real manufacturer + trade-association logos
   Image-centric grid with brick top-border accent on each card
   ============================================================ */
.affiliations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
@media (min-width: 560px)  { .affiliations { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px)  { .affiliations { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .affiliations { grid-template-columns: repeat(7, 1fr); } }

/* When the last item is orphaned in its row, span the full row and recenter
   constrained to a single column's width. Active for 2-col and 3-col layouts. */
@media (max-width: 559px) {
  .affiliation:nth-child(7):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.375rem);
    margin-inline: auto;
    width: 100%;
  }
}
@media (min-width: 560px) and (max-width: 879px) {
  .affiliation:nth-child(7):last-child {
    grid-column: 1 / -1;
    max-width: calc(33.3333% - 0.5rem);
    margin-inline: auto;
    width: 100%;
  }
}
.affiliation {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(0.75rem, 1.25vw, 1rem);
  min-height: clamp(110px, 13vw, 150px);
  background: var(--paper-card);
  border: 1px solid var(--divider);
  border-radius: 2px;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 300ms ease;
  overflow: hidden;
}
.affiliation::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brick);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 600ms var(--ease);
}
[data-stagger].is-visible .affiliation::before,
.affiliations:not(.reveal):not([data-stagger]) .affiliation::before { transform: scaleX(1); }
.affiliation img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(60px, 7vw, 84px);
  object-fit: contain;
  filter: saturate(0.95);
  transition: filter 300ms ease, transform 400ms var(--ease);
}
@media (hover: hover) {
  .affiliation:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brick) 35%, var(--divider));
    box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--brick-deep) 25%, var(--shadow));
  }
  .affiliation:hover img { filter: saturate(1.1); }
}

/* ============================================================
   ERA TIMELINE (About page)
   ============================================================ */
.era-marker {
  position: relative;
  padding-block: var(--space-7);
}
.era-marker__year {
  position: absolute;
  top: 0; right: clamp(-1rem, -0.5vw, 1rem);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(8rem, 22vw, 24rem);
  line-height: 0.78;
  color: var(--brick);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.era-marker__year--left { right: auto; left: clamp(-1rem, -0.5vw, 1rem); }
.era-marker > .container { position: relative; z-index: 1; }

/* ============================================================
   MADISON COUNTY MAP (Service Area)
   ============================================================ */
.county-map {
  position: relative;
  max-width: 720px;
  margin: var(--space-6) auto 0;
  padding: var(--space-6);
  background: var(--paper-card);
  border: 1px solid var(--divider);
  border-radius: 2px;
}
.county-map svg { width: 100%; height: auto; display: block; }
.county-map__pin { fill: var(--brick); transition: transform 300ms var(--ease); transform-origin: center; transform-box: fill-box; }
.county-map__pin:hover { transform: scale(1.3); }
.county-map__label { font-family: var(--font-display); font-size: 11px; font-style: italic; fill: var(--ink); }
.county-map__hq { fill: var(--brick); }
.county-map__hq-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; fill: var(--ink); }

/* ============================================================
   CONVERSION INFRASTRUCTURE
   ============================================================ */

/* ---------- Live shop-hours status pill — normal block, sits under nav ---------- */
.shop-status {
  position: relative;
  z-index: 1;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  margin-top: 72px; /* offset for fixed nav */
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--brick) 30%, transparent);
  opacity: 0;
  transition: opacity 400ms ease 200ms;
}
.shop-status.is-visible { opacity: 1; }
.shop-status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: statusPulse 2.2s ease-in-out infinite;
}
.shop-status--closed .shop-status__dot { background: var(--brick); animation: none; }
.shop-status__phone {
  margin-left: 1rem;
  color: var(--brick-bright);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.8125rem;
}
.shop-status__phone:hover { color: var(--paper); }
@media (max-width: 720px) { .shop-status { display: none; } /* phone bar handles this on mobile */ }

/* ---------- Sticky mobile CTA bar — Call + Estimate ----------
   Hidden by default; slides up once user scrolls past the hero. */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 48;
  display: none;
  background: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--brick) 30%, transparent);
  box-shadow: 0 -8px 24px -8px rgba(15, 27, 44, 0.4);
  padding: 0.5rem env(safe-area-inset-right) calc(0.5rem + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  transform: translateY(100%);
  transition: transform 380ms var(--ease);
  will-change: transform;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-width: 540px;
  margin: 0 auto;
  padding-inline: 0.5rem;
}
.sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 250ms ease, transform 250ms ease;
  min-height: 48px;
}
.sticky-cta__btn--call { background: var(--brick); color: var(--paper); }
.sticky-cta__btn--call:hover, .sticky-cta__btn--call:active { background: var(--brick-deep); }
.sticky-cta__btn--quote { background: transparent; color: var(--paper); border: 1.5px solid var(--paper); }
.sticky-cta__btn--quote:hover, .sticky-cta__btn--quote:active { background: var(--paper); color: var(--ink); }
.sticky-cta__btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.sticky-cta__btn-label { font-size: 0.8125rem; }
@media (max-width: 880px) {
  .sticky-cta { display: block; }
  /* Add bottom padding to body so content isn't hidden behind sticky bar */
  body { padding-bottom: 76px; }
  .footer { padding-bottom: calc(var(--space-6) + 60px); }
}

/* ---------- Above-the-fold trust strip ---------- */
.trust-bar {
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  color: var(--paper);
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 1px solid color-mix(in srgb, var(--brick) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--brick) 25%, transparent);
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  text-align: center;
}
.trust-bar__item {
  display: grid; gap: 0.125rem; padding-inline: 0.5rem;
  position: relative;
}
.trust-bar__item:not(:last-child)::after {
  content: ""; position: absolute; right: calc(-1 * clamp(0.5rem, 1.25vw, 1rem)); top: 25%; bottom: 25%; width: 1px;
  background: color-mix(in srgb, var(--brick-bright) 30%, transparent);
}
.trust-bar__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  color: var(--brick-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}
.trust-bar__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(247, 244, 237, 0.8);
}
@media (max-width: 720px) {
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1rem; }
  .trust-bar__item:not(:last-child)::after { display: none; }
  .trust-bar__num { font-size: 1rem; }
}

/* ---------- Hero quick-estimate widget ---------- */
.quick-quote {
  background: var(--paper-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 2px;
  box-shadow: 0 24px 60px -20px rgba(15, 27, 44, 0.4), 0 2px 8px rgba(15, 27, 44, 0.08);
  border-top: 4px solid var(--brick);
  display: grid; gap: var(--space-4);
  position: relative;
  z-index: 3;
}
.quick-quote__head { display: grid; gap: 0.375rem; }
.quick-quote__eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick-deep);  /* AA contrast on paper-card */
}
.quick-quote__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.quick-quote__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.quick-quote__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 540px) { .quick-quote__row { grid-template-columns: 1fr; } }
.quick-quote__field { display: grid; gap: 0.25rem; min-width: 0; }
.quick-quote__field label {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.quick-quote__field input,
.quick-quote__field select {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--divider);
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  border-radius: 2px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.quick-quote__field input:focus,
.quick-quote__field select:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brick) 18%, transparent);
}
.quick-quote__submit {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--brick);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 250ms ease, transform 250ms ease;
}
.quick-quote__submit:hover { background: var(--brick-deep); transform: translateY(-1px); }
.quick-quote__fine {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.quick-quote__fine strong { color: var(--ink); font-weight: 600; }

/* When the quick-quote sits inside the hero, give it a different layout */
.hero--with-quote .hero__inner { max-width: 580px; }
.hero--with-quote .quick-quote {
  position: relative;
  margin-top: var(--space-5);
}
@media (min-width: 880px) {
  .hero--with-quote .hero__inner {
    display: grid;
    grid-template-columns: 1fr minmax(340px, 420px);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    max-width: 1240px;
  }
  .hero--with-quote .quick-quote { margin-top: 0; }
  /* Ghost is still behind the form (z-index: 0 vs form z-index: 3); the
     scoped block above tunes size and opacity per breakpoint. */
}

/* ---------- Estimate CTA button (for nav) ---------- */
.nav__estimate-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
  text-decoration: none;
}
.nav.is-scrolled .nav__estimate-btn,
.nav--solid .nav__estimate-btn {
  color: var(--ink);
  border-color: var(--ink);
}
.nav__estimate-btn:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-1px);
}
.nav.is-scrolled .nav__estimate-btn:hover,
.nav--solid .nav__estimate-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
@media (min-width: 1180px) { .nav__estimate-btn { display: inline-flex; } }

/* ---------- Insurance claim quick-form (storm damage page) ---------- */
.insurance-helper {
  background: var(--paper-card);
  border: 1px solid var(--divider);
  border-top: 4px solid var(--emergency);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: var(--space-3);
  max-width: 640px;
  margin-inline: auto;
}
.insurance-helper__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  color: var(--ink);
  line-height: 1.15;
}
.insurance-helper__row { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .insurance-helper__row { grid-template-columns: 1fr; } }
.insurance-helper input,
.insurance-helper select {
  background: var(--paper);
  border: 1px solid var(--divider);
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  border-radius: 2px;
}
.insurance-helper input:focus,
.insurance-helper select:focus { outline: none; border-color: var(--emergency); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emergency) 18%, transparent); }
.insurance-helper__submit {
  background: var(--emergency);
  color: var(--paper);
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 250ms ease;
}
.insurance-helper__submit:hover { background: #9E3722; }

/* ---------- Focus / motion ---------- */
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  [data-stagger] > * { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .hero__bg img { animation: none; transform: none; }
  .hero__inner > * { animation: none; }
  /* reduced-motion: nothing to override — the ghost is already static */
  .status-pill__dot { animation: none; }
  .notecard { transform: none !important; }
}

@media print {
  .nav, .footer, .prefooter, .sticky-cta, .marquee, .nav__drawer, .shop-status { display: none !important; }
  body { background: white !important; color: black !important; font-size: 11pt; line-height: 1.4; padding-bottom: 0 !important; }
  h1, h2, h3, h4 { color: black !important; page-break-after: avoid; }
  a { color: black !important; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  a[href^="/"]:after, a[href^="#"]:after { content: ""; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  .hero, .hero--page { min-height: auto !important; background: white !important; }
  .hero__bg { display: none !important; }
  .hero__inner, .hero__title, .hero__page-title, .hero__sub, .hero__page-subtitle { color: black !important; text-shadow: none !important; }
  .stats, .section--dark, .section--brick { background: white !important; color: black !important; }
  .stats *, .section--dark *, .section--brick * { color: black !important; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  /* Trim heavy elements that don't translate to print */
  .scrapbook, .portfolio, .quick-quote, .insurance-helper { page-break-inside: avoid; }
  .notecard { box-shadow: none !important; border: 1px solid #999; }
  .notecard::before, .notecard::after { display: none !important; }
}

/* ============================================================
   Mobile refinements
   ============================================================ */
@media (max-width: 719px) {
  .container { padding-inline: 1.25rem; }
  .nav__inner { min-height: 64px; padding-block: 0.625rem; }
  .nav.is-scrolled .nav__inner { min-height: 56px; }
  .nav__brand img { height: 40px; }
  .nav__brand-text { font-size: 0.75rem; }
  .nav__cta { padding: 0.5rem 0.875rem; font-size: 0.6875rem; }
  .nav__drawer-links a { font-size: 1.5rem; }

  .hero { min-height: clamp(620px, 88svh, 820px); }
  /* More breathing room on mobile: looser stack + extra top space */
  .hero__inner { padding-block: clamp(6.5rem, 16vh, 8rem) clamp(3rem, 6vh, 4.5rem); gap: var(--space-6); }
  .hero__title { font-size: clamp(2.25rem, 1.5rem + 4vw, 3.25rem); }
  .hero__sub { font-size: 0.9375rem; line-height: 1.6; }
  .hero--with-quote .quick-quote { margin-top: var(--space-6); }
  .hero__cta.btn-row, .hero .btn-row { flex-direction: column; align-items: stretch; max-width: 320px; }
  .hero__cta .btn, .hero .btn { width: 100%; }

  .hero--page { min-height: clamp(320px, 50svh, 400px); }
  .hero__page-title { font-size: clamp(2rem, 1.5rem + 3vw, 2.75rem); }
  .hero__page-subtitle { font-size: 1.0625rem; }

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

  h1, .h1 { font-size: clamp(2rem, 1.6rem + 2.4vw, 2.75rem); }
  h2, .h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); }
  h3, .h3 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem); }
  .lead { font-size: 1rem; }

  .info-card { padding: var(--space-5); }
  .info-card h3 { font-size: 1.25rem; }

  .pull-quote--editorial { padding-inline: 1.25rem; padding-block: 4rem 3.5rem; }
  .pull-quote--editorial .pull-quote__text { font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.25rem); }
  .pull-quote--editorial .pull-quote__mark { font-size: clamp(6rem, 22vw, 10rem); }

  .stats__inner { gap: 2.5rem; }
  .stats__inner .stat { padding-block: 0; }

  .footer { padding-block: var(--space-6) var(--space-4); }
  .footer__top { gap: var(--space-5); padding-bottom: var(--space-4); }
  .footer__brand { gap: var(--space-3); }
  .footer__brand-mark img { width: 64px; height: 64px; }
  .footer__col h4 { margin-bottom: var(--space-2); }
  .footer__col ul { gap: 0.375rem; }
  .footer__addr { font-size: 0.875rem; line-height: 1.55; }

  .marquee { padding-block: 1rem; }
  .marquee__item { font-size: 0.9375rem; }

  .prefooter__inner { flex-direction: column; gap: var(--space-3); text-align: center; align-items: center; }

  .scrapbook__grid { gap: 2rem; }
  .notecard { padding: 1.5rem 1.25rem 1.25rem; }
  .era-marker__year { font-size: clamp(10rem, 50vw, 16rem); }
}
