/* BDC Construct, voorbeeldsite. Hero-centric, Minimalism & Swiss (ui-ux-pro-max): industrieel grijs + baksteenrood. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f3f4f5;
  --tone: #e3e6e9;
  --ink: #1e252b;
  --soft: #56616b;
  --field: #2b3137;
  --field-deep: #1e252b;
  --on-field: #f3f4f5;
  --on-field-soft: #c3cad0;
  --brick: #9c2f1d;
  --brick-deep: #7e2416;
  --brick-light: #f2b8a8;
  --white: #ffffff;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --margin: clamp(16px, 4vw, 44px);
  --maxw: 1400px;
  --gap: clamp(20px, 2.4vw, 36px);
  --section: clamp(96px, 8vw + 32px, 192px);
  --ease-out: cubic-bezier(0.2, 0.9, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; font-stretch: 100%; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
::selection { background: var(--brick); color: var(--white); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: var(--margin); top: -80px; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 18px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 8px; }
.demo-note { background: var(--field-deep); color: var(--ground); font-size: 1rem; line-height: 1.45; padding: 10px var(--margin); text-align: center; }
.demo-note a { display: inline-block; padding: 11px 8px; margin: -11px -8px; color: var(--ground); font-weight: 700; text-underline-offset: 3px; }
.demo-note a:focus-visible { outline: 2px solid var(--ground); outline-offset: -6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: background-color 200ms ease; }
.site-header.is-scrolled { background: var(--white); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; margin-right: auto; }
.brand-mark { width: 40px; height: 32px; flex: none; }
.brand-name { font-weight: 800; font-stretch: 72%; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; text-transform: uppercase; }
.brand-name span { font-weight: 500; color: var(--soft); }
.nav ul { list-style: none; display: flex; gap: 0 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-weight: 700; white-space: nowrap; transition: color 160ms ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brick); }
.actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.menu-btn svg { width: 26px; height: 26px; }

/* Buttons (square) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 0; text-decoration: none; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-brick { background: var(--brick); color: var(--white); }
.btn-brick:hover { background: var(--brick-deep); }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: #38414a; }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-big { min-height: 60px; font-size: 1.25rem; padding: 0 26px; }

/* Type */
h1, h2, h3 { font-stretch: 72%; }
h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 0.92; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 1.4rem + 4vw, 5.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 0.95; text-wrap: balance; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.005em; }
.lead { font-size: 1.25rem; line-height: 1.5; max-width: 32em; }
.soft { color: var(--soft); }
.measure { max-width: 36em; }
.stack > * + * { margin-top: 1em; }

/* Hero */
.hero { padding-top: clamp(24px, 4vw, 64px); }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(3rem, 1.2rem + 7.6vw, 8.5rem); }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { margin: 0; overflow: hidden; background: var(--tone); aspect-ratio: 4 / 3; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 32px; }
.facts dt { color: var(--soft); font-size: 1rem; }
.facts dd { font-weight: 700; }
.trades { background: var(--field); color: var(--on-field); margin-top: clamp(40px, 5vw, 80px); }
.trades ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; padding-block: 22px; font-weight: 800; font-stretch: 72%; font-size: clamp(1.75rem, 0.6rem + 3.4vw, 3.5rem); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
@media (min-width: 700px) { .trades ul { font-size: min(clamp(1.75rem, 0.6rem + 3.4vw, 3.5rem), calc((100vw - 180px) / 21.5)); } }
.trades li:nth-child(even) { color: var(--brick-light); }

