/* ============================================
   rememberyourself.eu — Hoofdstijlblad
   ============================================ */

/* Lettertypen laden */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Atkinson+Hyperlegible:wght@400;700&display=swap');

/* ============================================
   Ontwerptokens — kleuren, typografie, ruimte
   ============================================ */
:root {
  /* Kleuren */
  --kleur-bosgroen:       #2D4A3E;
  --kleur-bosgroen-licht: #3D6155;
  --kleur-mosgroen:       #5C8A6E;
  --kleur-mosgroen-licht: #7AAF8C;
  --kleur-terracotta:     #8B4A35;
  --kleur-terracotta-licht: #B06248;
  --kleur-berkenwit:      #F5F0E8;
  --kleur-berkenwit-donker: #EBE4D8;
  --kleur-goud:           #D4A843;
  --kleur-goud-licht:     #E8C46A;
  --kleur-water:          #8BA8B5;
  --kleur-water-licht:    #A8C2CC;

  /* Tekst */
  --tekst-donker:   #1A2B25;
  --tekst-midden:   #3D5248;
  --tekst-licht:    #6B8578;
  --tekst-wit:      #F5F0E8;

  /* Lettertypen */
  --font-kop:   'Cormorant Garamond', Georgia, serif;
  --font-body:  'Atkinson Hyperlegible', Arial, sans-serif;

  /* Groottes */
  --tekst-xs:   0.75rem;
  --tekst-sm:   0.875rem;
  --tekst-base: 1rem;
  --tekst-lg:   1.125rem;
  --tekst-xl:   1.25rem;
  --tekst-2xl:  1.5rem;
  --tekst-3xl:  2rem;
  --tekst-4xl:  2.75rem;
  --tekst-5xl:  3.5rem;

  /* Regelafstand — dyslexie vriendelijk */
  --regelafstand-kop:  1.2;
  --regelafstand-body: 1.8;

  /* Tekenspatiëring — dyslexie vriendelijk */
  --spatie-nav:  0.12em;
  --spatie-kop:  0.02em;
  --spatie-body: 0.01em;

  /* Ruimte */
  --ruimte-xs:  0.25rem;
  --ruimte-sm:  0.5rem;
  --ruimte-md:  1rem;
  --ruimte-lg:  1.5rem;
  --ruimte-xl:  2rem;
  --ruimte-2xl: 3rem;
  --ruimte-3xl: 4rem;
  --ruimte-4xl: 6rem;

  /* Overgangen */
  --overgang: 0.3s ease;

  /* Hoekradius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Maximale breedte */
  --max-breedte: 1200px;
  --max-tekst:   680px;
}

/* ============================================
   Reset & basis
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--tekst-base);
  line-height: var(--regelafstand-body);
  letter-spacing: var(--spatie-body);
  color: var(--tekst-donker);
  background-color: var(--kleur-berkenwit);
  min-height: 100vh;
}

/* ============================================
   Typografie
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-kop);
  font-weight: 400;
  line-height: var(--regelafstand-kop);
  letter-spacing: var(--spatie-kop);
  color: var(--kleur-bosgroen);
}

h1 { font-size: var(--tekst-5xl); }
h2 { font-size: var(--tekst-4xl); }
h3 { font-size: var(--tekst-3xl); }
h4 { font-size: var(--tekst-2xl); }
h5 { font-size: var(--tekst-xl); }
h6 { font-size: var(--tekst-lg); }

p {
  font-family: var(--font-body);
  font-size: var(--tekst-base);
  line-height: var(--regelafstand-body);
  color: var(--tekst-midden);
  max-width: var(--max-tekst);
}

a {
  color: var(--kleur-mosgroen);
  text-decoration: none;
  transition: color var(--overgang);
}

a:hover {
  color: var(--kleur-terracotta);
}

a:focus-visible {
  outline: 2px solid var(--kleur-goud);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

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

/* ============================================
   Navigatie — altijd zichtbaar
   ============================================ */
.nav-hoofd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(45, 74, 62, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92, 138, 110, 0.3);
  transition: background-color var(--overgang);
}

.nav-binnen {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 var(--ruimte-xl);
  display: flex;
  flex-direction: column;
}

.nav-rij-een {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ruimte-sm) 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
  flex-wrap: wrap;
  gap: var(--ruimte-lg);
}

.nav-rij-twee {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--ruimte-sm) 0;
}

.nav-rij-twee .nav-logo {
  justify-self: start;
}

.nav-rij-twee .knop {
  justify-self: center;
}

.nav-rij-twee .taalwisselaar {
  justify-self: end;
}

