/* Zeres public.css -- plain CSS voor PHP-pagina's, brand-consistent met Next.js */

:root {
  --zeres-green:       #56CB5A;
  --zeres-green-dark:  #2F773A;
  --zeres-dark:        #232323;
  --zeres-white:       #FFFFFF;
  --zeres-cream:       #F7F5F0;
  --zeres-border:      #E5DED1;
  --zeres-muted:       rgba(35, 35, 35, 0.65);
  --content-max:       1120px;
  --prose-max:         720px;
  --radius:            14px;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-Italic-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Monoglyphic';
  src: url('/fonts/Monoglyphic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Monoglyphic';
  src: url('/fonts/Monoglyphic-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--zeres-dark);
  background: var(--zeres-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--zeres-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--zeres-dark);
}
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 24px; }

.italic-green { font-style: italic; color: var(--zeres-green-dark); }
.eyebrow {
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 500;
  color: var(--zeres-green-dark);
  margin-bottom: 20px;
  display: block;
}

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.container-prose { max-width: var(--prose-max); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-cream { background: var(--zeres-cream); }
.section-white { background: var(--zeres-white); }
.section-dark { background: var(--zeres-green-dark); color: var(--zeres-white); }

/* ---- Skip-to-content link (WCAG 2.4.1) ---- */
.skip-link {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: absolute;
  left: 16px; top: 16px;
  z-index: 100;
  width: auto; height: auto;
  padding: 12px 20px;
  background: var(--zeres-green-dark);
  color: var(--zeres-white);
  border-radius: 10px;
  font-family: 'Monoglyphic', system-ui, sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

/* ---- Site nav (match Next.js nav.tsx visueel + structureel) ---- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--zeres-border);
}
.site-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  max-width: 1280px; margin: 0 auto;
  padding: 18px 24px;
}
@media (min-width: 1024px) {
  .site-nav-inner { padding: 20px 40px; }
}
.site-nav a { color: var(--zeres-dark); text-decoration: none; }
.site-nav a:hover { text-decoration: none; }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; }

.site-nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 500;
}
@media (min-width: 1024px) {
  .site-nav-desktop { display: flex; }
}
.site-nav-desktop a {
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.site-nav-desktop a:hover { opacity: 1; }

.site-nav-actions {
  display: flex; align-items: center;
  gap: 8px;
}
@media (min-width: 1024px) {
  .site-nav-actions { gap: 16px; }
}

.nav-lang {
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: rgba(35, 35, 35, 0.7);
  transition: color 0.15s ease;
}
.nav-lang:hover { color: var(--zeres-dark); }

.nav-login {
  display: none;
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.nav-login:hover { opacity: 1; }
@media (min-width: 640px) {
  .nav-login { display: inline-block; }
}

.nav-cta {
  display: none;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--zeres-green-dark);
  color: var(--zeres-white) !important;
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: bold;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--zeres-dark); }
@media (min-width: 1024px) {
  .nav-cta { display: inline-block; }
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--zeres-dark);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.nav-hamburger:hover { background: rgba(0, 0, 0, 0.05); }
@media (min-width: 1024px) {
  .nav-hamburger { display: none; }
}

/* ---- Mobile drawer ---- */
.site-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(35, 35, 35, 0.4);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.site-nav-drawer {
  position: fixed; right: 0; top: 0;
  height: 100dvh;
  width: 320px; max-width: 85vw;
  background: var(--zeres-cream);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
body[data-drawer-open="true"] {
  overflow: hidden;
}
body[data-drawer-open="true"] .site-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}
body[data-drawer-open="true"] .site-nav-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--zeres-border);
}
.drawer-eyebrow {
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--zeres-green-dark);
  font-weight: 500;
}
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--zeres-dark);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.drawer-close:hover { background: rgba(0, 0, 0, 0.08); }

.drawer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  overflow-y: auto;
}
.drawer-nav a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--zeres-dark);
  transition: background 0.15s ease;
}
.drawer-nav a:hover {
  background: var(--zeres-white);
  text-decoration: none;
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--zeres-border);
}
.drawer-login {
  text-align: center;
  font-size: 14px;
  color: rgba(35, 35, 35, 0.8);
  transition: color 0.15s ease;
}
.drawer-login:hover { color: var(--zeres-dark); }

