/* ==========================================================================
   M.A.S. Construct BV: stylesheet
   Idea: the site is a wall in cross-section. Masonry, insulation, plaster
   and tile are the four layers of the navigation and of the services; the
   hero is a bathroom wall that is half tiled in herringbone.
   Order: tokens → fonts → base → components → header → sections → pages
          → consent → utilities → motion → print
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette: wet plaster, mortar, brick, tile glaze, insulation ochre */
  --plaster: #f4efe6;
  --plaster-deep: #e9e1d3;
  --ink: #231f1c;
  --muted: #5b524a;
  --grout: #cfc5b5;
  --brick: #9a3d26;
  --glaze: #1d5a53;
  --glaze-deep: #13312e;
  --glaze-mist: #c9d8d3;
  --ochre: #e0a93b;
  --oak: #3a2a20;
  --oak-light: #e8c9a6;
  --white: #fff;

  /* Layer textures (section hatches as on a construction drawing) */
  --tex-brick: repeating-linear-gradient(135deg, var(--brick) 0 2px, #c9765d 2px 7px);
  --tex-insulation: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Crect width='16' height='12' fill='%23e0a93b'/%3E%3Cpath d='M0 9 4 3l4 6 4-6 4 6' fill='none' stroke='%237a5310' stroke-width='1.4'/%3E%3C/svg%3E");
  --tex-plaster: radial-gradient(circle at 30% 40%, #9d9182 0 1px, transparent 1.4px) 0 0 / 7px 7px, radial-gradient(circle at 70% 80%, #b3a796 0 1px, transparent 1.4px) 3px 2px / 9px 9px, #ddd3c3;
  --tex-tile: repeating-linear-gradient(90deg, var(--glaze) 0 14px, var(--plaster) 14px 16px);

  /* Type */
  --font-slab: 'Roboto Slab', 'Rockwell', Georgia, serif;
  --font-text: 'Andada Pro', Georgia, 'Times New Roman', serif;
  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3: clamp(1.95rem, 1.55rem + 1.8vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.9vw, 4.2rem);

  /* Space, shape, depth */
  --space-2: 1rem;
  --space-3: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --space-4: clamp(2rem, 1.5rem + 2vw, 3rem);
  --space-5: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --wrap: 72rem;
  --radius: 3px;
  --shadow: 0 1px 0 rgba(35, 31, 28, 0.08), 0 10px 24px -14px rgba(35, 31, 28, 0.45);
  --header-h: 4.75rem;
}

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/roboto-slab-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Andada Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/andada-pro-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Andada Pro';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/andada-pro-italic-latin-var.woff2') format('woff2');
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
h1, h2, h3 {
  font-family: var(--font-slab);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 600; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 var(--space-2); }
a { color: var(--glaze); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
img, svg { max-width: 100%; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88em; overflow-wrap: anywhere; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--plaster); padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--plaster); }

/* ---------- Components: buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border: 2px solid var(--glaze); border-radius: var(--radius);
  background: var(--glaze); color: var(--white);
  font-family: var(--font-slab); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--glaze-deep); border-color: var(--glaze-deep); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-line { background: transparent; color: var(--glaze); }
.btn-line:hover { background: var(--glaze); color: var(--white); }

/* Layer chip: the hatch that names a layer everywhere on the site */
.swatch { display: block; border-radius: 1px; }
.swatch-brick { background: var(--tex-brick); }
.swatch-insulation { background: var(--tex-insulation); }
.swatch-plaster { background: var(--tex-plaster); }
.swatch-tile { background: var(--tex-tile); }

