/* WVW Groenwerken
   Layout: brede, links uitgelijnde secties met één grote beeldopening; afwisselend licht beton en donker beton.
   Kleur: fris bladgroen als accent, betongrijs als basis, persicaria-rood (uit het logo) voor kleine details.
   Eén lettertype (Geist), zware koppen met strakke spatiëring, lopende tekst ruim gezet. */

:root {
  --green: #7ab648;
  --green-deep: #5f9a33;
  --green-tint: #e9f2dc;
  --concrete-soft: #eeefeb;
  --concrete: #d9dbd5;
  --concrete-mid: #9a9e98;
  --concrete-dark: #3b3f3c;
  --concrete-deep: #2d302e;
  --red: #a3303a;
  --paper: #f8f8f5;
  --ink: #24282a;
  --ink-soft: rgba(36, 40, 42, 0.64);
  --line: rgba(36, 40, 42, 0.14);
  --on-dark: #f3f4f0;
  --on-dark-soft: rgba(243, 244, 240, 0.7);
  --line-dark: rgba(243, 244, 240, 0.16);

  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1280px;
  --section: clamp(4.5rem, 9vw, 8rem);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.375rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.measure { max-width: 60ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.5rem 0.95rem 1.65rem;
  border-radius: 999px;
  background: var(--green); color: var(--ink);
  font-weight: 500; font-size: 1rem; line-height: 1;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color 160ms ease, transform 160ms ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--green-deep); color: var(--on-dark); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--concrete); color: var(--ink); }
.btn-outline { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn-outline:hover { background: rgba(243, 244, 240, 0.1); color: var(--on-dark); }
.textlink { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--green); padding-bottom: 2px; transition: border-color 160ms ease; }
.textlink:hover { border-bottom-color: var(--red); }
.textlink svg { width: 16px; height: 16px; }

/* Koptekst */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(248, 248, 245, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand .mark { height: 52px; width: auto; flex: none; }
.brand-name { font-weight: 600; font-size: 1.3125rem; letter-spacing: -0.03em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.975rem; color: var(--ink); padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--green); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .site-header .wrap { min-height: 72px; }
  .brand .mark { height: 44px; }
  .brand-name { font-size: 1.125rem; }
  .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter-r) 1rem var(--gutter);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { display: block; padding-block: 0.9rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* Hero */
.hero { position: relative; background: var(--concrete-deep); color: var(--on-dark); isolation: isolate; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(36, 40, 42, 0.62) 0%, rgba(36, 40, 42, 0.3) 45%, rgba(36, 40, 42, 0.05) 100%),
    linear-gradient(180deg, rgba(36, 40, 42, 0.18) 0%, rgba(36, 40, 42, 0.25) 45%, rgba(36, 40, 42, 0.9) 100%);
}
.hero .wrap { min-height: min(84vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: clamp(4rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 52ch; margin-top: 1.5rem; color: var(--on-dark-soft); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--on-dark-soft); font-size: 0.95rem; }
.hero-foot strong { color: var(--on-dark); font-weight: 500; }
.hero.compact .wrap { min-height: 0; padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem); }

