/* ============================================================
   BASHIERAH — Stichting Bashierah
   Editorial documentary design system
   ============================================================ */

/* --- 1. Tokens --- */
:root {
  /* Colors */
  --ink:        #14181E;
  --ink-soft:   #2C333D;
  --ink-mute:   #5A6470;
  --paper:      #FAF6F0;
  --paper-warm: #F4ECDD;
  --sand:       #EBE0CB;
  --sand-deep:  #DCCEB0;
  --water:      #1F4554;
  --water-mid:  #3F6B7A;
  --water-soft: #C8DBDF;
  --water-mist: #E8EFF1;
  --water-logo: #81A2AA;
  --gold:       #B8842A;
  --gold-deep:  #8E6418;
  --gold-light: #D9B062;
  --clay:       #A6603F;
  --line:       #E2D7BF;
  --line-soft:  #EFE7D3;
  --white:      #FFFFFF;

  /* Typography */
  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans:  'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;  /* 4px  */
  --s-2: 0.5rem;   /* 8px  */
  --s-3: 0.75rem;  /* 12px */
  --s-4: 1rem;     /* 16px */
  --s-5: 1.5rem;   /* 24px */
  --s-6: 2rem;     /* 32px */
  --s-7: 3rem;     /* 48px */
  --s-8: 4rem;     /* 64px */
  --s-9: 6rem;     /* 96px */
  --s-10: 9rem;    /* 144px */

  /* Layout */
  --container: 1280px;
  --container-tight: 980px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur: 400ms;
  --dur-slow: 800ms;
}

/* --- 2. Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv01';
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--water);
  color: var(--paper);
}

/* --- 3. Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

.display {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8.5vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

.display em, .heading em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--water);
}

.heading-xl {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

.heading-lg {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "opsz" 100;
}

.heading-md {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 450;
  font-variation-settings: "opsz" 80;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}

p { color: var(--ink-soft); }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* --- 4. Layout primitives --- */
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

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

.section {
  padding-block: clamp(4rem, 9vw, 9rem);
}

.section-tight {
  padding-block: clamp(3rem, 6vw, 6rem);
}

/* --- 5. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 1rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 999px;
  transition: all var(--dur) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--paper);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(184, 132, 42, 0.5);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-ink:hover {
  background: var(--water);
  border-color: var(--water);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 246, 240, 0.4);
}

.btn-ghost-light:hover {
  border-color: var(--paper);
  background: rgba(250, 246, 240, 0.08);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
}

.btn-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease-out);
}

.btn-arrow:hover svg { transform: translateX(4px); }

/* --- 6. Header / Navigation --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

.site-header.scrolled {
  /* identical state — kept for backwards-compat with any leftover .scrolled class */
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line-soft);
}

.site-header.on-light:not(.scrolled) {
  color: var(--ink);
}

.site-header.on-dark:not(.scrolled) {
  color: var(--paper);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-7);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  color: currentColor;
  transition: color var(--dur) var(--ease);
}

.nav-logo .wordmark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 100;
}

.site-header.on-dark:not(.scrolled) .nav-logo svg path { fill: var(--paper); }
.site-header.scrolled .nav-logo svg path { fill: var(--water); }
.site-header.on-light:not(.scrolled) .nav-logo svg path { fill: var(--water); }

.nav-menu {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  justify-content: center;
  list-style: none;
}

.nav-menu a {
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  position: relative;
  padding: 0.25rem 0;
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease);
}

.nav-menu a:hover { opacity: 1; }

.nav-menu a::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  position: relative;
  z-index: 110;
  transition: background var(--dur-fast) var(--ease);
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}

.nav-toggle span:nth-child(1) { transform: translate(-50%, -6px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, 0); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 6px); }

body.menu-open .nav-toggle span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
  .nav { gap: var(--s-4); }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  overflow-y: auto;
}

body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(5rem, 14vw, 7rem) var(--gutter) var(--gutter);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: var(--s-3);
}

.mobile-menu-list li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  border-bottom: 1px solid rgba(250, 246, 240, 0.08);
}

