/* dakbakermelo.nl — stijlblad
   Kleur: asfalt (inkt), koelgrijs paneel, signaalrood accent (zoals de prijsstickers)
   Type:  Barlow Condensed (koppen, wegwijzer-gevoel) + Barlow (lopende tekst) */

:root {
  --ground: #ffffff;
  --panel: #eef1f5;
  --panel-2: #e2e7ee;
  --ink: #17212b;
  --ink-2: #5b6572;
  --line: #d5dbe2;
  --accent: #d7282f;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9ea;
  --wa: #1f9a4f;
  --focus: #1f6fd0;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(23, 33, 43, .08);
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121820; --panel: #1a222c; --panel-2: #232d39; --ink: #eef1f5; --ink-2: #a5aeb9;
    --line: #2f3a47; --accent: #ef4a50; --accent-soft: #3a1d1f; --shadow: 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #121820; --panel: #1a222c; --panel-2: #232d39; --ink: #eef1f5; --ink-2: #a5aeb9;
  --line: #2f3a47; --accent: #ef4a50; --accent-soft: #3a1d1f; --shadow: 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
b, strong { font-weight: 600; }

.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--accent); }
.note { font-size: 14px; color: var(--ink-2); }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.1;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(.92); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 22px; }
.ico { width: 20px; height: 20px; fill: var(--wa); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: .06em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; white-space: nowrap; }
.wordmark-a { color: var(--ink); }
.wordmark-b { color: var(--accent); }
.wordmark-c { color: var(--ink-2); font-weight: 600; font-size: .78em; margin-left: 1px; }
.wordmark-small { font-size: 20px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.site-nav a:hover { color: var(--accent); }
.btn-header { padding: 9px 16px; font-size: 17px; }
@media (max-width: 800px) {
  .site-nav { display: none; }
  .btn-header { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--ground) 0%, var(--panel) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 56px 48px; }
.hero-text { display: grid; gap: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 16px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6.5-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; filter: drop-shadow(0 18px 24px rgba(23,33,43,.25)); }
.hero-figure figcaption {
  position: absolute; right: 4%; bottom: 6%; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px 12px; border-radius: var(--radius); transform: rotate(-4deg); box-shadow: var(--shadow);
  font-family: var(--font-display); line-height: 1; display: grid; text-align: center;
}
.hero-figure .tag { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.hero-figure strong { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-figure .per { font-size: 14px; }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .hero-figure { order: -1; max-width: 420px; margin-inline: auto; }
}

/* ---------- secties ---------- */
.section { padding-block: 64px; }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* ---------- producten ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); background: var(--panel); }
.product-body { padding: 20px; display: grid; gap: 12px; align-content: start; flex: 1; }
.product-body p { color: var(--ink-2); font-size: 16px; }
.product-lead { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; }
.product-lead img { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.product-lead .product-body { padding: 28px; }
.price { margin: auto 0 0; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.price div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.price dt { color: var(--ink); font-size: 15px; }
.price dd { margin: 0; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.price dd b { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; margin-left: 2px; }
.price dd::after { content: " / dag"; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr 1fr; } .product-lead { grid-column: span 2; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } .product-lead { grid-column: span 1; grid-template-columns: 1fr; } .product-lead img { aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- daktypen ---------- */
.roofs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.roof { position: relative; display: grid; gap: 6px; background: var(--ground); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 12px 14px; cursor: pointer; }
.roof:hover { border-color: var(--ink-2); }
.roof input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.roof:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.roof:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.roof img { border-radius: 3px; background: #fff; }
.roof-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.roof-hint { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.roof-detail { margin-top: 18px; padding: 16px 20px; background: var(--ground); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.roof-detail p { display: none; max-width: 60em; }
.roof-detail p.is-active { display: block; }
@media (max-width: 1000px) { .roofs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .roofs { grid-template-columns: 1fr 1fr; gap: 10px; } .roof-hint { display: none; } }

/* ---------- stappen ---------- */
.steps { list-style: none; counter-reset: stap; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: stap; display: grid; gap: 10px; padding-top: 14px; border-top: 3px solid var(--ink); position: relative; }
.steps li::before { content: counter(stap, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent); }
.steps p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- formulier ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.form-intro { display: grid; gap: 14px; position: sticky; top: 84px; }
.form-intro p { color: var(--ink-2); }
.form { display: grid; gap: 22px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-family: var(--font-display); font-weight: 600; font-size: 22px; padding: 0; margin-bottom: 4px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 500; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--ground);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,208,.18); }
textarea { resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 16px; }
.checks input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 10px; justify-items: start; }
@media (max-width: 800px) {
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-intro { position: static; }
  .form { padding: 20px; }
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-grid h2 { margin-bottom: 12px; }
.contact-list { margin: 0; display: grid; gap: 18px; }
.contact-list div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--font-display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.contact-list dd { margin: 0; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } .contact-list div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--panel); padding-block: 28px; font-size: 15px; }
.site-footer .wordmark-a, .site-footer .wordmark-c { color: var(--panel); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }

/* ---------- WhatsApp-knop (mobiel) ---------- */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: none; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 40; }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 800px) { .whatsapp-float { display: grid; } }
