/* Base CSS — shared across all nonprofit sites
   Codex does NOT regenerate this. It only writes HTML + theme.css (colors/fonts) */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header / Nav ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--heading); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--text-soft); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button { background: none; border: 1px solid var(--line); padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.lang-switch button[aria-pressed="true"] { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Hero ── */
.hero { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay, linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3))); }
.hero-content { position: relative; z-index: 2; color: white; max-width: 700px; }
.hero-content h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; margin-bottom: 16px; }
.hero-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-strong, var(--primary)); opacity: 0.9; }
.btn-outline { border: 2px solid white; color: white; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-white { background: white; color: var(--primary); }

/* ── Sections ── */
section { padding: 80px 0; }
section h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 16px; color: var(--heading); }
section .section-sub { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 40px; max-width: 600px; }
.section-centered { text-align: center; }
.section-centered .section-sub { margin-left: auto; margin-right: auto; }

/* ── Card Grid ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--heading); }
.card-body p { color: var(--text-soft); font-size: 0.9rem; }

/* ── Team Grid ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.team-card { text-align: center; }
.team-card img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid var(--surface); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card p { color: var(--text-soft); font-size: 0.85rem; }

/* ── Stats Banner ── */
.stats-banner { position: relative; padding: 60px 0; overflow: hidden; }
.stats-banner .banner-bg { position: absolute; inset: 0; }
.stats-banner .banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats-banner .hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.4)); }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; color: white; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; }
.stat-label { font-size: 0.9rem; opacity: 0.8; }

/* ── CTA Section ── */
.cta-section { position: relative; padding: 80px 0; overflow: hidden; text-align: center; }
.cta-section .banner-bg { position: absolute; inset: 0; }
.cta-section .banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-section .hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.35)); }
.cta-content { position: relative; z-index: 2; color: white; }
.cta-content h2 { color: white; margin-bottom: 16px; }
.cta-content p { margin-bottom: 24px; opacity: 0.9; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer { background: var(--footer, #1a1a1a); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-grid h3, .footer-grid h4 { color: white; margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { color: rgba(255,255,255,0.6); display: block; margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: white; }
.footer-grid p { font-size: 0.85rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; }

/* ── Contact Form ── */
.contact-form { max-width: 500px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.95rem; font-family: inherit; }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Language Toggle ── */
[data-lang="nl"] .copy-en, [data-lang="en"] .copy-nl { display: none !important; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .site-nav { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--surface); flex-direction: column; padding: 32px 24px; gap: 16px; transform: translateX(100%); transition: transform 0.3s; z-index: 99; }
  .site-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .hero { min-height: 60vh; }
  .hero-content h1 { font-size: 1.8rem; }
  section { padding: 48px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

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