/* Dakwerken CDC: voorbeeldsite. Basis uit ui-ux-pro-max (Flat Design, Trust & Authority + Conversion), oranje vervangen door werfgeel. */
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ground: #F5F7FA;
  --surface: #E3E8EF;
  --ink: #14213D;
  --ink-2: #33415F;
  --navy-2: #1D2D50;
  --yellow: #F5B700;
  --yellow-deep: #DCA200;
  --on-navy: #F5F7FA;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --t-body: 1.125rem;
  --t-lead: clamp(1.1875rem, 1vw + .9rem, 1.4375rem);
  --t-h1: clamp(3rem, 6.4vw + .4rem, 6rem);
  --t-h2: clamp(2.375rem, 4.4vw + .5rem, 4.5rem);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --gap-section: clamp(96px, 12vw, 184px);
  --ease: cubic-bezier(.22, .68, .2, 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(--body); 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(--yellow-deep); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: .94; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: clamp(1.625rem, 1.2vw + 1.2rem, 2.125rem); font-weight: 700; line-height: 1; }
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(--ground); padding: 12px 18px; }
.skip:focus { top: 12px; color: var(--ground); }

.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; text-decoration: none; color: var(--ink); min-height: 48px; margin-right: auto; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand b { font-family: var(--head); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .005em; white-space: nowrap; line-height: 1; }
.brand b span { color: var(--ink-2); font-weight: 700; }
.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(--yellow-deep); text-decoration-thickness: 3px; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.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(--head); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; text-decoration: none; }
@media (min-width: 1100px) { .nav { display: block; } .menu-btn, .menu-panel, .menu-panel.open { display: none; } }
@media (max-width: 459px) { .brand b span { display: none; } }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 3px solid var(--yellow); border-radius: 0; background: var(--yellow); color: var(--ink); font: 600 1.125rem/1 var(--body); 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: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--ink); }
.btn:active { transform: translateY(2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ink { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); border-color: var(--ink); color: var(--on-navy); }
.btn-out { background: transparent; border-color: var(--on-navy); color: var(--on-navy); }
.btn-out:hover { background: var(--on-navy); border-color: var(--on-navy); 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 */
.hero { padding-top: clamp(16px, 2.5vw, 32px); }
.hero-grid { display: grid; }
.hero-panel { background: var(--ink); color: var(--on-navy); padding: clamp(28px, 4.5vw, 64px); display: grid; align-content: end; gap: 22px; }
.hero-panel h1 { color: var(--on-navy); }
.hero-panel h1 span { display: block; }
.hero-panel .lead { font-size: var(--t-lead); line-height: 1.5; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-photo { margin: 0; position: relative; overflow: hidden; background: var(--surface); min-height: 280px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; position: absolute; inset: 0; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--on-navy); padding: 10px 14px; font-size: 1rem; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 7fr 5fr; min-height: min(640px, calc(100vh - 160px)); }
  .hero-photo { min-height: 0; }
}

/* Feitenstrook */
.facts { display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 80px); }
.facts div { display: grid; gap: 8px; align-content: start; }
.facts strong { font-family: var(--head); font-weight: 800; font-size: clamp(2.75rem, 4vw + 1rem, 4.5rem); line-height: .9; text-transform: uppercase; }
.facts p { max-width: 24em; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

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

/* Lekzoeker */
.finder { display: grid; gap: 28px; margin-top: 40px; }
.finder fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.finder legend { font-weight: 600; margin-bottom: 14px; padding: 0; font-size: 1.125rem; }
.spots { display: grid; grid-template-columns: 1fr; gap: 8px; }
.spot { position: relative; display: block; }
.spot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.spot span { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; min-height: 72px; padding: 12px 16px; background: var(--surface); font-weight: 600; line-height: 1.25; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.spot svg { width: 48px; height: 48px; color: var(--ink); }
.spot svg .w { color: #2F80C9; }
.spot:hover span { background: #D3DBE6; }
.spot input:checked + span { background: var(--yellow); color: var(--ink); }
.spot input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.answers { background: var(--ink); color: var(--on-navy); padding: clamp(24px, 3.5vw, 44px); }
.answer h3 { color: var(--yellow); }
.answer dl { margin: 18px 0 0; display: grid; gap: 16px; }
.answer dt { font-weight: 600; color: var(--yellow); }
.answer dd { margin: 4px 0 0; }
.answer .btn { margin-top: 24px; }
.js .answers.ready .answer { display: none; }
.js .answers.ready .answer.on { display: block; animation: rise .35s var(--ease) both; }
.answers:not(.ready) .answer + .answer { margin-top: 36px; }
.answer-hint { font-size: 1.125rem; }
@media (min-width: 680px) { .spots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .finder { grid-template-columns: 6fr 6fr; gap: 40px; align-items: start; } .answers { position: sticky; top: 100px; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Diensten */
.svc { display: grid; gap: 32px; margin-top: 44px; }
.svc-photo { margin: 0; }
.svc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-photo figcaption { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.svc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.svc-rows li { padding: 4px 0 26px; display: grid; gap: 8px; }
.svc-rows li + li { padding-top: 26px; }
.svc-rows h3 a { text-decoration: none; }
.svc-rows h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow-deep); }
@media (min-width: 960px) { .svc { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } .svc-photo { position: sticky; top: 100px; } }

/* Werkwijze */
.band { background: var(--ink); color: var(--on-navy); padding-block: clamp(64px, 9vw, 120px); }
.band h2 { color: var(--on-navy); }
.band .head-block p { color: #D6DDE8; }
.flow { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 30px; }
.flow li { display: grid; gap: 10px; align-content: start; }
.flow h3 { color: var(--yellow); }
.flow svg { width: 56px; height: 56px; color: var(--yellow); }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 44px; } }

/* Werkgebied */
.area { display: grid; gap: 36px; }
.area-list { columns: 2; column-gap: 24px; list-style: none; margin: 22px 0 0; padding: 0; }
.area-list li { break-inside: avoid; padding: 8px 0; font-weight: 600; font-size: 1.125rem; }
.area-list li small { display: block; font-weight: 400; color: var(--ink-2); font-size: 1rem; }
.area figure { margin: 0; }
.area img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.area figcaption { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
@media (min-width: 960px) { .area { grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; } .area-list { columns: 3; } }

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

.faq-photo { margin: 12px 0 0; }
.faq-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.faq-photo figcaption { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }

/* Slot */
.closing { margin-top: var(--gap-section); background: var(--yellow); padding-block: clamp(56px, 8vw, 104px); }
.closing-grid { display: grid; gap: 24px; align-items: end; }
.closing p { font-size: var(--t-lead); margin-top: 16px; max-width: 30em; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing .btn { background: var(--ink); border-color: var(--ink); color: var(--on-navy); }
.closing .btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.closing .btn-ink { background: transparent; color: var(--ink); }
.closing .btn-ink:hover { background: var(--ink); color: var(--on-navy); }
@media (min-width: 900px) { .closing-grid { grid-template-columns: 7fr 5fr; } .closing .actions { justify-content: flex-end; } }

/* Voet */
.site-foot { background: var(--ink); color: #D6DDE8; padding-block: 64px 40px; }
.foot-name { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: clamp(2.75rem, 11vw, 10rem); line-height: .86; color: var(--on-navy); }
.foot-name span { color: var(--yellow); }
.foot-cols { display: grid; gap: 26px; margin-top: 44px; }
.foot-cols h2 { font-family: var(--body); font-weight: 600; text-transform: none; font-size: 1.125rem; letter-spacing: 0; color: var(--on-navy); }
.foot-cols ul { list-style: none; margin: 8px 0 0; padding: 0; }
.foot-cols a { color: #D6DDE8; 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: #AEB9CB; font-size: .9375rem; max-width: 52rem; }
.credits a { color: #D6DDE8; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }

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

/* Contact */
.contact-grid { display: grid; gap: 72px; margin-top: 36px; }
.contact-card { background: var(--ink); color: var(--on-navy); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.contact-card h2 { color: var(--on-navy); font-size: 2.25rem; }
.contact-card a:not(.btn) { color: var(--on-navy); }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { color: var(--yellow); font-weight: 600; }
.contact-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; }
.form h2 { font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.hint { color: var(--ink-2); font-size: 1rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: #FFFFFF; border: 2px solid #8C99AD; 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(--yellow-deep); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B42318; }
.err { color: #B42318; font-weight: 600; }
.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: #FCE8E6; color: #7A1A12; padding: 14px 18px; }
.form-errors[hidden], .form-done[hidden], .prefill[hidden] { display: none; }
.prefill { background: var(--yellow); padding: 14px 18px; font-weight: 600; }
.form-done { background: var(--ink); color: var(--on-navy); padding: clamp(22px, 3vw, 36px); }
.form-done h2 { color: var(--yellow); font-size: 2.25rem; }
.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; } }
.shots { display: grid; gap: 22px; margin-top: 36px; }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shots figcaption { margin-top: 8px; font-weight: 600; }
@media (min-width: 640px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .shots { grid-template-columns: repeat(4, 1fr); } }

/* Beweging */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); 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: drift 20s var(--ease) both; }
  @keyframes drift { from { transform: scale(1.1) translateX(-2%); } to { transform: scale(1.02) translateX(0); } }
  .svc-photo img, .area img, .block img, .shots img { transition: transform .8s var(--ease); }
  .svc-photo:hover img, .area figure:hover img, .block figure:hover img { transform: scale(1.02); }
  .spot input:checked + span { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
