/* TDH Dakwerken: voorbeeldsite. Tokens uit ui-ux-pro-max (Minimalism & Swiss Style), kleur uit het eigen logo. */
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --ground: #F4F7F7;
  --surface: #E3ECEC;
  --ink: #0B2A2D;
  --ink-soft: #2F4A4D;
  --teal: #04606B;
  --teal-deep: #03464E;
  --on-teal: #FFFFFF;
  --tile: #2C3A40;
  --font: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 1.2vw + .8rem, 1.375rem);
  --t-h2: clamp(1.875rem, 3.4vw + .6rem, 3.25rem);
  --t-h1: clamp(2.5rem, 5vw + .5rem, 4.75rem);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --gap-section: clamp(88px, 12vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --roof: polygon(0 9%, 19% 0, 38% 9%, 100% 9%, 100% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; 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; font-weight: 350; touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.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 { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 18px; text-decoration: none; }
.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: underline; }
.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; }
@media (min-width: 600px) { .head-row { gap: 16px; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 48px; margin-right: auto; }
.brand svg { width: 44px; height: auto; color: var(--teal); flex: none; }
.brand-name { display: none; }
@media (min-width: 440px) { .brand-name { display: flex; } .brand svg { width: 52px; } }
.brand-name { flex-direction: column; line-height: 1.1; }
.brand-name strong { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name span { font-size: .9375rem; color: var(--ink-soft); white-space: nowrap; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 450; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
.menu-panel { display: none; padding: 8px var(--gutter) 24px; background: var(--ground); }
.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-size: 1.25rem; color: var(--ink); text-decoration: none; font-weight: 500; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-btn, .menu-panel, .menu-panel.open { display: none; }
}

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 2px solid var(--teal); border-radius: 0; background: var(--teal); color: var(--on-teal); font: 500 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--on-teal); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-line { background: transparent; color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--on-teal); }
.btn-light { background: var(--ground); border-color: var(--ground); color: var(--teal-deep); }
.btn-light:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: var(--ground); color: var(--ground); }
.btn-ghost-light:hover { background: var(--ground); color: var(--teal-deep); }
.btn-sm { min-height: 48px; padding: 0 14px; font-size: 1rem; }
.btn-mail { min-width: 48px; padding: 0 12px; }
.head-actions .btn-mail span { display: none; }
@media (min-width: 560px) { .head-actions .btn-mail span { display: inline; } }

/* ---------- Dakvormige fotokaders (de daklijn uit het logo) ---------- */
.roof-frame { margin: 0; position: relative; }
.roof-frame .pic { clip-path: var(--roof); overflow: hidden; background: var(--surface); }
.roof-frame img { width: 100%; height: 100%; object-fit: cover; }
.roof-frame figcaption { margin-top: 10px; font-size: 1rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34em; margin-top: 24px; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 28px 0 0; padding: 0; }
.hero-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
.hero-facts dt { color: var(--ink-soft); }
.hero-facts dd { margin: 0; font-weight: 450; }
.hero-photo .pic { aspect-ratio: 16 / 10; }
.hero-photo img { transform-origin: 30% 40%; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 6fr 6fr; align-items: end; gap: 48px; }
  .hero-photo .pic { aspect-ratio: 4 / 3.2; }
  .hero-facts { grid-template-columns: 1fr; }
}

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

