/* ==========================================================================
   Driveways Ireland — styles.css
   Industrial-premium: asphalt darks + hi-vis amber. See DESIGN.md.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Asphalt darks */
  --asphalt: #14171a;
  --asphalt-2: #1f2428;
  --asphalt-3: #2b3137;
  /* Hi-vis amber */
  --hivis: #f5b50a;
  --hivis-bright: #ffc62b;
  --hivis-dark: #c8930a;
  /* Stone neutrals */
  --stone-50: #f7f6f3;
  --stone-100: #efece6;
  --stone-200: #e2ded5;
  --stone-300: #cfcabd;
  /* Text */
  --ink: #14171a;
  --ink-muted: #565c63;
  --paper: #f4f3f0;
  --paper-muted: #a4abb2;
  /* Functional */
  --line: #d99a00;
  --ok: #3f9d6e;
  --on-accent: #14171a;
  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20,23,26,.08), 0 2px 6px rgba(20,23,26,.06);
  --shadow-md: 0 8px 24px rgba(20,23,26,.12);
  --shadow-lg: 0 24px 60px rgba(20,23,26,.22);
  --shadow-amber: 0 10px 30px rgba(245,181,10,.28);

  /* Fonts */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Fluid type */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.6rem, 1.6rem + 4.6vw, 5.5rem);
  --text-4xl: clamp(3.2rem, 1.6rem + 7vw, 7rem);

  /* Spacing */
  --space-1: 0.5rem; --space-2: 0.75rem; --space-3: 1rem;
  --space-4: 1.5rem; --space-5: 2rem; --space-6: 3rem;
  --space-7: 4rem; --space-8: 6rem; --space-9: 8rem;

  --container: 1240px;
  --container-narrow: 760px;
  --section-pad: clamp(4rem, 8vw, 8rem);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --border: 1px solid var(--stone-300);
  --border-dark: 1px solid var(--asphalt-3);

  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* Lenis smooth-scroll (required runtime CSS). Without these, native
   scroll-behavior fights Lenis and the wheel stalls. When Lenis is NOT
   active (no JS, reduced motion), native smooth scroll kicks in instead. */
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--hivis); color: var(--on-accent); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { max-width: 68ch; }

.eyebrow {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--hivis-dark);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 0; border-top: 3px dashed var(--line); }
.on-dark .eyebrow, .dark .eyebrow { color: var(--hivis); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.dark { background: var(--asphalt); color: var(--paper); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: var(--paper-muted); }
.light { background: var(--stone-50); color: var(--ink); }
.light-2 { background: var(--stone-100); color: var(--ink); }

.dark { position: relative; }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(245,181,10,.04) 0 2px, transparent 2px 26px);
}
.dark > * { position: relative; z-index: 1; }

/* road-marking divider */
.road-rule { height: 0; border-top: 4px dashed var(--line); opacity: .85; margin-block: 0; }

.lede { font-size: var(--text-lg); color: var(--ink-muted); }
.dark .lede { color: var(--paper); opacity: .92; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 600; font-size: var(--text-base); line-height: 1;
  padding: 16px 32px; border-radius: var(--radius);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s;
  will-change: transform; text-align: center;
}
.btn--primary { background: var(--hivis); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--hivis-bright); box-shadow: var(--shadow-amber); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--hivis); color: var(--hivis-dark); background: transparent; }
.dark .btn--ghost, .on-dark .btn--ghost { color: var(--hivis); }
.btn--ghost:hover { background: rgba(245,181,10,.12); transform: translateY(-2px); }
.btn--lg { padding: 19px 40px; font-size: var(--text-lg); }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,23,26,.0); transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(20,23,26,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--asphalt-3); }

/* Contrast-aware nav: at the top the header is transparent over the light page
   background, so text is dark. Once scrolled, the header turns dark and the
   text flips to light. */
