/* Jos Dohmen | Verbouw & Renovatie - huisstijl afgeleid van het logo: blauwviolet #4f3dff en antraciet #4d4c4c op wit.
   Lettertype: Source Sans 3 (SIL Open Font License, zie /assets/fonts/OFL-SourceSans3.txt), lokaal gehost. */

@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/sourcesans3-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/sourcesans3-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/sourcesans3-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blauw: #4f3dff;
  --blauw-donker: #3a29e0;
  --grijs: #4d4c4c;
  --grijs-donker: #333232;
  --tekst: #2f2e2e;
  --zacht: #5d5c5c;
  --vlak: #eef0f3;
  --lijn: #c9ccd3;
  --wit: #fff;
  --breed: 1180px;
  --rand: clamp(16px, 4vw, 40px);
  --anker: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--anker);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.6;
  color: var(--tekst);
  background: var(--wit);
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

a { color: var(--blauw); text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blauw);
  outline-offset: 2px;
}

h1, h2, h3 { color: var(--grijs-donker); line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw + 0.6rem, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; color: var(--grijs-donker); }

.wrap {
  width: 100%;
  max-width: calc(var(--breed) + 2 * var(--rand));
  margin: 0 auto;
  padding-left: max(var(--rand), env(safe-area-inset-left));
  padding-right: max(var(--rand), env(safe-area-inset-right));
}
.wrap.smal { max-width: calc(780px + 2 * var(--rand)); }

.sr, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--wit); padding: 10px 14px; }

/* ---------- Knoppen */
.knop {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.55em 1.4em;
  font: inherit; font-weight: 700; line-height: 1.2;
  color: var(--wit); background: var(--blauw);
  border: 2px solid var(--blauw); border-radius: 4px;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.knop-klein { min-height: 44px; padding: 0.4em 1.1em; font-size: 1rem; }
.knop:disabled { opacity: 0.6; cursor: wait; }
@media (hover: hover) and (pointer: fine) {
  .knop:hover { background: var(--blauw-donker); border-color: var(--blauw-donker); }
  a:hover { text-decoration-thickness: 2px; }
}

/* ---------- Kop */
.topbalk { background: var(--blauw); color: var(--wit); font-size: 0.95rem; }
.topbalk .wrap { display: flex; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.topbalk a { color: var(--wit); text-decoration: none; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .topbalk a:hover { text-decoration: underline; } }

.site-header { background: var(--wit); border-bottom: 1px solid var(--lijn); }
.header-rij { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.merk { display: block; padding: 10px 0; }
.merk-logo img { width: 320px; height: auto; }

/* ---------- Kruimelpad */
.kruimels { padding-top: 8px; }
.kruimels ol { list-style: none; margin: 0 auto; padding: 0 var(--rand); max-width: calc(780px + 2 * var(--rand)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.95rem; color: var(--zacht); }
.kruimels a { display: inline-block; padding: 10px 0; }
.kruimels li + li::before { content: "/"; margin-right: 6px; color: var(--lijn); }

/* ---------- Intro */
.intro { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.intro h1 { max-width: 18ch; }
.h1-vraag { display: block; color: var(--blauw); }
.lead { font-size: 1.15em; }
.intro-tekst p { max-width: 64ch; }
.intro-acties { margin-top: 1.6em; }

.pomp { background: var(--grijs); color: var(--wit); padding: clamp(24px, 3vw, 36px); border-radius: 4px; margin-top: 0.4rem; }
.pomp h2 { color: var(--wit); font-size: 1.375rem; margin-bottom: 0.5em; }
.pomp p { margin: 0; }
.pomp a, .pomp strong { color: var(--wit); }
.pomp a { text-decoration: underline; }

/* ---------- Contact */
.contact { background: var(--vlak); padding: clamp(44px, 6vw, 88px) 0; scroll-margin-top: var(--anker); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-gegevens { background: var(--wit); border-left: 6px solid var(--blauw); padding: clamp(22px, 3vw, 32px); }
.contact-gegevens dl { margin: 0; display: grid; gap: 18px; }
.contact-gegevens dt { font-weight: 700; color: var(--grijs-donker); font-size: 0.95rem; text-transform: none; }
.contact-gegevens dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.formulier { display: grid; gap: 18px; }
.veld-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.veld { display: grid; gap: 6px; }
.veld label { font-weight: 600; color: var(--grijs-donker); }
.verplicht { color: var(--blauw); }
.veld input[type="text"], .veld input[type="email"], .veld input[type="tel"], .veld textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--tekst); background: var(--wit);
  border: 1px solid #8f939c; border-radius: 4px;
}
.veld textarea { min-height: 160px; resize: vertical; }
.veld-verborgen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.veld-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.veld-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--blauw); }
.veld-check label { font-weight: 400; }
.formulier-status:empty { display: none; }
.formulier-status { margin: 0; padding: 12px 14px; background: var(--wit); border-left: 4px solid var(--blauw); }
.formulier-status.fout { border-left-color: #b3261e; color: #8c1d18; }
.formulier .knop { justify-self: start; }
.sectie .formulier-status { margin-bottom: 1em; }
.klein { font-size: 0.9rem; color: var(--zacht); }

/* ---------- Tekstpagina's */
.sectie { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.tekstpagina h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.prose h2 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose code { font-size: 0.92em; background: var(--vlak); padding: 0.05em 0.3em; }
.meta { color: var(--zacht); font-size: 0.95rem; }

/* ---------- Voet */
.site-footer { background: var(--grijs); color: var(--wit); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.98rem; }
.footer-rij { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px; }
.footer-rij p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { color: var(--wit); display: inline-block; padding: 10px 0; }
.site-footer .klein { color: #d9d8d8; }

/* ---------- Mobiel (na de basisregels) */
@media (max-width: 980px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .pomp { margin-top: 0; }
  .contact-gegevens { max-width: 560px; }
}
@media (max-width: 720px) {
  .header-rij { min-height: 68px; }
  .merk-logo img { width: 240px; }
  .veld-rij { grid-template-columns: 1fr; }
  .formulier .knop { justify-self: stretch; }
  .topbalk .wrap { justify-content: center; }
}
@media (max-width: 480px) {
  .merk-logo img { width: 210px; }
  .knop-klein { padding: 0.4em 0.9em; }
  .footer-rij { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .merk-logo img { width: 176px; }
}
