/* ============================================================
   Website Studio — Thema CSS
   Stijl: Warm, persoonlijk, ambachtelijk
   Inspiratie: Meeuwisse Wielersport + Claude interface
   ============================================================ */

/* Fonts: Space Grotesk (koppen) + Inter (broodtekst) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  /* Kleuren — warm perkament palet */
  --kleur-achtergrond:   #F4F1EB;   /* warme perkamentkleur, niet standaard wit */
  --kleur-wit:           #FAF8F3;   /* warme kaartkleur */
  --kleur-tekst:         #1A1715;   /* warm donker, niet koud zwart */
  --kleur-grijs-donker:  #504E49;   /* warm steengrijs */
  --kleur-grijs:         #9A9690;   /* warm midgrijs */
  --kleur-grijs-licht:   #DDD9D1;   /* warme scheidingslijn */
  --kleur-primair:       #1D3557;   /* diepblauw marine — rijker dan corporate blauw */
  --kleur-primair-donker:#152741;   /* donkerder marine */
  --kleur-primair-licht: #E8EDF5;   /* lichte marinewaas */
  --kleur-accent:        #A0713A;   /* warm amber/goud — Meeuwisse-geïnspireerd */
  --kleur-accent-donker: #885E2F;   /* donkerder amber */
  --kleur-accent-licht:  #F5ECD9;   /* lichte amberwaas */
  --kleur-kaart:         #FAF8F3;   /* kaartachtergrond */
  --kleur-donker:        #1A1715;   /* voor donkere secties */

  /* Typografie */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Lettergroottes — gematigd en leesbaar */
  --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:  1.875rem;
  --tekst-4xl:  2.25rem;

  /* Witruimte */
  --ruimte-xs:  0.5rem;
  --ruimte-sm:  1rem;
  --ruimte-md:  1.5rem;
  --ruimte-lg:  2rem;
  --ruimte-xl:  3rem;
  --ruimte-2xl: 4.5rem;
  --ruimte-3xl: 6rem;

  /* Schaduwen — warm getint, niet neutraal grijs */
  --schaduw-sm: 0 1px 3px rgba(26, 23, 21, 0.07);
  --schaduw-md: 0 4px 14px rgba(26, 23, 21, 0.09);
  --schaduw-lg: 0 8px 28px rgba(26, 23, 21, 0.12);

  /* Afrondingen */
  --afronding-sm: 4px;
  --afronding-md: 6px;
  --afronding-lg: 10px;
  --afronding-xl: 16px;

  /* Nav */
  --nav-hoogte: 180px;
  --overgang:   0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--tekst-base);
  color: var(--kleur-tekst);
  background-color: var(--kleur-achtergrond);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   Typografie — karakter zonder overdaad
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--kleur-tekst);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.875rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: var(--tekst-xl); }
h4 { font-size: var(--tekst-lg); }

p {
  line-height: 1.7;
  color: var(--kleur-grijs-donker);
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--ruimte-lg);
}

.section {
  padding: var(--ruimte-3xl) 0;
}

.section--grijs {
  background-color: #EDE9E1;
  border-top: 1px solid var(--kleur-grijs-licht);
  border-bottom: 1px solid var(--kleur-grijs-licht);
}

.section--wit {
  background-color: var(--kleur-wit);
}

.section--donker {
  background-color: var(--kleur-donker);
  color: var(--kleur-wit);
}

.section--donker h2,
.section--donker h3,
.section--donker p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Sectie-header — altijd gecentreerd
   ============================================================ */
.sectie-header {
  text-align: center;
  margin-bottom: var(--ruimte-2xl);
}

.sectie-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--tekst-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kleur-accent);
  margin-bottom: var(--ruimte-sm);
}

.sectie-header h2 {
  margin-bottom: var(--ruimte-sm);
}

.sectie-header p {
  font-size: var(--tekst-lg);
  max-width: 560px;
  margin: 0 auto;
}

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

/* ============================================================
   Knoppen
   ============================================================ */
.btn-primair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background-color: var(--kleur-primair);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: var(--tekst-sm);
  font-weight: 600;
  border-radius: var(--afronding-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--overgang);
  text-decoration: none;
}