.site-header .brand,
.site-header .nav-links a,
.site-header .nav-call,
.site-header .brand small,
.site-header .brand .b-mark,
.site-header .nav-call svg,
.site-header .burger span { transition: color .3s var(--ease), background-color .3s var(--ease); }
.site-header .brand { color: var(--ink); }
.site-header .brand small { color: var(--ink-muted); }
.site-header .brand .b-mark { color: var(--hivis-dark); }
.site-header .nav-links a { color: var(--ink); }
.site-header .nav-call { color: var(--ink); }
.site-header .nav-call svg { color: var(--hivis-dark); }
.site-header .burger span { background: var(--ink); }
.site-header.scrolled .brand { color: #fff; }
.site-header.scrolled .brand small { color: var(--paper-muted); }
.site-header.scrolled .brand .b-mark { color: var(--hivis); }
.site-header.scrolled .nav-links a { color: var(--paper); }
.site-header.scrolled .nav-call { color: #fff; }
.site-header.scrolled .nav-call svg { color: var(--hivis); }
.site-header.scrolled .burger span { background: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: .6rem; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; }
.brand .b-mark { color: var(--hivis); }
.brand small { font-family: var(--font-mono); font-weight: 600; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--paper-muted); align-self: center; }
.brand-logo { height: 1.65em; width: auto; align-self: center; flex: none; margin-right: .15rem; }
.nav-links { display: none; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--paper); font-size: var(--text-sm); font-weight: 500; position: relative; padding-block: .4rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--hivis); transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: none; }
.nav-call { display: none; align-items: center; gap: .45rem; font-family: var(--font-mono); font-weight: 600; font-size: var(--text-sm); color: #fff; }
.nav-call svg { width: 17px; height: 17px; color: var(--hivis); }
.nav-call:hover { color: var(--hivis-bright); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--asphalt-2); border: var(--border-dark); border-radius: var(--radius);
  padding: .6rem; min-width: 220px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; display: grid; gap: 2px;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }
.dropdown a { padding: .55rem .8rem; border-radius: var(--radius-sm); font-size: var(--text-sm); }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--asphalt-3); color: var(--hivis-bright); }

.burger { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
  background: var(--asphalt-2); border-left: var(--border-dark);
  transform: translateX(100%); transition: transform .4s var(--ease);
  z-index: 200; padding: 5.5rem 1.8rem 2rem; display: flex; flex-direction: column; gap: .3rem; overflow-y: auto;
}
.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav a { color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; padding: .7rem 0; border-bottom: var(--border-dark); opacity: 0; transform: translateX(20px); }
.nav-open .mobile-nav a { animation: slideIn .4s var(--ease) forwards; }
.mobile-nav a:nth-child(1){animation-delay:.05s}.mobile-nav a:nth-child(2){animation-delay:.1s}.mobile-nav a:nth-child(3){animation-delay:.15s}.mobile-nav a:nth-child(4){animation-delay:.2s}.mobile-nav a:nth-child(5){animation-delay:.25s}.mobile-nav a:nth-child(6){animation-delay:.3s}.mobile-nav a:nth-child(7){animation-delay:.35s}.mobile-nav a:nth-child(8){animation-delay:.4s}
.mobile-nav .btn { margin-top: 1.2rem; opacity: 1; transform: none; }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 150; }
.nav-open .nav-scrim { opacity: 1; visibility: visible; }
.menu-close { position: absolute; top: 1.3rem; right: 1.3rem; color: #fff; font-size: 1.6rem; padding: .4rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background-color: var(--asphalt); color: var(--paper); overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 7rem); }
/* Cross-fading hero photo layers (surface swap from the estimator) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* Animatable reveal position for the paving sweep (registered so it can transition) */
@property --paving { syntax: '<length-percentage>'; inherits: false; initial-value: 114%; }
/* Layers stack; the incoming one sweeps up from the bottom with a soft, feathered edge — looks like the driveway being freshly paved */
.hero-bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center bottom; background-repeat: no-repeat; --paving: 114%; -webkit-mask-image: linear-gradient(to top, #000 calc(var(--paving) - 16%), rgba(0,0,0,0) var(--paving)); mask-image: linear-gradient(to top, #000 calc(var(--paving) - 16%), rgba(0,0,0,0) var(--paving)); transition: --paving 1.1s cubic-bezier(.66, 0, .34, 1); will-change: --paving; }
/* One-time intro: the cracked "before" driveway sits on top, then sweeps left→right with a wide, blurred feather to reveal the smooth tarmac beneath — the visitor watches their problem get repaved on load */
@property --wipe { syntax: '<length-percentage>'; inherits: false; initial-value: 0%; }
.hero-intro { position: absolute; inset: 0; z-index: 3; background-size: cover; background-position: center bottom; background-repeat: no-repeat; --wipe: 0%; -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) calc(var(--wipe) - 30%), #000 var(--wipe)); mask-image: linear-gradient(to right, rgba(0,0,0,0) calc(var(--wipe) - 30%), #000 var(--wipe)); transition: --wipe 1.7s cubic-bezier(.62, 0, .34, 1); will-change: --wipe; pointer-events: none; }
.hero-intro.is-done { --wipe: 132%; }
/* Darkening overlay sits above the photo, below content — keeps copy legible on every surface */
.hero::before { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(165deg, rgba(12,17,22,.93) 0%, rgba(12,17,22,.80) 30%, rgba(12,17,22,.50) 48%, rgba(12,17,22,.18) 66%, rgba(12,17,22,.05) 100%); pointer-events:none; }
.hero::after { content:""; position:absolute; inset:0; z-index:1; background-image: repeating-linear-gradient(135deg, rgba(245,181,10,.045) 0 2px, transparent 2px 28px); pointer-events:none; }
.hero-glow { position: absolute; right: -10%; top: 20%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(245,181,10,.22), transparent 62%); pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-copy h1 .accent { color: var(--hivis); }
.hero-sub { font-size: var(--text-lg); color: var(--paper); opacity: .9; margin-bottom: 1.6rem; max-width: 36ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 1.8rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-sm); color: var(--paper); font-weight: 500; }
.hero-points svg { width: 18px; height: 18px; color: var(--hivis); flex: none; }

/* ---------- Estimator ---------- */
.estimator {
  background: var(--asphalt-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: var(--border-dark); position: relative; overflow: hidden;
}
.estimator::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--hivis); }
.est-head { padding: 1.5rem 1.6rem 0; }
.est-steps { display: flex; gap: .4rem; margin-bottom: 1rem; }
.est-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--asphalt-3); transition: background .3s; }
.est-steps span.done { background: var(--hivis); }
.est-stepno { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); }
.est-q { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: #fff; margin: .25rem 0 1.1rem; letter-spacing: -.02em; }
.est-body { padding: 0 1.6rem 1.6rem; }
.est-panel { display: none; animation: estIn .4s var(--ease); }
.est-panel.active { display: block; }
@keyframes estIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.tile {
  display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
  padding: 1rem; border-radius: var(--radius); background: var(--asphalt);
  border: 2px solid var(--asphalt-3); color: var(--paper); text-align: left;
  transition: border-color .2s, transform .15s, box-shadow .2s; position: relative;
}
.tile:hover { border-color: var(--hivis-dark); transform: translateY(-2px); }
.tile.selected { border-color: var(--hivis); box-shadow: 0 0 0 3px rgba(245,181,10,.18); }
.tile .swatch { width: 100%; height: 46px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.08); }
.tile .t-name { font-weight: 700; font-size: var(--text-sm); color: #fff; }
.tile .t-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--paper-muted); }
.tile.selected .t-meta { color: var(--hivis-bright); }

