/* ==========================================================================
   Verleijsdonk BV — Design tokens & base

   Direction: a warm, trustworthy vakbedrijf site built on real work
   photography, refined with Apple's interface principles:
   - translucent chrome (header, action bar) with scroll-edge shadows
   - size-specific tracking and leading on type
   - instant press feedback, critically damped motion, no overshoot
   - one consistent entrance direction (up), interruptible transitions
   - reduced motion, reduced transparency and high contrast respected
   ========================================================================== */

:root {
  /* Brand */
  --red: #EE0000;
  --red-dark: #C40000;
  --blue: #002D6E;
  --blue-dark: #001C47;
  --blue-tint: #E8EEF6;
  --red-tint: #FDECEC;

  /* Neutrals */
  --ink: #14161B;
  --ink-soft: #464A53;
  --muted: #6C7079;
  --line: #E6E3DD;
  --line-strong: #D6D2CA;
  --paper: #FFFFFF;
  --paper-alt: #F6F4EF;
  --dark: #0F1115;
  --dark-2: #181B22;

  /* Type */
  --font-tag: var(--font-body); /* one typeface everywhere: small labels use Inter too */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Motion: critically damped feel, no bounce on UI that wasn't flicked */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-press: 110ms;
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 560ms;

  /* Layout */
  --container: 1200px;

  /* Heading scale: card titles and list/step titles */
  --h3-lg: 1.5rem;
  --h3-sm: 1.15rem;
  --header-h: 78px;
  /* Strakke hoeken, in lijn met het hoekige logo. Eén plek om bij te stellen. */
  --radius-sm: 3px;   /* knoppen, velden, tabs */
  --radius: 5px;      /* tab- en keuzebalken */
  --radius-lg: 6px;   /* kaarten, foto's, panelen */
  --radius-xl: 6px;
  --shadow-sm: 0 1px 2px rgba(20,22,27,.06), 0 1px 1px rgba(20,22,27,.04);
  --shadow: 0 12px 32px -8px rgba(20,22,27,.14), 0 2px 6px rgba(20,22,27,.05);
  --shadow-lg: 0 32px 64px -16px rgba(20,22,27,.28), 0 6px 16px rgba(20,22,27,.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
  padding-top: max(var(--header-h), env(safe-area-inset-top) + 62px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font-family: inherit; }

/* Type: tighter tracking and leading as size grows, body left near zero */
h1, h2, h3, h4 { font-family: var(--font-body); margin: 0; color: var(--ink); font-weight: 800; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2, h3, h4 { hyphens: manual; -webkit-hyphens: manual; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 2.9vw, 2.45rem); line-height: 1.1; letter-spacing: -0.024em; }
h3 { font-size: var(--h3-sm); line-height: 1.3; font-weight: 700; letter-spacing: -0.012em; }
h4 { letter-spacing: 0; }

/* Small stamped label, used sparingly */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.tag.tag-on-dark { color: #FF8A80; }
.tag.tag-on-photo { color: #fff; }

.lede { font-size: 1.075rem; color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }
.lede + .lede { margin-top: 14px; }
h2 + .lede, h1 + .lede { margin-top: 18px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Grid tracks default to min-width:auto, which lets long Dutch compounds
   force a column wider than the viewport. */
.hero-grid > *, .wp-grid > *, .trade-grid > *, .maint-grid > *, .contact-panel > *, .footer-top > *, .section-head-split > *, .field-row > * {
  min-width: 0;
}

.section { padding: 112px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px 64px; align-items: end; }
.section-head-split .hero-cta { margin-top: 22px; }

.bg-alt { background: var(--paper-alt); }
.bg-dark { background: var(--dark); color: #fff; }
.bg-dark .lede { color: rgba(255,255,255,.7); }
.bg-dark h2, .bg-dark h3 { color: #fff; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 900; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: top var(--dur-fast) var(--ease-out); }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(0,45,110,.45); outline-offset: 3px; }

/* ==========================================================================
   Buttons: feedback on press, not on release
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .97rem;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur) var(--ease-out); }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(238,0,0,.55); }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.38); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); border-color: #fff; }

.btn-link-light { color: #fff; padding-left: 8px; padding-right: 8px; }
.btn-link-light:hover svg { transform: translateY(3px); }

.btn-sm { min-height: 40px; padding: 9px 18px; font-size: .88rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header: translucent material, scroll-edge shadow instead of a hard rule
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(20,22,27,.06);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
  padding-top: env(safe-area-inset-top);
}
.site-header.is-solid { background: rgba(255,255,255,.86); box-shadow: 0 1px 0 rgba(20,22,27,.06), 0 10px 30px -18px rgba(20,22,27,.35); }
.site-header.mob-hidden { transform: translateY(-110%); }

.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600; color: var(--ink-soft); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.nav-links a:hover { background: rgba(20,22,27,.05); color: var(--ink); }
.nav-links a:active { background: rgba(20,22,27,.09); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform var(--dur) var(--ease-out); }
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--ink); padding: 9px 6px; font-variant-numeric: tabular-nums; }
.nav-phone svg { display: none; width: 22px; height: 22px; color: var(--red); }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; transition: transform var(--dur-press) var(--ease-out); }
.burger:active { transform: scale(.94); }
.burger svg { width: 20px; height: 20px; }

/* Mobile menu enters and leaves along the same path (from the top) */
#mobMenu {
  position: fixed; inset: 0; z-index: 600;
  background: var(--dark);
  display: flex; flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) 28px max(40px, env(safe-area-inset-bottom));
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
  visibility: hidden;
}
#mobMenu.is-open { transform: translateY(0); visibility: visible; transition: transform var(--dur-slow) var(--ease-out), visibility 0s; }
.mob-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.mob-top img { height: 30px; width: auto; }
.mob-close { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.mob-close svg { width: 20px; height: 20px; color: #fff; }
.mob-links { display: flex; flex-direction: column; }
.mob-links a { color: #fff; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mob-links a:active { color: rgba(255,255,255,.6); }
.mob-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 32px; }

/* ==========================================================================
   Hero: full-bleed work photo, copy left, quote form right
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(880px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 68%; transform: scale(1.05); animation: heroZoom 14s var(--ease-out) forwards; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,16,.86) 0%, rgba(10,12,16,.62) 40%, rgba(10,12,16,.3) 70%, rgba(10,12,16,.4) 100%),
    linear-gradient(0deg, rgba(10,12,16,.5) 0%, rgba(10,12,16,0) 34%);
}

.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) 440px; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy h1 { color: #fff; max-width: 17ch; }
.hero-copy .lede { color: rgba(255,255,255,.86); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 32px; }

.hero-facts { display: flex; gap: 0; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); max-width: 520px; }
.hero-facts li { flex: 1; padding-right: 20px; }
.hero-facts li + li { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-facts strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: .86rem; color: rgba(255,255,255,.72); line-height: 1.35; display: block; margin-top: 4px; }

/* Quote card: a light material floating above the photo */
.quote-card {
  position: relative;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 28px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, var(--shadow-lg);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.quote-card.is-highlight { animation: cardFocus 900ms var(--ease-out); }
@keyframes cardFocus {
  0% { box-shadow: 0 0 0 0 rgba(238,0,0,.0), var(--shadow-lg); }
  30% { box-shadow: 0 0 0 6px rgba(238,0,0,.28), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(238,0,0,0), var(--shadow-lg); }
}
.quote-title { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; }
.quote-sub { font-size: .92rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.quote-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }

.seg-field legend { padding: 0; }
.field-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .005em; }
.field-label .opt { font-weight: 500; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  min-height: 46px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9A9DA4; }
.field input:hover, .field textarea:hover { border-color: #BDB8AE; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20,22,27,.08); }
.field.is-invalid input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(238,0,0,.1); }
.field.is-valid input { border-color: #2E8B57; }
.field-error { display: block; font-size: .78rem; font-weight: 600; color: var(--red-dark); min-height: 0; margin-top: 5px; }
.field-error:empty { display: none; }

/* Segmented control: the thumb slides from where it is, never jumps */
.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #EFECE6;
  border-radius: var(--radius);
  padding: 4px;
}
.seg label { position: relative; z-index: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 6px 4px;
  font-size: .84rem; font-weight: 600; color: var(--ink-soft);
  border-radius: var(--radius-sm); text-align: center; line-height: 1.15;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.seg label:active span { transform: scale(.96); }
.seg input:checked + span { color: var(--ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid rgba(0,45,110,.5); outline-offset: 1px; }
.seg-thumb {
  position: absolute; top: 0; left: 0; z-index: 0;
  width: 0; height: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(20,22,27,.1), 0 3px 8px rgba(20,22,27,.08);
  transition: transform var(--dur) var(--ease-out); /* segments are equal width: only position animates */
  will-change: transform;
}
.seg:not(.is-ready) .seg-thumb { transition: none; }

.quote-note { font-size: .76rem; color: var(--muted); line-height: 1.5; text-align: center; }
.form-status { font-size: .86rem; font-weight: 600; color: var(--red-dark); text-align: center; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; }

#quoteSubmit.is-loading { pointer-events: none; opacity: .75; }
#quoteSubmit.is-loading svg { animation: nudge 900ms var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

.quote-success { text-align: center; padding: 28px 8px 16px; }
.quote-success:focus { outline: none; }
.success-ic { width: 56px; height: 56px; border-radius: 50%; background: #E7F4EC; color: #1F7A45; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; animation: popIn 520ms var(--ease-out); }
.success-ic svg { width: 28px; height: 28px; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.quote-success h3 { font-size: var(--h3-lg); }
.quote-success p { color: var(--ink-soft); font-size: .95rem; margin-top: 8px; }
.quote-success a { color: var(--red); font-weight: 700; }

/* ==========================================================================
   Twee vakgebieden: the heart of the page
   ========================================================================== */

.trades { background: var(--paper); }
.trades .lede { max-width: 54ch; }
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.trade-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.trade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.trade-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-alt); }
.trade-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.trade-card:hover .trade-media img { transform: scale(1.045); }
.trade-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,12,16,.45) 0%, rgba(10,12,16,0) 45%); pointer-events: none; }

.trade-badge {
  position: absolute; left: 20px; bottom: 18px; z-index: 1;
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(15,17,21,.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

.trade-body { padding: 32px 32px 28px; display: flex; flex-direction: column; flex: 1; }
.trade-body h3 { font-size: var(--h3-lg); letter-spacing: -0.02em; line-height: 1.2; }
.trade-body > p { color: var(--ink-soft); margin-top: 12px; line-height: 1.65; }

.trade-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 24px; margin-bottom: 28px; }
.trade-list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

.trade-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trade-line { display: block; border-radius: var(--radius-sm); padding: 4px 8px 4px 0; transition: transform var(--dur-press) var(--ease-out); }
.trade-line:active { transform: scale(.97); }
.trade-line:hover strong { color: var(--red); }
.trade-line small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.trade-line strong { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; transition: color var(--dur-fast) var(--ease-out); }

.trades-note { margin-top: 36px; text-align: center; color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   Warmtepomp
   ========================================================================== */

.wp-section { background: var(--paper-alt); }
.wp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.wp-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; }
.wp-media img { width: 100%; height: 100%; object-fit: cover; }
.wp-media-hover img { transition: transform 900ms var(--ease-out); }
.wp-media-hover:hover img { transform: scale(1.05); }

.wp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.wp-option { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.wp-option strong { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
.wp-option span { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.wp-brand { font-size: .88rem; color: var(--muted); }
.wp-brand strong { color: var(--ink); }

/* ==========================================================================
   Renovatie (dark): copy with three figures, one framed photo
   ========================================================================== */

.reno-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.reno-grid > * { min-width: 0; }

.reno-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid rgba(255,255,255,.14); }
.reno-stats li { padding: 22px 20px 0 0; }
.reno-stats li + li { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.reno-stats strong { display: block; color: #fff; font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.reno-stats li:first-child strong { color: #FF4D4D; }
.reno-stats span:not(.count) { display: block; margin-top: 8px; font-size: .88rem; line-height: 1.4; color: rgba(255,255,255,.62); }
.reno-partners { margin-top: 28px; font-size: .95rem; color: rgba(255,255,255,.55); max-width: 48ch; }

/* Framed photo: outer tray + inner plate with concentric radii */
.tile { position: relative; margin: 0; }
.tile-core { position: relative; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #111; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); display: flex; flex-direction: column; isolation: isolate; }
.reno-photo { height: 560px; }
.tile-photo img {
  position: absolute; left: 0; top: -8%;
  width: 100%; height: 116%;
  object-fit: cover;
  z-index: -2;
  translate: 0 var(--py, 0px);
  transition: scale 1100ms var(--ease-out);
}
.tile-photo:hover img { scale: 1.04; }
.tile-photo .tile-core::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,12,16,.82) 0%, rgba(10,12,16,.25) 34%, rgba(10,12,16,0) 58%); }
.tile-cap { margin-top: auto; padding: 24px 26px 22px; }
.tile-kicker { display: block; font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.tile-cap-t { display: block; margin-top: 6px; color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.018em; line-height: 1.28; max-width: 30ch; }

/* ==========================================================================
   Dakonderhoud: scroll-driven story, sticky photo follows the active step
   ========================================================================== */

.maint-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: start; }
.maint-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.maint-media { position: relative; aspect-ratio: 4/5; max-height: calc(100vh - var(--header-h) - 64px); width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-alt); }
.maint-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.maint-copy { padding-top: 24px; }
.steps-wrap { position: relative; margin-top: 36px; }
.steps-rail { position: absolute; left: 17px; top: 58px; bottom: 58px; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.steps-fill { display: block; width: 100%; height: 100%; background: var(--red); transform-origin: top center; transform: scaleY(0); }
.step { position: relative; display: flex; gap: 20px; padding: 40px 0; opacity: .38; transition: opacity 450ms var(--ease-out); }
.step.is-active, .step.is-done { opacity: 1; }
.step-n { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--ink); font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-variant-numeric: tabular-nums; transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.step.is-active .step-n, .step.is-done .step-n { background: var(--red); box-shadow: none; color: #fff; }
.step.is-active .step-n { transform: scale(1.1); }
.step h3 { font-size: var(--h3-sm); margin-top: 6px; }
.step p { color: var(--ink-soft); font-size: 1rem; margin-top: 6px; line-height: 1.65; max-width: 48ch; }

/* ==========================================================================
   Video + vakmanschap: the reportage plays inline, muted, once in view
   ========================================================================== */

.video-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.video-grid > * { min-width: 0; }

.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); isolation: isolate; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; animation: fadeIn 600ms var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }

.video-facade { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; background: radial-gradient(circle at center, rgba(10,12,16,.15), rgba(10,12,16,.55)); }
.video-local-note { max-width: 36ch; padding: 8px 14px; border-radius: var(--radius-sm); background: rgba(10,12,16,.72); color: #fff; font-size: .82rem; line-height: 1.45; text-align: center; }
.video-play {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.94);
  color: var(--red);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.5);
  transition: transform var(--dur) var(--ease-out);
}
.video-play svg { width: 36px; height: 36px; margin-left: 5px; }
.video-play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.75); animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.video-facade:hover .video-play { transform: scale(1.07); }
.video-facade:active .video-play { transform: scale(.94); transition-duration: var(--dur-press); }

.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.craft-grid > * { min-width: 0; }

.badges-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.badges-grid li { grid-column: span 2; height: 112px; display: flex; align-items: center; justify-content: center; padding: 18px 20px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.badges-grid li.badge-wide { grid-column: span 3; }
.badges-grid li:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px transparent, var(--shadow); }
.badges-grid img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* ==========================================================================
   Contact: dark panel with a light that follows the pointer
   ========================================================================== */

.contact { padding-bottom: 96px; }
.contact-panel { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; border-radius: var(--radius-xl); padding: 64px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.contact-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx, 78%) var(--my, 20%), rgba(238,0,0,.26), rgba(238,0,0,0) 62%); opacity: .55; transition: opacity 500ms var(--ease-out); }
.contact-panel.is-lit::before { opacity: 1; }
.contact-panel h2 { color: #fff; }
.contact-panel .lede { color: rgba(255,255,255,.68); }
.contact-lines { display: flex; flex-direction: column; }
.contact-lines li + li { border-top: 1px solid rgba(255,255,255,.1); }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 16px 14px; margin: 0 -14px; border-radius: var(--radius-lg); transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.contact-line:hover { background: rgba(255,255,255,.06); }
.contact-line:active { transform: scale(.985); background: rgba(255,255,255,.1); }
.contact-line-txt { flex: 1; min-width: 0; }
.contact-line small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.contact-line strong { display: block; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Subpages: shared building blocks (loodgieter, dakdekker, warmtepomp, contact)
   ========================================================================== */

/* Compact photo hero with breadcrumbs */
.page-hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.page-hero .hero-media::after {
  background:
    linear-gradient(90deg, rgba(10,12,16,.88) 0%, rgba(10,12,16,.62) 45%, rgba(10,12,16,.2) 80%, rgba(10,12,16,.1) 100%),
    linear-gradient(0deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,0) 40%);
}
.page-hero-inner { width: 100%; padding-top: 120px; padding-bottom: 64px; }
.page-hero h1 { color: #fff; max-width: 17ch; }
.page-hero .lede { color: rgba(255,255,255,.86); max-width: 56ch; }
.page-hero-short { min-height: 460px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; font-size: .88rem; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; transition: color var(--dur-fast) var(--ease-out); }
.crumbs a:hover { color: #fff; }
.crumb-sep { opacity: .5; margin: 0 2px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); max-width: 760px; }
.hero-points li { font-weight: 600; font-size: .96rem; color: rgba(255,255,255,.92); }
.hero-points li + li { margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.3); }

/* Light "double bezel" frame for photos on light backgrounds */
.frame { position: relative; margin: 0; }
.frame-core { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-alt); box-shadow: 0 30px 60px -30px rgba(20,22,27,.35); }
.frame-core img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.frame:hover .frame-core img { transform: scale(1.04); }
.frame-tall .frame-core { aspect-ratio: 4/5; }
.frame-cap { position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 8px 14px; border-radius: var(--radius-sm); background: rgba(15,17,21,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

/* Zig-zag feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-row > * { min-width: 0; }
.feature-row + .feature-row { margin-top: 104px; }
.feature-row.reverse .frame { order: 2; }
.feature-row .trade-list { margin-bottom: 0; }

/* Safety cards (dark section) */
.safety-head { max-width: 720px; margin-bottom: 48px; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.safety-grid > * { min-width: 0; }
.alert-card { position: relative; border-radius: var(--radius-lg); padding: 36px 34px 34px; background: #1A1D24; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.alert-card.is-urgent { background: var(--red); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.alert-card h3 { color: #fff; font-size: var(--h3-lg); letter-spacing: -0.02em; margin-bottom: 12px; }
.alert-card > p { color: rgba(255,255,255,.78); line-height: 1.65; }
.num-list { counter-reset: n; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; color: rgba(255,255,255,.9); line-height: 1.5; }
.num-list li::before { content: counter(n); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-weight: 800; font-size: .88rem; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.is-urgent .num-list li::before { background: #fff; color: var(--red); }
.alert-card a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Voor wie we werken: five short entries; on hover each lifts into a card, a red line draws across and the link appears */
.client-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 -22px; } /* bleed by the card padding so the text lines up with the heading */
.client-list > li { display: flex; min-width: 0; }
.client-row { position: relative; flex: 1; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: var(--radius-lg); color: inherit; -webkit-tap-highlight-color: transparent; transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.client-row::before, .client-row::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; }
.client-row::before { background: var(--line-strong); }
.client-row::after { background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform 560ms var(--ease-out); }
.client-name { font-size: var(--h3-sm); transition: color var(--dur-fast) var(--ease-out); }
.client-text { margin-top: 8px; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }
.client-more { margin-top: auto; padding-top: 18px; font-size: .92rem; font-weight: 700; color: var(--red); opacity: 0; transform: translateY(6px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.client-row:hover, .client-row:focus-visible { background: var(--paper); transform: translateY(-4px); box-shadow: var(--shadow); }
.clients-sec:not(.bg-alt) .client-row:hover, .clients-sec:not(.bg-alt) .client-row:focus-visible { background: var(--paper-alt); box-shadow: none; }
.client-row:hover::after, .client-row:focus-visible::after { transform: scaleX(1); }
.client-row:hover .client-name, .client-row:focus-visible .client-name { color: var(--red); }
.client-row:hover .client-more, .client-row:focus-visible .client-more { opacity: 1; transform: none; }
.client-row:active { transform: translateY(-2px) scale(.985); transition-duration: var(--dur-press); }
@media (hover: none) { .client-more { opacity: 1; transform: none; } }

/* Q&A: side-by-side list, no accordion */
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q { margin: 0; font-size: inherit; letter-spacing: 0; }
.faq-q button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; text-align: left; font-size: var(--h3-sm); font-weight: 700; letter-spacing: -0.012em; line-height: 1.35; color: var(--ink); -webkit-tap-highlight-color: transparent; transition: color var(--dur-fast) var(--ease-out); }
.faq-q button:hover { color: var(--red); }
.faq-toggle { position: relative; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.faq-toggle::after { transform: rotate(90deg); }
.faq-q button:active .faq-toggle { transform: scale(.92); }
.faq-item.is-open .faq-toggle { background: var(--ink); box-shadow: none; color: #fff; }
.faq-item.is-open .faq-toggle::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--dur) var(--ease-out), visibility 0s linear var(--dur); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--dur) var(--ease-out), visibility 0s; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a p { padding: 0 58px 26px 0; color: var(--ink-soft); line-height: 1.7; max-width: 72ch; }
.faq-a a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Highlight band (DAK-APK, subsidie) */
.highlight { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 34px 36px; border-radius: var(--radius-xl); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.highlight > * { min-width: 0; }
.highlight h3 { font-size: var(--h3-lg); letter-spacing: -0.02em; }
.highlight p { color: var(--ink-soft); margin-top: 6px; line-height: 1.6; max-width: 70ch; }

/* Material tabs (dakdekker) */
.mat-tabs { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 2px; padding: 4px; margin-bottom: 36px; border-radius: var(--radius); background: #EFECE6; }
.mat-tabs::-webkit-scrollbar { display: none; }
.mat-tab { position: relative; z-index: 1; /* equal widths so the thumb only slides */ min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .93rem; color: var(--ink-soft); white-space: nowrap; transition: color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.mat-tab:hover { color: var(--ink); }
.mat-tab:active { transform: scale(.97); }
.mat-tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.mat-thumb { position: absolute; top: 0; left: 0; z-index: 0; width: 0; height: 0; border-radius: var(--radius-sm); background: #fff; box-shadow: 0 1px 2px rgba(20,22,27,.1), 0 3px 8px rgba(20,22,27,.08); transition: transform var(--dur) var(--ease-out); will-change: transform; }
.mat-tabs:not(.is-ready) .mat-thumb { transition: none; }
.mat-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.mat-panel > * { min-width: 0; }
.mat-panel[hidden] { display: none; }
.mat-panel.is-entering { animation: panelIn 420ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateX(var(--from, 16px)); } to { opacity: 1; transform: none; } }
.mat-panel h3 { font-size: var(--h3-lg); letter-spacing: -0.02em; line-height: 1.2; }
.mat-panel p { color: var(--ink-soft); margin-top: 12px; line-height: 1.7; max-width: 62ch; }
.mat-facts { border-radius: var(--radius-lg); padding: 28px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mat-facts dt { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.mat-facts dd { margin: 6px 0 0; color: var(--ink); font-weight: 600; line-height: 1.5; }
.mat-facts dd + dt { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Warmtepomp: option cards and spec figures */
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.option-grid > * { min-width: 0; }
.option-core { height: 100%; border-radius: var(--radius-lg); padding: 34px 32px 30px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px rgba(20,22,27,.3); display: flex; flex-direction: column; }
.option-card h3 { font-size: var(--h3-lg); letter-spacing: -0.02em; line-height: 1.2; }
.option-lead { margin-top: 6px; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.option-card .option-sub { color: var(--ink-soft); margin-top: 10px; line-height: 1.65; }
.option-card h4 { margin-top: 24px; margin-bottom: 2px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.option-card .trade-list { grid-template-columns: 1fr; margin: 0; }
.option-card .btn { margin-top: auto; align-self: flex-start; }
.option-card .option-foot { margin-top: 28px; }

.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.spec { padding: 22px 20px; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.spec strong { display: block; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.spec span { display: block; margin-top: 8px; color: rgba(255,255,255,.66); font-size: .9rem; line-height: 1.4; }
.spec-source { margin-top: 18px; font-size: .8rem; color: rgba(255,255,255,.45); }

.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: fs; }
.flow-step { position: relative; padding: 28px 24px 26px; border-radius: var(--radius-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); counter-increment: fs; }
.flow-step::before { content: counter(fs); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.flow-step:first-child::before { background: var(--red); }
.flow-step h3 { font-size: var(--h3-sm); }
.flow-step p { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; line-height: 1.6; }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; border-radius: var(--radius-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.contact-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px transparent, var(--shadow); }
.contact-card:active { transform: scale(.98); }
.contact-card small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 4px; text-transform: uppercase; color: var(--muted); }
.contact-card strong { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-card span { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }

.form-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.form-split > * { min-width: 0; }
.form-card { scroll-margin-top: calc(var(--header-h) + 20px); }
.form-card.is-highlight .form-core { animation: cardFocus 900ms var(--ease-out); }
.form-core { border-radius: var(--radius-lg); padding: 38px 36px 32px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -34px rgba(20,22,27,.35); }
.form-core .quote-title { font-size: 1.6rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; font-size: .92rem; color: var(--ink-soft); cursor: pointer; transition: box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.choice span:active { transform: scale(.97); }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); background: var(--paper-alt); }
.choice input:focus-visible + span { outline: 2px solid rgba(0,45,110,.5); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex-shrink: 0; }
.consent.is-invalid { color: var(--red-dark); }

.next-steps { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.next-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.next-step:last-child { border-bottom: 1px solid var(--line); }
.next-step b { width: 40px; height: 40px; border-radius: 50%; background: var(--paper-alt); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.next-step h3 { font-size: var(--h3-sm); }
.next-step p { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; line-height: 1.55; }
.aside-card { margin-top: 28px; padding: 26px; border-radius: var(--radius-lg); background: var(--dark); color: #fff; }
.aside-card h3 { color: #fff; font-size: var(--h3-sm); }
.aside-card p { color: rgba(255,255,255,.7); font-size: .95rem; margin-top: 6px; line-height: 1.55; }
.aside-card .btn { margin-top: 18px; }

.visit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.visit-grid > * { min-width: 0; }
.visit-map iframe { display: block; width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius-lg); filter: grayscale(.15) contrast(1.02); }
.address-block { font-style: normal; margin-top: 20px; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.area-title { margin-top: 32px; font-size: var(--h3-sm); }
.area-text { margin-top: 8px; color: var(--ink-soft); line-height: 1.7; max-width: 54ch; }

.section-cta { padding-top: 0; }

.section-tight { padding: 64px 0; }
.text-link { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(238,0,0,.35); transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.text-link:hover { text-decoration-color: var(--red); }
.bg-dark .text-link { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.spec-photo { height: 600px; }
.trade-more { align-self: flex-start; margin-top: -6px; margin-bottom: 8px; font-weight: 700; color: var(--red); text-decoration: underline; text-decoration-color: rgba(238,0,0,.35); text-underline-offset: 4px; transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.trade-more:hover { text-decoration-color: var(--red); }
.form-core .quote-form { margin-top: 24px; gap: 16px; }
.form-core fieldset legend { padding: 0; }

/* 404 page */
.notfound { padding-top: 96px; }
.notfound-code { margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.notfound h1 { max-width: 18ch; }
.notfound-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 40px -22px 0; }
.notfound-links a { display: block; height: 100%; padding: 22px; border-radius: var(--radius-lg); transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.notfound-links a:hover { background: var(--paper-alt); transform: translateY(-3px); }
.notfound-links a:hover strong { color: var(--red); }
.notfound-links strong { display: block; font-size: var(--h3-sm); transition: color var(--dur-fast) var(--ease-out); }
.notfound-links span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
@media (max-width: 900px) { .notfound-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .notfound-links { grid-template-columns: 1fr; margin: 32px -20px 0; } }

/* ==========================================================================
   Map + footer
   ========================================================================== */

.map-full { width: 100%; height: 320px; border-top: 1px solid var(--line); }
.map-full iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.15) contrast(1.02); }

.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 72px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 32px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.56); max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col li { font-size: .9rem; color: rgba(255,255,255,.62); overflow-wrap: anywhere; }
.footer-col a { color: rgba(255,255,255,.62); transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: #fff; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 2px; transition: color var(--dur-fast) var(--ease-out); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Scroll reveal: one direction (up), short distance, staggered
   ========================================================================== */

.rv, .rv-l, .rv-r { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.is-visible, .rv-l.is-visible, .rv-r.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 800;
  width: 320px; max-width: calc(100vw - 32px);
  padding: 18px 20px 20px;
  background: var(--dark); color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 16px 40px -12px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.cookie-text { font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.66); margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 88px; padding-bottom: 56px; }
  .hero-copy h1 { max-width: 20ch; }
  .quote-card { max-width: 600px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.72) 55%, rgba(10,12,16,.88) 100%); }
  .maint-grid, .wp-grid { gap: 48px; }
  .reno-grid { gap: 56px; }
  .client-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight { grid-template-columns: 1fr; }
  .highlight .btn { justify-self: start; }
  .craft-grid, .video-grid { gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}

@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .section-head-split { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: 1fr; gap: 24px; }
  .wp-grid, .maint-grid, .video-grid, .craft-grid { grid-template-columns: 1fr; }
  .video-grid { gap: 36px; }
  .reno-grid { grid-template-columns: 1fr; gap: 48px; }
  .spec-photo { height: 480px; }
  .feature-row, .safety-grid, .mat-panel, .option-grid, .form-split, .visit-grid { grid-template-columns: 1fr; }
  .feature-row { gap: 40px; }
  .feature-row + .feature-row { margin-top: 72px; }
  .feature-row.reverse .frame { order: 0; }
  .form-split, .visit-grid { gap: 36px; }
  .mat-panel { gap: 28px; }
  .reno-photo { height: 460px; }
  .maint-sticky { position: relative; top: 0; }
  .maint-media { aspect-ratio: 16/10; max-height: none; }
  .step { padding: 28px 0; }
  .steps-rail { top: 46px; bottom: 46px; }
  .wp-media { max-width: 640px; }
  .contact-panel { grid-template-columns: 1fr; padding: 44px 32px; gap: 36px; }
}

@media (max-width: 780px) {
  :root { --header-h: 66px; }
  .nav-links, .nav-phone span, .nav-right > .btn { display: none; }
  .burger { display: flex; }
  .brand img { height: 30px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .hero-grid { padding-top: 56px; padding-bottom: 40px; gap: 36px; }
  .hero-facts { margin-top: 36px; }
  .hero-facts strong { font-size: 1.55rem; }
  .quote-card { padding: 24px 20px 20px; border-radius: var(--radius-lg); }
  .trade-body { padding: 24px 22px 22px; }
  .trade-body h3, .mat-panel h3, .alert-card h3, .option-card h3, .highlight h3 { font-size: 1.3rem; }
  .reno-photo { height: 380px; }
  .page-hero { min-height: 0; }
  .spec-photo { height: 400px; }
  .page-hero-inner { padding-top: 72px; padding-bottom: 44px; }
  .page-hero .hero-media::after { background: linear-gradient(180deg, rgba(10,12,16,.5) 0%, rgba(10,12,16,.75) 60%, rgba(10,12,16,.9) 100%); }
  .hero-points { gap: 10px 20px; margin-top: 28px; }
  .hero-points { flex-direction: column; gap: 6px; }
  .hero-points li + li { margin-left: 0; padding-left: 0; border-left: 0; }
  .nav-phone { width: 44px; height: 44px; justify-content: center; padding: 0; border-radius: var(--radius-sm); }
  .nav-phone svg { display: block; }
  .mat-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .mat-tab { flex: 0 0 132px; }
  .mat-tabs:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
  .client-list { grid-template-columns: 1fr; gap: 4px; margin: 0 -20px; }
  .client-row { padding: 22px 20px 20px; }
  .client-row::before, .client-row::after { left: 20px; right: 20px; }
  .faq-q button { font-size: 1.02rem; padding: 18px 0; }
  .faq-a p { padding-right: 0; }
  .alert-card { padding: 28px 22px 24px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-core { padding: 28px 20px 24px; }
  .option-core { padding: 28px 22px 24px; }
  .highlight { grid-template-columns: 1fr; padding: 28px 22px; gap: 18px; }
  .badges-grid li { height: 92px; }
  .video-embed { border-radius: var(--radius-lg); }
  .video-play { width: 72px; height: 72px; }
  .video-play svg { width: 28px; height: 28px; }
  .contact-panel { padding: 36px 22px; border-radius: var(--radius-lg); }
  .contact-line strong { font-size: 1.1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .map-full { height: 220px; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .trade-list { grid-template-columns: 1fr; gap: 10px; }
  .trade-foot { flex-direction: column; align-items: stretch; }
  .trade-foot .btn { width: 100%; }
  .wp-options { grid-template-columns: 1fr; }
  .tile-cap { padding: 20px 18px 18px; }
  .reno-stats li { padding-right: 12px; }
  .reno-stats li + li { padding-left: 12px; }
  .badges-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges-grid li, .badges-grid li.badge-wide { grid-column: span 1; }
  .badges-grid li:last-child { grid-column: 1 / -1; }
  .hero-facts li { padding-right: 12px; }
  .hero-facts li + li { padding-left: 12px; }
  .hero-cta .btn { width: 100%; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .hero-cta .btn-link-light { width: auto; }
  .contact-cards, .flow-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Accessibility preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .rv, .rv-l, .rv-r { transform: none; transition: opacity 200ms ease; }
  .trade-card:hover, .trade-card:hover .trade-media img, .wp-media-hover:hover img { transform: none !important; }
  .tile-photo img { translate: none !important; scale: none !important; }
  .faq-a, .faq-toggle::before, .faq-toggle::after { transition: none !important; }
  .client-row, .client-row::after, .client-more { transition: none !important; }
  .client-row:hover, .client-row:focus-visible { transform: none; }

  .video-play::before { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .btn, .seg-thumb, .site-header, #mobMenu, .cookie-banner { transition-duration: 0.001ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-solid, .quote-card { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .trade-badge { background: var(--dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn-ghost-light { background: rgba(15,17,21,.7); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .site-header { background: #fff; box-shadow: 0 1px 0 var(--ink); }
  .quote-card { background: #fff; border: 2px solid var(--ink); }
  .field input, .field textarea { border-color: var(--ink); }
  .lede, .trade-body > p, .step p { color: var(--ink); }
}