/* ---------- Header: the wall section ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 239, 230, 0.96);
  border-bottom: 1px solid var(--grout);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
  width: min(100% - 2rem, 80rem); margin-inline: auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--ink); text-decoration: none; white-space: nowrap; min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--font-slab); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand-long { font-weight: 400; color: var(--muted); }

.layers { margin-left: auto; }
.layers-list {
  display: flex; margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--grout); border-radius: var(--radius); overflow: hidden;
}
.layer-link {
  display: grid; grid-template-rows: auto auto; gap: 0.3rem;
  min-width: 6.6rem; min-height: 54px; padding: 0 0.85rem 0.45rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  border-left: 1px solid var(--grout);
  transition: background-color 0.2s ease;
}
.layers-list li:first-child .layer-link { border-left: 0; }
.layer-link .swatch { height: 10px; margin-inline: -0.85rem; transition: height 0.25s ease; }
.layer-name { font-family: var(--font-slab); font-weight: 500; font-size: 0.98rem; display: flex; align-items: baseline; gap: 0.4rem; }
.layer-no { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.layer-link:hover { background: var(--plaster-deep); color: var(--ink); }
.layer-link:hover .swatch { height: 14px; }
.layer-link[aria-current] { background: var(--white); }
.layer-link[aria-current] .swatch { height: 18px; }
.layer-link[aria-current] .layer-name { font-weight: 700; }

.header-cta { flex: none; }
.header-cta .cta-short { display: none; }
.nav-toggle {
  display: none; align-items: center; gap: 0.55rem;
  min-height: 48px; min-width: 48px; padding: 0 0.85rem;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 600 0.95rem/1 var(--font-slab); cursor: pointer;
}
.nav-toggle:hover { background: var(--ink); color: var(--plaster); }
.toggle-icon { display: grid; gap: 3px; width: 18px; }
.toggle-icon span { display: block; height: 3px; border-radius: 1px; background: currentColor; }
.toggle-icon span:nth-child(2) { width: 70%; }
.toggle-icon span:nth-child(3) { width: 85%; }

/* Mobile panel: the same layers, cut horizontally */
.layers-panel {
  position: fixed; inset: var(--header-h) 0 0; z-index: 39;
  overflow-y: auto; background: var(--plaster);
  padding: 1rem 1.25rem 2rem;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.layers-panel.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.panel-list { list-style: none; margin: 0 auto; padding: 0; max-width: 34rem; }
.panel-link {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: stretch;
  min-height: 72px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--grout);
}
.panel-link .swatch { min-height: 100%; }
.panel-text { display: grid; align-content: center; padding-block: 0.6rem; }
.panel-text strong { font-family: var(--font-slab); font-size: 1.25rem; }
.panel-text span { color: var(--muted); font-size: 0.95rem; }
.panel-link:hover { background: var(--plaster-deep); color: var(--ink); }
.panel-link[aria-current] strong { color: var(--brick); }
.panel-contact { max-width: 34rem; margin: 1.5rem auto 0; font-size: 1.05rem; }
.panel-contact a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1099px) {
  .layers { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
}
@media (min-width: 1100px) {
  .layers-panel { display: none; }
}
@media (max-width: 560px) {
  .brand-long { display: none; }
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
  .header-cta { padding-inline: 0.9rem; }
}
@media (max-width: 380px) {
  .header-inner { gap: 0.5rem; width: calc(100% - 1.25rem); }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.1rem; }
  .toggle-label { display: none; }
  .nav-toggle { padding: 0 0.7rem; }
}

/* ---------- Section frame ---------- */
.section { padding-block: var(--space-5); }
.section-head { max-width: 44rem; margin-bottom: var(--space-4); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.layer-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.9rem; font-family: var(--font-slab); font-weight: 600;
  font-size: 0.9rem; color: var(--brick);
}
.layer-tag .swatch { width: 2.2rem; height: 0.8rem; }