.est-field { margin-top: .9rem; }
.est-field label { display: block; font-size: var(--text-xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--paper-muted); margin-bottom: .4rem; }
.opt-tag { text-transform: none; letter-spacing: 0; color: var(--ink-muted); opacity: .7; font-size: .92em; }
.est-input, .est-select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius); background: var(--asphalt);
  border: 2px solid var(--asphalt-3); color: #fff; transition: border-color .2s;
}
.est-input::placeholder { color: var(--paper-muted); }
.est-input:focus, .est-select:focus { outline: none; border-color: var(--hivis); }

.est-actions { display: flex; gap: .7rem; margin-top: 1.2rem; }
.est-back { color: var(--paper-muted); font-size: var(--text-sm); font-weight: 600; padding: .5rem .2rem; }
.est-back:hover { color: var(--hivis); }
.est-actions .btn { flex: 1; }

/* reveal panel */
.est-reveal { text-align: center; padding: .4rem 0 .2rem; }
.est-reveal .label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--paper-muted); }
.price-readout { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-4xl); color: var(--hivis); line-height: 1.05; letter-spacing: -.02em; margin: .3rem 0; font-variant-numeric: tabular-nums; }
.price-readout .cur { font-size: .5em; vertical-align: super; }
.price-readout.pop { animation: price-pop .55s var(--ease) both; }
@keyframes price-pop { 0% { transform: scale(.82); opacity: .4; } 55% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .price-readout.pop { animation: none; } }
.est-breakdown { font-size: var(--text-sm); color: var(--paper); opacity: .85; margin: 0 auto .4rem; max-width: 40ch; }
.est-noemail { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ok); }
.disclaimer { font-size: .72rem; color: var(--paper-muted); margin-top: .9rem; line-height: 1.5; }
.disclaimer-light { font-size: .72rem; color: var(--ink-muted); }

