/* IDB Bouw — variant H: replica van de huidige site.
   Kenmerken: gecentreerd groot logo met groen menu, bleke herofoto's met vier
   gelaagde driehoek-vormen (GenerateBlocks 'triangle-2'), groene koppen met witte
   tekstschaduw en verschoven grijze schaduwblokken achter afbeeldingen en knoppen. */
/* Source Sans Pro (origineel sitefont) — lokaal als Source Sans 3, variabel 400-800 */
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --groen: #33853c;             /* d&eacute; huisstijlkleur, overal leidend */
  --groen-donker: #256b2d;
  --lichtgroen: #39b648;
  --donkergroen: #1c3b21;
  --tekst: #222222;
  --tekst-zacht: #4a554c;
  --licht: #f0f0f0;
  --lijn: #dde8df;
  --wit: #ffffff;
  --blok-schaduw: -14px 14px 0 rgba(0, 0, 0, 0.10);
  --font: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-anchor uit: anders schuift Chrome de scrollpositie mee wanneer de
   header krimpt, en zou de sticky header bij een lage drempel gaan stuiteren */
html { scroll-behavior: smooth; overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tekst);
  background: var(--wit);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--groen-donker); }
a:hover { color: var(--groen); }
h1, h2, h3 { line-height: 1.2; color: var(--groen); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.41rem; margin: 0 0 0.4em; } /* 24px, conform origineel */
p { margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container-smal { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--donkergroen); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--lichtgroen);
  outline-offset: 2px;
}