.btn-primair:hover {
  background-color: var(--kleur-primair-donker);
  color: #FFFFFF;
}

.btn-secundair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background-color: transparent;
  color: var(--kleur-tekst);
  font-family: var(--font-heading);
  font-size: var(--tekst-sm);
  font-weight: 600;
  border-radius: var(--afronding-md);
  border: 2px solid var(--kleur-grijs-licht);
  cursor: pointer;
  transition: border-color var(--overgang), background-color var(--overgang);
  text-decoration: none;
}

.btn-secundair:hover {
  border-color: var(--kleur-tekst);
  background-color: rgba(26, 23, 21, 0.04);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background-color: var(--kleur-accent);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: var(--tekst-sm);
  font-weight: 600;
  border-radius: var(--afronding-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--overgang);
  text-decoration: none;
}

.btn-accent:hover {
  background-color: var(--kleur-accent-donker);
  color: #FFFFFF;
}

/* ============================================================
   Kaart — warm, met subtiele border
   ============================================================ */
.kaart {
  background-color: var(--kleur-kaart);
  border: 1px solid var(--kleur-grijs-licht);
  border-radius: var(--afronding-lg);
  padding: var(--ruimte-xl);
  transition: border-color var(--overgang), box-shadow var(--overgang);
}

.kaart:hover {
  border-color: var(--kleur-accent);
  box-shadow: var(--schaduw-md);
}

/* ============================================================
   Fotoplekken — voor persoonlijke foto's die later worden toegevoegd
   ============================================================ */
.foto-placeholder {
  background-color: var(--kleur-grijs-licht);
  border-radius: var(--afronding-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-sm);
  color: var(--kleur-grijs);
  font-family: var(--font-heading);
  font-size: var(--tekst-sm);
  font-weight: 500;
  text-align: center;
  padding: var(--ruimte-xl);
  min-height: 280px;
}

.foto-placeholder svg {
  opacity: 0.4;
}

.foto-placeholder span {
  opacity: 0.6;
  font-size: var(--tekst-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Als er een echte foto is, vervang de placeholder */
.foto-container {
  border-radius: var(--afronding-xl);
  overflow: hidden;
  background-color: var(--kleur-grijs-licht);
}

.foto-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Grid hulpklassen
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ruimte-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ruimte-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ruimte-lg);
}

/* ============================================================
   Navigatiebalk (injecteert via nav.js)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-hoogte);
  background-color: rgba(244, 241, 235, 0.95);
  border-bottom: 1px solid var(--kleur-grijs-licht);
  overflow: visible;
}

/* Blur-laag via pseudo-element: visueel effect behouden zonder iOS-bug */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

/* 3-kolom grid: logo links | links midden | contactknop rechts */
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--nav-hoogte);
  gap: var(--ruimte-md);
}

/* Logo — alleen afbeelding, groter */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo img {
  height: 170px;
  width: auto;
  /* mix-blend-mode: multiply verwijdert witte achtergrond op lichte ondergrond */
  mix-blend-mode: multiply;
}

/* Links — horizontaal gecentreerd in de middelste kolom */
.nav__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--ruimte-lg);
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: var(--tekst-sm);
  font-weight: 500;
  color: var(--kleur-grijs-donker);
  transition: color var(--overgang);
  text-decoration: none;
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--kleur-primair);
}

/* Rechterkant: contactknop + hamburger */
.nav__acties {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--ruimte-sm);
}

.nav__contact-knop {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  background-color: var(--kleur-primair);
  color: #FFFFFF;
  border-radius: var(--afronding-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--tekst-sm);
  transition: background-color var(--overgang);
  text-decoration: none;
  white-space: nowrap;
}

.nav__contact-knop:hover {
  background-color: var(--kleur-primair-donker);
  color: #FFFFFF;
}

/* Hamburgermenu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--kleur-tekst);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Pagina-header (interne pagina's) — gecentreerd
   ============================================================ */
.pagina-header {
  background-color: var(--kleur-wit);
  border-bottom: 1px solid var(--kleur-grijs-licht);
  padding: var(--ruimte-3xl) 0 var(--ruimte-2xl);
  text-align: center;
}

.pagina-header h1 {
  margin-bottom: var(--ruimte-sm);
}

