/* =========================================================
   Wim Ruitenbeek Fonds — restyle
   Ontwerp: "Sfeervolle Verhalen & Impact"
   Palet: bosgroen + goud/amber + crème
   ========================================================= */

:root {
  --green-900: #233726;
  --green-800: #2e4a33;
  --green-700: #3a5a40;
  --green-600: #4a6b4d;
  --green-500: #5a7d5e;
  --green-100: #e7ede4;
  --green-50:  #f1f5ee;

  --gold-600: #c08a2a;
  --gold-500: #d4a534;
  --gold-400: #e0b54e;

  --cream:    #f7f4ec;
  --cream-2:  #fbf9f3;
  --ink:      #2b3329;
  --ink-soft: #586054;
  --line:     #e2ddd0;
  --white:    #ffffff;

  --shadow-sm: 0 2px 8px rgba(35, 55, 38, .08);
  --shadow-md: 0 8px 28px rgba(35, 55, 38, .14);
  --shadow-lg: 0 18px 50px rgba(35, 55, 38, .22);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-800); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  text-align: center; line-height: 1;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #3a2c06; box-shadow: var(--shadow-sm);
}
.btn-gold:hover { color: #3a2c06; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-lg { font-size: 1.15rem; padding: 1em 2em; }

/* =========================================================
   Header / navigatie
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-700);
  box-shadow: 0 2px 14px rgba(35,55,38,.25);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  min-height: 76px; padding: 8px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 52px; width: auto; background: #fff; border-radius: 10px; padding: 5px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); color: #fff; font-size: 1.05rem; font-weight: 700; }
.brand-text span { color: var(--green-100); font-size: .78rem; font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; color: #eef3ea; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; padding: .55em .8em; border-radius: 8px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-links a.active { color: var(--gold-400); }
.nav-links a.active:hover { background: rgba(255,255,255,.12); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 0; cursor: pointer;
  width: 46px; height: 46px; padding: 10px; border-radius: 8px;
}
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 3px; margin: 4px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-800); padding: 0 16px;
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav-links.open { max-height: 640px; padding: 10px 16px 20px; }
  .nav-links a { padding: .85em .6em; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero {
  --hero-img:
    linear-gradient(90deg, rgba(28,45,31,.78), rgba(28,45,31,.35) 60%, rgba(28,45,31,.45)),
    linear-gradient(180deg, rgba(28,45,31,.2), rgba(28,45,31,.55)),
    url("../img/voorpagina.jpg");
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-img) var(--hero-pos, center)/cover no-repeat;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5.4vw, 4.1rem); font-weight: 800;
  letter-spacing: .5px; text-shadow: 0 3px 22px rgba(0,0,0,.5); max-width: 17ch; margin-bottom: .35em;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 46ch; margin-bottom: 1.6em;
  text-shadow: 0 2px 14px rgba(0,0,0,.55); color: #f4f7f1;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn-row .btn { flex: 1 1 auto; justify-content: center; }

.hero--compact { min-height: 320px; }
.hero--compact h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }

/* =========================================================
   Sections
   ========================================================= */
section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--cream-2); }
.bg-green { background: var(--green-50); }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: .78rem; color: var(--gold-600); margin-bottom: .6em;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .5em; }
.section-intro { max-width: 62ch; color: var(--ink-soft); font-size: 1.08rem; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* Mission card overlapping hero feel */
.mission {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--cream-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; border: 1px solid var(--line);
}
.mission > div { padding: 44px 46px; }
.mission .mission-accent { background: var(--green-700); color: #eef3ea; }
.mission .mission-accent h2 { color: #fff; }
.mission .mission-accent p { color: #dfe8da; }
.mission ul.ticks { list-style: none; padding: 0; margin: 0; }
.mission ul.ticks li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.mission ul.ticks li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold-400); font-size: 1.05em;
}
@media (max-width: 820px) { .mission { grid-template-columns: 1fr; } .mission > div { padding: 34px 28px; } }

/* =========================================================
   Project cards
   ========================================================= */
.cards {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff; min-height: 320px;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-photo img { transform: scale(1.06); }
.card-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(35,55,38,.78) 100%);
}
.card-year {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--gold-500); color: #3a2c06; font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; padding: .3em .7em; border-radius: 999px;
}
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.12rem; margin-bottom: .35em; }
.card-body p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* Photo-label card (design style: photo with caption + chevron) */
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; box-shadow: var(--shadow-sm); display: block;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,35,22,.85)); }
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 16px 16px 18px; color: #fff;
}
.tile-caption .chev {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.6);
  display: grid; place-items: center; font-size: 1rem;
}
.tile-caption strong { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.2; }
.tile-caption small { display: block; color: #d9e2d3; font-weight: 400; font-size: .8rem; }

/* =========================================================
   Stats / impact band
   ========================================================= */
.impact { background: var(--green-800); color: #eef3ea; }
.impact .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.impact .stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--gold-400); line-height: 1; }
.impact .stat .lbl { color: #cdd9c8; font-size: .95rem; margin-top: .4em; }
@media (max-width: 720px) { .impact .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; } }