body.menu-open .mobile-menu-list li {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open .mobile-menu-list li:nth-child(1) { transition-delay: 100ms; }
body.menu-open .mobile-menu-list li:nth-child(2) { transition-delay: 160ms; }
body.menu-open .mobile-menu-list li:nth-child(3) { transition-delay: 220ms; }
body.menu-open .mobile-menu-list li:nth-child(4) { transition-delay: 280ms; }
body.menu-open .mobile-menu-list li:nth-child(5) { transition-delay: 340ms; }
body.menu-open .mobile-menu-list li:nth-child(6) { transition-delay: 400ms; }

.mobile-menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 350;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  color: var(--paper);
  line-height: 1;
}

.mobile-menu-list a .num {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  font-weight: 500;
}

.mobile-menu-foot {
  padding-top: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out) 460ms, transform var(--dur-slow) var(--ease-out) 460ms;
}

body.menu-open .mobile-menu-foot { opacity: 1; transform: translateY(0); }

.mobile-menu-foot .btn {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
}

.mobile-menu-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(250, 246, 240, 0.55);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(250, 246, 240, 0.08);
}

.mobile-menu-socials {
  display: flex;
  gap: var(--s-3);
}

.mobile-menu-socials a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(250, 246, 240, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 246, 240, 0.7);
}

@media (min-width: 881px) {
  .mobile-menu { display: none; }
}

/* --- 7. Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.05) saturate(0.92);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 30, 0.55) 0%, rgba(20, 24, 30, 0.15) 30%, rgba(20, 24, 30, 0.25) 60%, rgba(20, 24, 30, 0.85) 100%),
    linear-gradient(90deg, rgba(20, 24, 30, 0.5) 0%, rgba(20, 24, 30, 0.0) 50%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: var(--s-9) var(--s-8);
  width: 100%;
}

.hero-eyebrow {
  color: rgba(250, 246, 240, 0.85);
  margin-bottom: var(--s-6);
}

.hero h1 {
  color: var(--paper);
  max-width: 16ch;
  margin-bottom: var(--s-6);
}

.hero h1 em { color: var(--gold-light); }

.hero-lead {
  color: rgba(250, 246, 240, 0.92);
  max-width: 48ch;
  margin-bottom: var(--s-7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

.hero-meta {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: flex-end;
  text-align: right;
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(250, 246, 240, 0.75);
  max-width: 14ch;
}

@media (max-width: 880px) {
  .hero-meta { display: none; }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--s-5);
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, currentColor 0%, transparent 100%);
  animation: scroll-line 2.4s var(--ease-out) infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50%      { transform: scaleY(1);   transform-origin: top; }
}

@media (max-width: 600px) { .hero-scroll { display: none; } }

/* --- 8. Trust strip --- */
.trust {
  background: var(--ink);
  color: var(--paper);
  padding-block: 1.4rem;
  overflow: hidden;
}

.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-7);
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 240, 0.85);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
  flex: none;
}

@media (max-width: 700px) {
  .trust-row { justify-content: flex-start; gap: var(--s-5); }
  .trust-item { font-size: 0.75rem; }
}

/* --- 9. Stats / Counter --- */
.stats {
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23DCCEB0' stroke-width='0.5' opacity='0.5'%3E%3Ccircle cx='60' cy='60' r='40'/%3E%3Ccircle cx='60' cy='60' r='28'/%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right -30px top -30px;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-7);
  position: relative;
  z-index: 1;
}

@media (max-width: 800px) {
  .stats-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 350;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  color: var(--ink);
  display: block;
  margin-bottom: var(--s-3);
}

.stat-num .plus {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--gold);
  font-weight: 350;
  margin-left: 0.05em;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  font-weight: 500;
  max-width: 22ch;
}

.stats-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
  align-items: end;
}

@media (max-width: 800px) {
  .stats-intro { grid-template-columns: 1fr; gap: var(--s-5); }
}

.stats-intro h2 { max-width: 16ch; }
.stats-intro p { max-width: 50ch; }

/* --- 10. Donation widget --- */
.donate-section {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.donate-section::after {
  content: '';
  position: absolute;
  inset: auto -10% -50% auto;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(31, 69, 84, 0.55) 0%, transparent 65%);
  pointer-events: none;
}

.donate-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 950px) {
  .donate-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

.donate-intro h2 { color: var(--paper); }
.donate-intro .eyebrow { color: var(--gold-light); }
.donate-intro p { color: rgba(250, 246, 240, 0.78); margin-block: var(--s-5) var(--s-6); }

.donate-trust {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.78);
}

.donate-trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.donate-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
  flex: none;
}

.donate-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, 0.45), 0 20px 40px -20px rgba(0, 0, 0, 0.3);
}

