/* Stichting Kindervrienden Brazilië — statische website */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-italic.woff2") format("woff2");
}

:root {
  --teal: #1f6b74;
  --teal-dark: #154d54;
  --teal-soft: #e5f0ef;
  --sun: #f5b841;
  --sun-dark: #e0a02a;
  --cream: #faf6ee;
  --text: #1f2a30;
  --muted: #5b6970;
  --border: #e4dfd4;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 45, 50, .06), 0 6px 20px rgba(20, 45, 50, .07);
  --container: 1160px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0 0 .5em; color: var(--teal-dark); letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .25em; }
strong { font-weight: 800; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.lead { font-size: 1.15em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-dark); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(20, 45, 50, .08); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-dark); margin-right: auto; }
.logo:hover { color: var(--teal-dark); }
.logo img { width: 62px; height: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 800; font-size: 19px; }
.logo-sub { font-size: 13px; color: var(--muted); font-weight: 600; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: 8px 11px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 15.5px;
}
.main-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.main-nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); }
.main-nav .nav-donate a { background: var(--sun); color: var(--text); margin-left: 8px; padding: 8px 16px; }
.main-nav .nav-donate a:hover { background: var(--sun-dark); color: var(--text); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: var(--radius-sm);
  background: var(--teal-soft); cursor: pointer; position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute; left: 12px; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--teal-dark); content: ""; transition: transform .2s, top .2s, opacity .2s;
}
.menu-toggle span { top: 22px; }
.menu-toggle span::before { top: -7px; left: 0; }
.menu-toggle span::after { top: 7px; left: 0; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 14px 24px rgba(20, 45, 50, .1);
    display: none;
  }
  .menu-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 17px; }
  .main-nav .nav-donate a { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .logo img { width: 50px; }
  .logo-name { font-size: 17px; }
  .logo-sub { font-size: 12px; }
}

/* ---------- Knoppen ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.button-sun { background: var(--sun); color: var(--text); }
.button-sun:hover { background: var(--sun-dark); color: var(--text); }
.button-teal { background: var(--teal); color: #fff; }
.button-teal:hover { background: var(--teal-dark); color: #fff; }
.button-ghost { border-color: currentColor; color: #fff; }
.button-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.button-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.button-outline:hover { background: var(--teal-soft); color: var(--teal-dark); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button svg { flex: none; width: 18px; height: 18px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: #fff; background: var(--teal-dark); overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 50, 55, .88) 0%, rgba(14, 50, 55, .62) 45%, rgba(14, 50, 55, .1) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(70px, 12vw, 140px); padding-bottom: clamp(70px, 12vw, 140px); }
.hero-content { max-width: 600px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: 1.15em; margin-bottom: 1.6em; color: rgba(255, 255, 255, .92); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: .6em; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(14, 50, 55, .55) 0%, rgba(14, 50, 55, .85) 100%); }
}

/* ---------- Kerngetallen ---------- */
.facts { background: var(--cream); border-bottom: 1px solid var(--border); }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.facts li { margin: 0; display: flex; flex-direction: column; }
.facts strong { font-size: 30px; color: var(--teal); line-height: 1.1; }
.facts span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 600px) {
  .facts ul { grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 22px 0; }
  .facts strong { font-size: 25px; }
}

