/* ========================================================================
   Waypost Roofing — shared site styles
   Brand: navy + gold + cream. See CLAUDE.md for the full token rationale.
   ====================================================================== */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #16181f; }
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.005em;
  font-weight: 700;
}

/* Skip link — visible on keyboard focus only */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: #8a6d2d; color: #faf6e8; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* Visible focus rings on all interactive elements */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #c9a449;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Sub-page compact hero (services / about / gallery / reviews / contact).
   Home page hero uses the layered .hero / .hero__bg / .hero__mesh system below. */
.hero-bg-compact {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, #22242d 0%, #16110a 100%);
  background-color: #22242d;
}
.hero-bg-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 85% 0%, rgba(201,164,73,0.16), transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(14,16,24,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg-compact::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-compact > * { position: relative; z-index: 1; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Service card hover (icon-only variant — used on sub-pages if needed) */
.service-card { transition: transform .35s var(--ease-out, cubic-bezier(0.22,1,0.36,1)), box-shadow .35s ease, border-color .35s ease; position: relative; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(201,164,73,0.35); box-shadow: 0 28px 48px -22px rgba(138,109,45,0.4); }

/* Service card with photo header (home preview) */
.service-card-photo {
  position: relative;
  transition: transform .4s var(--ease-out, cubic-bezier(0.22,1,0.36,1)), box-shadow .4s ease, border-color .4s ease;
}
.service-card-photo:hover {
  transform: translateY(-6px);
  border-color: rgba(201,164,73,0.45);
  box-shadow: 0 32px 56px -22px rgba(20,16,8,0.30);
}
.service-card-photo .service-card-img img {
  transition: transform .9s var(--ease-out, cubic-bezier(0.22,1,0.36,1));
}
.service-card-photo:hover .service-card-img img {
  transform: scale(1.06);
}
.service-card-photo .service-icon {
  transition: transform .35s var(--ease-out, cubic-bezier(0.22,1,0.36,1));
}
.service-card-photo:hover .service-icon {
  transform: rotate(-6deg) scale(1.06);
}

/* Services page article photo figure */
.service-figure {
  position: relative;
}
.service-figure img {
  transition: transform .9s var(--ease-out, cubic-bezier(0.22,1,0.36,1));
}
.service-figure:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .service-card-photo, .service-card-photo .service-card-img img,
  .service-card-photo:hover, .service-card-photo:hover .service-card-img img,
  .service-card-photo .service-icon, .service-card-photo:hover .service-icon,
  .service-figure img, .service-figure:hover img { transition: none; transform: none; }
}
.service-card .service-icon {
  transition: transform .35s var(--ease-out, cubic-bezier(0.22,1,0.36,1)), background-color .35s, box-shadow .35s;
}
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.06);
  background-color: rgba(138,109,45,0.18);
  box-shadow: 0 0 0 6px rgba(201,164,73,0.10);
}
.service-card .service-arrow {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .35s var(--ease-out, cubic-bezier(0.22,1,0.36,1)), transform .35s var(--ease-out, cubic-bezier(0.22,1,0.36,1));
  color: #8a6d2d;
}
.service-card:hover .service-arrow,
.service-card:focus-visible .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Editorial numbered list — Why Us */
.editorial-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 1.75rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(20,16,8,0.08);
}
.editorial-row:last-child { border-bottom: 1px solid rgba(20,16,8,0.08); }
.editorial-row .num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 0.85;
  color: #c9a449;
  letter-spacing: -0.02em;
  min-width: 3.5rem;
}

/* Review card — dark with left-edge gold rule + pull-quote glyph */
.review-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid #c9a449;
  border-radius: 0.5rem 1rem 1rem 0.5rem;
  padding: 2rem 2rem 1.75rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.review-card:hover {
  transform: translateY(-3px);
  border-left-color: #ecdc7d;
  box-shadow: 0 22px 50px -22px rgba(0,0,0,0.55);
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: -0.18em; right: 0.15em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: #c9a449;
  opacity: 0.15;
  pointer-events: none;
  font-weight: 700;
  z-index: 0;
}
.review-card > * { position: relative; z-index: 1; }