/* Wall tool */
.section { padding-top: var(--section); }
main > .section:last-child { padding-bottom: var(--section); }
.head-row { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 56px); }
.head-row p { max-width: 34em; }
.walltool { display: grid; gap: clamp(24px, 3vw, 48px); }
.wall { margin: 0; }
.wall svg { width: 100%; height: auto; background: var(--tone); }
.wall { --b1: #8e3b2a; --b2: #9a4530; --b3: #7f3424; --b4: #a24e36; --j: #9ea3a6; }
.wall .b1 { fill: var(--b1); } .wall .b2 { fill: var(--b2); } .wall .b3 { fill: var(--b3); } .wall .b4 { fill: var(--b4); }
.wall .joint { fill: var(--j); }
.wall .shade, .wall .shade-hol, .wall .dirt { display: none; }
.walltool:has(#st-gesmoord:checked) .wall { --b1: #4b3b35; --b2: #5a463e; --b3: #3f322d; --b4: #6a5247; }
.walltool:has(#st-geel:checked) .wall { --b1: #c9a66b; --b2: #d3b37a; --b3: #be995e; --b4: #d9be8a; }
.walltool:has(#vk-antraciet:checked) .wall { --j: #3e4245; }
.walltool:has(#vk-wit:checked) .wall { --j: #e8e6e0; }
.walltool:has(#vk-zand:checked) .wall { --j: #cdb98f; }
.walltool:has(#pr-terug:checked) .wall .shade { display: inline; }
.walltool:has(#pr-hol:checked) .wall .shade-hol { display: inline; }
.walltool:has(#gv-voor:checked) .wall .dirt { display: inline; }
.wall figcaption { margin-top: 12px; font-weight: 700; font-size: 1.25rem; }
.wall-controls { display: grid; gap: 22px; align-content: start; }
.wall-controls fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.wall-controls legend { font-weight: 700; font-size: 1.0625rem; padding: 0; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: var(--tone); cursor: pointer; font-weight: 700; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.opt:hover { background: #d4d9dd; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .sw { width: 18px; height: 18px; flex: none; outline: 2px solid rgba(30, 37, 43, 0.3); outline-offset: -2px; }
.opt:has(input:checked) { background: var(--ink); color: var(--ground); }
.opt:has(input:focus-visible) { outline: 3px solid var(--brick); outline-offset: 2px; }
.opt:active { transform: scale(0.98); }
.wall-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Services list (home) */
.svc-rows { list-style: none; display: grid; gap: clamp(28px, 4vw, 56px); }
.svc-row { display: grid; gap: 14px; align-items: center; }
.svc-row h3 { font-size: clamp(1.75rem, 0.6rem + 3.4vw, 3.5rem); font-weight: 800; line-height: 0.95; }
.svc-row p { color: var(--soft); max-width: 30em; }
.svc-row .frame { aspect-ratio: 3 / 2; }
.frame { margin: 0; overflow: hidden; background: var(--tone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Signs (field) */
.field { background: var(--field); color: var(--on-field); padding-block: var(--section); margin-top: var(--section); }
.field .soft { color: var(--on-field-soft); }
.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.split .frame { aspect-ratio: 4 / 3; }
.signs { list-style: none; display: grid; gap: 14px; }
.signs li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; font-size: 1.25rem; }
.signs li::before { content: ""; width: 24px; height: 12px; margin-top: 0.45em; background: var(--brick-light); }

/* Steps */
.steps { list-style: none; display: grid; gap: 28px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: ""; width: 56px; height: 14px; background: var(--brick); margin-bottom: 8px; }
.steps h3 { font-size: 1.5rem; }
.steps p { color: var(--soft); }

/* Area */
.area { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.area .frame { aspect-ratio: 4 / 3; }
.area figcaption { margin-top: 10px; color: var(--soft); font-size: 1rem; }
.towns { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 800; font-stretch: 72%; font-size: clamp(1.75rem, 0.6rem + 3.4vw, 3.5rem); line-height: 1.12; text-transform: uppercase; }
.towns li:first-child { color: var(--brick); }

/* FAQ */
.faq { display: grid; gap: clamp(24px, 4vw, 64px); }
.faq-list { display: grid; gap: 6px; }
.faq-list details { background: var(--tone); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--brick); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details > div { padding: 0 20px 20px; max-width: 40em; }
.faq-list details > div p + p { margin-top: 0.7em; }

/* CTA */
.cta { display: grid; gap: 24px; align-items: end; }
.cta-tel { font-weight: 800; font-stretch: 72%; font-size: clamp(3rem, 1.2rem + 7.6vw, 8.5rem); line-height: 0.95; text-decoration: none; letter-spacing: -0.01em; display: inline-block; padding-block: 6px; white-space: nowrap; transition: color 160ms ease; }
.cta-tel:hover { color: var(--brick-light); }

/* Services page */
.page-head { padding-top: clamp(24px, 4vw, 64px); }
.page-head h1 { font-size: clamp(3rem, 1.2rem + 7.6vw, 8.5rem); max-width: 10em; }
.page-head .lead { margin-top: 22px; }
.service { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.service .frame { aspect-ratio: 4 / 3; }
.service-copy { display: grid; gap: 16px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 18px; height: 8px; background: var(--brick); }
.field .ticks li::before { background: var(--brick-light); }

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
.form { display: grid; gap: 18px; position: relative; }
.form-row { display: grid; gap: 18px; }
.field-l { display: grid; gap: 6px; }
.field-l label { font-weight: 700; }
.hint { color: var(--soft); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; min-height: 54px; padding: 12px 14px; background: var(--white); border: 2px solid #9aa3ab; border-radius: 0; font-size: 1.0625rem; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--brick); outline-offset: 0; border-color: var(--ink); }
.form .hp { position: absolute; width: 2px; height: 2px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { padding: 18px 20px; background: var(--field); color: var(--on-field); }
.form-status a { color: var(--brick-light); font-weight: 700; }
.form-error { color: #b42318; font-weight: 700; }
.details { display: grid; gap: 22px; align-content: start; }
.details dl { display: grid; gap: 16px; }
.details dt { color: var(--soft); font-size: 1rem; }
.details dd { font-weight: 700; overflow-wrap: anywhere; }
.details .frame { aspect-ratio: 4 / 3; }
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.strip .frame { aspect-ratio: 1 / 1; }

/* Footer */
.site-footer { background: var(--field-deep); color: var(--on-field); padding-block: clamp(64px, 7vw, 120px) 40px; }
.foot-name { font-weight: 900; font-stretch: 62%; font-size: clamp(3.5rem, 0.5rem + 17vw, 18rem); overflow-wrap: anywhere; line-height: 0.8; text-transform: uppercase; letter-spacing: -0.01em; }
.foot-name span { color: var(--brick-light); font-weight: 500; }
.foot-grid { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.foot-grid h2 { font-size: 1.0625rem; font-stretch: 100%; letter-spacing: 0; margin-bottom: 8px; line-height: 1.3; }
.foot-grid ul { list-style: none; display: grid; }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-underline-offset: 4px; }
.foot-grid p { color: var(--on-field-soft); }
.foot-grid p strong { color: var(--on-field); }
.credits { margin-top: 40px; color: var(--on-field-soft); font-size: 1rem; max-width: 62ch; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .rise { animation: rise 720ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  .js .hero-media img { transform: scale(1.1); transition: transform 2600ms var(--ease-out); }
  .js .hero-media.is-in img { transform: scale(1); }
  .wall .dirt { transition: opacity 300ms ease; }
  .frame img { transition: transform 700ms var(--ease-out); }
  .svc-row .frame:hover img, .service .frame:hover img, .strip .frame:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

@media (max-width: 1159px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--field-deep); padding: 8px var(--margin) 22px; display: none; }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; }
  .js .nav a { color: var(--on-field); font-size: 1.75rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; min-height: 56px; padding: 0; }
  .js .nav a:hover, .js .nav a[aria-current="page"] { color: var(--brick-light); }
  html:not(.js) .bar { flex-wrap: wrap; }
  html:not(.js) .nav { order: 3; width: 100%; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
}
@media (max-width: 479px) {
  .brand-name span, .hide-sm { display: none; }
  .bar { gap: 8px; min-height: 64px; }
  .actions .btn { padding: 0 14px; min-height: 48px; }
}
@media (max-width: 379px) {
  .tel-label { display: none; }
}
@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .svc-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); }
  .svc-row .frame { grid-column: 2; grid-row: 1 / span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; gap: clamp(32px, 4vw, 64px); }
  .hero-media { order: -1; aspect-ratio: auto; min-height: 560px; height: 100%; }
  .hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
  .head-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--gap); }
  .walltool { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
  .svc-row { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); align-items: center; }
  .svc-row .frame { grid-column: 3; grid-row: 1; }
  .svc-row h3 { grid-column: 1; grid-row: 1; }
  .svc-row p { grid-column: 2; grid-row: 1; }
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
  .area { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .cta { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .cta-tel { font-size: min(clamp(3rem, 1.2rem + 7.6vw, 8.5rem), calc(9.4vw - 6px)); }
  .service { grid-template-columns: 1fr 1fr; }
  .service.flip .frame { order: 2; }
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}
/* Fallback without :has() (set by script) */
.walltool[data-steen="gesmoord"] .wall { --b1: #4b3b35; --b2: #5a463e; --b3: #3f322d; --b4: #6a5247; }
.walltool[data-steen="geel"] .wall { --b1: #c9a66b; --b2: #d3b37a; --b3: #be995e; --b4: #d9be8a; }
.walltool[data-voegkleur="antraciet"] .wall { --j: #3e4245; }
.walltool[data-voegkleur="wit"] .wall { --j: #e8e6e0; }
.walltool[data-voegkleur="zand"] .wall { --j: #cdb98f; }
.walltool[data-profiel="terug"] .wall .shade { display: inline; }
.walltool[data-profiel="hol"] .wall .shade-hol { display: inline; }
.walltool[data-gevel="voor"] .wall .dirt { display: inline; }
.page-head-grid { display: grid; gap: 28px; }
.page-head-grid .frame { aspect-ratio: 16 / 9; }
@media (min-width: 960px) {
  .page-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(32px, 4vw, 64px); }
  .page-head-grid .frame { aspect-ratio: 4 / 3; }
}
