/* ==========================================================================
   Zonnebosplan.nl — huisstijl & ontwerpsysteem
   Initiatiefnemer: Arjan Heinen
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Kleuren — natuurlijk groen, zon, aarde */
  --green-900: #14301f;
  --green-800: #1c4029;
  --green-700: #245536;
  --green-600: #2f7247;
  --green-500: #3f9159;
  --green-400: #6bb583;
  --green-100: #e3f0e6;
  --green-50:  #f1f7f1;

  --sun-600: #d99110;
  --sun-500: #f0a92a;
  --sun-400: #f7c14f;
  --sun-100: #fdefcf;

  --earth-700: #6b4f2a;
  --earth-500: #a07d47;

  --ink: #1a2420;
  --ink-soft: #45514b;
  --ink-faint: #6d7873;
  --line: #dfe6e0;
  --paper: #ffffff;
  --paper-warm: #fbfaf5;
  --paper-green: #f4f8f3;

  --maxw: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(20,48,31,.07), 0 1px 2px rgba(20,48,31,.05);
  --shadow-md: 0 10px 30px -12px rgba(20,48,31,.22);
  --shadow-lg: 0 30px 60px -24px rgba(20,48,31,.30);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--sun-600); }

/* Typografie -------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--green-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-warm { background: var(--paper-warm); }
.section-green { background: var(--paper-green); }
.section-dark { background: var(--green-900); color: #dfeadf; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #b9ccbc; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sun-500); border-radius: 2px; }
.section-dark .eyebrow { color: var(--sun-400); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 100px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sun { background: var(--sun-500); color: var(--green-900); }
.btn-sun:hover { background: var(--sun-400); color: var(--green-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--green-800); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-800); background: var(--green-50); }
.btn-arrow::after { content: "→"; font-size: 1.05em; transition: transform .18s ease; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(3px); }

/* Header / navigatie ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--green-900); }
.brand:hover { color: var(--green-900); }
.brand .mark { flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: inline-block; padding: 9px 12px; border-radius: 8px; white-space: nowrap;
  font-weight: 500; font-size: .94rem; color: var(--ink-soft);
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--green-800); background: var(--green-50); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 11px 20px; font-size: .94rem; }

/* Dropdown */
.has-drop > .nav-link::after { content: " ⌄"; color: var(--ink-faint); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 13px; border-radius: 9px; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.dropdown a:hover { background: var(--green-50); color: var(--green-800); }
.dropdown a b { display: block; color: var(--green-900); font-weight: 600; font-family: var(--font-body); }
.dropdown a span { font-size: .82rem; color: var(--ink-faint); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-800); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--green-900); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,22,14,.86) 0%, rgba(10,22,14,.60) 30%, rgba(10,22,14,.20) 58%, rgba(10,22,14,0) 80%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px); max-width: 780px; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero .lead { color: #fff; margin-top: 22px; text-shadow: 0 1px 20px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 100px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sun-400); margin-bottom: 26px; }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun-400); box-shadow: 0 0 0 4px rgba(247,193,79,.2); }

/* Page hero (kleiner, voor subpagina's) */
.page-hero { position: relative; background: var(--green-800); color: #fff; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--green-900) 12%, rgba(28,64,41,.55) 100%); }
.page-hero-inner { position: relative; z-index: 2; padding: clamp(56px, 9vw, 104px) 0; max-width: 760px; }
/* Foto-hero variant (helder beeld zoals homepage, kleinere hoogte) */
.page-hero--photo .page-hero-media img { opacity: 1; }
.page-hero--photo .page-hero-media::after { background: linear-gradient(100deg, rgba(10,22,14,.86) 0%, rgba(10,22,14,.60) 30%, rgba(10,22,14,.20) 58%, rgba(10,22,14,0) 80%); }
.page-hero--photo h1 { text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.page-hero--photo .lead { color: #fff; text-shadow: 0 1px 20px rgba(0,0,0,.5); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #fff; margin-top: 18px; text-shadow: 0 1px 20px rgba(0,0,0,.5); }
.breadcrumb { font-size: .85rem; color: #e6f1e8; margin-bottom: 20px; letter-spacing: .02em; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #fff; }

/* Grids & cards ----------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }

.card-link {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-link .thumb { aspect-ratio: 3/2; overflow: hidden; background: var(--green-100); }
.card-link .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .thumb img { transform: scale(1.05); }
.card-link .body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-link .kicker { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-600); margin-bottom: 10px; }
.card-link h3 { color: var(--green-900); margin-bottom: 8px; }
.card-link p { font-size: .96rem; flex: 1; }
.card-link .more { margin-top: 16px; font-weight: 600; color: var(--green-700); }
.card-link .more::after { content: " →"; }

/* Split (beeld + tekst) --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-body h2 { margin-bottom: 18px; }

/* Feature list ------------------------------------------------------------ */
.ticks { list-style: none; display: grid; gap: 16px; margin-top: 24px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: .9rem;
  display: grid; place-items: center; margin-top: 2px;
}
.ticks li b { color: var(--green-900); }
.ticks li span { color: var(--ink-soft); }

/* Stat blokken ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--green-700); line-height: 1; }
.section-dark .stat .num { color: var(--sun-400); }
.stat .lbl { font-size: .95rem; color: var(--ink-faint); margin-top: 10px; }
.section-dark .stat .lbl { color: #a9bfac; }

/* Genummerde stappen ------------------------------------------------------ */
.steps { display: grid; gap: 4px; counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { counter-increment: step; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--sun-600); }
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 8px; }

/* Ruil-diagram (blauwdruk) ------------------------------------------------ */
.exchange { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.exchange .side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.exchange .side h4 { color: var(--green-900); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.exchange .give { border-top: 4px solid var(--earth-500); }
.exchange .get { border-top: 4px solid var(--sun-500); }
.exchange ul { list-style: none; display: grid; gap: 11px; }
.exchange ul li { position: relative; padding-left: 20px; font-size: .97rem; color: var(--ink-soft); }
.exchange ul li::before { content: "•"; position: absolute; left: 3px; top: 0; color: var(--green-500); font-weight: 700; }
.exchange .arrow { display: grid; place-items: center; font-size: 2rem; color: var(--green-500); font-weight: 700; }

/* Quote / manifest -------------------------------------------------------- */
.pullquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; color: var(--green-900); font-weight: 500; }
.pullquote .accent { color: var(--sun-600); }

/* Callout ----------------------------------------------------------------- */
.callout { background: var(--green-50); border-left: 4px solid var(--green-500); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; }
.callout.sun { background: var(--sun-100); border-left-color: var(--sun-500); }
.callout p { color: var(--ink); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -40%; right: -10%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(247,193,79,.22), transparent 70%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #cfe0d1; max-width: 560px; margin: 16px auto 30px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--green-900); color: #b3c8b7; padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h5 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #a7bfab; font-size: .95rem; }
.footer-links a:hover { color: var(--sun-400); }
.footer-about { font-size: .95rem; color: #97ae9b; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #7e957f; }

/* Image credits / bronvermelding ----------------------------------------- */
.credits { font-size: .8rem; color: var(--ink-faint); }
.credits summary { cursor: pointer; font-weight: 600; color: var(--ink-faint); }
.credits ul { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.credits a { color: var(--green-600); }
figure { margin: 0; }
figcaption { font-size: .82rem; color: var(--ink-faint); margin-top: 8px; text-align: center; }

/* Utilities --------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 48px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Berekening / kostenopbouw ---------------------------------------------- */
.calc { max-width: 640px; }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.calc-line .lbl { font-weight: 500; color: var(--ink); }
.calc-line .amt { font-family: var(--font-display); font-weight: 600; color: var(--green-800); white-space: nowrap; }
.calc-line.total { border-bottom: 0; border-top: 2px solid var(--green-700); margin-top: 6px; padding-top: 20px; }
.calc-line.total .lbl { font-weight: 700; color: var(--green-900); }
.calc-line.total .amt { font-size: 1.5rem; color: var(--green-700); }
.calc-note { font-size: .9rem; color: var(--ink-faint); margin-top: 16px; }
.block-soon { font-size: .92rem; color: var(--ink-faint); font-style: italic; margin-top: 8px; }

/* Modal / pop-up --------------------------------------------------------- */
.link-bg { font-size: .85rem; font-weight: 600; color: var(--green-700); border-bottom: 1px dotted var(--green-500); cursor: pointer; white-space: nowrap; }
.link-bg:hover { color: var(--sun-600); border-bottom-color: var(--sun-500); }
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; background: rgba(20,48,31,.55); overflow-y: auto; }
.modal.open { display: flex; }
.modal-dialog { background: #fff; border-radius: var(--radius-lg); max-width: 660px; width: 100%; margin: auto; padding: 36px clamp(22px,4vw,44px) 40px; box-shadow: var(--shadow-lg); position: relative; }
.modal-dialog h3 { margin-bottom: 12px; }
.modal-dialog p { font-size: .98rem; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); }
.modal-close:hover { background: var(--green-50); color: var(--green-800); }
.modal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.modal th, .modal td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.modal th { color: var(--ink-faint); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.modal td:last-child, .modal th:last-child { text-align: right; white-space: nowrap; color: var(--green-800); font-weight: 600; }
.modal tr.tot td { font-weight: 700; color: var(--green-900); border-bottom: 0; border-top: 2px solid var(--green-700); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; }
  .nav-cta { margin: 10px 0 0; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .exchange { grid-template-columns: 1fr; }
  .exchange .arrow { transform: rotate(90deg); padding: 4px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