.drawer-cta {
  text-align: center;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--zeres-green-dark);
  color: var(--zeres-white) !important;
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.15s ease;
}
.drawer-cta:hover { background: var(--zeres-dark); }

/* ---- Focus-visible (WCAG 2.4.7) ---- */
*:focus-visible {
  outline: 2px solid var(--zeres-green-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-footer {
  background: var(--zeres-dark); color: var(--zeres-white);
  padding: 56px 0 28px;
  font-size: 14px;
}
.site-footer a { color: var(--zeres-white); opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; color: var(--zeres-green); margin-bottom: 16px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-copy { padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; opacity: 0.6; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-copy { flex-direction: column; gap: 8px; }
}

.card {
  background: var(--zeres-white);
  border: 1px solid var(--zeres-border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-cream { background: var(--zeres-cream); border: none; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--zeres-green-dark); color: var(--zeres-white); }
.btn-primary:hover { background: var(--zeres-dark); color: var(--zeres-white); }
.btn-outline {
  background: transparent; border: 1px solid var(--zeres-green-dark);
  color: var(--zeres-green-dark);
}
.btn-outline:hover { background: var(--zeres-green-dark); color: var(--zeres-white); }

.faq-section + .faq-section { margin-top: 56px; }
.faq-list { border-top: 1px solid var(--zeres-border); }
.faq-item { border-bottom: 1px solid var(--zeres-border); padding: 22px 0; }
.faq-item > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 18px; line-height: 1.3;
  color: var(--zeres-dark);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+'; font-size: 26px; line-height: 1;
  color: var(--zeres-green-dark);
  flex-shrink: 0;
  transition: transform 0.18s ease;
  font-family: system-ui, sans-serif;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-answer { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--zeres-muted); }
.faq-answer p { margin: 0 0 0.6em; }
.faq-answer p:last-child { margin-bottom: 0; }

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 56px;
}
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex; flex-direction: column;
  background: var(--zeres-white); border: 1px solid var(--zeres-border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
  color: inherit; text-decoration: none;
}
.news-card:hover { border-color: var(--zeres-green-dark); text-decoration: none; transform: translateY(-2px); }
.news-card-image { aspect-ratio: 16/9; background: var(--zeres-cream); overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-placeholder {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-family: 'Libre Baskerville', serif; font-size: 48px; font-style: italic;
  color: var(--zeres-green-dark); opacity: 0.3;
}
.news-card-body { padding: 22px 24px 28px; }
.news-card-meta {
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; color: var(--zeres-green-dark); margin-bottom: 10px;
}
.news-card-title {
  font-family: 'Libre Baskerville', serif; font-size: 22px; line-height: 1.25;
  margin: 0 0 12px; color: var(--zeres-dark);
}
.news-card-excerpt { font-size: 14px; color: var(--zeres-muted); line-height: 1.55; margin: 0; }
.news-empty { font-size: 15px; color: var(--zeres-muted); margin-top: 48px; }

.article-hero { padding: 64px 0 28px; background: var(--zeres-cream); text-align: center; }
.article-hero .article-meta {
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; color: var(--zeres-green-dark);
  margin-bottom: 16px;
}
.article-hero h1 { max-width: var(--prose-max); margin: 0 auto; }
.article-image { background: var(--zeres-cream); padding: 0 0 40px; }
.article-image-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.article-image img {
  border-radius: var(--radius); max-height: 480px; width: 100%; object-fit: cover;
}
.article-body { padding: 48px 0 80px; }
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.1em; font-size: 17px; line-height: 1.7;
}
.article-body h2 {
  margin: 1.8em 0 0.5em; font-size: 30px;
}
.article-body h3 { margin: 1.5em 0 0.5em; font-size: 22px; }
.article-body blockquote {
  border-left: 3px solid var(--zeres-green-dark);
  padding-left: 20px; font-style: italic; color: var(--zeres-muted);
}
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body code {
  background: var(--zeres-cream); padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em; font-family: 'Monoglyphic', Consolas, monospace;
}
.article-body pre {
  background: var(--zeres-cream); padding: 16px; border-radius: 10px; overflow: auto;
}
.article-body pre code { background: none; padding: 0; }

.back-link {
  display: inline-block; margin-top: 40px;
  font-family: 'Monoglyphic', system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; color: var(--zeres-green-dark);
}

.error-state {
  padding: 120px 0; text-align: center;
}
.error-state h1 { font-size: 48px; }