.est-thanks { text-align: center; padding: 1rem 0; }
.est-thanks .tick { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--ok); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--asphalt-2); border-block: var(--border-dark); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.4rem; padding-block: 1.3rem; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: var(--text-sm); color: var(--paper); font-family: var(--font-mono); font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--hivis); flex: none; }
.trust-item strong { color: #fff; font-weight: 600; }

/* ---------- Materials strip ---------- */
.materials { background: var(--asphalt); border-bottom: var(--border-dark); }
.materials-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.4rem; padding-block: 1rem; text-align: center; }
.materials-label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--paper-muted); }
.materials-names { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .9rem; }
.materials-names span { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-sm); color: var(--stone-300); opacity: .82; }
.materials-names span::before { content: "·"; color: var(--hivis); margin-right: .9rem; }
.materials-names span:first-child::before { content: none; }

/* ---------- Seasonal cue ---------- */
.season-cue { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; color: var(--hivis); }
.season-cue::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hivis); box-shadow: 0 0 0 0 rgba(245,181,10,.6); animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(245,181,10,.55); } 70% { box-shadow: 0 0 0 7px rgba(245,181,10,0); } 100% { box-shadow: 0 0 0 0 rgba(245,181,10,0); } }
@media (prefers-reduced-motion: reduce) { .season-cue::before { animation: none; } }

/* ---------- Cards / grids ---------- */
.bento { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.card {
  background: var(--stone-100); border: var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); transition: transform .3s var(--ease), box-shadow .3s; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dark .card { background: var(--asphalt-2); border: var(--border-dark); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-muted); font-size: var(--text-sm); }
.dark .card p { color: var(--paper-muted); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--asphalt); color: var(--hivis); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--hivis-dark); font-size: var(--text-sm); margin-top: 1rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* surface card with swatch — full-bleed material band across the card top.
   The swatch is a <span> (inline by default, so width/height are ignored and
   the box collapses); force it block and pull it edge-to-edge with negative
   margins equal to the card padding. overflow:hidden on the card rounds the
   band's top corners to match the card. */
.surface-card { overflow: hidden; }
.surface-card .swatch-lg {
  display: block;
  width: calc(100% + 2 * var(--space-5));
  height: clamp(120px, 14vw, 160px);
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-5);
  border: 0;
  border-radius: 0;
}
.surface-card .price-tag { font-family: var(--font-mono); font-weight: 600; color: var(--ink); font-size: var(--text-base); }
.surface-card .price-tag span { color: var(--ink-muted); font-size: var(--text-xs); }

/* process steps */
.steps { display: grid; gap: var(--space-4); grid-template-columns: 1fr; counter-reset: step; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step .num { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-lg); color: var(--on-accent); background: var(--hivis); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.step h3 { font-size: var(--text-lg); margin-bottom: .3rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-4); }
.stat { text-align: center; }
.stat .n { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-2xl); color: var(--hivis); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: var(--text-sm); color: var(--paper-muted); margin-top: .4rem; }

/* ---------- Cost tables ---------- */
.cost-table-wrap { overflow-x: auto; border-radius: var(--radius); border: var(--border); box-shadow: var(--shadow-sm); }
table.cost-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 480px; }
.cost-table th, .cost-table td { padding: .9rem 1rem; text-align: left; font-size: var(--text-sm); }
.cost-table thead th { background: var(--asphalt); color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; border-bottom: 3px solid var(--hivis); }
.cost-table tbody tr:nth-child(even) { background: var(--stone-100); }
.cost-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); }
.cost-table tbody tr:hover { background: var(--stone-200); }