/* ---------- Header: gecentreerd logo + groen menu, krimpt bij scrollen ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--wit);
}
.site-header.shrunk { border-bottom: 1px solid var(--lijn); }
/* Header naar origineel model, met eigen accenten: extra lucht boven het logo,
   logo 120px breed, menu 20px vet met ruime tussenafstand.
   Logo links uitgelijnd met de contentrand, menu rechts. */
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { width: 120px; height: auto; transition: width 0.15s ease; }
.site-header.shrunk .nav-wrap { padding-top: 10px; padding-bottom: 10px; }
.site-header.shrunk .brand img { width: 53px; }
/* Tussenruimte tussen de items zodat actieve/hover-achtergronden elkaar niet raken */
.menu { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 12px 16px; border-radius: 8px;
  text-decoration: none; color: var(--groen); font-weight: 700; font-size: 1.25rem;
}
.menu a:hover { background: #eef6ef; color: var(--groen-donker); }
/* Actieve pagina: lichtgroene achtergrond (zelfde tint als hover) */
.menu a[aria-current="page"] { background: #eef6ef; color: var(--groen-donker); }
/* Contact als opvallende knop, uiterst rechts in het menu */
.menu .menu-knop, .menu .menu-knop[aria-current="page"] {
  background: var(--groen); color: #fff; border-radius: 6px; padding: 12px 22px; margin-left: 10px;
}
.menu .menu-knop:hover { background: var(--groen-donker); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Knoppen: rechthoekig, zonder schaduw, in de huisstijlkleur ---------- */
.btn {
  display: inline-block; padding: 15px 20px; border: 0; border-radius: 6px;
  background: var(--groen); color: #fff; font-weight: 700; font-size: 1rem;
  font-family: inherit;   /* <button> erft het sitefont niet vanzelf */
  text-decoration: none; cursor: pointer; transition: background 0.2s;
}
.btn:hover { background: var(--groen-donker); color: #fff; }

/* ---------- Hero: bleke foto met vier gelaagde driehoeken ---------- */
.hero-wp { position: relative; overflow: hidden; background: var(--wit); }
.hero-achtergrond {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
  opacity: 0.30;
}
.hero-inhoud { position: relative; z-index: 1; padding-top: 205px; padding-bottom: 175px; }
.hero-wp h1 { text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5); }
.hero-sub {
  color: var(--groen); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.25; max-width: 24em; margin-bottom: 1.2em;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}
/* Elk deel op een eigen regel; op smalle schermen mag de tekst gewoon doorlopen */
.hero-sub span { display: block; }
@media (min-width: 901px) { .hero-sub span { white-space: nowrap; } }

/* Groene overlay op alle hero's: volle foto, groen verloop, witte tekst.
   Lichtere variant (uitgeprobeerd, niet gekozen):
   linear-gradient(115deg, rgba(51,133,60,.88) 0%, rgba(57,150,70,.70) 45%, rgba(51,133,60,.32) 100%); */
.hero-overlay .hero-achtergrond { opacity: 1; }
.hero-overlay::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(18, 48, 24, 0.90) 0%, rgba(28, 78, 38, 0.72) 45%, rgba(28, 59, 33, 0.30) 100%);
}
/* Middengroene variant (projecten en werken bij): tussen het donkergroen en het felle groen in */
.hero-overlay-licht::after {
  background: linear-gradient(115deg, rgba(35, 91, 42, 0.89) 0%, rgba(43, 114, 54, 0.71) 45%, rgba(40, 96, 47, 0.31) 100%);
}
.hero-overlay h1, .hero-overlay .hero-sub { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero-overlay .btn { background: #fff; color: var(--groen-donker); }
.hero-overlay .btn:hover { background: #eef6ef; color: var(--donkergroen); }

/* De vier vormlagen — waarden exact uit de GenerateBlocks-uitvoer van de huidige site */
.gb-shapes .gb-shape { position: absolute; overflow: hidden; pointer-events: none; line-height: 0; left: 0; right: 0; z-index: 1; }
.gb-shapes .gb-shape svg { fill: currentColor; position: relative; left: 50%; transform: translateX(-50%); min-width: 100%; }
.gb-shape-1 { color: #fff; bottom: -1px; transform: scaleX(-1); }
.gb-shape-1 svg { height: 60px; width: 200%; }
.gb-shape-2 { color: #fff; top: -1px; transform: scaleY(-1); }
.gb-shape-2 svg { height: 80px; width: 150%; }
.gb-shape-3 { color: rgba(255, 255, 255, 0.8); bottom: -1px; transform: scaleX(-1); }
.gb-shape-3 svg { height: 75px; width: 150%; }
.gb-shape-4 { color: rgba(255, 255, 255, 0.48); top: -1px; transform: scaleY(-1); }
.gb-shape-4 svg { height: 100px; width: 140%; }

/* ---------- Secties: ruime verticale marges zoals op de huidige site ---------- */
.sectie { padding: 105px 0; }
.sectie-licht { background: var(--licht); }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700;
  font-size: 0.82rem; color: var(--tekst-zacht); margin: 0 0 0.5em; display: block;
}

/* Twee kolommen: foto met schaduwblok naast tekst, brede tussenruimte */
.kolommen { display: grid; grid-template-columns: 1fr 1.05fr; gap: 95px; align-items: center; }
.kolommen > img, .blok-foto { box-shadow: var(--blok-schaduw); }
.kolommen.foto-rechts > img { order: 2; }

/* Fotocollage (home): twee boven, één breed eronder */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.collage img { box-shadow: var(--blok-schaduw); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.collage img.breed { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

/* Kernwaarden met groene chevrons */
.kernwaarden { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; max-width: 30em; margin: 8px 0 24px; list-style: none; padding: 0; }
.kernwaarden li { display: flex; align-items: center; gap: 10px; }
.kernwaarden svg { width: 15px; height: 15px; color: var(--groen); flex: 0 0 auto; }

/* Drie kolommen (innovatief/duurzaam) */
.drie-kolommen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; }
.drie-kolommen p { color: var(--tekst-zacht); margin: 0; }

/* ---------- Projecten: introductie + 2 kolommen met fotoslider in wit kader ---------- */
.projecten-intro { padding-bottom: 46px; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--tekst-zacht); max-width: 48em; margin: 0; }
.projecten-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px 80px; }
.project h2 { margin: 0 0 2px; font-size: 1.4rem; }
.project .categorie { color: var(--tekst); font-size: 1.02rem; margin-bottom: 12px; display: block; }
.project p { color: var(--tekst-zacht); }
/* Schaduwblok direct tegen de foto (geen witte rand ertussen) */
.slider-kader { margin-bottom: 36px; }
.slider { position: relative; box-shadow: var(--blok-schaduw); }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; aspect-ratio: 4 / 3; background: var(--licht);
}
.slider-track::-webkit-scrollbar { display: none; }
/* Slide = klikbare knop. Liggende foto's: cover (minimaal wegsnijden, mooier).
   Portretfoto's: volledig tonen (contain) met een zachte, vervaagde kopie van
   dezelfde foto als vulling op de zijkanten (geen zwarte balken). */
.slide {
  flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center;
  position: relative; display: block; padding: 0; margin: 0; border: 0;
  overflow: hidden; background: var(--licht); cursor: zoom-in;
}
.slide-foto { width: 100%; height: 100%; object-fit: cover; }
.slide.portret .slide-foto { position: relative; z-index: 1; object-fit: contain; }
.slide-blur {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(22px) brightness(0.78); transform: scale(1.18);
}
/* Bediening rechtsonder: pijltjes en teller als één setje donkere pillen */
.slider-bediening {
  position: absolute; right: 12px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
}
/* Knopjes en teller exact even hoog (30px) voor een strak setje */
.slider-knop {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(18, 48, 24, 0.75); color: #fff;
  font-family: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.slider-knop:hover { background: var(--groen); }
.slider-teller {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(18, 48, 24, 0.75); color: #fff;
  font-size: 0.85rem; font-weight: 600; line-height: 1;
}
/* Slepen met de muis (swipen op touch werkt native via scroll-snap) */
.slider-track { cursor: grab; }
.slider-track.sleept { cursor: grabbing; scroll-snap-type: none; }
.slide img { user-select: none; -webkit-user-drag: none; pointer-events: none; }
.slide-blur { pointer-events: none; }

/* ---------- Lightbox: foto uitvergroten op donkere achtergrond ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 4vw;
  background: rgba(12, 26, 15, 0.92);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.lightbox.open { opacity: 1; visibility: visible; }
/* Portret- en liggende foto's op hun eigen verhouding, gecentreerd op de donkere achtergrond */
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.lightbox-knop {
  position: absolute; z-index: 2; top: 18px; right: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(18, 48, 24, 0.75); color: #fff;
  font-family: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox-knop:hover { background: var(--groen); }
.lightbox-vorige, .lightbox-volgende { top: 50%; transform: translateY(-50%); font-size: 1.9rem; }
.lightbox-vorige { left: 18px; right: auto; }
.lightbox-volgende { right: 18px; }
.lightbox-teller {
  position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: rgba(18, 48, 24, 0.75); color: #fff;
  font-size: 0.9rem; font-weight: 600; padding: 5px 14px; border-radius: 999px;
}
@media (max-width: 560px) {
  .lightbox-vorige { left: 10px; }
  .lightbox-volgende { right: 10px; }
  .lightbox-knop { width: 40px; height: 40px; }
}

/* ---------- Certificering ---------- */
.cert-rij { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; margin-top: 30px; }
/* Downloadlinks onderaan gelijk uitlijnen, ongeacht de tekstlengte erboven */
.cert-blok { display: flex; flex-direction: column; }
.cert-blok .doc-link { margin-top: auto; align-self: flex-start; padding-top: 12px; }
/* Eigen beeldverhouding behouden (flex rekt anders op) en horizontaal centreren */
.cert-blok img { height: 78px; width: auto; align-self: center; margin-bottom: 14px; }
.cert-blok .fsc-tegel { background: var(--groen); padding: 7px; border-radius: 6px; }
.cert-blok p { color: var(--tekst-zacht); font-size: 0.95rem; }
.doc-link { font-weight: 700; }
.doc-lijst { padding-left: 1.1em; margin-top: 8px; }
.doc-lijst li { margin-bottom: 0.5em; }

/* ---------- Contact: drie kolommen met iconen ---------- */
.contact-kolommen { display: grid; grid-template-columns: 0.8fr 0.9fr 1.3fr; gap: 70px; align-items: start; }
.contact-icoon { display: flex; color: var(--groen); margin-bottom: 18px; }
.contact-icoon svg { width: 30px; height: 30px; }
.contact-kolommen h2 { font-size: 1.1rem; color: var(--tekst); }
.contact-kolommen address { font-style: normal; margin-bottom: 1em; }
.kvk-blok { color: var(--tekst-zacht); }
/* Kaart: lokaal gehoste afbeelding; Google Maps laadt pas na een klik
   (op de knop of op de kaart zelf). Privacyuitleg als tooltip bij hover. */
.kaart { position: relative; box-shadow: var(--blok-schaduw); overflow: hidden; cursor: pointer; }
.kaart > img { display: block; width: 100%; height: auto; }
.kaart iframe { display: block; width: 100%; height: 440px; border: 0; cursor: auto; }
.kaart-bron {
  position: absolute; right: 6px; top: 6px;
  background: rgba(255, 255, 255, 0.85); color: var(--tekst-zacht);
  font-size: 0.7rem; padding: 2px 7px; border-radius: 4px;
}
.kaart .kaart-laden {
  position: absolute; right: 10px; bottom: 10px;
  padding: 9px 15px; font-size: 0.92rem; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.kaart-tip {
  position: absolute; left: 10px; right: 10px; top: 10px;
  background: rgba(255, 255, 255, 0.96); color: var(--tekst-zacht);
  font-size: 0.8rem; line-height: 1.5; padding: 10px 13px; border-radius: 8px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s;
}
.kaart:hover .kaart-tip, .kaart:focus-within .kaart-tip { opacity: 1; visibility: visible; }

/* ---------- Formulieren ---------- */
form { max-width: 640px; }
.veld-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--tekst);
  border: 1px solid #b9cbbd; border-radius: 6px; background: var(--wit);
}
.field input:focus, .field textarea:focus { border-color: var(--groen); }
.hp-veld { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: var(--groen-donker); }
.form-status.err { color: #b3261e; }

/* ---------- Privacy / prose ---------- */
.prose h2 { margin-top: 1.6em; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--lijn); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--licht); }

/* ---------- Footer: uitgebreid, in de huisstijlkleur ---------- */
.site-footer { background: var(--groen); color: #ffffff; }
.site-footer a { color: var(--licht); }
.site-footer a:hover { color: var(--lichtgroen); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 56px; padding-bottom: 32px;
}
.footer-grid img { margin-bottom: 14px; }
.footer-title { font-size: 1.05rem; color: #fff; margin: 0 0 0.8em; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 0.45em; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
address { font-style: normal; }
.footer-klein { font-size: 0.9rem; color: #dcefdf; }
.kvk { color: #dcefdf; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 18px; padding-bottom: 22px; }
.footer-bottom p { margin: 0; font-size: 0.9rem; color: #eef6ef; }

/* ---------- Responsief ---------- */
@media (max-width: 1020px) {
  .drie-kolommen { grid-template-columns: 1fr; gap: 26px; }
  .contact-kolommen { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .nav-wrap { justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 10px; }
  .brand img { width: 70px; }
  .site-header.shrunk .brand img { width: 48px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--lijn); border-radius: 10px;
    background: var(--wit); cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    content: ""; display: block; width: 22px; height: 2.5px;
    background: var(--donkergroen); border-radius: 2px; position: relative;
  }
  .bars::before { position: absolute; top: -7px; }
  .bars::after { position: absolute; top: 7px; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--wit); border-bottom: 1px solid var(--lijn);
    padding: 12px 16px 18px; box-shadow: 0 8px 24px rgba(28, 59, 33, 0.10);
  }
  .menu.open { display: flex; }
  .menu a { padding: 13px 14px; }
  .menu a[aria-current="page"] { border-radius: 8px; background: #eef6ef; }
  .menu .menu-knop, .menu .menu-knop[aria-current="page"] { margin: 8px 0 0; text-align: center; }
  /* Vormen op mobiel half zo hoog: zelfde stijl, vlakkere hoek.
     Meer verticale lucht zodat de tekst vrij van de schuine randen staat. */
  .gb-shape-1 svg { height: 30px; }
  .gb-shape-2 svg { height: 40px; }
  .gb-shape-3 svg { height: 38px; }
  .gb-shape-4 svg { height: 50px; }
  .hero-inhoud { padding-top: 125px; padding-bottom: 110px; }
  .kolommen, .kolommen.foto-rechts { grid-template-columns: 1fr; gap: 34px; }
  .kolommen.foto-rechts > img { order: 0; }
  .projecten-grid { grid-template-columns: 1fr; gap: 70px; }
  .sectie { padding: 60px 0; }
  .cert-rij { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .veld-rij { grid-template-columns: 1fr; }
  .kernwaarden { grid-template-columns: 1fr; }
  .cert-rij { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