/* Secties */
.section { padding-block: var(--section); }
.section.cream { background: var(--concrete-soft); }
.section.tint { background: var(--green-tint); }
.section.dark { background: var(--concrete-dark); color: var(--on-dark); }
.section.dark .muted { color: var(--on-dark-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { max-width: 50ch; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* Twee kolommen met beeld */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split > .media { grid-column: span 6; }
.split > .copy { grid-column: span 6; }
.split.reverse > .media { order: 2; }
.split .media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split .media.wide img { aspect-ratio: 5 / 4; }
.split .copy h2 { margin-bottom: 1.5rem; }
.split .copy p + p { margin-top: 1rem; }
.split .copy .btn, .split .copy .textlink { margin-top: 2rem; }
@media (max-width: 860px) {
  .split > .media, .split > .copy { grid-column: span 12; }
  .split.reverse > .media { order: 0; }
  .split .media img { aspect-ratio: 4 / 3; }
}

/* Kenmerken-strook */
.marks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.marks div { padding: 1.5rem 1.75rem 0 0; border-left: 1px solid var(--line); padding-left: 1.5rem; }
.marks div:first-child { border-left: 0; padding-left: 0; }
.marks h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.marks p { font-size: 0.95rem; color: var(--ink-soft); }
.promise { margin-top: clamp(3rem, 6vw, 5rem); }
.promise .marks { margin-top: 0.4rem; }
.marks.five { grid-template-columns: repeat(5, 1fr); }
.promise .kicker { color: var(--green-deep); }
@media (max-width: 1080px) and (min-width: 721px) { .marks.five { grid-template-columns: repeat(3, 1fr); row-gap: 1.75rem; } .marks.five div:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 720px) { .marks.five { grid-template-columns: 1fr; } .marks.five div { padding: 1.25rem 0; } }
@media (max-width: 720px) { .marks { grid-template-columns: 1fr; } .marks div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .marks div:first-child { border-top: 0; } }

/* Landenstrook */
.countries { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: 2rem; font-size: 0.975rem; color: var(--ink-soft); }
.countries span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 0.6rem; vertical-align: 1px; }

/* Kaarten (diensten) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.section.dark .card { background: var(--concrete-deep); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--ink-soft); font-size: 0.975rem; flex: 1; }
.card ul { margin: 1rem 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 0.95rem; }
.card ul li { padding: 0.45rem 0; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Werkwijze */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: stap; }
.steps li { counter-increment: stap; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--line-dark); }
.steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.steps li::before { content: counter(stap, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--green); font-weight: 500; font-size: 1rem; padding-top: 0.2rem; }
.steps h3 { color: var(--on-dark); margin-bottom: 0.4rem; }
.steps p { color: var(--on-dark-soft); font-size: 0.975rem; max-width: 48ch; }

/* Projecten */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.5rem; }
.project { text-decoration: none; display: block; min-width: 0; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.project .cap { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1.5rem; padding-top: 1rem; align-items: baseline; }
.project h3 { grid-column: 1 / -1; font-size: 1.1875rem; }
.project .place { color: var(--ink-soft); font-size: 0.95rem; }
.project .num { color: var(--red); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.project:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--green); }
@media (max-width: 960px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

/* Portfolio */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.featured .media { grid-column: span 8; }
.featured .media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.featured .copy { grid-column: span 4; }
.featured .copy h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin-bottom: 1rem; }
.featured .copy .muted:first-child { color: var(--red); font-weight: 500; font-size: 0.95rem; margin-bottom: 0.5rem; }
@media (max-width: 900px) { .featured .media, .featured .copy { grid-column: span 12; } }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; margin: 1.5rem 0 0; font-size: 0.95rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.section.dark .facts dt { color: var(--on-dark-soft); }

.portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem) 2rem; }
.work { min-width: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.work .meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 0; color: var(--ink-soft); font-size: 0.95rem; }
.work .meta span:first-child { color: var(--red); font-weight: 500; }
.work .meta span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.work h3 { margin-top: 0.35rem; font-size: 1.375rem; }
.work p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 56ch; }
.work .facts { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .portfolio { grid-template-columns: 1fr; } }

/* Veelgestelde vragen */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; font-weight: 500; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 200ms ease; color: var(--green-deep); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--red); }
.faq details p { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Afsluiter met beeld */
.closer { position: relative; color: var(--on-dark); isolation: isolate; background: var(--concrete-deep); }
.closer img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.closer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(45, 48, 46, 0.9) 0%, rgba(45, 48, 46, 0.6) 60%, rgba(45, 48, 46, 0.3) 100%); }
.closer .wrap { padding-block: clamp(5rem, 10vw, 9rem); }
.closer h2 { max-width: 16ch; }
.closer .lede { max-width: 46ch; margin-top: 1.25rem; color: var(--on-dark-soft); }
.closer .actions { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; margin-top: 2.25rem; }
.closer .contact { color: var(--on-dark); text-decoration: none; font-weight: 500; }

/* Voettekst */
.site-footer { background: var(--concrete-deep); color: var(--on-dark-soft); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 4rem 2rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { color: var(--on-dark); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.foot-logo { display: block; height: 72px; width: auto; margin-bottom: 1rem; }
.wordmark { color: var(--on-dark); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.03em; }
.wordmark small { display: block; font-weight: 400; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--on-dark-soft); margin-top: 0.15rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.5rem; font-size: 0.875rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Fotogalerij per soort werk */
.kicker { color: var(--red); font-weight: 500; font-size: 0.95rem; margin-bottom: 0.6rem; }
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--concrete); }
.gallery img, .gallery video { width: 100%; height: auto; display: block; }
.gallery .clip video { aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 600px) { .gallery { columns: 2 150px; column-gap: 0.6rem; } .gallery figure { margin-bottom: 0.6rem; } }
