/*
Theme Name: Stichting Menzfonds
Theme URI: https://example.com
Description: WordPress-thema voor Stichting Menzfonds — Samen · Helpen · Verbinden. Alle secties bewerkbaar via de Customizer. Publicaties en bestuursleden beheren via het dashboard.
Version: 1.0.0
Author: Stichting
Author URI: https://example.com
License: GPL v2 or later
Text Domain: stichting-anbi
*/

/* ── RESET & VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Menzfonds brand kleuren uit het logo */
  --clr-navy:          #1B3A6B;
  --clr-navy-light:    #2A5090;
  --clr-navy-pale:     #E8EEF7;
  --clr-teal:          #0098B5;
  --clr-teal-light:    #00AECE;
  --clr-teal-pale:     #E0F5F9;
  --clr-gold:          #E59A0A;
  --clr-gold-light:    #F5B020;
  --clr-gold-pale:     #FEF6E0;
  --clr-green:         #52AB4E;

  /* Mapping op bestaande variabelen */
  --clr-bg:            #F7F9FC;
  --clr-surface:       #FFFFFF;
  --clr-surface-alt:   #EEF2F9;
  --clr-primary:       #1B3A6B;
  --clr-primary-light: #2A5090;
  --clr-primary-pale:  #E8EEF7;
  --clr-accent:        #E59A0A;
  --clr-accent-pale:   #FEF6E0;
  --clr-text:          #0F2347;
  --clr-text-muted:    #4A5D7A;
  --clr-text-light:    #7A90AA;
  --clr-border:        #D8E0EE;
  --clr-border-light:  #EAF0F8;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(27,58,107,0.06), 0 1px 2px rgba(27,58,107,0.04);
  --shadow-md: 0 4px 20px rgba(27,58,107,0.09), 0 2px 8px rgba(27,58,107,0.05);
  --shadow-lg: 0 12px 40px rgba(27,58,107,0.11), 0 4px 12px rgba(27,58,107,0.06);
  --radius:    12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,249,252,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border-light);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--clr-navy);
}
.nav-logo-wrap {
  width: 46px; height: 46px;
  background: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 8px rgba(27,58,107,0.15);
  overflow: hidden; flex-shrink: 0;
}
.nav-logo-wrap img { width: 40px; height: 40px; object-fit: contain; }
.nav-brand svg { width: 34px; height: 34px; }

/* Naam naast de globe in de nav */
.nav-brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-brand-prefix {
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-text-muted);
}
.nav-brand-name {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--clr-navy) 0%, var(--clr-teal) 45%, var(--clr-green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--clr-text-muted);
  font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--clr-teal); background: var(--clr-teal-pale);
}
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--clr-text);
  margin: 5px 0; transition: 0.3s; border-radius: 2px;
}

/* ── HERO ── */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(0,152,181,0.07), transparent),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(229,154,10,0.06), transparent),
    radial-gradient(ellipse 400px 400px at 50% 0%, rgba(27,58,107,0.04), transparent);
}
.hero-content { position: relative; max-width: 720px; }

/* Logo hero: transparant + gradient rand */
.hero-logo {
  margin: 0 auto 2.5rem;
  animation: floatIn 1s ease-out;
  display: flex; justify-content: center;
}
.hero-logo-inner {
  background: transparent;
  border-radius: 28px;
  padding: 22px 26px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
/* gradient rand: alleen de rand zichtbaar, binnenste transparant */
.hero-logo-inner::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 28px;
  padding: 3px;
  background: linear-gradient(135deg,
    var(--clr-navy) 0%,
    var(--clr-teal) 40%,
    var(--clr-gold) 65%,
    var(--clr-green) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}
.hero-logo-inner img {
  width: 170px; height: 170px; object-fit: contain;
  display: block; position: relative; z-index: 1;
}

/* ── HERO ORG NAME (onder globe) ── */
.hero-org {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 2rem; gap: 0;
  animation: fadeUp 0.8s ease-out 0.05s both;
}
.hero-org-prefix {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--clr-text-muted); margin-bottom: 4px;
  display: flex; align-items: center; gap: 10px;
}
/* decoratieve lijntjes links en rechts van STICHTING */
.hero-org-prefix::before,
.hero-org-prefix::after {
  content: ''; display: block; height: 1px; width: 40px;
  background: linear-gradient(90deg, transparent, #9AA5B8);
}
.hero-org-prefix::after {
  background: linear-gradient(90deg, #9AA5B8, transparent);
}
.hero-org-name {
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: 0.08em; line-height: 1;
  background: linear-gradient(90deg, var(--clr-navy) 0%, var(--clr-teal) 45%, var(--clr-green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-org-tagline {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clr-gold); margin-top: 8px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--clr-teal-pale); color: var(--clr-teal);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.4rem 1rem; border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease-out 0.1s both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--clr-teal); animation: pulse 2s infinite;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.2;
  color: var(--clr-text); margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero h1 em { color: var(--clr-navy); font-style: italic; }
.hero .hero-subtitle {
  font-size: 1.1rem; color: var(--clr-text-muted);
  max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.8;
  animation: fadeUp 0.8s ease-out 0.35s both;
}
.hero-cta {
  display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.8s ease-out 0.5s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 1.8rem; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--clr-navy); color: #fff;
  box-shadow: 0 2px 12px rgba(27,58,107,0.28);
}
.btn-primary:hover {
  background: var(--clr-navy-light);
  box-shadow: 0 4px 20px rgba(27,58,107,0.38);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn-ghost:hover { border-color: var(--clr-navy); color: var(--clr-navy); }
.scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite 1.5s;
}
.scroll-hint svg { width: 20px; color: var(--clr-text-light); }

/* ── COLOR STRIPE (herbruikbare scheidingslijn) ── */
.teal-stripe {
  height: 3px;
  background: linear-gradient(90deg,
    var(--clr-navy)  0%,
    var(--clr-teal)  35%,
    var(--clr-gold)  65%,
    var(--clr-green) 100%
  );
}

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--clr-green); margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--clr-green); border-radius: 2px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400; line-height: 1.25; margin-bottom: 1rem;
}
.section-subtitle,
.section-subtitle p {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 3rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.section-subtitle p { margin-bottom: 0.75rem; }
.section-subtitle p:last-child { margin-bottom: 0; }

/* ── DOELSTELLING ── */
#doelstelling { background: var(--clr-surface); border-top: 1px solid var(--clr-border-light); }
.doel-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.doel-card {
  background: var(--clr-bg); border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg); padding: 2.5rem;
  transition: box-shadow 0.3s;
}
.doel-card:hover { box-shadow: var(--shadow-md); }
.doel-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.doel-icon.green { background: rgba(82,171,78,0.12); color: var(--clr-green); }
.doel-icon.gold  { background: var(--clr-teal-pale); color: var(--clr-teal); }
.doel-card h3 {
  font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.75rem;
}
.doel-card p,
.doel-card-text,
.doel-card-text p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.doel-card-text p { margin-bottom: 1rem; }
.doel-card-text p:last-child { margin-bottom: 0; }