.donate-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-soft);
}

.donate-tab {
  padding: 1.5rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-mute);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.donate-tab .tab-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: var(--s-2);
}

.donate-tab .tab-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "opsz" 80;
  letter-spacing: -0.015em;
  color: var(--ink-mute);
  line-height: 1.1;
}

.donate-tab .tab-sub {
  display: block;
  font-size: 0.78rem;
  margin-top: var(--s-2);
  color: var(--ink-mute);
  line-height: 1.4;
  font-weight: 400;
}

.donate-tab.active {
  background: var(--paper);
  border-bottom-color: var(--gold);
}

.donate-tab.active .tab-title { color: var(--ink); }
.donate-tab.active .tab-sub   { color: var(--ink-soft); }

.donate-tab:not(.active):hover { background: var(--paper-warm); }

.donate-body { padding: clamp(1.5rem, 3vw, 2.5rem); }

.donate-panel { display: none; animation: fadeUp var(--dur-slow) var(--ease-out); }
.donate-panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Field group */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.field-label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  font-weight: 500;
  text-transform: uppercase;
}

.field-input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease);
}

.field-input:focus {
  outline: none;
  border-color: var(--ink);
}

.field-input::placeholder { color: var(--ink-mute); opacity: 0.6; }

/* Amount picker */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

@media (max-width: 500px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

.amount-pill {
  padding: 0.95rem 0.5rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-variation-settings: "opsz" 80;
  background: var(--paper-warm);
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: -0.01em;
}

.amount-pill:hover { background: var(--sand); }

.amount-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.amount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.amount-input-wrap::before {
  content: '€';
  position: absolute;
  left: 1rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink-mute);
  pointer-events: none;
}

.amount-input {
  width: 100%;
  padding: 1.2rem 1rem 1.2rem 2.4rem;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 350;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.015em;
}

.amount-input:focus { outline: none; border-color: var(--ink); }
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Country selector */
.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
}

@media (max-width: 600px) {
  .country-grid { grid-template-columns: repeat(2, 1fr); }
}

.country-card {
  padding: 1rem 0.8rem;
  text-align: left;
  background: var(--paper-warm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.country-card:hover { background: var(--sand); }

.country-card.active {
  border-color: var(--ink);
  background: var(--paper);
}

.country-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.country-price {
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-weight: 500;
}

.country-card.active .country-price { color: var(--gold-deep); }

/* Total bar */
.donate-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-soft);
  margin-top: var(--s-2);
}

.donate-total-label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  font-weight: 500;
  text-transform: uppercase;
}

.donate-total-amount {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.donate-submit {
  width: 100%;
  padding: 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}

.donate-submit:hover { background: var(--gold-deep); }

.donate-note {
  margin-top: var(--s-4);
  font-size: 0.78rem;
  color: var(--ink-mute);
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  line-height: 1.5;
}

.donate-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 0.2rem;
  color: var(--gold);
}

.morocco-notice {
  display: none;
  background: var(--paper-warm);
  padding: 1rem;
  margin-top: var(--s-4);
  font-size: 0.85rem;
  border-left: 2px solid var(--gold);
  color: var(--ink-soft);
}

.country-card[data-country="marokko"].active ~ .morocco-notice,
.donate-panel[data-country="marokko"] .morocco-notice { display: block; }

/* --- 11. Quote section --- */
.quote-section {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.quote-figure {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--water-soft);
  margin-bottom: var(--s-5);
  font-variation-settings: "WONK" 1;
}

.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 350;
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
  margin-bottom: var(--s-5);
}

.quote-cite {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --- 12. Projects --- */
.projects {
  background: var(--paper);
}

.projects-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-8);
}

@media (max-width: 800px) {
  .projects-head { grid-template-columns: 1fr; gap: var(--s-5); }
}

.projects-head h2 { max-width: 14ch; }
.projects-head p  { max-width: 46ch; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}

@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .projects-grid { grid-template-columns: 1fr; } }

.project {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
  margin-bottom: var(--s-4);
  position: relative;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter var(--dur) var(--ease);
}

.project:hover .project-media img { transform: scale(1.04); }

.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,24,30,0.5) 100%);
}

.project-tag {
  position: absolute;
  inset: auto auto var(--s-4) var(--s-4);
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 500;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-variation-settings: "opsz" 100;
  margin-bottom: var(--s-2);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-weight: 500;
}

