/* ==============================
   1. CSS Variables
   ============================== */
:root {
  --primary:       #1a4d8a;
  --primary-dark:  #133368;
  --primary-light: #2662a8;
  --accent:        #d97706;
  --accent-hover:  #b45309;

  --bg:      #fdf9f4;
  --stone:   #f0ebe1;
  --white:   #ffffff;

  --text:    #1e2d40;
  --muted:   #5a6e84;
  --light:   #8896a4;
  --border:  #d4cdc3;

  --serif: 'Lora', Georgia, serif;
  --sans:  'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --radius: 8px;
  --max-w: 1100px;
}

/* ==============================
   2. Base Reset
   ============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

/* ==============================
   3. Typography
   ============================== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.5em 1.2em;
  margin: 1.5em 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  background: var(--stone);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ==============================
   4. Layout Utility
   ============================== */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   5. Buttons
   ============================== */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-block;
  padding: 0.7em 1.6em;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* ==============================
   6. Navigation
   ============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

.nav-logo-maf {
  height: 36px;
  align-self: center;
}

.nav-logo-img:not(.nav-logo-maf) {
  align-self: flex-end;
  margin-bottom: -9px;
}

.nav-logo-fallback {
  display: none;
  align-items: center;
}

.logo-maf {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-logo-name {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--stone);
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-lang {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-left: 8px;
  transition: all 0.15s;
  text-decoration: none;
}

.nav-lang:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
}

.mobile-overlay.active { display: block; }

/* ==============================
   7. Hero Section (Homepage)
   ============================== */
.hero {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(20, 52, 104, 0.80) 0%,
    rgba(10, 25, 55, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 680px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==============================
   8. Page Header (inner pages)
   ============================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 24px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ==============================
   9. Section Layouts
   ============================== */
.section {
  padding: 72px 0;
}

.section-stone {
  background: var(--stone);
}

.section-white {
  background: var(--white);
}

.section-primary {
  background: var(--primary);
  color: #fff;
}

.section-primary h2,
.section-primary p {
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ==============================
   10. Cards (homepage)
   ============================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 16px;
  text-decoration: none;
}

.card-link::after {
  content: '→';
  transition: transform 0.15s;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ==============================
   11. Info section (2-col text+img)
   ============================== */
.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.info-split.reversed {
  direction: rtl;
}

.info-split.reversed > * {
  direction: ltr;
}

.info-text h2 {
  margin-bottom: 20px;
}

.info-text p {
  color: var(--muted);
  font-size: 1rem;
}

.info-text .btn-primary {
  margin-top: 24px;
}

.info-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.info-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ==============================
   12. Stats Bar
   ============================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

/* ==============================
   13. Bible Quote / Highlight
   ============================== */
.bible-quote {
  background: var(--primary);
  padding: 64px 24px;
  text-align: center;
}

.bible-quote blockquote {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
}

.bible-quote cite {
  display: block;
  margin-top: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
}

/* ==============================
   14. Page Content (inner pages)
   ============================== */
.content-block {
  max-width: 720px;
  margin: 0 auto;
}

.content-block h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  color: var(--muted);
  font-size: 1rem;
}

.content-block ul {
  padding-left: 1.4em;
  margin-bottom: 1em;
  color: var(--muted);
}

.content-block ul li {
  margin-bottom: 0.5em;
  font-size: 1rem;
}

.content-block a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==============================
   15. Support list (steunen)
   ============================== */
.support-ways {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.support-ways li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
}

.support-ways li:last-child {
  border-bottom: none;
}

.support-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--stone);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.support-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bank-info {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}

.bank-info h4 {
  margin-bottom: 10px;
  color: var(--primary);
}

.bank-info p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.bank-iban {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: inline-block;
  margin-top: 6px;
}

/* ==============================
   16. Contact Page
   ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin-bottom: 16px;
  color: var(--primary);
}

.contact-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-field strong {
  color: var(--text);
  min-width: 70px;
}

.contact-field a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-note {
  background: var(--stone);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 28px;
}

/* ==============================
   17. MAF Page
   ============================== */
.maf-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.maf-section:last-child {
  border-bottom: none;
}

.maf-section-inner {
  max-width: 800px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.photo-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ==============================
   18. CTA Banner
   ============================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 64px 24px;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-cta {
  display: inline-block;
  padding: 0.85em 2em;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.cta-banner .btn-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(217,119,6,0.4);
  color: #fff;
}

/* ==============================
   19. Footer
   ============================== */
.footer {
  background: var(--primary-dark);
  padding: 56px 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 30px;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-logo-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 10px;
  margin-left: 2px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-lang {
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem !important;
  font-weight: 600;
  align-self: flex-start;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
}

/* ==============================
   20. Responsive — Tablet
   ============================== */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .info-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .info-split.reversed {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .photo-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==============================
   21. Responsive — Mobile
   ============================== */
@media (max-width: 640px) {
  .nav {
    backdrop-filter: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: 260px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    z-index: 95;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-lang {
    margin-left: 0;
    margin-top: 12px;
  }

  .hero {
    min-height: 440px;
  }

  .hero-inner {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section {
    padding: 48px 0;
  }

  .page-header {
    padding: 40px 20px;
  }

  .info-img img {
    aspect-ratio: 3 / 2;
  }

  .footer-bottom {
    padding: 16px 20px;
  }
}