/* Review card — light bg variant (used on reviews.html) */
.review-card-light {
  position: relative;
  background: #fff;
  border: 1px solid rgba(20,16,8,0.08);
  border-left: 3px solid #c9a449;
  border-radius: 0.5rem 1rem 1rem 0.5rem;
  padding: 1.75rem 2rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.review-card-light:hover {
  transform: translateY(-3px);
  border-left-color: #8a6d2d;
  box-shadow: 0 22px 40px -22px rgba(20,16,8,0.20);
}
.review-card-light::before {
  content: '\201C';
  position: absolute;
  top: -0.18em; right: 0.15em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: #c9a449;
  opacity: 0.18;
  pointer-events: none;
  font-weight: 700;
  z-index: 0;
}
.review-card-light > * { position: relative; z-index: 1; }

/* Stat row — counter cells */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stat-cell {
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
}
.stat-cell .stat-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
  color: #ecdc7d;
  display: block;
}
.stat-cell .stat-suffix {
  font-style: normal;
  color: rgba(255,255,255,0.45);
  font-size: 0.6em;
  margin-left: 0.15em;
}
.stat-cell .stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 600px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* Before/after slider — two normal images stacked, the top one clipped by --ba.
   Pass each image as a separate file (no compositing trickery). Slider's
   aspect-ratio is set per-instance via inline style to match the photo. */
.ba-slider {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: #16181f;
  --ba: 50%;
  cursor: ew-resize;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-img.ba-before {
  clip-path: inset(0 calc(100% - var(--ba)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--ba)) 0 0);
}
.ba-slider .ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba);
  width: 2px;
  background: #c9a449;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15), 0 0 24px rgba(201,164,73,0.35);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.ba-slider .ba-knob {
  position: absolute;
  top: 50%; left: var(--ba);
  transform: translate(-50%, -50%);
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: #c9a449;
  display: flex; align-items: center; justify-content: center;
  color: #16181f;
  cursor: ew-resize;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 0 0 3px rgba(255,255,255,0.85);
  z-index: 3;
  transition: transform .2s var(--ease-out);
}
.ba-slider:focus-within .ba-knob,
.ba-slider:hover .ba-knob {
  transform: translate(-50%, -50%) scale(1.05);
}
.ba-knob::before, .ba-knob::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  border-style: solid;
  transform: translateY(-50%);
}
.ba-knob::before {
  left: 0.6rem;
  border-width: 5px 7px 5px 0;
  border-color: transparent #16181f transparent transparent;
}
.ba-knob::after {
  right: 0.6rem;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #16181f;
}
.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.85rem;
  background: rgba(20,16,8,0.7);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.10);
  z-index: 2;
}
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .ba-slider:focus-within .ba-knob,
  .ba-slider:hover .ba-knob { transform: translate(-50%, -50%); }
}

/* Sticky-scroll process (about.html) — left side stepper, right side blocks */
.process-stepper {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0;
  border-left: 1px solid rgba(20,16,8,0.10);
}
.process-step a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.65rem 0;
  font-family: 'Inter', system-ui, sans-serif;
  text-decoration: none;
  color: rgba(20,16,8,0.45);
  transition: color .35s var(--ease-out);
}
.process-step a:hover { color: #16181f; }
.process-step.is-active a { color: #16181f; }
.process-step-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  color: rgba(20,16,8,0.30);
  transition: color .35s var(--ease-out);
}
.process-step.is-active .process-step-num { color: #c9a449; }
.process-step-name { font-weight: 500; font-size: 0.95rem; }

.process-list { list-style: none; padding: 0; margin: 0; }
.process-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(20,16,8,0.08);
  scroll-margin-top: 6rem;
}
.process-block:first-child { padding-top: 0; border-top: 0; }
.process-block:last-child { padding-bottom: 0; }
.process-block .process-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 0.85;
  color: #c9a449;
  letter-spacing: -0.02em;
  min-width: 3.5rem;
}
@media (max-width: 767px) {
  .process-stepper { display: none; }
  .process-block { padding: 1.75rem 0; gap: 1rem 1.25rem; }
}

/* CTA panel — soft layered card */
.cta-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  position: relative;
  isolation: isolate;
}
@media (min-width: 768px) {
  .cta-panel { padding: 3.5rem 3rem; }
}

/* Active nav link state */
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after {
  content: ''; display: block; height: 2px; background: #c9a449;
  margin-top: 2px; border-radius: 2px;
}

/* Brand mark image — sits in lockups across header/menu/footer */
.brand-mark {
  display: inline-block;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.4rem;
  background: #22242d url('assets/waypost-mark.png') center/cover no-repeat;
  flex-shrink: 0;
}

/* Sticky-call bar — disabled (hero CTAs handle conversion above the fold) */
.sticky-call { display: none !important; }