.nav-logo {
  font-family: var(--font-kop);
  font-size: var(--tekst-xl);
  font-weight: 400;
  color: var(--kleur-berkenwit);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--kleur-goud);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--ruimte-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--tekst-sm);
  font-weight: 700;
  letter-spacing: var(--spatie-nav);
  text-transform: uppercase;
  color: var(--kleur-berkenwit);
  transition: color var(--overgang);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--kleur-goud);
}

.nav-links a.actief {
  color: var(--kleur-goud);
  border-bottom: 1px solid var(--kleur-goud);
  padding-bottom: 2px;
}

/* Taalwisselaar */
.taalwisselaar {
  display: flex;
  align-items: center;
  gap: var(--ruimte-sm);
}

.taalwisselaar button {
  font-family: var(--font-body);
  font-size: var(--tekst-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--ruimte-xs) var(--ruimte-sm);
  border-radius: var(--radius-sm);
  transition: color var(--overgang), background-color var(--overgang);
}

.taalwisselaar button:hover {
  color: var(--kleur-berkenwit);
  background-color: rgba(245, 240, 232, 0.1);
}

.taalwisselaar button.actief-taal {
  color: var(--kleur-goud);
}

/* Hamburger menu voor mobiel */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--ruimte-sm);
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--kleur-berkenwit);
  transition: transform var(--overgang), opacity var(--overgang);
}

/* ============================================
   Lay-out hulpklassen
   ============================================ */
.container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 var(--ruimte-xl);
}

.sectie {
  padding: var(--ruimte-4xl) 0;
}

.sectie-smal {
  padding: var(--ruimte-2xl) 0;
}

.tekst-midden {
  text-align: center;
}

.tekst-centrum {
  margin-left: auto;
  margin-right: auto;
}

/* Ruimte bovenaan voor vaste navigatie — twee rijen */
.pagina-inhoud {
  padding-top: 120px;
}

/* ============================================
   Knoppen
   ============================================ */
.knop {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-sm);
  font-family: var(--font-body);
  font-size: var(--tekst-sm);
  font-weight: 700;
  letter-spacing: var(--spatie-nav);
  text-transform: uppercase;
  padding: var(--ruimte-md) var(--ruimte-xl);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--overgang);
  text-decoration: none;
  white-space: nowrap;
}

.knop-primair {
  background-color: var(--kleur-mosgroen);
  color: var(--kleur-berkenwit);
  border-color: var(--kleur-mosgroen);
}

.knop-primair:hover {
  background-color: var(--kleur-bosgroen);
  border-color: var(--kleur-bosgroen);
  color: var(--kleur-berkenwit);
}

.knop-secundair {
  background-color: transparent;
  color: var(--kleur-berkenwit);
  border-color: var(--kleur-berkenwit);
}

.knop-secundair:hover {
  background-color: var(--kleur-berkenwit);
  color: var(--kleur-bosgroen);
}

.knop-goud {
  background-color: var(--kleur-goud);
  color: var(--kleur-bosgroen);
  border-color: var(--kleur-goud);
}

.knop-goud:hover {
  background-color: var(--kleur-goud-licht);
  border-color: var(--kleur-goud-licht);
}

/* ============================================
   Toegankelijkheid
   ============================================ */

/* Schermlezer tekst — visueel verborgen maar toegankelijk */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sla navigatie over voor toetsenbordgebruikers */
.sla-over {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--kleur-goud);
  color: var(--kleur-bosgroen);
  padding: var(--ruimte-sm) var(--ruimte-md);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--overgang);
}

.sla-over:focus {
  top: 0;
}

/* Verminderde beweging */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Voettekst
   ============================================ */
.voettekst {
  background-color: var(--kleur-bosgroen);
  color: var(--kleur-berkenwit);
  padding: var(--ruimte-3xl) 0 var(--ruimte-xl);
}

.voettekst p,
.voettekst a {
  color: rgba(245, 240, 232, 0.7);
  font-size: var(--tekst-sm);
}

.voettekst a:hover {
  color: var(--kleur-goud);
}

/* ============================================
   Mobiel — responsief ontwerp
   ============================================ */
@media (max-width: 768px) {
  :root {
    --tekst-5xl: 2.5rem;
    --tekst-4xl: 2rem;
    --tekst-3xl: 1.75rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--kleur-bosgroen);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--ruimte-2xl);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: var(--tekst-lg);
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

  .taalwisselaar {
    border-left: none;
    padding-left: 0;
  }

  .container {
    padding: 0 var(--ruimte-md);
  }

  .sectie {
    padding: var(--ruimte-2xl) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --tekst-5xl: 2rem;
    --tekst-4xl: 1.75rem;
  }
}