/* ---------- Testimonials ---------- */
.reviews { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.review { background: var(--stone-100); border: var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.dark .review { background: var(--asphalt-2); border: var(--border-dark); }
.review .stars { color: var(--hivis); letter-spacing: 2px; margin-bottom: .8rem; }
.review p { font-size: var(--text-base); color: var(--ink); }
.dark .review p { color: var(--paper); }
.review .who { margin-top: 1rem; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); }
.dark .review .who { color: var(--paper-muted); }
.review .who b { color: var(--ink); font-weight: 600; }
.dark .review .who b { color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: var(--container-narrow); margin-inline: auto; }
.faq-item { border: var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.dark .faq-item { background: var(--asphalt-2); border: var(--border-dark); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); color: var(--ink); }
.dark .faq-q { color: #fff; }
.faq-q .ico { flex: none; width: 22px; height: 22px; position: relative; transition: transform .3s; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--hivis-dark); border-radius: 2px; }
.dark .faq-q .ico::before, .dark .faq-q .ico::after { background: var(--hivis); }
.faq-q .ico::before { top: 10px; left: 2px; right: 2px; height: 2.5px; }
.faq-q .ico::after { left: 10px; top: 2px; bottom: 2px; width: 2.5px; transition: transform .3s; }
.faq-item[open] .faq-q .ico::after { transform: scaleY(0); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-muted); font-size: var(--text-sm); }
.dark .faq-a { color: var(--paper-muted); }
details.faq-item summary { list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.gal-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--asphalt-3); aspect-ratio: 4/3; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal-item:hover img { transform: scale(1.06); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .8rem .6rem; background: linear-gradient(transparent, rgba(20,23,26,.85)); color: #fff; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--asphalt); color: var(--paper); position: relative; overflow: hidden; text-align: center; }
.cta-band::before { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(135deg, var(--hivis) 0 14px, transparent 14px 28px); opacity: .05; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: var(--paper); opacity: .9; margin: 0 auto 1.8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.dark .field label { color: #fff; }
.input, .textarea, .select {
  width: 100%; padding: .9rem 1rem; border-radius: var(--radius); background: #fff;
  border: var(--border); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--hivis); box-shadow: 0 0 0 3px rgba(245,181,10,.15); }
.textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: var(--text-xs); color: var(--ink-muted); margin-top: .3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt); color: var(--paper-muted); padding-block: var(--space-7) var(--space-5); }
.foot-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-brand p { font-size: var(--text-sm); color: var(--paper-muted); max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--paper-muted); margin-bottom: 1rem; }
.foot-col ul { display: grid; gap: .55rem; }
.foot-col a { color: var(--paper); font-size: var(--text-sm); opacity: .85; transition: color .2s, opacity .2s; }
.foot-col a:hover { color: var(--hivis); opacity: 1; }
.foot-contact a { display: flex; align-items: center; gap: .6rem; }
.foot-contact svg { width: 18px; height: 18px; color: var(--hivis); flex: none; }
.foot-bottom { border-top: var(--border-dark); margin-top: var(--space-6); padding-top: var(--space-4); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: var(--text-xs); color: var(--paper-muted); }
.foot-bottom a { color: var(--paper-muted); }
.foot-bottom a:hover { color: var(--hivis); }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--asphalt-3); transform: translateY(110%); transition: transform .35s var(--ease); box-shadow: 0 -4px 20px rgba(0,0,0,.25); }
.mobile-cta.show { transform: translateY(0); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; font-weight: 600; font-size: var(--text-sm); }
.mobile-cta .m-call { background: var(--asphalt-2); color: #fff; }
.mobile-cta .m-quote { background: var(--hivis); color: var(--on-accent); }
.mobile-cta svg { width: 18px; height: 18px; }

/* ---------- Second-chance lead slide-in ---------- */
.lead-slide { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 95; width: min(340px, calc(100vw - 2rem)); background: var(--asphalt-2); border: var(--border-dark); border-left: 3px solid var(--hivis); border-radius: 12px; padding: 1.2rem 1.3rem 1.3rem; box-shadow: 0 18px 50px rgba(0,0,0,.45); transform: translateY(140%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s var(--ease), visibility .5s; }
.lead-slide.show { transform: translateY(0); opacity: 1; visibility: visible; }
.lead-slide__eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--hivis); margin: 0 0 .35rem; }
.lead-slide__title { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.15; color: #fff; margin: 0 0 .45rem; }
.lead-slide__body { font-size: var(--text-sm); color: var(--paper); opacity: .82; margin: 0 0 .9rem; line-height: 1.5; }
.lead-slide__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.lead-slide__actions .btn { flex: 1 1 auto; }
.lead-slide__close { position: absolute; top: .55rem; right: .55rem; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--paper-muted); cursor: pointer; border-radius: 6px; font-size: 1.2rem; line-height: 1; transition: color .2s, background .2s; }
.lead-slide__close:hover { color: #fff; background: var(--asphalt-3); }
@media (max-width: 720px) { .lead-slide { bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .lead-slide { transition: opacity .2s, visibility .2s; transform: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); padding-block: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb a { color: var(--hivis-dark); }
.breadcrumb span { opacity: .6; }
.dark .breadcrumb, .hero .breadcrumb { color: var(--paper-muted); }
.dark .breadcrumb a, .hero .breadcrumb a { color: var(--hivis); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--asphalt); color: var(--paper); padding-block: clamp(2rem,5vw,3.5rem) clamp(3rem,6vw,5rem); position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(135deg, rgba(245,181,10,.04) 0 2px, transparent 2px 28px); pointer-events:none; }
/* Photo hero for surface pages — image set inline per page, dark overlay keeps copy legible */
.page-hero--photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero--photo::before { content:""; position:absolute; inset:0; background: linear-gradient(105deg, rgba(12,17,22,.94) 0%, rgba(12,17,22,.84) 42%, rgba(12,17,22,.60) 72%, rgba(12,17,22,.44) 100%); pointer-events:none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lede { margin-top: 1rem; max-width: 52ch; }
.page-hero .btn { margin-top: 1.8rem; }

/* prose */
.prose { max-width: var(--container-narrow); }
.prose h2 { margin-top: 2.6rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .6rem; }
.prose p { margin-bottom: 1rem; color: var(--ink); }
.prose ul.bullets { display: grid; gap: .6rem; margin: 1rem 0 1.4rem; }
.prose ul.bullets li { padding-left: 1.8rem; position: relative; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 0; border-top: 3px solid var(--hivis); }
.proscons { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin: 1.5rem 0; }
.pc { padding: var(--space-4); border-radius: var(--radius); border: var(--border); background: #fff; }
.pc h4 { margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.pc.pros h4 { color: var(--ok); }
.pc.cons h4 { color: var(--hivis-dark); }
.pc ul { display: grid; gap: .5rem; }
.pc li { font-size: var(--text-sm); padding-left: 1.4rem; position: relative; }
.pc li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; }
.pc.pros li::before { background: var(--ok); }
.pc.cons li::before { background: var(--hivis-dark); }

/* chips / county grid */
.chip-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .6rem; }
.chip { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-radius: var(--radius); background: var(--stone-100); border: var(--border); font-weight: 600; font-size: var(--text-sm); transition: transform .2s, border-color .2s, background .2s; }
.chip:hover { transform: translateY(-2px); border-color: var(--hivis); background: #fff; }
.chip svg { width: 16px; height: 16px; color: var(--hivis-dark); }

/* surface swatches (real material photos). The gradient colour stays as a
   fallback paint behind the image while it loads / if it 404s. Shared by the
   estimator tiles (.swatch) and the larger surface cards (.swatch-lg). */
.sw-resin, .sw-tarmac, .sw-block, .sw-gravel, .sw-concrete {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.sw-resin    { background-color: #946a2d; background-image: url(../images/resin-bound-top-down.webp); }
.sw-tarmac   { background-color: #1d2124; background-image: url(../images/tarmac-texture-seamless.avif); }
.sw-block    { background-color: #8f4632; background-image: url(../images/block-paving-texture.seamless.jpg); }
.sw-gravel   { background-color: #afa48c; background-image: url(../images/gravel-texture-top-down.jpg); }
.sw-concrete { background-color: #9d9d97; background-image: url(../images/concrete-texture-seamless.jpg); }

/* utility */
.reveal { opacity: 0; transform: translateY(40px); }
.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-6{margin-top:3rem}
.section-head { max-width: 60ch; margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin: .6rem 0 .8rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag { font-family: var(--font-mono); font-size: var(--text-xs); padding: .35rem .7rem; border-radius: var(--radius-pill); background: var(--stone-200); color: var(--ink); }
.dark .tag { background: var(--asphalt-3); color: var(--paper); }

/* preloader */
/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .trust-row { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .stats { grid-template-columns: repeat(4,1fr); }
  .chip-grid { grid-template-columns: repeat(3,1fr); }
  .proscons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .chip-grid { grid-template-columns: repeat(4,1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-call { display: inline-flex; }
  .burger { display: none; }
  .mobile-cta { display: none !important; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .bento--3 { grid-template-columns: repeat(3, 1fr); }
  .bento--feature > :first-child { grid-column: span 2; }
  .split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

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