/* ---------- Hero: the half-tiled wall ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.hero-copy { position: relative; z-index: 1; max-width: 50rem; margin-inline: auto; text-align: center; }
.pencil {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1.25rem; color: #4d4640;
  font-family: var(--font-text); font-style: italic; font-size: 1.05rem;
}
.pencil::before, .pencil::after { content: ''; width: 2.5rem; height: 1px; background: currentColor; opacity: 0.7; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .h1-line { display: block; }
.hero-lead { max-width: 40rem; margin: 0 auto 1.75rem; font-size: var(--step-1); line-height: 1.5; color: #3c3530; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hero-wall { display: block; width: 100%; height: clamp(220px, 18vw + 120px, 400px); margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.tile-line {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 1rem;
  width: min(100% - 2.5rem, 80rem); margin: 0 auto -1.6rem;
  font-style: italic; font-size: 0.92rem; color: #4d4640;
}
.tile-line span:last-child { text-align: right; }

/* ---------- Werken: four layers stacked like a wall section ---------- */
.section-werken { background: var(--plaster); }
.wall-section { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.layer {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem);
  border-bottom: 1px solid var(--grout);
}
.layer > .swatch { grid-row: 1 / span 2; min-height: 100%; }
.layer-brick > .swatch { width: 5.5rem; }
.layer-insulation > .swatch { width: 4.25rem; }
.layer-plaster > .swatch { width: 1.6rem; }
.layer-tile > .swatch { width: 0.9rem; }
.layer-title { grid-column: 2; padding-top: var(--space-3); }
.layer-title h3 { font-size: var(--step-2); margin-bottom: 0.35rem; }
.layer-title .layer-depth { font-family: var(--font-slab); font-size: 0.85rem; color: var(--muted); margin: 0; }
.layer-body { grid-column: 2; padding-bottom: var(--space-3); }
.layer-jobs {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  margin: 0; padding: var(--space-3) 0; list-style: none;
}
.layer-jobs li { position: relative; padding: 0.4rem 0 0.4rem 1.5rem; border-bottom: 1px dashed var(--grout); }
.layer-jobs li:last-child { border-bottom: 0; }
.layer-jobs li::before {
  content: ''; position: absolute; left: 0; top: 0.95rem;
  width: 0.7rem; height: 0.7rem;
  background:
    linear-gradient(var(--brick), var(--brick)) center / 100% 2px no-repeat,
    linear-gradient(var(--brick), var(--brick)) center / 2px 100% no-repeat;
}
.layer-note { font-size: var(--step--1); color: var(--muted); border-left: 3px solid var(--ochre); padding-left: 0.75rem; }

/* ---------- Aanpak: a tape measure ---------- */
.section-aanpak { background: var(--glaze-deep); color: var(--plaster); }
.section-aanpak h2 { color: var(--plaster); }
.section-aanpak .section-head p { color: var(--glaze-mist); }
.section-aanpak .layer-tag { color: var(--ochre); }
.tape {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.tape::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3.25rem;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 100% 0.9rem no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 50px) 0 0 / 100% 1.6rem no-repeat,
    var(--ochre);
}
.tape li { position: relative; padding: 4.5rem 1.25rem 0 0; counter-increment: step; }
.tape-mark {
  position: absolute; top: 1.75rem; left: 0; padding-right: 0.3rem; background: var(--ochre);
  font-family: var(--font-slab); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.tape li h3 { color: var(--plaster); font-size: var(--step-1); }
.tape li p { color: var(--glaze-mist); font-size: var(--step--1); margin: 0; }
.tape li:not(:first-child) { padding-left: 1rem; border-left: 1px solid rgba(201, 216, 211, 0.25); }
.tape li:not(:first-child) .tape-mark { left: 1rem; }

/* ---------- Tarieven: the meetstaat and the VAT note ---------- */
.price-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.meetstaat { width: 100%; border-collapse: collapse; font-size: var(--step--1); background: var(--white); box-shadow: var(--shadow); }
.meetstaat caption { text-align: left; font-family: var(--font-slab); font-weight: 600; font-size: var(--step-1); padding-bottom: 0.75rem; }
.meetstaat th, .meetstaat td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--plaster-deep); }
.meetstaat thead th { background: var(--ink); color: var(--plaster); font-family: var(--font-slab); font-weight: 600; font-size: 0.85rem; }
.meetstaat .num { text-align: right; white-space: nowrap; }
.meetstaat tbody th { font-weight: 400; }
.meetstaat .post { font-family: var(--font-slab); color: var(--brick); font-weight: 600; }
.price-note { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }
.vat-card {
  background: var(--plaster-deep); padding: var(--space-3);
  border-top: 6px solid var(--ochre); border-radius: var(--radius);
}
.vat-figures { display: flex; gap: 1rem; margin-bottom: 1rem; }
.vat-figures span { font-family: var(--font-slab); font-weight: 800; font-size: var(--step-3); line-height: 1; }
.vat-figures .vat-low { color: var(--glaze); }
.vat-figures .vat-std { color: var(--brick); }
.vat-card ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.vat-card li { margin-bottom: 0.45rem; }
.vat-card p:last-child { margin-bottom: 0; font-size: var(--step--1); }

