/* House style: replace these variables with the real colours and fonts. */
:root {
  --kleur-tekst: #2b2d2f;        /* anthracite */
  --kleur-zacht: #5a5c5e;        /* secondary text, AA on off-white */
  --kleur-achtergrond: #f7f5f1;  /* off-white */
  --kleur-vlak: #ece6dc;         /* sand/concrete, for alternating sections */
  --kleur-accent: #6e5b47;       /* warm concrete, buttons and accents (AA on white, off-white and sand) */
  --kleur-wit: #fff;
  --font-tekst: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-titel: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --breedte: 72rem;
  --radius: 4px;
  --header-hoogte: 7.5rem;
}

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

html { scroll-padding-top: var(--header-hoogte); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-tekst);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--kleur-tekst);
  background: var(--kleur-achtergrond);
}

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

h1, h2, h3 { font-family: var(--font-titel); font-weight: 500; line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem; }

a { color: var(--kleur-accent); }
a:hover { color: var(--kleur-tekst); }

:focus-visible { outline: 3px solid var(--kleur-accent); outline-offset: 3px; }

.container { max-width: var(--breedte); margin: 0 auto; padding: 0 1.25rem; }

.skiplink { position: absolute; left: -999px; top: .5rem; background: var(--kleur-wit); padding: .5rem 1rem; z-index: 100; }
.skiplink:focus { left: .5rem; }

/* Buttons */
.knop {
  display: inline-block;
  padding: .8rem 1.4rem;
  border: 2px solid var(--kleur-accent);
  border-radius: var(--radius);
  background: var(--kleur-accent);
  color: var(--kleur-wit);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knop:hover { background: var(--kleur-tekst); border-color: var(--kleur-tekst); color: var(--kleur-wit); }
.knop--licht { background: transparent; border-color: var(--kleur-wit); }
.knop--licht:hover { background: var(--kleur-wit); border-color: var(--kleur-wit); color: var(--kleur-tekst); }

/* Header: two rows on mobile, the navigation scrolls horizontally (no JavaScript needed) */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--kleur-achtergrond);
  border-bottom: 1px solid var(--kleur-vlak);
}
.header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .75rem; padding-bottom: .5rem; }
.logo { font-family: var(--font-titel); font-size: 1.375rem; font-weight: 600; color: var(--kleur-tekst); text-decoration: none; margin-right: auto; }
.header__tel { color: var(--kleur-tekst); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header .knop { padding: .5rem 1rem; }
.nav { order: 3; width: 100%; overflow-x: auto; }
.nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: .25rem 0; }
.nav a { color: var(--kleur-tekst); text-decoration: none; white-space: nowrap; padding: .25rem 0; display: inline-block; }
.nav a:hover { text-decoration: underline; }

@media (max-width: 30rem) {
  .header .knop { display: none; } /* on very narrow screens the phone number and menu are enough */
}

/* Dropdown with the service pages: wide screens only, because the scrolling mobile menu would clip it */
.nav .nav__sub { display: none; }

@media (min-width: 60rem) {
  :root { --header-hoogte: 5rem; }
  .nav { order: 0; width: auto; overflow: visible; }
  .logo { margin-right: 1rem; }
  .nav { margin-right: auto; }
  .nav__diensten { position: relative; }
  .nav__diensten:hover .nav__sub, .nav__diensten:focus-within .nav__sub {
    display: block;
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 13rem;
    padding: .5rem 0;
    background: var(--kleur-achtergrond);
    border: 1px solid var(--kleur-vlak);
    border-radius: var(--radius);
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
  }
  .nav__sub a { display: block; padding: .4rem 1rem; }
  .nav__sub a[aria-current] { font-weight: 600; }
}

/* Hero */
.hero { position: relative; color: var(--kleur-wit); background: var(--kleur-tekst); }
.hero img { width: 100%; height: clamp(26rem, 80vh, 44rem); object-fit: cover; }
.hero__tekst {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3rem;
  background: linear-gradient(to top, rgba(20, 20, 20, .8), rgba(20, 20, 20, .25) 70%);
}
.hero__tekst p { max-width: 36rem; font-size: 1.125rem; }
.hero--dienst img { height: clamp(20rem, 55vh, 32rem); }
.knoppen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

/* Sections */
.sectie { padding: 4rem 0; }
.sectie--vlak { background: var(--kleur-vlak); }
.sectie__intro { max-width: 40rem; margin-bottom: 2rem; color: var(--kleur-zacht); }

.raster { display: grid; gap: 1.5rem; }
.raster + .raster { margin-top: 2.5rem; }
@media (min-width: 45rem) {
  .raster--2 { grid-template-columns: repeat(2, 1fr); }
  .raster--3 { grid-template-columns: repeat(3, 1fr); }
  .raster--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .raster--4 { grid-template-columns: repeat(4, 1fr); }
}

.kaart { background: var(--kleur-wit); border-radius: var(--radius); overflow: hidden; }
.kaart__tekst { padding: 1.25rem 1.5rem 1.5rem; }
.kaart ul { margin: 0; padding-left: 1.2rem; }
.meer { font-weight: 600; color: var(--kleur-accent); }
.meer::after { content: " \2192"; }
.werken { max-width: 40rem; margin: 0; padding-left: 1.2rem; font-size: 1.125rem; }
.werken li { margin-bottom: .5rem; }


.stappen { list-style: none; padding: 0; margin: 0; counter-reset: stap; }
.stappen li { counter-increment: stap; }
.stappen li::before {
  content: counter(stap);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: var(--kleur-accent);
  color: var(--kleur-wit);
  font-family: var(--font-titel);
  font-size: 1.25rem;
}

.troef { border-top: 3px solid var(--kleur-accent); padding-top: 1rem; }

.realisaties { list-style: none; padding: 0; margin: 0; }
.realisaties figure { margin: 0; }
.realisaties figcaption { padding-top: .5rem; color: var(--kleur-zacht); font-size: .95rem; }

/* Form */
.formulier { display: grid; gap: 1rem; }
.veld label { display: block; font-weight: 600; margin-bottom: .25rem; }
.veld input, .veld select, .veld textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--kleur-zacht);
  border-radius: var(--radius);
  background: var(--kleur-wit);
  color: var(--kleur-tekst);
  font: inherit;
}
.veld textarea { min-height: 8rem; resize: vertical; }
.veld--check { display: flex; gap: .6rem; align-items: flex-start; }
.veld--check input { width: auto; margin-top: .35rem; }
.veld--check label { font-weight: 400; margin: 0; }
.verplicht { color: var(--kleur-accent); }
.verborgen { display: none; }
.contactgegevens { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contactgegevens li { margin-bottom: .75rem; }
.contactgegevens strong { display: block; }

@media (min-width: 60rem) {
  .contact { grid-template-columns: 2fr 1fr; gap: 3rem; }
}

/* Footer */
.footer { background: var(--kleur-tekst); color: var(--kleur-achtergrond); padding: 3rem 0 2rem; font-size: .95rem; }
.footer a { color: var(--kleur-achtergrond); }
.footer p { margin: 0 0 .4rem; }

/* Standalone pages (thank you, privacy) */
.pagina { padding: 4rem 0; max-width: 46rem; }
.pagina h2 { font-size: 1.5rem; margin-top: 2rem; }