/* Subtle pattern in trust bar */
.ribbed {
  background-image: repeating-linear-gradient(
    135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 8px
  );
}

/* Mobile menu */
#mobile-menu { transition: opacity .2s ease, visibility .2s; }
#mobile-menu.hidden { opacity: 0; visibility: hidden; }
body.menu-open { overflow: hidden; }

/* Honeypot — hidden from users, visible to bots */
.hp-field {
  position: absolute !important;
  left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

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

/* ========================================================================
   DESIGN SYSTEM v2 — premium pass
   Editorial heritage trade aesthetic. Hairline rules, layered shadows,
   subtle grain, deliberate motion. Everything below respects
   prefers-reduced-motion (overrides at the bottom of this section).
   ====================================================================== */

:root {
  --rule-color: rgba(201, 164, 73, 0.55);
  --rule-color-strong: rgba(201, 164, 73, 0.85);
  --shadow-1: 0 1px 2px rgba(20, 16, 8, 0.05);
  --shadow-2: 0 1px 2px rgba(20, 16, 8, 0.06), 0 12px 28px -16px rgba(20, 16, 8, 0.18);
  --shadow-3: 0 1px 2px rgba(20, 16, 8, 0.06), 0 22px 50px -22px rgba(20, 16, 8, 0.28);
  --shadow-glow: 0 0 0 1px rgba(201, 164, 73, 0.25), 0 18px 40px -18px rgba(138, 109, 45, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 360ms;
}

/* Noise overlay — single inline SVG (no extra request).
   Apply to a wrapper that is `position: relative`. */
.noise { position: relative; }
.noise > * { position: relative; z-index: 1; }
.noise::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}
.noise--dark::after {
  opacity: 0.18;
  mix-blend-mode: overlay;
}

/* Eyebrow kicker — hairline rule + small caps.
   Use .eyebrow--light on dark backgrounds; .eyebrow--center for centred sections. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6d2d;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: #c9a449; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Hairline horizontal divider (gold gradient, 1px) */
.hairline {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-color), transparent);
}

/* Layered shadow utilities */
.shadow-layered { box-shadow: var(--shadow-2); }
.shadow-layered-lg { box-shadow: var(--shadow-3); }
.shadow-glow { box-shadow: var(--shadow-glow); }

/* Tactile CTA — opt-in lift + arrow shift.
   Add `.btn-lift` to any anchor/button that already has Tailwind colour utilities. */
.btn-lift {
  position: relative;
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out), background-color 200ms;
  will-change: transform;
}
.btn-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn-lift:active { transform: translateY(0); transition-duration: 80ms; }
.btn-lift svg { transition: transform 280ms var(--ease-out); }
.btn-lift:hover svg.icon-arrow { transform: translateX(4px); }

/* Tile-edge motif — three thin gold rules across the top of a card.
   Echoes a roof course. Apply alongside `position: relative` parent. */