.project-price {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 450;
  letter-spacing: -0.01em;
}

/* --- 13. Story teaser --- */
.story {
  background: var(--paper-warm);
  overflow: hidden;
}

.story-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
}

.story-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-stamp {
  position: absolute;
  inset: var(--s-4) var(--s-4) auto auto;
  background: var(--paper);
  padding: var(--s-3) var(--s-4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 2;
}

.story-text h2 { margin-bottom: var(--s-5); max-width: 14ch; }
.story-text p  { max-width: 50ch; margin-bottom: var(--s-5); font-size: 1.05rem; }
.story-text .eyebrow { margin-bottom: var(--s-5); }

/* --- 14. Process --- */
.process {
  background: var(--ink);
  color: var(--paper);
}

.process-head { margin-bottom: var(--s-8); max-width: 36ch; }
.process-head h2 { color: var(--paper); }
.process-head .eyebrow { color: var(--gold-light); margin-bottom: var(--s-4); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--water-mid) 50%, transparent 100%);
  opacity: 0.4;
}

@media (max-width: 800px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
}

.process-step {
  position: relative;
}

.process-num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 350;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  letter-spacing: -0.04em;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: var(--s-4);
  display: inline-block;
  background: var(--ink);
  padding-right: var(--s-4);
}

.process-step h3 {
  color: var(--paper);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--s-3);
  font-variation-settings: "opsz" 100;
}

.process-step p {
  color: rgba(250, 246, 240, 0.75);
  font-size: 0.95rem;
  max-width: 32ch;
}

/* --- 15. Newsletter --- */
.newsletter {
  background: var(--water);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(216, 224, 226, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(184, 132, 42, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 800px) {
  .newsletter-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

.newsletter h2 { color: var(--paper); max-width: 16ch; }
.newsletter p  { color: rgba(250, 246, 240, 0.85); max-width: 46ch; }
.newsletter .eyebrow { color: var(--gold-light); margin-bottom: var(--s-4); }

.newsletter-form {
  display: flex;
  border-bottom: 1px solid rgba(250, 246, 240, 0.4);
  padding-bottom: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 1rem 0;
  color: var(--paper);
  font-size: 1.05rem;
  font-family: var(--sans);
}

.newsletter-form input::placeholder { color: rgba(250, 246, 240, 0.55); }
.newsletter-form input:focus { outline: none; }

.newsletter-form button {
  background: transparent;
  border: 0;
  color: var(--paper);
  padding: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 500;
}

.newsletter-form button svg {
  transition: transform var(--dur) var(--ease-out);
}

.newsletter-form button:hover svg { transform: translateX(4px); }

/* --- 16. Footer --- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--s-8) var(--s-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(250, 246, 240, 0.12);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .nav-logo svg path { fill: var(--paper); }
.footer-brand .wordmark { color: var(--paper); }
.footer-brand p {
  color: rgba(250, 246, 240, 0.65);
  margin-top: var(--s-4);
  font-size: 0.92rem;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.55);
  font-weight: 500;
  margin-bottom: var(--s-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-col a {
  color: rgba(250, 246, 240, 0.85);
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: 0.82rem;
  color: rgba(250, 246, 240, 0.55);
}

.footer-socials {
  display: flex;
  gap: var(--s-3);
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(250, 246, 240, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 246, 240, 0.7);
  transition: all var(--dur-fast) var(--ease);
}

.footer-socials a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.footer-socials svg { width: 14px; height: 14px; }

/* --- 17. Floating WhatsApp --- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 30;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform var(--dur) var(--ease-out);
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 24px; height: 24px; }

/* --- 18. Reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* --- 19. Misc utilities --- */
.text-water { color: var(--water); }
.text-gold  { color: var(--gold); }
.bg-sand    { background: var(--sand); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: var(--s-6);
}

.print-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PAGE PATTERNS — used across inner pages
   ============================================================ */

/* --- Page hero (smaller than home hero) --- */
.page-hero {
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.page-hero.with-image {
  padding-bottom: 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 880px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: var(--s-5); margin-bottom: var(--s-7); }
}

.page-hero-grid h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 380;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  margin-bottom: var(--s-4);
}

.page-hero-grid h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--water);
}

.breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  margin-bottom: var(--s-5);
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.breadcrumb a { color: var(--ink-mute); transition: color var(--dur-fast) var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { opacity: 0.4; }

.page-hero-image {
  margin-top: var(--s-5);
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .page-hero-image { aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--gutter)); }
}

