/* ==========================================================================
   Wij boeren voor u! — Agractie Nederland
   Design: "Het land in banen" — banen als geploegde akkers, met de
   uitstraling van een officieel document (de verklaring die is
   aangeboden aan de Tweede Kamercommissie).
   ========================================================================== */

:root {
  /* Kleuren */
  --paper: #F3ECDA;
  --paper-dark: #E9DFC4;
  --ink: #241C13;
  --ink-soft: #4A3D2E;
  --soil: #3E2C1E;
  --soil-dark: #2A1D13;
  --wheat: #C89A3E;
  --wheat-light: #E0BB6B;
  --field: #4B5D34;
  --field-dark: #37461F;
  --sky: #7E96A0;
  --white: #FDFBF5;

  /* Typografie */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Maatvoering */
  --content-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.on-dark .eyebrow { color: var(--wheat-light); }
.on-soil .eyebrow { color: var(--wheat-light); }

/* Terugkerend "voor"-element: geploegde-akker lijnen als scheiding tussen banen */
.furrow {
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--soil) 0px, var(--soil) 2px,
    transparent 2px, transparent 34px
  );
  background-color: transparent;
  opacity: 0.35;
}
.furrow.on-soil { opacity: 0.5; background-image: repeating-linear-gradient(90deg, var(--wheat) 0px, var(--wheat) 2px, transparent 2px, transparent 34px); }

/* ---------- Header / navigatie ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid rgba(36, 28, 19, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo span { color: var(--field); }

.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-3);
}
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--wheat);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.4em;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--field); color: var(--white); }
.btn-primary:hover { background: var(--field-dark); }
.btn-wheat { background: var(--wheat); color: var(--soil-dark); }
.btn-wheat:hover { background: var(--wheat-light); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline.on-soil { color: var(--paper); }
.btn-outline.on-soil:hover { background: var(--paper); color: var(--soil); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 58vh;
  max-height: 620px;
  display: flex;
  align-items: flex-end;
  background: var(--soil);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,29,19,0.35) 0%, rgba(42,29,19,0.55) 55%, rgba(24,17,11,0.94) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-4) var(--space-3) var(--space-4);
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.03;
  color: var(--white);
  margin-bottom: var(--space-3);
}
.hero h1 em {
  font-style: normal;
  color: var(--wheat-light);
}
.hero-lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(253, 251, 245, 0.88);
  margin-bottom: var(--space-3);
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Secties ---------- */
.section { padding: var(--space-5) 0; }
.section-soil { background: var(--soil); color: var(--paper); }
.section-soil h2, .section-soil h3 { color: var(--white); }
.section-paper-dark { background: var(--paper-dark); }
.section-wheat { background: var(--wheat); color: var(--soil-dark); }
.section-wheat h2 { color: var(--soil-dark); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}
.section-head p { font-size: 1.05rem; margin-top: var(--space-2); color: var(--ink-soft); }
.on-soil .section-head p, .on-soil p { color: rgba(243, 236, 218, 0.82); }

.lede-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.lede-block .big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-weight: 500;
}

/* Feitenrij */
.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(36, 28, 19, 0.15);
}
.fact { }
.fact .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--field);
  margin-bottom: 0.4em;
  display: block;
}
.fact p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }

/* Beeld-grid met bijschrift, als een verzameling veldnotities */
.plot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 820px;
}
.plot {
  position: relative;
}
.plot figure { margin: 0; }
.plot img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 2px;
}
.plot figcaption {
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(243, 236, 218, 0.7);
  display: flex;
  justify-content: space-between;
}
.plot figcaption .n { color: var(--wheat-light); }

/* De verklaring / stempel */
.declaration {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-5);
  align-items: center;
}
.declaration-text blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.4;
  margin: 0 0 var(--space-3);
  font-weight: 500;
  border-left: 3px solid var(--field);
  padding-left: var(--space-3);
}
.declaration-text cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: block;
}
.stamp {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border: 2px solid var(--field);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  position: relative;
  color: var(--field);
  flex-shrink: 0;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--field);
  border-radius: 50%;
}
.stamp-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  padding: 0 1.6em;
}
.stamp-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 0.3em 0;
  color: var(--soil);
}

/* Sectoren */
.sector-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  max-width: 960px;
}
.sector-card {
  background: var(--white);
  border: 1px solid rgba(36,28,19,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.sector-card img { width: 100%; height: 110px; object-fit: cover; }
.sector-card .body { padding: var(--space-2); }
.sector-card h4 { font-size: 1.05rem; margin-bottom: 0.3em; }
.sector-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* CTA band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 20ch; }

/* Kaarten voor verhalen / contact */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.story-card {
  background: var(--white);
  border: 1px solid rgba(36,28,19,0.12);
  border-radius: 3px;
  padding: var(--space-3);
}
.story-card .eyebrow { color: var(--field); }
.story-card .eyebrow::before { background: var(--field); }

.empty-state {
  border: 1.5px dashed rgba(36,28,19,0.3);
  border-radius: 4px;
  padding: var(--space-5) var(--space-3);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.empty-state h3 { margin-bottom: var(--space-1); }
.empty-state p { color: var(--ink-soft); }

/* Formulier-achtige elementen (donatie / contact) */
.info-list { list-style: none; margin: var(--space-3) 0; }
.info-list li {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(36,28,19,0.12);
}
.info-list .k { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--field); width: 11em; flex-shrink: 0; padding-top: 0.15em; }

.note-box {
  background: var(--paper-dark);
  border-left: 3px solid var(--wheat);
  padding: var(--space-3);
  border-radius: 2px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--soil-dark);
  color: rgba(243, 236, 218, 0.75);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wheat-light);
  margin-bottom: var(--space-2);
}
.footer-grid .logo { color: var(--white); }
.footer-grid p { max-width: 40ch; }
.footer-grid ul { list-style: none; display: grid; gap: 0.6em; }
.footer-grid a { text-decoration: none; color: inherit; }
.footer-grid a:hover { color: var(--wheat-light); }
.footer-bottom {
  border-top: 1px solid rgba(243,236,218,0.15);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Responsief ---------- */
@media (max-width: 980px) {
  .lede-block { grid-template-columns: 1fr; gap: var(--space-3); }
  .plot-grid { grid-template-columns: 1fr 1fr; }
  .sector-list { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .declaration { grid-template-columns: 1fr; }
  .stamp { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3);
    gap: var(--space-3);
    transform: translateY(-110%);
    transition: transform 0.2s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: var(--space-2); width: 100%; }
  .fact-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .plot-grid { grid-template-columns: 1fr; }
  .sector-list { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--field);
  outline-offset: 2px;
}