/* =========================================================
   ANBI / donate band
   ========================================================= */
.anbi-band {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px;
  background: var(--green-100); border: 1px solid var(--green-500);
  border-radius: var(--radius-lg); padding: 34px 40px;
}
.anbi-band img { width: 130px; height: auto; border-radius: 10px; }
.anbi-band h3 { margin-bottom: .25em; }
.anbi-band p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .anbi-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* =========================================================
   Partners
   ========================================================= */
.partners { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center; }
.partners span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--green-600); opacity: .75;
}

/* =========================================================
   Prose / content pages
   ========================================================= */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.2rem; color: var(--green-700); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose .lead { font-size: 1.18rem; color: var(--ink-soft); }
.prose blockquote {
  margin: 1.6em 0; padding: 1em 1.4em; border-left: 4px solid var(--gold-500);
  background: var(--green-50); border-radius: 0 10px 10px 0; font-style: italic; color: var(--green-800);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; }
.portrait-float { float: right; margin: 0 0 1.5rem 2rem; text-align: center; }
.portrait-float img { border-radius: 8px; max-width: 200px; width: 100%; }
.portrait-float figcaption { font-size: .85rem; color: var(--green-600); margin-top: .4rem; font-style: italic; }
@media (max-width: 600px) { .portrait-float { float: none; margin: 1.5rem auto; } }

/* info / data table */
.data-card {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px 32px; margin: 1.6em 0;
}
.data-list { display: grid; grid-template-columns: max-content 1fr; gap: .55em 1.6em; margin: 0; }
.data-list dt { font-family: var(--font-head); font-weight: 700; color: var(--green-700); }
.data-list dd { margin: 0; }
@media (max-width: 560px) { .data-list { grid-template-columns: 1fr; gap: .15em; } .data-list dd { margin-bottom: .7em; } }

/* download list */
.downloads { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 10px; }
.downloads a {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .15s;
}
.downloads a:hover { border-color: var(--gold-500); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.downloads .ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 1.2rem; }
.downloads strong { font-family: var(--font-head); font-weight: 600; display: block; font-size: 1rem; }
.downloads small { color: var(--ink-soft); }

/* timeline */
.timeline { list-style: none; margin: 1.6em 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--green-100); }
.timeline li { position: relative; padding: 0 0 1.4em 38px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px var(--green-50); }
.timeline .year { font-family: var(--font-head); font-weight: 700; color: var(--green-700); }

/* =========================================================
   Contact form
   ========================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--green-700); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .8em .9em;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,165,52,.18); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.form-status { margin-top: 14px; font-weight: 600; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--green-900); color: #cdd9c8; padding: 60px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .5px; margin-bottom: 1em; text-transform: uppercase; }
.site-footer a { color: #cdd9c8; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55em; }
.footer-brand img { height: 60px; background: #fff; border-radius: 10px; padding: 6px; margin-bottom: 14px; }
.footer-brand p { color: #b6c4b0; max-width: 34ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #9fae99; font-size: .85rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* utilities */
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