/* --- Two-column body --- */
.two-col {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.two-col.reverse { grid-template-columns: 7fr 5fr; }

.two-col.even { grid-template-columns: 1fr 1fr; }

@media (max-width: 880px) {
  .two-col, .two-col.reverse, .two-col.even { grid-template-columns: 1fr; }
}

.two-col h2 { margin-bottom: var(--s-5); max-width: 16ch; }
.two-col p  { margin-bottom: var(--s-4); max-width: 56ch; font-size: 1.02rem; }
.two-col p:last-child { margin-bottom: 0; }

.two-col-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.two-col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Values / Pillars grid --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
}

@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; gap: var(--s-5); }
}

.pillar {
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
}

.pillar-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--s-4);
  display: block;
  font-style: italic;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  font-variation-settings: "SOFT" 50, "opsz" 100;
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 36ch;
}

/* --- Country cards (waterprojecten page) --- */
.country-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
}

.country-row {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.country-row:nth-child(even) { grid-template-columns: 5fr 6fr; }
.country-row:nth-child(even) .country-row-text { order: 2; }
.country-row:nth-child(even) .country-row-media { order: 1; }

@media (max-width: 880px) {
  .country-row, .country-row:nth-child(even) { grid-template-columns: 1fr; gap: var(--s-5); }
  .country-row:nth-child(even) .country-row-text { order: unset; }
  .country-row:nth-child(even) .country-row-media { order: unset; }
}

.country-row-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.country-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-row-text h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.country-row-text .eyebrow {
  margin-bottom: var(--s-4);
}

.country-row-text p {
  font-size: 1.05rem;
  margin-bottom: var(--s-5);
  max-width: 52ch;
}

.country-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin: var(--s-5) 0 var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.country-stat-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: block;
  color: var(--ink);
  font-variation-settings: "opsz" 100;
}

.country-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  font-weight: 500;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .country-stats { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
}

/* --- Tier picker (graaf mee page) --- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

@media (max-width: 600px) {
  .tier-grid { grid-template-columns: 1fr; }
}

.tier-card {
  padding: var(--s-5);
  text-align: left;
  background: var(--paper-warm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: relative;
}

.tier-card:hover { background: var(--sand); }

.tier-card.active {
  background: var(--paper);
  border-color: var(--ink);
}

.tier-card.popular::before {
  content: 'Populair';
  position: absolute;
  inset: -10px var(--s-4) auto auto;
  background: var(--gold);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  font-weight: 500;
}

.tier-amount {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 100;
}

.tier-amount .per { font-size: 0.85rem; color: var(--ink-mute); font-family: var(--sans); font-weight: 400; }

.tier-impact {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: var(--s-2);
  line-height: 1.45;
}

/* --- Contact info block --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.contact-block h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: var(--s-3);
}

.contact-block p, .contact-block a {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
  font-variation-settings: "opsz" 80;
  display: block;
}

.contact-block a:hover { color: var(--water); }

.contact-block .meta {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-mute);
  letter-spacing: 0;
  margin-top: var(--s-2);
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.form-grid .field-full { grid-column: 1 / -1; }

@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

textarea.field-input {
  resize: vertical;
  min-height: 140px;
  font-family: var(--sans);
}

/* --- FAQ accordion --- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "opsz" 100;
}

.faq-q .faq-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform var(--dur) var(--ease-out), background var(--dur-fast) var(--ease);
}

.faq-q .faq-icon::before { width: 10px; height: 1px; }
.faq-q .faq-icon::after  { width: 1px; height: 10px; }

.faq-item.open .faq-q .faq-icon { background: var(--ink); border-color: var(--ink); }
.faq-item.open .faq-q .faq-icon::before { background: var(--paper); }
.faq-item.open .faq-q .faq-icon::after { transform: rotate(90deg); background: var(--paper); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.faq-a-inner {
  padding-bottom: var(--s-5);
  max-width: 64ch;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.faq-a-inner p { margin-bottom: var(--s-3); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* --- ANBI table --- */
.anbi-table {
  border-top: 1px solid var(--line);
}

.anbi-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-5);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

@media (max-width: 600px) {
  .anbi-row { grid-template-columns: 1fr; gap: var(--s-2); padding-block: var(--s-3); }
}

