/* Top X: voorbeeldsite. Statische HTML/CSS, geen build. */

/* ---------- Lettertype (lokaal, latin): één familie ---------- */
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/work-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/work-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/work-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/work-sans-800.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --ground: #edece7;          /* steengrijs */
  --ground-2: #dedcd4;
  --ink: #191714;
  --ink-soft: #4d4943;
  --clay: #3b3028;            /* leem: het donkere vlak */
  --clay-2: #4a3d33;
  --on-clay: #edece7;
  --blue: #1f5bd6;            /* blauw van de piketpaal: actiekleur, wit erop (6:1) */
  --blue-hover: #1a4fbf;
  --blue-light: #8fb2ff;      /* blauw op het leemvlak (6:1) */

  --font: 'Work Sans', system-ui, sans-serif;
  --t-display: clamp(2.6rem, 1.2rem + 6vw, 7.4rem);
  --t-h2: clamp(2rem, 1.3rem + 2.9vw, 3.9rem);
  --t-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  --t-lead: 1.25rem;
  --t-body: 1.125rem;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(96px, 5rem + 7vw, 200px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.6; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: .92; letter-spacing: -0.055em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.clay :focus-visible { outline-color: var(--blue-light); }
::selection { background: var(--blue); color: #fff; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 1rem; color: var(--ink-soft); }
.clay figcaption { color: #cfc7bd; }

.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Voorbeeldmelding: niet plakkend; de link krijgt een raakvlak van 44 px zonder dat de balk hoger wordt. */
.demo-note { background: var(--ink); color: var(--ground); font-size: 1rem; line-height: 1.4; padding: .5rem 1rem; text-align: center; text-wrap: balance; }
.demo-note a { padding: 13px 12px; margin: 0 -12px; white-space: nowrap; color: inherit; text-decoration: underline; }
.demo-note a:focus-visible { outline: 2px solid var(--ground); outline-offset: -10px; }

/* ---------- Knoppen: recht ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border: 2px solid transparent; font-family: var(--font); font-weight: 700; font-size: var(--t-body); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform 180ms var(--ease-out); }
.btn:hover svg.go { transform: translateX(4px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.clay .btn-line { color: var(--on-clay); border-color: var(--on-clay); }
.clay .btn-line:hover { background: var(--on-clay); color: var(--clay); }
.blue-field .btn-light { background: #fff; color: var(--blue); }
.blue-field .btn-light:hover { background: var(--ground); }
.blue-field .btn-line { color: #fff; border-color: #fff; }
.blue-field .btn-line:hover { background: #fff; color: var(--blue); }

/* ---------- Kop ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--ink); margin-right: auto; font-weight: 800; font-size: 1.85rem; letter-spacing: -0.05em; line-height: 1; }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--ground-2); }
.site-header .btn { min-height: 48px; padding: 0 18px; }
.menu { display: none; }
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--ground-2); cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 22px; height: 22px; }
  .menu[open] .menu-panel { display: block; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--ground); padding: 10px; box-shadow: 0 18px 40px rgba(25, 23, 20, .22); } /* taste-skill-ignore: echt zwevend menu */
  .menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; text-decoration: none; font-weight: 600; }
  .menu-panel a:hover { background: var(--ground-2); }
}
@media (max-width: 640px) {
  .site-header .btn .ph-num { display: none; }
  .site-header .btn { width: 48px; padding: 0; }
  .site-header .wrap { gap: 8px; min-height: 68px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 64px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 72px); align-items: end; }
.hero .lead { font-size: var(--t-lead); line-height: 1.5; max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-band { position: relative; margin-top: clamp(28px, 4vw, 56px); }
.hero-frame { overflow: hidden; aspect-ratio: 16 / 7; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin-top: 22px; }
.hero-facts li { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; font-size: var(--t-body); }
.hero-facts strong { font-weight: 800; font-size: var(--t-h3); letter-spacing: -0.03em; white-space: nowrap; }
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-frame { aspect-ratio: 4 / 3; }
  .hero-facts { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Sectie-algemeen ---------- */
.section { padding-top: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px clamp(28px, 4vw, 72px); align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.section-head p { font-size: var(--t-lead); max-width: 46ch; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }
.clay { background: var(--clay); color: var(--on-clay); }
.blue-field { background: var(--blue); color: #fff; }

/* ---------- Van gebouw tot bouwrijp: vier stappen in zigzag ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 6vw, 96px); }
.route li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.route li:nth-child(even) .route-pic { order: 2; }
.route-pic { overflow: hidden; aspect-ratio: 16 / 10; }
.route-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.route li:hover .route-pic img { transform: scale(1.03); }
.route .ico { width: 60px; height: 60px; margin-bottom: 16px; }
.route h3 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.route p { margin-top: 14px; font-size: var(--t-lead); }
@media (max-width: 900px) { .route li { grid-template-columns: 1fr; } .route li:nth-child(even) .route-pic { order: 0; } }

/* ---------- Grondcalculator ---------- */
.calc-section { margin-top: var(--section); padding-block: clamp(72px, 7vw, 128px); }
.calc-section h2 { color: var(--on-clay); }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.presets button { min-height: 48px; padding: 0 16px; border: 0; background: var(--clay-2); color: var(--on-clay); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 160ms var(--ease-out); }
.presets button:hover { background: #5a4b3f; }
.presets button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.presets-lbl, .calc .lbl { display: block; font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.02em; margin: 0 0 12px; }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dim { background: var(--clay-2); padding: 14px 16px; display: grid; gap: 6px; }
.dim label { font-weight: 600; }
.dim .unit { display: flex; align-items: baseline; gap: 6px; }
.dim input { width: 100%; min-width: 0; min-height: 48px; padding: 6px 10px; border: 0; background: var(--clay); color: var(--on-clay); font: inherit; font-size: var(--t-h3); font-weight: 700; }
.dim input:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 0; }
.calc .note { margin-top: 18px; font-size: 1rem; color: #cfc7bd; }
.plot { position: sticky; top: 100px; background: var(--ground); color: var(--ink); padding: clamp(22px, 3vw, 36px); }
.plot-svg { width: 100%; height: auto; margin-bottom: 18px; }
.plot .big { font-weight: 800; font-size: var(--t-display); line-height: .9; letter-spacing: -0.06em; }
.plot .big-label { font-weight: 700; font-size: var(--t-h3); margin-top: 6px; }
.plot dl { margin: 20px 0 0; display: grid; gap: 4px; }
.plot dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: var(--ground-2); }
.plot dd { margin: 0; font-weight: 700; white-space: nowrap; }
.plot .btn { margin-top: 22px; width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
.pop { animation: pop 380ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(.94); opacity: .5; } 100% { transform: none; opacity: 1; } }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } .plot { position: static; } }
@media (max-width: 520px) { .dims { grid-template-columns: 1fr; } .dim { grid-template-columns: 1fr 1.2fr; align-items: center; } }

/* ---------- Werk, in grote letters ---------- */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 72px); }
.works li { padding: 22px 0; display: grid; gap: 6px; }
.works li + li:not(:nth-child(2)) { padding-top: 22px; }
.works h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.works h3 a { text-decoration: none; }
.works h3 a:hover { color: var(--blue); }
.works .x { color: var(--blue); }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } }

