/* ==========================================================================
   MDRP vzw — static site
   Ontworpen voor maximale leesbaarheid: het publiek van deze site heeft
   vaak een visuele beperking (MD / RP). Daarom:
   - Atkinson Hyperlegible (ontworpen door het Braille Institute)
   - grote letters, hoog contrast, duidelijke focusringen
   - rustige, voorspelbare lay-out
   ========================================================================== */

:root {
  --paper: #faf7f1;
  --paper-deep: #f1ecdf;
  --ink: #1c1b33;
  --ink-soft: #45445e;
  --brand: #2f2f8f;        /* het indigo van de oorspronkelijke site (#333399) */
  --brand-deep: #1f1f6e;
  --brand-bright: #4343c8;
  --accent: #d9762b;       /* warm oranje: de 'gele vlek' / macula */
  --accent-soft: #f6e3cf;
  --line: #d8d2c2;
  --radius: 10px;
  --measure: 44rem;
}

* { box-sizing: border-box; }

html {
  font-size: 118%;                 /* ~19px basis — bewust groot */
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

/* Subtiel Amsler-rasterpatroon als achtergrondtextuur van de hero */
.hero {
  background-color: var(--brand-deep);
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 2.2rem 2.2rem;
  color: #fff;
}

/* ---------- toegankelijkheid ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #1c1b33;
  padding: .6rem 1.2rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

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

/* ---------- koptekst & navigatie ---------- */

.site-header {
  background: var(--brand-deep);
  border-bottom: 6px solid var(--accent);
}

.site-header .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
}

.brand svg { flex: none; }

.brand .name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand .tagline {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: #cfd0f2;
  letter-spacing: .02em;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.site-nav a {
  display: block;
  padding: .45rem .8rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  border-radius: 6px;
  border: 2px solid transparent;
}

.site-nav a:hover { background: var(--brand-bright); }

.site-nav a[aria-current="page"] {
  background: #fff;
  color: var(--brand-deep);
}

/* ---------- hero (startpagina) ---------- */

.hero .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 .75rem;
  max-width: 22ch;
}

.hero .sub {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: #f0c896;
  font-style: italic;
  margin: 0 0 2rem;
}

.hero .focal-dot {
  position: absolute;
  right: 2rem;
  top: 3rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  display: grid;
  place-items: center;
}
.hero .focal-dot::before {
  content: "";
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  position: absolute;
}
.hero .focal-dot::after {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 56rem) { .hero .focal-dot { display: none; } }

.button {
  display: inline-block;
  background: var(--accent);
  color: #1c1b33;
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  font-family: inherit;
}
.button:hover { background: #e8893d; }

.button.ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.button.ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- paginakop (binnenpagina's) ---------- */

.page-head {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.page-head .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--brand-deep);
}
.page-head .lede {
  margin: .5rem 0 0;
  max-width: var(--measure);
  font-size: 1.12rem;
  color: var(--ink-soft);
}

/* ---------- inhoud ---------- */

main { display: block; }

.content {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.content .prose { max-width: var(--measure); }

.prose h2 {
  color: var(--brand);
  font-size: 1.5rem;
  margin: 2.4rem 0 .6rem;
  scroll-margin-top: 1rem;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  color: var(--brand);
  font-size: 1.15rem;
  margin: 1.8rem 0 .4rem;
}

.prose p { margin: 0 0 1rem; }

.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: .5rem; }

.prose a {
  color: var(--brand);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--brand-bright); }

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.prose figure { margin: 1.5rem 0; }
.prose figcaption {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-top: .4rem;
}

.float-right {
  float: right;
  margin: .3rem 0 1rem 1.5rem;
  max-width: 300px;
}
@media (max-width: 40rem) {
  .float-right { float: none; margin: 1rem 0; max-width: 100%; }
}

/* ---------- kaarten (missie-pijlers, start) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.card h2, .card h3 {
  margin: 0 0 .5rem;
  color: var(--brand-deep);
  font-size: 1.25rem;
}

.card p { margin: 0; font-size: .98rem; }

.card .num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: .8rem;
}

/* ---------- uitgelicht / nieuwsbalk ---------- */

.notice {
  background: var(--accent-soft);
  border: 1px solid #e5c9a4;
  border-left: 8px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
  max-width: var(--measure);
}
.notice strong { color: var(--brand-deep); }
.notice p { margin: 0; }
.notice .date {
  display: block;
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: .25rem;
}

/* ---------- infoblokken ---------- */

.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
  max-width: var(--measure);
}
.callout h2, .callout h3 { margin-top: 0; }

.iban {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand-deep);
  background: var(--paper-deep);
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 6px;
  border: 1px dashed var(--brand);
}

/* ---------- Amsler-raster ---------- */

.amsler {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}
.amsler svg {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin: 0 auto;
}

/* ---------- formulieren ---------- */

form.contact {
  max-width: var(--measure);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

form.contact .field { margin-bottom: 1.2rem; }

form.contact label {
  display: block;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--brand-deep);
}

form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  font: inherit;
  padding: .65rem .8rem;
  border: 2px solid var(--ink-soft);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus {
  outline: 4px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--brand);
}

.required { color: var(--accent); }

/* ---------- voettekst ---------- */

.site-footer {
  background: var(--brand-deep);
  color: #cfd0f2;
  border-top: 6px solid var(--accent);
  margin-top: 2rem;
}
.site-footer .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
  font-size: .9rem;
}
.site-footer a { color: #fff; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