.anbi-row dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.anbi-row dd {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-variation-settings: "opsz" 80;
  color: var(--ink);
}

.anbi-row dd .placeholder {
  color: var(--gold);
  font-style: italic;
  font-size: 0.92rem;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}

/* --- Bedankt page hero --- */
.thanks-hero {
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--s-9);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.thanks-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(31, 69, 84, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.thanks-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--water);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
}

.thanks-mark svg { width: 28px; height: 28px; }

.thanks-actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-7);
  flex-wrap: wrap;
}

.thanks-summary {
  display: inline-grid;
  grid-template-columns: auto 1px auto;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-6);
  background: var(--paper-warm);
  margin-top: var(--s-6);
  align-items: center;
}

.thanks-summary > div { text-align: left; }
.thanks-summary > span {
  background: var(--line);
  width: 1px;
  height: 100%;
  align-self: stretch;
  display: block;
}

@media (max-width: 600px) {
  .thanks-summary { grid-template-columns: 1fr; gap: var(--s-3); }
  .thanks-summary > span { display: none; }
}

.thanks-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-2);
  font-weight: 500;
}

.thanks-value {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 100;
}

/* --- Placeholder marker (visible during prototype phase) --- */
.placeholder-data {
  background: rgba(184, 132, 42, 0.12);
  color: var(--gold-deep);
  padding: 0 0.3em;
  font-style: italic;
  font-size: 0.95em;
  border-radius: 2px;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  font-weight: 500;
}

/* --- Map placeholder --- */
.map-placeholder {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(31, 69, 84, 0.08) 0%, rgba(184, 132, 42, 0.04) 100%),
    var(--paper-warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  color: var(--ink-mute);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 1px dashed var(--line);
}

.map-placeholder svg { width: 32px; height: 32px; opacity: 0.4; }

/* --- Visual mini icon --- */
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--water);
  flex: none;
}
.icon-circle svg { width: 20px; height: 20px; }

/* --- Form notices (gravers form, contact form) --- */
.form-notice {
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.55;
  border-left: 3px solid;
}
.form-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.form-notice-success {
  background: rgba(34, 134, 95, 0.08);
  border-left-color: #22865F;
  color: var(--ink);
}
.form-notice-error {
  background: rgba(184, 50, 50, 0.08);
  border-left-color: #B83232;
  color: var(--ink);
}

.field-checkbox {
  font-family: var(--sans);
  color: var(--ink-soft);
}
.field-checkbox input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--gold-deep);
  flex: none;
}

select.field-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%2314181E' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Defensive SVG sizing -----------------------------------------
   Inline SVGs in the page templates use viewBox without width/height,
   which causes browsers to scale them to container width. These rules
   give each context an explicit max size so nothing blows up. */

.side-trust-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold-deep);
}

.donate-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink-mute);
  margin-top: 2px;
}

.donate-submit svg,
.btn-arrow svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.donate-tab svg,
.amount-pill svg,
.country-card svg,
.tier-card svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Catch-all — any inline SVG without an explicit size attribute
   inside the main content area gets a sane default. */
.site-main svg:not([width]):not([height]) {
  max-width: 100%;
  height: auto;
}

.site-main .icon-circle svg,
.site-main .donate-tab svg,
.site-main .donate-note svg,
.site-main .side-trust-item svg,
.site-main .btn svg {
  max-width: none; /* override the catch-all above */
}

/* --- Doneren page layout (sidebar + widget naast elkaar) ----------- */
.donate-page-section {
  padding-block: var(--s-6) var(--s-8);
  background: var(--paper);
}

.donate-shell {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 960px) {
  .donate-shell { grid-template-columns: 1fr; gap: var(--s-6); }
}

.donate-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.cert-preview {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 2px;
}
.cert-preview .cert-stamp {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(220, 206, 176, 0.4);
  padding: 0.35rem 0.7rem;
  margin-bottom: var(--s-4);
}
.cert-preview h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  font-variation-settings: 'opsz' 60, 'wght' 400;
  margin: 0 0 var(--s-3) 0;
  line-height: 1.15;
}
.cert-preview p {
  color: rgba(250, 246, 240, 0.75);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.side-block {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}
.side-block:first-of-type { border-top: none; padding-top: 0; }
.side-block h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s-4) 0;
}
.side-block .quoted {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  font-variation-settings: 'opsz' 60;
  margin: 0 0 var(--s-3) 0;
}
.side-block .side-cite {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  margin: 0;
}