/* ---------- Werkgebied ---------- */
.area { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.aerial { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.aerial img { width: 100%; height: 100%; object-fit: cover; }
.aerial .mark { position: absolute; left: 47%; top: 60%; width: 64px; height: 64px; transform: translate(-50%, -50%); }
.area-copy p { margin-top: 18px; font-size: var(--t-lead); }
.towns { list-style: none; margin: 24px 0 0; padding: 0; columns: 2 220px; column-gap: 32px; }
.towns li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-weight: 600; white-space: nowrap; }
.towns li span { font-weight: 400; color: var(--ink-soft); }
.area .src { margin-top: 14px; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } }

/* ---------- Vragen ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.faq-head p { margin-top: 18px; font-size: var(--t-lead); }
.faq-head .btn { margin-top: 24px; }
.qa details { background: var(--ground-2); margin-bottom: 8px; }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; cursor: pointer; font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 22px; height: 22px; flex: none; transition: transform 200ms var(--ease-out); }
.qa details[open] summary svg { transform: rotate(45deg); }
.qa details p { padding: 0 20px 20px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Slot en voet ---------- */
.closing { margin-top: var(--section); padding-block: clamp(72px, 7vw, 128px); }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 72px); align-items: end; }
.closing p { margin-top: 16px; font-size: var(--t-lead); }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) { .closing .wrap { grid-template-columns: 1fr; } .closing .actions { justify-content: flex-start; } }
.site-footer { background: var(--clay); color: var(--on-clay); padding-block: clamp(56px, 6vw, 96px) 40px; }
.footer-name { display: flex; align-items: center; gap: .1em; font-weight: 800; font-size: clamp(4rem, 2rem + 12vw, 14rem); line-height: .85; letter-spacing: -0.07em; margin: 0; }
.footer-name svg { width: .72em; height: .72em; margin-left: .06em; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 72px); }
.footer-cols h3 { margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { margin-top: 48px; font-size: 1rem; color: #cfc7bd; display: grid; gap: 10px; }
.footer-legal p { max-width: 70ch; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- Dienstenpagina ---------- */
.page-hero { padding-top: clamp(32px, 5vw, 80px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 72px); align-items: end; }
.page-hero p { font-size: var(--t-lead); }
.page-hero + .section { padding-top: clamp(56px, 6vw, 104px); }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; } }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; scroll-margin-top: 100px; }
.svc + .svc { margin-top: clamp(80px, 8vw, 160px); }
.svc.flip > figure { order: 2; }
.svc > figure .pic { overflow: hidden; aspect-ratio: 4 / 3; }
.svc > figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) { .svc > figure { position: sticky; top: 110px; } }
.svc .ico { width: 60px; height: 60px; margin-bottom: 16px; }
.svc h2 { font-size: var(--t-h2); }
.svc .intro { margin-top: 16px; font-size: var(--t-lead); }
.svc-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.svc-list h3 { font-size: var(--t-h3); }
.svc-list p { margin-top: 4px; }
.svc .note { margin-top: 24px; padding: 16px 20px; background: var(--ground-2); }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .svc.flip > figure { order: 0; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.group { margin: 0 0 24px; }
.quote .lbl { display: block; font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.02em; margin: 0 0 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: var(--ground-2); cursor: pointer; font-weight: 600; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-wrap { display: grid; gap: 6px; margin-bottom: 16px; }
.field-wrap label { font-weight: 600; }
.hint { font-size: 1rem; color: var(--ink-soft); font-weight: 400; }
.quote input[type="text"], .quote input[type="tel"], .quote input[type="email"], .quote textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 0; border-radius: 0; box-shadow: inset 0 0 0 2px var(--ground-2); } /* taste-skill-ignore: rand van een formulierveld */
.quote textarea { min-height: 140px; resize: vertical; }
.quote input:focus-visible, .quote textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; }
.quote [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b42318; } /* taste-skill-ignore: rand van een formulierveld */
.err { color: #b42318; font-weight: 600; font-size: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: verborgen honeypotveld */
.error-summary { background: #fdecea; color: #7a1a12; padding: 16px 20px; margin-bottom: 20px; }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.confirm { margin-top: 24px; padding: 24px; background: var(--clay); color: var(--on-clay); }
.confirm p { margin-top: 10px; }
.confirm a { color: var(--blue-light); font-weight: 700; }
.contact-side { display: grid; gap: 24px; }
.contact-side h2 { font-size: var(--t-h2); }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.c-list a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 700; }
.c-list svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.c-list .addr { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-weight: 600; }
.band { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.band a { display: block; text-decoration: none; }
.band-pic { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.band-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.band a:hover .band-pic img { transform: scale(1.04); }
.band-name { display: flex; align-items: center; min-height: 48px; font-weight: 700; font-size: var(--t-h3); }
.band-title { margin-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 1000px) { .band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } .band { grid-template-columns: 1fr; } .band-pic { aspect-ratio: 16 / 9; } }

/* ---------- Beweging ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero-frame img { transform: scale(1.12); transition: transform 2000ms var(--ease-out); }
.js .hero-frame.in img { transform: scale(1.02); }
.js .aerial .mark { opacity: 0; transform: translate(-50%, -50%) scale(2.2); transition: opacity 600ms var(--ease-out) 300ms, transform 700ms var(--ease-out) 300ms; }
.js .aerial.in .mark { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-frame img { transform: none; }
  .js .aerial .mark { opacity: 1; transform: translate(-50%, -50%); }
}
.nw { white-space: nowrap; }