/* Dakkapel-schets */
.sketch { background: var(--teal); color: var(--on-teal); padding-block: clamp(56px, 8vw, 112px); }
.sketch a { color: var(--on-teal); }
.sketch-grid { display: grid; gap: 36px; }
.sketch h2 { max-width: 14ch; }
.sketch .intro { font-size: var(--t-lead); line-height: 1.5; margin-top: 18px; max-width: 32em; }
.sketch form { display: grid; gap: 26px; margin-top: 32px; }
.sketch fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sketch legend, .sketch label.lab { font-weight: 500; font-size: 1.0625rem; margin-bottom: 10px; display: block; padding: 0; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row output { min-width: 4.5ch; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: rgba(255, 255, 255, .35); }
input[type="range"]::-moz-range-track { height: 8px; background: rgba(255, 255, 255, .35); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--ground); border: 0; }
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--ground); border: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; justify-content: center; padding: 0 18px; background: var(--teal-deep); color: var(--on-teal); font-weight: 450; transition: background-color .2s var(--ease), color .2s var(--ease); }
.choice input:checked + span { background: var(--ground); color: var(--teal-deep); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--ground); outline-offset: 3px; }
.choice label:hover span { background: #0A7480; }
.choice label:hover input:checked + span { background: var(--ground); }
.sketch-figure { margin: 0; background: #E9F0F0; color: var(--ink); padding: clamp(16px, 3vw, 32px); }
.sketch-figure svg { width: 100%; height: auto; }
.sketch-figure .readout { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; margin-top: 14px; color: var(--ink); }
.sketch-figure .note { font-size: 1rem; color: var(--ink-soft); margin-top: 6px; }
.sketch .send { justify-self: start; }
@media (min-width: 960px) {
  .sketch-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .sketch-figure { position: sticky; top: 110px; }
}
#dk-body { transition: transform .45s var(--ease); }

/* Diensten-overzicht */
.services-grid { display: grid; gap: 40px; margin-top: 48px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; }
.svc-ico { width: 52px; height: 52px; color: var(--teal); }
.svc-list h3 a { color: var(--ink); text-decoration: none; }
.svc-list h3 a:hover { color: var(--teal); text-decoration: underline; }
.svc-list p { margin-top: 8px; }
.svc-photos { display: grid; gap: 20px; align-content: start; }
.svc-photos .pic { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .services-grid { grid-template-columns: 6fr 6fr; gap: 64px; }
  .svc-photos { position: sticky; top: 110px; }
}

/* Werkwijze */
.steps-band { background: var(--surface); padding-block: clamp(56px, 8vw, 104px); }
.steps-line { width: 100%; height: auto; color: var(--teal); margin: 36px 0 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps h3 { font-size: 1.5rem; }
.steps p { margin-top: 10px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Werkgebied */
.area-grid { display: grid; gap: 36px; }
.area-text p { margin-top: 18px; }
.towns { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { background: var(--surface); padding: 10px 14px; font-weight: 450; }
.towns li.home { background: var(--teal); color: var(--on-teal); }
.area-photo .pic { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 500; font-size: 1.125rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.75rem; font-weight: 300; color: var(--teal); line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; max-width: 44rem; }
.faq .answer p + p { margin-top: 10px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; } }

/* Slot */
.closing { margin-top: var(--gap-section); background: var(--teal-deep); color: var(--ground); padding-block: clamp(64px, 9vw, 120px); }
.closing-grid { display: grid; gap: 28px; align-items: end; }
.closing h2 { max-width: 14ch; }
.closing p { font-size: var(--t-lead); line-height: 1.5; max-width: 30em; margin-top: 18px; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .closing-grid { grid-template-columns: 7fr 5fr; } .closing .actions { justify-content: flex-end; } }

/* Voet */
.site-foot { background: var(--ink); color: #DCE7E7; padding-block: 72px 40px; }
.foot-mark { display: flex; align-items: flex-end; gap: 18px; padding-top: 8px; color: var(--ground); }
.foot-mark svg { width: clamp(52px, 9vw, 120px); height: auto; color: #6FB3BB; flex: none; }
.foot-mark p { font-size: clamp(1.75rem, 7.6vw, 7rem); font-weight: 600; letter-spacing: -0.045em; line-height: .9; }
.foot-cols { display: grid; gap: 28px; margin-top: 48px; }
.foot-cols h2 { font-size: 1.125rem; letter-spacing: 0; color: var(--ground); }
.foot-cols ul { list-style: none; margin: 10px 0 0; padding: 0; }
.foot-cols li { margin: 0; }
.foot-cols a { color: #DCE7E7; 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: 10px; }
.credits { margin-top: 40px; font-size: .9375rem; color: #B9CCCD; max-width: 52rem; }
.credits a { color: #DCE7E7; display: inline; min-height: 0; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Dienstenpagina ---------- */
.page-hero { padding-top: clamp(32px, 5vw, 72px); }
.page-hero .lead { font-size: var(--t-lead); line-height: 1.5; max-width: 36em; margin-top: 22px; }
.page-hero-grid { display: grid; gap: 28px; align-items: end; }
.page-hero .pic { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 6fr 6fr; gap: 56px; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; padding: 0; }
.jump a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 450; }
.jump a:hover { background: var(--teal); color: var(--on-teal); }
.svc-block { display: grid; gap: 28px; margin-top: clamp(80px, 10vw, 140px); }
.svc-block .pic { aspect-ratio: 3 / 2; }
.svc-block h2 { font-size: clamp(1.75rem, 2.8vw + .6rem, 2.75rem); }
.svc-block .body p { margin-top: 16px; }
.svc-block ul.points { margin: 18px 0 0; padding-left: 1.2em; }
.svc-block ul.points li + li { margin-top: 6px; }
.svc-block .tip { margin-top: 20px; background: var(--surface); padding: 16px 18px; }
.svc-block .drawn { background: var(--surface); display: grid; place-items: center; aspect-ratio: 3 / 2; color: var(--teal); }
.svc-block .drawn svg { width: 70%; height: auto; }
@media (min-width: 900px) {
  .svc-block { grid-template-columns: 6fr 6fr; gap: 64px; align-items: center; }
  .svc-block.flip .media { order: 2; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; margin-top: 36px; }
.contact-card { background: var(--surface); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.contact-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { color: var(--ink-soft); }
.contact-card dd { margin: 2px 0 0; font-weight: 450; overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; }
.form h2 { font-size: clamp(1.75rem, 2.6vw + .6rem, 2.5rem); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field .hint { font-size: 1rem; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); background: #FFFFFF; border: 2px solid #9DB3B5; border-radius: 0; min-height: 52px; 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(--teal); outline-offset: 0; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #B42318; }
.err { color: #B42318; font-weight: 500; }
.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] { display: none; }
.form-done { background: var(--teal); color: var(--on-teal); padding: clamp(20px, 3vw, 32px); }
.form-done[hidden] { display: none; }
.form-done h2 { font-size: 1.75rem; }
.form-done p { margin-top: 12px; }
.form-done a { color: var(--on-teal); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 4fr 8fr; gap: 64px; } .contact-card { position: sticky; top: 110px; } }
.photo-tips { display: grid; gap: 24px; margin-top: 40px; }
.photo-tips .pic { aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .photo-tips { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .photo-tips { 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: slowzoom 18s var(--ease) both; }
  @keyframes slowzoom { from { transform: scale(1.09); } to { transform: scale(1); } }
  .roof-frame .pic img { transition: transform .8s var(--ease); }
  .roof-frame:hover .pic img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.tip { background: var(--surface); padding: 14px 18px; }
.tip[hidden] { display: none; }
