/* M-Bouw en Reno: voorbeeldsite. Basis uit ui-ux-pro-max (Minimalism & Swiss, warm grijs + goud), letters aangepast naar Bebas Neue + Source Sans 3. */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #EFEEEB;
  --surface: #E1DFDA;
  --stone: #CFCCC5;
  --ink: #1C1917;
  --ink-2: #44403C;
  --amber: #D97706;
  --amber-deep: #B45F04;
  --on-ink: #F2F1EE;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --text: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --t-body: 1.125rem;
  --t-lead: clamp(1.1875rem, 1vw + .9rem, 1.4375rem);
  --t-h1: clamp(3.25rem, 6.8vw + .6rem, 7.5rem);
  --t-h2: clamp(2.75rem, 4.6vw + .6rem, 5.25rem);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --gap-section: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.2, .75, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: var(--t-body); line-height: 1.55; touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--amber-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: clamp(1.875rem, 1.4vw + 1.4rem, 2.5rem); line-height: .95; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 12px 18px; }
.skip:focus { top: 12px; color: var(--on-ink); }

.demo-note { background: var(--ink); color: var(--ground); font-size: 1rem; line-height: 1.4; padding: .5rem var(--gutter); text-align: center; text-wrap: balance; }
.demo-note a { color: inherit; padding: 13px 12px; margin: 0 -12px; white-space: nowrap; text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.demo-note a:hover { color: inherit; }
.demo-note a:focus-visible { outline: 2px solid var(--ground); outline-offset: -10px; }

/* Kop */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ground); }
.head-row { display: flex; align-items: center; gap: 8px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.875rem; line-height: 1; letter-spacing: .01em; white-space: nowrap; padding-top: 3px; }
.brand b span { color: #9A5203; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
.menu-panel { display: none; padding: 8px var(--gutter) 24px; }
.menu-panel.open { display: block; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: flex; align-items: center; min-height: 52px; font-family: var(--display); font-size: 2rem; text-decoration: none; }
@media (min-width: 1100px) { .nav { display: block; } .menu-btn, .menu-panel, .menu-panel.open { display: none; } }
@media (max-width: 479px) { .brand svg { display: none; } .brand b { font-size: 1.5rem; } .head-row { gap: 6px; } .head-actions { gap: 6px; } .btn-sm { padding: 0 12px; } .menu-btn { width: 44px; } }
@media (max-width: 399px) { .brand b { font-size: 1.375rem; } }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 2px solid var(--amber); border-radius: 0; background: var(--amber); color: var(--ink); font: 700 1.125rem/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: #F08A0E; border-color: #F08A0E; color: var(--ink); }
.btn:active { transform: translateY(2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn-light { background: transparent; border-color: var(--on-ink); color: var(--on-ink); }
.btn-light:hover { background: var(--on-ink); color: var(--ink); }
.btn-sm { min-height: 48px; padding: 0 14px; font-size: 1.0625rem; }
.btn-icon { min-width: 48px; padding: 0 12px; }
.btn-icon span { display: none; }
@media (min-width: 620px) { .btn-icon span { display: inline; } }

/* Hero op een donker veld */
.hero { background: var(--ink); color: var(--on-ink); padding-block: clamp(28px, 4vw, 64px) clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { color: var(--on-ink); }
.hero h1 span { color: var(--amber); }
.hero .lead { font-size: var(--t-lead); line-height: 1.5; margin-top: 20px; max-width: 30em; color: #E3E1DC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; color: #E3E1DC; }
.hero-facts li { display: flex; gap: 8px; align-items: baseline; }
.hero-facts b { font-family: var(--display); font-weight: 400; font-size: 1.75rem; color: var(--amber); }
.hero-photo { margin: 0; overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 1 / 1; }
}

.section { margin-top: var(--gap-section); }
.head { display: grid; gap: 16px; max-width: 48rem; align-content: start; }
.head p { font-size: var(--t-lead); line-height: 1.5; max-width: 36em; }

/* Bouw | Reno */
.split { display: grid; gap: 88px; margin-top: 44px; }
.half { display: grid; gap: 18px; align-content: start; }
.half .word { font-family: var(--display); font-size: clamp(4.5rem, 10vw, 9rem); line-height: .8; color: var(--amber-deep); }
.half figure { margin: 0; overflow: hidden; }
.half img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.half ul { margin: 0; padding-left: 1.2em; }
.half li + li { margin-top: 6px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Bouwplanner */
.planner-band { background: var(--surface); padding-block: clamp(64px, 9vw, 120px); }
.projects { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; border: 0; min-width: 0; }
.projects legend { font-weight: 700; margin-bottom: 12px; padding: 0; width: 100%; }
.projects label { position: relative; display: inline-flex; }
.projects input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.projects span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; background: var(--ground); font-weight: 700; transition: background-color .2s var(--ease), color .2s var(--ease); }
.projects label:hover span { background: var(--stone); }
.projects input:checked + span { background: var(--ink); color: var(--on-ink); }
.projects input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; font-weight: 600; }
.legend-row span { display: inline-flex; align-items: center; gap: 10px; }
.legend-row i { width: 22px; height: 22px; display: inline-block; }
.legend-row .us i { background: var(--amber); }
.legend-row .them i { background: var(--ground); }
.plan { margin-top: 26px; }
.plan-title { font-family: var(--display); font-size: clamp(1.875rem, 1.4vw + 1.4rem, 2.5rem); line-height: .95; text-transform: uppercase; margin-bottom: 16px; }
.js .plans.ready .plan-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.phases li { position: relative; padding: 18px 20px 18px 20px; background: var(--ground); display: grid; gap: 6px; }
.phases li.us { background: var(--amber); }
.phases li b { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1; }
.phases li small { font-size: 1rem; font-weight: 600; }
.phases li p { font-size: 1.0625rem; }
.js .plans.ready .plan { display: none; }
.js .plans.ready .plan.on { display: block; }
.js .plans.ready .plan.on .phases li { animation: slidein .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.plans:not(.ready) .plan + .plan { margin-top: 56px; }
.plan-note { margin-top: 22px; max-width: 46rem; }
@media (min-width: 760px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .phases { grid-template-columns: repeat(4, 1fr); } }
@keyframes slidein { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* Wat wij zelf doen */
.own { display: grid; gap: 36px; }
.own figure { margin: 0; overflow: hidden; }
.own img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.own figcaption { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.trades { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.trades li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.trades svg { width: 56px; height: 56px; color: var(--ink); }
.trades p { margin-top: 8px; }
@media (min-width: 960px) { .own { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .own figure { position: sticky; top: 100px; } }

/* Vooraf */
.before { background: var(--ink); color: var(--on-ink); padding-block: clamp(64px, 9vw, 120px); }
.before h2 { color: var(--on-ink); }
.before .head p { color: #D6D3CD; }
.checks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
.checks li { display: grid; gap: 8px; align-content: start; }
.checks h3 { color: var(--amber); }
.checks p { color: #E3E1DC; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; gap: 36px 56px; } }
@media (min-width: 1140px) { .checks { grid-template-columns: repeat(4, 1fr); } }

/* Werkgebied */
.area { display: grid; gap: 30px; align-items: center; }
.area p { margin-top: 16px; max-width: 34em; }
.towns { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.towns li { font-family: var(--display); font-size: clamp(1.875rem, 2.4vw + 1rem, 3rem); line-height: 1.05; color: var(--ink-2); }
.towns li.home { color: var(--amber-deep); }
.towns li::after { content: "/"; margin-left: 10px; color: var(--stone); }
.towns li:last-child::after { content: none; }
.area-photo { margin: 0; overflow: hidden; }
.area-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.area-photo figcaption { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
@media (min-width: 960px) { .area { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* FAQ */
.faq-grid { display: grid; gap: 30px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 14px 20px; font-weight: 700; font-size: 1.1875rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 2rem; color: var(--amber-deep); line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 22px; max-width: 46rem; }
.faq .a p + p { margin-top: 10px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 56px; } }

/* Slot en voet */
.closing { margin-top: var(--gap-section); background: var(--amber); padding-block: clamp(56px, 8vw, 104px); }
.closing-grid { display: grid; gap: 24px; align-items: end; }
.closing p { font-size: var(--t-lead); margin-top: 14px; max-width: 30em; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing .btn { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.closing .btn:hover { background: #33302C; border-color: #33302C; }
.closing .btn-dark { background: transparent; color: var(--ink); }
.closing .btn-dark:hover { background: var(--ink); color: var(--on-ink); }
@media (min-width: 900px) { .closing-grid { grid-template-columns: 7fr 5fr; } .closing .actions { justify-content: flex-end; } }
.site-foot { background: var(--ink); color: #D6D3CD; padding-block: 64px 40px; }
.foot-name { font-family: var(--display); font-size: clamp(3.25rem, 13vw, 12rem); line-height: .82; color: var(--on-ink); }
.foot-name span { color: var(--amber); }
.foot-cols { display: grid; gap: 26px; margin-top: 44px; }
.foot-cols h2 { font-family: var(--text); text-transform: none; font-size: 1.125rem; font-weight: 700; letter-spacing: 0; color: var(--on-ink); }
.foot-cols ul { list-style: none; margin: 8px 0 0; padding: 0; }
.foot-cols a { color: #D6D3CD; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot-cols a:hover { color: #FFFFFF; }
.foot-cols address { font-style: normal; margin-top: 8px; }
.credits { margin-top: 36px; color: #ADA9A2; font-size: .9375rem; max-width: 52rem; }
.credits a { color: #D6D3CD; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }

/* Dienstenpagina */
.page-top { padding-top: clamp(28px, 4vw, 56px); display: grid; gap: 22px; }
.page-top .lead { font-size: var(--t-lead); line-height: 1.5; max-width: 38em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; background: var(--surface); font-weight: 700; text-decoration: none; }
.toc a:hover { background: var(--amber); color: var(--ink); }
.part { display: grid; gap: 28px; margin-top: clamp(80px, 10vw, 140px); align-items: center; }
.part figure { margin: 0; overflow: hidden; }
.part img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.part figcaption { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.part .body p { margin-top: 16px; }
.part ul { margin: 16px 0 0; padding-left: 1.2em; }
.part li + li { margin-top: 6px; }
.part .note { margin-top: 18px; background: var(--surface); padding: 16px 18px; }
.part .drawing { background: var(--surface); aspect-ratio: 3 / 2; display: grid; place-items: center; }
.part .drawing svg { width: 66%; height: auto; color: var(--ink); }
@media (max-width: 899px) { .part > figure, .part > .drawing { order: 2; } }
@media (min-width: 900px) { .part { grid-template-columns: 6fr 6fr; gap: 60px; } .part.flip > :first-child { order: 2; } }

/* Contact */
.contact-grid { display: grid; gap: 72px; margin-top: 36px; }
.contact-card { background: var(--ink); color: var(--on-ink); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.contact-card h2 { color: var(--on-ink); font-size: 2.75rem; }
.contact-card a:not(.btn) { color: var(--on-ink); }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { color: var(--amber); font-weight: 700; }
.contact-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; }
.form h2 { font-size: clamp(2.75rem, 3vw + 1.4rem, 4rem); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.hint { color: var(--ink-2); font-size: 1rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: #FFFFFF; border: 2px solid #8F8A82; border-radius: 0; min-height: 54px; padding: 10px 14px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B42318; }
.err { color: #A3241A; font-weight: 700; }
.err:empty { display: none; }
.two { display: grid; gap: 18px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #F7E2DC; color: #7A1A12; padding: 14px 18px; }
.form-errors[hidden], .form-done[hidden], .prefill[hidden] { display: none; }
.prefill { background: var(--amber); padding: 14px 18px; font-weight: 700; }
.form-done { background: var(--ink); color: var(--on-ink); padding: clamp(22px, 3vw, 36px); }
.form-done h2 { color: var(--amber); font-size: 2.5rem; }
.form-done p { margin-top: 12px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 4fr 8fr; gap: 56px; } .contact-card { position: sticky; top: 100px; } }
.pics { display: grid; gap: 22px; margin-top: 36px; }
.pics figure { margin: 0; }
.pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pics figcaption { margin-top: 8px; font-weight: 600; }
@media (min-width: 640px) { .pics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pics { grid-template-columns: repeat(4, 1fr); } }

/* Beweging */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
  .js .rv.in { opacity: 1; transform: none; }
  .hero-photo img { animation: push 18s var(--ease) both; }
  @keyframes push { from { transform: scale(1.1); } to { transform: scale(1); } }
  .half img, .own img, .part img, .pics img { transition: transform .8s var(--ease); }
  .half figure:hover img, .part figure:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