.tile-top { position: relative; isolation: isolate; }
.tile-top::before {
  content: '';
  position: absolute;
  top: 0; left: 1.75rem; right: 1.75rem;
  height: 7px;
  background-image:
    linear-gradient(#c9a449, #c9a449),
    linear-gradient(#c9a449, #c9a449),
    linear-gradient(#c9a449, #c9a449);
  background-size: 100% 1px;
  background-position: 0 0, 0 3px, 0 6px;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out);
}
.tile-top:hover::before, .tile-top:focus-within::before { opacity: 1; }

/* Editorial italic numeral — for numbered lists and pull figures */
.numeral {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 0.9;
  color: #c9a449;
  letter-spacing: -0.02em;
  display: inline-block;
}
.numeral--ink { color: #22242d; }

/* Pull-quote glyph for review cards. Parent must be `position: relative`. */
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.15em; right: 0.2em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: #c9a449;
  opacity: 0.18;
  pointer-events: none;
  font-weight: 700;
}

/* Floating-label form field. Required HTML order: input THEN label inside .field.
   Add placeholder=" " (a single space) to the input/textarea so :placeholder-shown
   works for empty state. Also styles selects via `.has-value` toggle (set by JS). */
.field { position: relative; }
.field > input,
.field > textarea,
.field > select {
  width: 100%;
  padding: 1.5rem 1rem 0.55rem;
  background: #fff;
  border: 1px solid #e0d8c5;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: #16181f;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  appearance: none;
}
.field > textarea { min-height: 7.5rem; resize: vertical; }
.field > input:focus,
.field > textarea:focus,
.field > select:focus {
  border-color: #8a6d2d;
  box-shadow: 0 0 0 4px rgba(138,109,45,0.12);
  outline: none;
}
.field > label {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  font-size: 0.95rem;
  color: #6f6a5e;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .22s var(--ease-out), color .22s;
  background: transparent;
}
.field > input:focus ~ label,
.field > input:not(:placeholder-shown) ~ label,
.field > textarea:focus ~ label,
.field > textarea:not(:placeholder-shown) ~ label,
.field > select:focus ~ label,
.field > select.has-value ~ label {
  transform: translate(0, -0.6rem) scale(0.78);
  color: #8a6d2d;
}

/* Stagger reveal — set --delay on .reveal children via [data-stagger] (JS plumbing) */
.reveal { transition-delay: var(--delay, 0s); }

/* Parallax helper — JS sets --py on scroll. Element must opt in with [data-parallax]. */
[data-parallax] {
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}

/* Hero entrance — gentle scale-in on first paint (Ken Burns lite) */
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero-zoom { animation: hero-zoom 9s var(--ease-out) both; transform-origin: 50% 60%; }

/* ------------------------------------------------------------------------
   Home page hero — layered: bg image + parallax wrap, gradient mesh,
   grain overlay, content. The Ken Burns zoom lives on .hero__bg-inner so
   it composes cleanly with the [data-parallax] translate3d on .hero__bg.
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  background-color: #14141c;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero__bg {
  position: absolute;
  left: 0; right: 0;
  top: -20%; bottom: -20%;
  z-index: 0;
}
.hero__bg-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, #2a2c36 0%, #16181f 60%, #0e1018 100%);
  background-color: #16181f;
}
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(201,164,73,0.18), transparent 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(20,16,8,0.85), transparent 70%),
    linear-gradient(180deg, rgba(20,18,12,0.55) 0%, rgba(14,16,24,0.92) 100%);
  pointer-events: none;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 3; }

/* Trust card — glass panel pinned to the hero right column */
.trust-card {
  background: linear-gradient(180deg, rgba(34,36,45,0.55), rgba(20,16,8,0.72));
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    inset 0 0 0 1px rgba(201,164,73,0.10),
    0 30px 60px -28px rgba(0,0,0,0.60);
}

/* Subtle scroll cue at the bottom of the hero */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(201,164,73,0.8), transparent);
  animation: scroll-cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-cue {
  0% { transform: scaleY(0.2); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0; transform-origin: bottom; }
}

/* Live-dot pulse for "emergency leak" callout */
.live-dot {
  position: relative;
  display: inline-flex;
  width: 0.55rem; height: 0.55rem;
}
.live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: rgba(236,220,125,0.45);
  animation: live-ping 1.8s cubic-bezier(0,0,0.2,1) infinite;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #ecdc7d;
}
@keyframes live-ping {
  0% { transform: scale(0.6); opacity: 0.85; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   Postcode coverage checker — small lookup widget on contact / about.
   Tied to the JS in assets/app.js (data-postcode-check).
   ========================================================================== */
.postcode-check {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.postcode-check__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.postcode-check__row > input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #16181f;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.postcode-check__row > input::placeholder {
  text-transform: none;
  font-weight: 400;
  color: #6b7280;
}
.postcode-check__row > button {
  padding: 0.85rem 1.25rem;
  border-radius: 0.6rem;
  background: #8a6d2d;
  color: #ffffff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.postcode-check__row > button:hover { background: #6d5520; }

.postcode-result {
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 0;
  color: inherit;
}
.postcode-result:empty { display: none; }
.postcode-result--ok,
.postcode-result--info,
.postcode-result--warn {
  padding: 0.7rem 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
}
.postcode-result--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.postcode-result--info {
  background: #f3eee2;
  border-color: rgba(138,109,45,0.25);
  color: #3a3f4d;
}
.postcode-result--warn {
  background: #fef3c7;
  border-color: #fde68a;
  color: #78350f;
}
.postcode-result__link {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Multi-step quote form — progress indicator + step transitions.
   The form is one <form> with .form-step children; only the active step
   is visible. The honeypot stays on the form root so it submits with all
   the visible fields when Step 3's submit button fires.
   ========================================================================== */
.form-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.25rem;
  counter-reset: step;
}
.form-progress__step {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6b7280;
}
.form-progress__step::before {
  counter-increment: step;
  content: counter(step);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #f3eee2;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  flex-shrink: 0;
}
.form-progress__step::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: #e5e7eb;
  margin-left: 0.55rem;
}
.form-progress__step:last-child::after { display: none; }
.form-progress__step.is-active {
  color: #16181f;
}
.form-progress__step.is-active::before {
  background: #8a6d2d;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(138,109,45,0.15);
}
.form-progress__step.is-done::before {
  background: #16181f;
  color: #c9a449;
}
.form-progress__step.is-done::after {
  background: #16181f;
}

.form-step { display: none; }
.form-step.is-active { display: block; animation: form-step-in 220ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both; }
@keyframes form-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-step__nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.form-step__prev,
.form-step__next {
  flex: 1 1 0;
  padding: 0.95rem 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.form-step__prev {
  background: transparent;
  border-color: #e5e7eb;
  color: #3a3f4d;
}
.form-step__prev:hover { background: #f3eee2; }
.form-step__next {
  background: #8a6d2d;
  color: #ffffff;
  border-color: #8a6d2d;
}
.form-step__next:hover { background: #6d5520; border-color: #6d5520; }

@media (prefers-reduced-motion: reduce) {
  .form-step.is-active { animation: none; }
}

/* ==========================================================================
   Checkatrade "Approved" sticker — used as a trust badge on key pages.
   The official Checkatrade artwork is not bundled with the repo, so this is a
   brand-aligned text+tick badge rendered from CSS + inline SVG. Drops a
   small visual seal that links through to our Checkatrade profile.
   Use .ca-sticker--lg for hero placements, default size for inline / footer.
   ========================================================================== */
.ca-sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  border-radius: 999px;
  background: #0C5A2A;          /* Checkatrade brand green */
  color: #ffffff;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 8px 18px -10px rgba(12, 90, 42, 0.45),
    0 18px 30px -22px rgba(0, 0, 0, 0.35);
  transition: transform 220ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow 220ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  line-height: 1.15;
  font-family: 'Inter', system-ui, sans-serif;
}
.ca-sticker:hover,
.ca-sticker:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    0 14px 28px -10px rgba(12, 90, 42, 0.55),
    0 22px 38px -22px rgba(0, 0, 0, 0.4);
}
.ca-sticker__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0C5A2A;
  flex-shrink: 0;
}
.ca-sticker__tick svg { width: 1.15rem; height: 1.15rem; }
.ca-sticker__body {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  padding-right: 0.25rem;
}
.ca-sticker__brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
}
.ca-sticker__brand em {
  font-style: normal;
  font-weight: 700;
  color: #C9F2D5;
}
.ca-sticker__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}