/* ── INFO TABLE ── */
#informatie { background: var(--clr-bg); }
.info-table {
  background: var(--clr-surface); border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-row {
  display: grid; grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--clr-border-light);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  padding: 1.1rem 1.5rem; font-weight: 600; font-size: 0.875rem;
  color: var(--clr-text-muted); background: var(--clr-surface-alt);
  display: flex; align-items: center;
}
.info-value { padding: 1.1rem 1.5rem; font-size: 0.95rem; }
.info-value a {
  color: #0098B5; text-decoration: underline;
  text-decoration-color: rgba(0,152,181,0.3); text-underline-offset: 3px;
}
.info-value a:hover { text-decoration-color: #0098B5; }

/* ── BESTUUR ── */
#bestuur { background: var(--clr-surface); border-top: 1px solid var(--clr-border-light); }
.bestuur-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.bestuur-card {
  background: var(--clr-bg); border: 1px solid var(--clr-border-light);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  transition: all 0.3s;
}
.bestuur-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bestuur-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(82,171,78,0.12); color: var(--clr-green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-family: var(--font-display); font-size: 1.3rem;
  overflow: hidden;
}
.bestuur-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bestuur-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.bestuur-role {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--clr-teal);
}

/* ── PUBLICATIES ── */
#publicaties { background: var(--clr-bg); }
.pub-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pub-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--clr-surface); border: 1px solid var(--clr-border-light);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  transition: all 0.25s; gap: 1rem;
}
.pub-item:hover { box-shadow: var(--shadow-md); border-color: var(--clr-navy-pale); }
.pub-info { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.pub-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(82,171,78,0.12); color: var(--clr-green);
  display: flex; align-items: center; justify-content: center;
}
.pub-meta h3 { font-size: 0.95rem; font-weight: 600; }
.pub-meta p { font-size: 0.8rem; color: var(--clr-text-muted); margin-top: 2px; }
.pub-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.1rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  color: var(--clr-green); background: rgba(82,171,78,0.10);
  text-decoration: none; white-space: nowrap; transition: all 0.2s;
}
.pub-download:hover { background: var(--clr-green); color: #fff; }
.pub-empty {
  text-align: center; padding: 3rem; color: var(--clr-text-muted);
  font-size: 0.95rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--clr-navy); color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 0.75rem; }
.footer-brand-sub { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.site-footer h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact dt { font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-bottom: 0.15rem; }
.footer-contact dd { margin-bottom: 1rem; font-size: 0.9rem; margin-left: 0; }
.footer-contact a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 3rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.cookie-note { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: scale(0.85) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--clr-bg); border-bottom: 1px solid var(--clr-border);
    flex-direction: column; padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .doel-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .info-label { padding: 0.8rem 1.25rem 0.2rem; font-size: 0.75rem; background: transparent; }
  .info-value { padding: 0.2rem 1.25rem 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .pub-item { flex-direction: column; align-items: flex-start; }
  section { padding: 3.5rem 1.25rem; }
  .hero-logo-inner img { width: 130px; height: 130px; }
  .hero-org-name { font-size: 2.2rem; }
  .nav-brand-name { font-size: 0.9rem; }
  .nav-brand-prefix { font-size: 0.6rem; }
}