.side-trust {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.side-trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
}
.side-trust-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.side-trust-item strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  display: block;
}
.side-trust-item div:not(:has(strong)),
.side-trust-item > div > span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  display: block;
  margin-top: 0.15rem;
}

.donate-card.standalone {
  margin-top: 0;
}

/* --- Tier picker overrides voor simpele 4-cards layout ------------- */
.tier-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 720px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

.tier-card {
  text-align: center !important;
  padding: var(--s-5) var(--s-3) !important;
  align-items: center;
}
.tier-card .tier-amount {
  font-size: 1.6rem !important;
}
.tier-card .per {
  font-size: 0.78rem;
  color: var(--ink-mute);
  display: block;
  margin-top: 0.2rem;
}

.tier-custom {
  background: var(--paper-warm);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
  border: 1px dashed var(--line);
}
.tier-custom .field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.tier-custom-input {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--paper);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
}
.tier-custom-input > span:first-child {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.tier-custom-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  width: 100%;
  padding: 0;
}
.tier-custom-suffix {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* --- Donate page hero — top padding zodat breadcrumb niet onder header valt -- */
.donate-hero {
  padding-top: clamp(7rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.donate-hero .breadcrumb { margin-bottom: var(--s-5); }
.donate-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
@media (max-width: 880px) {
  .donate-hero-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* --- Floating WhatsApp button (rechtsonder, altijd zichtbaar) ----- */
.floating-whatsapp {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.1);
}
.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* --- Generieke social links wrapper -------------------------------- */
.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  border: 1px solid currentColor;
  opacity: 0.65;
  transition: opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  text-decoration: none;
}
.social-links a:hover {
  opacity: 1;
  background: rgba(184, 132, 42, 0.12);
}
.social-links a svg {
  width: 16px;
  height: 16px;
}

/* Footer variant — wat groter, beetje zichtbaarder op het donkere ink-background */
.footer-social.social-links a {
  border-color: rgba(250, 246, 240, 0.25);
  color: rgba(250, 246, 240, 0.7);
  opacity: 1;
}
.footer-social.social-links a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(220, 206, 176, 0.08);
}

/* Mobile menu variant — boven aan onderaan ipv inline naast tekst */
.mobile-menu-social.social-links {
  margin-top: var(--s-6);
  justify-content: flex-start;
  gap: 0.6rem;
}
.mobile-menu-social.social-links a {
  border-color: rgba(250, 246, 240, 0.25);
  color: rgba(250, 246, 240, 0.75);
  opacity: 1;
}
.mobile-menu-social.social-links a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(220, 206, 176, 0.08);
}

/* === Donatie mislukt pagina === */
.cancelled-block {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
  background: var(--paper);
}
.cancelled-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.cancelled-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef3c7;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.cancelled-card .eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.cancelled-card h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--ink);
}
.cancelled-card .lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cancelled-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.cancelled-ref {
  font-size: 0.825rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
}
.cancelled-ref code {
  font-family: var(--sans);
  background: var(--paper);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.cancelled-help {
  max-width: 540px;
  margin: 2.5rem auto 0;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.cancelled-help h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.cancelled-help p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.cancelled-help a {
  color: var(--gold-deep);
  text-decoration: none;
}
.cancelled-help a:hover { text-decoration: underline; }

/* === Multi-step graver form === */
.step-indicator {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto var(--s-6);
  max-width: 720px;
  padding: 0;
  position: relative;
}
.step-indicator::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line-soft);
  z-index: 0;
}
.step-indicator li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: center;
}
.step-indicator .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-mute);
  transition: all var(--dur-fast) var(--ease);
}
.step-indicator li.active .dot,
.step-indicator li.completed .dot {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}
.step-indicator li.active {
  color: var(--ink);
  font-weight: 600;
}
.step-indicator .label {
  letter-spacing: 0.05em;
}

.step-panel {
  display: none;
  background: var(--paper-warm);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 4px;
}
.step-panel.active {
  display: block;
  animation: stepFadeIn 0.25s var(--ease);
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.step-sub {
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
  line-height: 1.55;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}
.step-nav > span:empty {
  flex: 1;
}

.step-summary {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: var(--s-4);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-row span {
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.summary-row strong {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

@media (max-width: 600px) {
  .step-indicator .label { display: none; }
  .step-indicator { max-width: 320px; }
}