.ca-sticker--lg {
  gap: 1rem;
  padding: 0.85rem 1.25rem 0.85rem 0.85rem;
}
.ca-sticker--lg .ca-sticker__tick { width: 2.45rem; height: 2.45rem; }
.ca-sticker--lg .ca-sticker__tick svg { width: 1.4rem; height: 1.4rem; }
.ca-sticker--lg .ca-sticker__brand { font-size: 1.05rem; }
.ca-sticker--lg .ca-sticker__label { font-size: 0.74rem; }

.ca-sticker--light {
  background: #ffffff;
  color: #0C5A2A;
  box-shadow:
    inset 0 0 0 1px rgba(12,90,42,0.12),
    0 12px 22px -10px rgba(0, 0, 0, 0.18);
}
.ca-sticker--light .ca-sticker__tick { background: #0C5A2A; color: #ffffff; }
.ca-sticker--light .ca-sticker__brand em { color: #0C5A2A; }
.ca-sticker--light .ca-sticker__label { color: rgba(12,90,42,0.78); }

/* Reduced-motion overrides for the new layer */
@media (prefers-reduced-motion: reduce) {
  .hero-zoom { animation: none; }
  .hero__bg-inner { animation: none; }
  .scroll-cue::after { animation: none; opacity: 0.5; transform: scaleY(1); }
  .live-dot::before { animation: none; }
  .btn-lift { transition: none; }
  .btn-lift:hover { transform: none; box-shadow: var(--shadow-2); }
  .btn-lift:hover svg.icon-arrow { transform: none; }
  .tile-top:hover::before, .tile-top:focus-within::before { opacity: 0.45; }
  [data-parallax] { transform: none !important; }
  .ca-sticker { transition: none; }
  .ca-sticker:hover, .ca-sticker:focus-visible { transform: none; }
}
