/* ==========================================================================
   't Overpoort — VZW de quartier à Geraardsbergen
   Feuille de style principale (mobile-first, accessible)
   ========================================================================== */

:root {
  --primary: #3A5A6C;
  --primary-dark: #2C4554;
  --primary-deep: #22343F;
  --primary-soft: #E8EEF2;
  --secondary: #D08A5B;
  --secondary-dark: #B9733F;
  --secondary-soft: #F6E9DD;
  --accent: #C9A227;
  --accent-dark: #A8841F;
  --accent-soft: #F8F0D9;
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --text: #2B2B2B;
  --text-muted: #5F6C74;
  --border: #E3DDD5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(34, 52, 63, 0.09);
  --shadow-lg: 0 18px 44px rgba(34, 52, 63, 0.14);
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --container: 1160px;
  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-deep);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #1c1c1c;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }

.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--primary-dark); }
.nav-brand svg { flex-shrink: 0; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-donate {
  margin-left: 12px;
}
.nav-donate a.btn { padding: 0.65em 1.25em; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  color: var(--primary-deep);
}
.nav-toggle:hover { background: var(--primary-soft); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
  }
  .nav-menu.is-open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-links a { padding: 0.7em 1em; }
  .nav-donate { margin: 10px 0 0; }
  .nav-donate a.btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 60%, #4a7287 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent-soft);
  padding: 0.4em 1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}
.hero h1 .accent-word { color: var(--accent); }

.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.hero-note strong { color: #fff; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Section layout ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); }
.section-soft { background: var(--primary-soft); }

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 10px;
}

.section-head p.lede {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Value cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}
.card-icon.warm { background: var(--secondary-soft); color: var(--secondary-dark); }
.card-icon.gold { background: var(--accent-soft); color: var(--accent-dark); }
.card-icon.green { background: #E4EFE4; color: #4A7C59; }

.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats {
  background: var(--accent);
  color: #1c1c1c;
  padding: clamp(48px, 7vw, 72px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-weight: 600; font-size: 0.95rem; }
.stat-note { font-size: 0.82rem; opacity: 0.8; margin-top: 4px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  padding: clamp(44px, 7vw, 76px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { color: rgba(255, 255, 255, 0.88); max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: var(--accent); }

/* ---------- Two-column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.split.flip { grid-template-columns: 0.95fr 1.05fr; }
.split.flip > .split-media { order: -1; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > .split-media { order: 0; } }

.split-media svg { width: 100%; height: auto; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.feature-list .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}
.feature-list strong { color: var(--primary-deep); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 28px 34px;
  border-left: 3px solid var(--border);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--bg);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .tl-date { font-weight: 700; color: var(--secondary-dark); font-size: 0.9rem; letter-spacing: 0.04em; }
.timeline h3 { font-size: 1.1rem; margin: 2px 0 6px; }

/* ---------- Program cards ---------- */
.program-card { display: flex; flex-direction: column; }
.program-card .card-icon { margin-bottom: 18px; }
.program-card h3 { font-size: 1.15rem; }
.program-card p { flex: 1; }
.program-card .link-more {
  margin-top: 16px;
  font-weight: 600;
  color: var(--secondary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.program-card .link-more:hover { color: var(--primary-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 72px) 0;
}
.cta-band h2 { color: #fff; }
.cta-band .cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band p { color: rgba(255, 255, 255, 0.92); margin: 0; max-width: 60ch; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--secondary-dark); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Forms ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-grid .form-field:last-child { margin-bottom: 0; }
.form-grid + .form-field { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--primary-deep);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75em 1em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 90, 108, 0.18);
}
textarea { resize: vertical; min-height: 130px; }

.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; }

.form-error {
  background: #FBE8E7;
  border: 1px solid #E5A6A2;
  color: #93312B;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  display: none;
}
.form-error.is-visible { display: block; }
.form-success {
  background: #E6F1E6;
  border: 1px solid #9FC49F;
  color: #2F5D2F;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  display: none;
}
.form-success.is-visible { display: block; }
.form-success h3 { color: #2F5D2F; font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- Contact cards / info ---------- */
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-card .card-icon { margin: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.contact-card a { color: var(--primary); }

.map-frame {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  min-height: 380px;
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 820px; margin-inline: auto; }
.legal-content .card { padding: clamp(24px, 5vw, 48px); }
.legal-content h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.12rem; margin-top: 1.4em; }
.legal-content ul { margin-bottom: 1.2em; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.4em;
  font-size: 0.95rem;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-content th { background: var(--primary-soft); color: var(--primary-deep); }
.legal-content blockquote {
  margin: 1.4em 0;
  padding: 1em 1.2em;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}
.legal-content blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.85rem; color: var(--text-muted); }

.updated { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.6em; }

/* ---------- Members / board ---------- */
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.board-card { text-align: center; padding: 26px 18px; }
.board-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}
.board-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.board-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------- Alert boxes ---------- */
.alert {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.alert h3 { font-size: 1.02rem; margin: 0 0 4px; }
.alert p { margin: 0; font-size: 0.95rem; }
.alert-info { background: var(--primary-soft); border: 1px solid #C7D6DE; color: var(--primary-deep); }
.alert-warm { background: var(--secondary-soft); border: 1px solid #E4C6AE; color: #7C4A24; }
.alert-gold { background: var(--accent-soft); border: 1px solid #DCC98F; color: #6B560F; }
.alert svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 16px;
}
.site-footer p, .site-footer li { font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 0.15s ease;
}
.footer-social a:hover { background: var(--accent); color: #1c1c1c; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 90;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary-dark); }

/* ---------- Utility ---------- */
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2em; }
.mt-3 { margin-top: 3em; }

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