/* ---------- Vragen: notes on the site plan ---------- */
.section-vragen { background: var(--plaster-deep); }
.notes { margin: 0; border-top: 2px solid var(--ink); }
.note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0.6rem var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--grout); }
.note-no { flex: none; width: 3.5rem; font-size: 1rem; font-weight: 700; color: var(--brick); padding-top: 0.2rem; }
.note dt { display: flex; gap: 0.5rem; font-family: var(--font-slab); font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.note dd { margin: 0; }
.note dd p:last-child { margin-bottom: 0; }

/* ---------- Offerte: the site-visit sheet ---------- */
.section-offerte {
  background:
    linear-gradient(rgba(29, 90, 83, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(29, 90, 83, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--plaster);
}
.offerte-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.sheet { background: var(--white); border: 1px solid var(--grout); border-radius: var(--radius); box-shadow: var(--shadow); }
.sheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding: 0.9rem var(--space-3); border-bottom: 2px solid var(--ink);
  font-family: var(--font-slab); font-weight: 600;
}
.sheet-head span:last-child { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.sheet-body { padding: var(--space-3); display: grid; gap: 1.35rem; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > label { font-family: var(--font-slab); font-weight: 600; font-size: 1rem; padding: 0; margin-bottom: 0.45rem; }
.req { color: var(--brick); }
.optional { font-family: var(--font-text); font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.hint { font-size: 0.92rem; color: var(--muted); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem;
  border: 1.5px solid #8c8174; border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit;
}
textarea { min-height: 8.5rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--glaze); }
[aria-invalid="true"] { border-color: var(--brick); background-color: #fbf1ee; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.5rem; }
.choice {
  position: relative; display: flex; align-items: center; gap: 0.7rem;
  min-height: 48px; padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--grout); border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--ink); }
.choice input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--glaze); flex: none; }
.choice .swatch { width: 1.4rem; height: 1.4rem; flex: none; }
.choice:has(input:checked) { border-color: var(--glaze); background: #eef4f2; }
.choice:has(input:focus-visible) { outline: 3px solid var(--brick); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.error { color: var(--brick); font-size: 0.93rem; font-weight: 600; margin: 0; }
.error:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 0.9rem; padding: var(--space-3); border-top: 1px dashed var(--grout); }
.form-foot .btn { justify-self: start; }
.form-status:empty { display: none; }
.form-status { padding: 0.85rem 1rem; border-radius: var(--radius); }
.form-status.is-success { background: #e6f0ed; border-left: 4px solid var(--glaze); }
.form-status.is-error { background: #fbf1ee; border-left: 4px solid var(--brick); }

.contact-card { display: grid; gap: 1.5rem; }
.contact-block h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.contact-block p { margin: 0; }
.contact-big { font-family: var(--font-slab); font-weight: 700; font-size: var(--step-2); }
.contact-big a { color: var(--ink); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.contact-big a:hover { color: var(--brick); }
.contact-mail a { display: inline-flex; min-height: 44px; align-items: center; font-size: 1.1rem; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.towns { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.towns li { padding: 0.15rem 0.55rem; border: 1px solid var(--grout); background: var(--plaster); font-size: 0.92rem; }
.founded { border-left: 4px solid var(--glaze); padding-left: 0.9rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- Footer: skirting board on a tiled floor ---------- */
.site-footer { background: var(--oak); color: var(--plaster); }
.plint { height: 18px; background: linear-gradient(#5a4433, #3a2a20); border-top: 3px solid #7a5d47; }
.footer-inner { padding-block: var(--space-4) var(--space-3); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.footer-brand { font-family: var(--font-slab); font-weight: 700; font-size: 1.35rem; margin-bottom: 0.4rem; }
.site-footer p { margin: 0 0 0.5rem; color: var(--oak-light); font-size: var(--step--1); }
.site-footer h2 { font-size: 1rem; color: var(--plaster); margin-bottom: 0.6rem; }
.site-footer a { color: var(--plaster); }
.site-footer a:hover { color: var(--ochre); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step--1); }
.link-button {
  padding: 0; border: 0; background: none; color: var(--plaster);
  font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.link-button:hover { color: var(--ochre); }
.footer-floor {
  border-top: 1px solid rgba(232, 201, 166, 0.25);
  padding-block: 1rem 1.4rem; font-size: 0.88rem; color: var(--oak-light);
}
.footer-floor p { margin: 0; font-size: 0.88rem; }

/* ---------- Pages: legal documents ---------- */
.doc-head { padding-block: var(--space-4) var(--space-3); border-bottom: 2px solid var(--ink); }
.doc-head h1 { font-size: var(--step-3); margin-bottom: 0.5rem; hyphens: auto; overflow-wrap: break-word; }
.doc-head p { color: var(--muted); margin: 0; }
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-4) var(--space-5); }
.doc-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; font-size: 0.95rem; }
.doc-toc h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.doc-toc a { display: inline-block; padding-block: 0.25rem; }
.doc-body { max-width: 46rem; }
.doc-body section { margin-bottom: var(--space-4); }
.doc-body h2 { font-size: var(--step-2); padding-top: 0.75rem; border-top: 1px solid var(--grout); hyphens: auto; overflow-wrap: break-word; }
.doc-body h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; }
.doc-body li { margin-bottom: 0.4rem; }
.doc-body a { overflow-wrap: anywhere; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.6fr); border-top: 1px solid var(--grout); }
.facts dt, .facts dd { margin: 0; padding: 0.65rem 0; border-bottom: 1px solid var(--grout); }
.facts dt { font-family: var(--font-slab); font-weight: 600; padding-right: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin: 1rem 0 1.5rem; background: var(--white); }
.data-table caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
.data-table th, .data-table td { padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; border: 1px solid var(--plaster-deep); }
.data-table thead th { background: var(--ink); color: var(--plaster); font-family: var(--font-slab); font-weight: 600; }
.model-form { border: 1.5px dashed var(--muted); padding: 1rem 1.25rem; background: var(--white); }

/* Tables become label/value blocks on narrow screens */
@media (max-width: 720px) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: 100%; }
  .stack tr { border-bottom: 2px solid var(--grout); padding-block: 0.4rem; }
  .stack th, .stack td { border: 0; padding: 0.3rem 0.75rem; text-align: left; }
  .stack th[data-label]::before, .stack td[data-label]::before {
    content: attr(data-label); display: block;
    font-family: var(--font-slab); font-weight: 600; font-size: 0.8rem; color: var(--muted);
  }
  .stack .num { text-align: left; }
  .stack caption { display: block; }
  /* The price list keeps a compact two-line row: post and work, then unit and price */
  .meetstaat.stack tr { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1fr); padding-block: 0.5rem; }
  .meetstaat.stack .post { grid-row: 1 / span 2; padding-top: 0.45rem; }
  .meetstaat.stack tbody th { grid-column: 2 / span 2; font-weight: 600; }
  .meetstaat.stack .post::before, .meetstaat.stack tbody th::before { display: none; }
}

/* ---------- 404 ---------- */
.missing { padding-block: var(--space-5); text-align: center; }
.missing svg { width: min(100%, 26rem); height: auto; margin-bottom: 1.5rem; }
.missing p { max-width: 34rem; margin-inline: auto; }
.missing .hero-actions { margin-top: 1.5rem; }

/* ---------- Consent banner and dialog ---------- */
.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  max-width: 44rem; margin-inline: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--grout); border-top: 8px solid transparent;
  border-image: var(--tex-tile) 8 0 0 0 / 8px 0 0 0;
  border-radius: var(--radius); box-shadow: 0 18px 40px -16px rgba(35, 31, 28, 0.55);
  padding: 1.25rem 1.4rem;
}
.consent-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.consent-text { font-size: 0.95rem; margin-bottom: 1rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.consent-btn {
  min-height: 46px; padding: 0.55rem 1.1rem; flex: 1 1 10rem;
  border: 2px solid var(--glaze); border-radius: var(--radius);
  background: var(--glaze); color: var(--white);
  font: 600 0.98rem/1.2 var(--font-slab); cursor: pointer;
}
.consent-btn:hover { background: var(--glaze-deep); border-color: var(--glaze-deep); }
.consent-link {
  min-height: 46px; padding: 0.55rem 0.6rem; border: 0; background: none;
  color: var(--glaze); font: 600 0.98rem/1.2 var(--font-slab); text-decoration: underline; cursor: pointer;
}
.consent-link:hover { color: var(--brick); }
.consent-dialog {
  width: min(100% - 2rem, 38rem); max-height: calc(100vh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--white); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.consent-dialog::backdrop { background: rgba(19, 49, 46, 0.6); }
.consent-dialog-inner { padding: 1.4rem; }
.consent-categories { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.consent-category { padding: 0.9rem 0; border-top: 1px solid var(--plaster-deep); }
.consent-category p { margin: 0.35rem 0 0; font-size: 0.93rem; color: var(--muted); }
.consent-category-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.consent-category-head h3 { margin: 0; font-size: 1.02rem; }
.consent-always { font-size: 0.88rem; font-weight: 700; color: var(--glaze); }
.consent-switch { position: relative; display: inline-flex; align-items: center; min-width: 52px; min-height: 44px; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.consent-switch-track { position: relative; width: 50px; height: 28px; border-radius: 14px; background: #8c8174; transition: background-color 0.2s ease; }
.consent-switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); transition: transform 0.2s ease;
}
.consent-switch input:checked + .consent-switch-track { background: var(--glaze); }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(22px); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--brick); outline-offset: 2px; }

/* ---------- Responsive sections ---------- */
@media (max-width: 1000px) {
  .price-layout, .offerte-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .tape { grid-template-columns: 1fr; padding-left: 3.75rem; }
  .tape::before {
    right: auto; bottom: 0; height: auto; width: 2.75rem;
    background:
      repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 0.8rem 100% no-repeat,
      repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 50px) 0 0 / 1.4rem 100% no-repeat,
      var(--ochre);
  }
  .tape li, .tape li:not(:first-child) { padding: 0 0 1.75rem; border-left: 0; }
  .tape-mark, .tape li:not(:first-child) .tape-mark { position: static; display: block; background: none; color: var(--ochre); margin-bottom: 0.25rem; }
}
@media (max-width: 820px) {
  .layer { grid-template-columns: 3rem minmax(0, 1fr); }
  .layer-brick > .swatch { width: 3rem; }
  .layer-insulation > .swatch { width: 2.3rem; }
  .layer > .swatch { grid-row: 1 / span 3; }
  .layer-jobs { grid-column: 2; grid-row: auto; padding-top: 0; }
  .note { grid-template-columns: minmax(0, 1fr); }
  .note dd { padding-left: 4rem; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
  .tile-line { font-size: 0.82rem; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .hero-actions .btn { width: 100%; }
  .tile-line span:last-child { display: none; }
  .tile-line { margin-top: 0.75rem; }
  .pencil::before, .pencil::after { width: 1.25rem; }
  .pencil { font-size: 0.95rem; }
  .consent-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 1rem; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.bubble { animation: settle 2.4s cubic-bezier(0.3, 1.4, 0.5, 1) 0.4s both; }
@keyframes settle {
  0% { transform: translateX(-14px); }
  60% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .consent-banner, .hero-wall, .site-footer .footer-links, .form-foot .btn { display: none; }
  body { background: #fff; }
  .section-aanpak { background: #fff; color: #000; }
}