/* ---------- Secties ---------- */
.section { padding: clamp(52px, 8vw, 88px) 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.photo-stack { display: grid; gap: 16px; }
.photo-stack img, .rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card-stack { display: grid; gap: 22px; align-content: start; }
.card-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.card-icon svg { width: 22px; height: 22px; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .45em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.figure-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Doneerblok ---------- */
.donate-band { background: var(--teal); color: #fff; }
.donate-band h2 { color: #fff; }
.donate-band a:not(.button) { color: #fff; }
.donate-band .iban-card a { color: var(--teal); }
.donate-band .split { align-items: center; }
.donate-band p { color: rgba(255, 255, 255, .9); }

.iban-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.iban-card dl { margin: 0; display: grid; gap: 12px; }
.iban-card dt { font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.iban-card dd { margin: 0; font-size: 18px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.iban-card .iban { font-size: 22px; font-weight: 800; letter-spacing: .04em; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.iban-card .note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.copy-button {
  font: inherit; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; letter-spacing: 0;
}
.copy-button:hover { background: var(--teal-soft); }
.copy-button.is-done { background: var(--teal); color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--sun); color: var(--text); font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 999px; }

/* ---------- Subpagina's ---------- */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--border); padding: clamp(40px, 6vw, 64px) 0 clamp(30px, 5vw, 48px); }
.page-hero h1 { margin-bottom: .25em; }
.page-hero .lead { max-width: 760px; margin: 0; }
.page-banner { background: var(--teal-dark); }
.page-banner img { width: 100%; height: clamp(150px, 26vw, 320px); object-fit: cover; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(56px, 8vw, 88px); align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

.prose { max-width: 740px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--sun); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.float-img { float: right; width: min(46%, 340px); margin: 6px 0 16px 26px; }
@media (max-width: 600px) { .float-img { float: none; width: 100%; margin: 0 0 20px; } }

.sidebar { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-box { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.side-box h2 { font-size: 20px; margin-bottom: .7em; }
.side-box > :last-child { margin-bottom: 0; }
.side-box-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.side-box-teal h2 { color: #fff; }
.side-box-teal p { color: rgba(255, 255, 255, .92); }
.side-box .iban { font-weight: 800; font-size: 18px; letter-spacing: .03em; display: block; }

.doc-list { list-style: none; padding: 0; margin: 0 0 1em; }
.doc-list li { margin: 0; border-bottom: 1px solid var(--border); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; text-decoration: none; font-weight: 700; }
.doc-list a:hover span:first-child { text-decoration: underline; }
.doc-meta { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---------- Tijdlijn ---------- */
.timeline { list-style: none; padding: 0; margin: 0 0 2em; border-left: 3px solid var(--teal-soft); }
.timeline li { position: relative; padding: 0 0 18px 24px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { display: block; color: var(--teal); font-size: 15px; letter-spacing: .02em; }

/* ---------- Nieuwsbrieven ---------- */
.newsletter-feature { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--teal-soft); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px; }
.newsletter-feature h2 { margin: 0 0 .2em; font-size: 24px; }
.newsletter-feature p { margin: 0; color: var(--muted); }
.year-group { margin-bottom: 28px; }
.year-group h2 { font-size: 22px; border-bottom: 2px solid var(--teal-soft); padding-bottom: 6px; margin-bottom: 4px; }
.year-group .doc-list a { padding: 12px 4px; }

/* ---------- Tabellen & ANBI ---------- */
.data-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; margin: 0 0 1.5em; }
.data-list dt { font-weight: 800; color: var(--teal-dark); }
.data-list dd { margin: 0; }
@media (max-width: 560px) {
  .data-list { grid-template-columns: 1fr; gap: 2px; }
  .data-list dd { margin-bottom: 10px; }
}

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--cream); font-weight: 800; color: var(--teal-dark); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td, tfoot th { font-weight: 800; border-bottom: 0; background: var(--teal-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody + tfoot td, tbody + tfoot th { border-top: 1px solid var(--border); }

details.year { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; }
details.year summary { cursor: pointer; padding: 14px 18px; font-weight: 800; color: var(--teal-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.year summary::-webkit-details-marker { display: none; }
details.year summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--teal); }
details.year[open] summary::after { content: "–"; }
details.year[open] summary { border-bottom: 1px solid var(--border); }
details.year .details-body { padding: 16px 18px 6px; }

/* ---------- Foto's ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 2.4em; padding: 0; list-style: none; }
.gallery li { margin: 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); position: relative; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery-small img { aspect-ratio: 1; }
@media (max-width: 600px) {
  .gallery, .gallery-small { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 25, 28, .88); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 48px; height: 48px;
  border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .3); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-grid address { font-style: normal; }
.contact-line { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.contact-line svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: rgba(255, 255, 255, .85); font-size: 15.5px; }
.site-footer a { color: #fff; }
.site-footer .container { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 40px; }
@media (max-width: 820px) { .site-footer .container { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h2 { color: #fff; font-size: 17px; margin-bottom: .7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer p { margin-bottom: .6em; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 800; font-size: 18px; line-height: 1.2; }
.footer-logo img { width: 56px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; font-size: 14px; color: rgba(255, 255, 255, .7); }

.scroll-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--teal-dark); color: #fff; }
.scroll-top svg { width: 20px; height: 20px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.not-found img { width: 140px; margin: 0 auto 24px; opacity: .9; }
.not-found .buttons { justify-content: center; }

@media print {
  .site-header, .site-footer, .scroll-top, .sidebar, .donate-band .buttons { display: none; }
  .layout { display: block; }
  body { font-size: 12pt; }
}