.pagina-header p {
  font-size: var(--tekst-lg);
  max-width: 520px;
  margin: 0 auto;
  color: var(--kleur-grijs-donker);
}

/* ============================================================
   Footer — warm donker
   ============================================================ */
.footer {
  background-color: #110F0D;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--ruimte-2xl) 0 var(--ruimte-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ruimte-2xl);
  margin-bottom: var(--ruimte-2xl);
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--tekst-xl);
  color: #FFFFFF;
  display: block;
  margin-bottom: var(--ruimte-sm);
  letter-spacing: -0.02em;
}

/* Logo-afbeelding in de footer — wit via CSS filter op donkere achtergrond */
.footer__logo-img {
  height: 72px;
  width: auto;
  display: block;
  /* Zet logo om naar wit: brightness(0) = alles zwart, invert(1) = alles wit */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__beschrijving {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--tekst-sm);
  line-height: 1.7;
  max-width: 36ch;
  margin: 0;
}

.footer__kop {
  font-family: var(--font-heading);
  font-size: var(--tekst-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kleur-accent);
  margin-bottom: var(--ruimte-md);
  display: block;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: var(--tekst-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--overgang);
}

.footer__links a:hover {
  color: #FFFFFF;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--tekst-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.6rem;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--overgang);
}

.footer__contact-item a:hover {
  color: #FFFFFF;
}

.footer__onderlijn {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--ruimte-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ruimte-sm);
}

.footer__copyright {
  font-size: var(--tekst-xs);
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

/* ============================================================
   Animaties — eenvoudig en betrouwbaar
   ============================================================ */
.fade-omhoog {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-omhoog.zichtbaar {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.zichtbaar {
  opacity: 1;
}

.vertraging-1 { transition-delay: 0.08s; }
.vertraging-2 { transition-delay: 0.16s; }
.vertraging-3 { transition-delay: 0.24s; }
.vertraging-4 { transition-delay: 0.32s; }
.vertraging-5 { transition-delay: 0.40s; }

/* ============================================================
   Formulier
   ============================================================ */
.form-groep {
  margin-bottom: var(--ruimte-md);
}

.form-groep label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--tekst-sm);
  font-weight: 600;
  color: var(--kleur-tekst);
  margin-bottom: 0.4rem;
}

.form-groep input,
.form-groep textarea,
.form-groep select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--kleur-wit);
  border: 1px solid var(--kleur-grijs-licht);
  border-radius: var(--afronding-md);
  font-family: var(--font-body);
  font-size: var(--tekst-base);
  color: var(--kleur-tekst);
  transition: border-color var(--overgang);
  appearance: none;
}

.form-groep input::placeholder,
.form-groep textarea::placeholder {
  color: var(--kleur-grijs);
}

.form-groep input:focus,
.form-groep textarea:focus {
  outline: none;
  border-color: var(--kleur-primair);
}

.form-groep textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================================
   Responsief — tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Responsief — mobiel (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --ruimte-3xl: 3.5rem;
    --ruimte-2xl: 2.5rem;
  }

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

  /* Mobiel nav: contactknop verbergen, hamburger tonen */
  .nav__contact-knop {
    display: none;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-height: calc(100vh - var(--nav-hoogte));
    background-color: var(--kleur-achtergrond);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--ruimte-lg);
    gap: var(--ruimte-md);
    border-top: 1px solid var(--kleur-grijs-licht);
    z-index: 999;
    overflow-y: auto;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: var(--tekst-xl);
    font-weight: 600;
    color: var(--kleur-tekst);
  }

  /* Noodoplossing — dit blok was in de nav__links maar staat nu los */
  .nav__links .nav__contact-knop-oud {
    font-size: var(--tekst-xl);
    background: none;
    color: var(--kleur-primair);
    padding: 0;
    border-radius: 0;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hero: tekst boven, slideshow onder */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-kop {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  /* Pagina-header: minder ruimte op mobiel */
  .pagina-header {
    padding: var(--ruimte-2xl) 0 var(--ruimte-xl);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--ruimte-xl);
  }

  .footer__onderlijn {
    flex-direction: column;
    align-items: flex-start;
  }
}
