:root {
  --color-base: #59646B;
  --color-accent: #8B8C5A;
  --color-dark: #1B2A47;
  --color-white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-accent);
  z-index: 200;
}

.stat-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1.5rem; text-transform: uppercase; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
}

.header-logo { height: 36px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover { color: var(--color-accent); }

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover { background: #767758; }

.btn-large { padding: 1rem 2rem; font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-base);
  color: var(--color-white);
  padding: 6rem 0;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-base);
  mix-blend-mode: multiply;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero h1 { color: var(--color-white); }

.hero-sub {
  max-width: 620px;
  margin: 1.5rem auto 2rem;
  font-size: 1.1rem;
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: #F4F5F3; }

.section-intro { max-width: 560px; margin-bottom: 2.5rem; color: var(--color-base); }

.tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-top: 1.5rem;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0;
}

.pillar-list li { font-weight: 500; }

.pillar-list li:not(:last-child)::after {
  content: '/';
  margin-left: 1rem;
  color: var(--color-accent);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.testimonial-card { text-align: center; }

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--color-base);
  color: var(--color-white);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.play-icon { font-size: 2rem; }

.testimonial-name { font-size: 0.9rem; color: var(--color-base); }

/* Methode */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 3rem;
  margin: 1.5rem 0;
}

.results-list { list-style: none; }

.results-list li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.results-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Over ons */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-photo {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.verhaal-link { margin-top: 0.5rem; }

.verhaal-link a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.verhaal-link a:hover { text-decoration: underline; }

/* Mijn verhaal-pagina */
.verhaal-hero { padding-bottom: 0; }

.verhaal-terug {
  margin-bottom: 1.5rem;
}

.verhaal-terug a {
  color: var(--color-base);
  text-decoration: none;
  font-size: 0.9rem;
}

.verhaal-terug a:hover { color: var(--color-accent); }

.verhaal-titel { text-transform: none; }

.verhaal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.verhaal-foto {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  position: sticky;
  top: 6rem;
}

.verhaal-tekst { max-width: 640px; }

.verhaal-tekst p { margin-bottom: 1.25rem; }

/* Het systeem-pagina */
.hero-sub-static {
  max-width: 620px;
  color: var(--color-base);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.systeem-tekst { max-width: 700px; }
.systeem-tekst p { margin-bottom: 1.25rem; }

.fasen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.fase-kaart {
  padding: 1.5rem;
  border: 1px solid rgba(27, 42, 71, 0.1);
  border-radius: 6px;
}

.fase-nummer {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.foto-placeholder {
  background: var(--color-base);
  color: var(--color-white);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.foto-vierkant {
  aspect-ratio: 1;
  margin-bottom: 1rem;
}

.foto-breed-echt {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.fase-foto {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 1rem;
}

.foto-breed {
  aspect-ratio: 21 / 9;
}

.bewijs-sectie .section-intro { margin-bottom: 2.5rem; }

.marquee {
  width: 100%;
  overflow-x: auto;
  padding: 0 1.5rem 0.5rem;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.marquee-card {
  flex: 0 0 auto;
  width: 220px;
  text-decoration: none;
  color: inherit;
}

.marquee-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-base);
}

.marquee-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marquee-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  background: rgba(27, 42, 71, 0.25);
}

.marquee-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-base);
}

/* CTA footer sectie */
.cta-section {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
}

.cta-section h2, .cta-section p { color: var(--color-white); }

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

.footer-logo { height: 48px; width: auto; margin-bottom: 0.75rem; }
.footer-copyright { font-size: 0.75rem; opacity: 0.6; margin: 0; }

/* Mobiel */
@media (max-width: 768px) {
  .mobile-nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav.is-open { display: flex; }

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

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

  .verhaal-foto { position: static; max-width: 240px; }

  .hero { padding: 4rem 0; }

  .section { padding: 3.5rem 0; }
}

/* Animaties: hero zwaait in bij laden, secties zweven in bij scrollen.
   Alleen als de bezoeker geen voorkeur heeft opgegeven voor minder beweging. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero-tekst blijft verborgen tot de video het handen-schud-moment
     bereikt (klasse "hands-touched", gezet door main.js). Veiligheidsnet
     in de JS toont de tekst sowieso na 2,5s, ook als de video niet start. */
  .hero-sub,
  .hero .btn,
  .word-inner {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .hero-sub { transition-delay: 0.5s; }
  .hero .btn { transition-delay: 0.65s; }

  .hero.hands-touched .hero-sub,
  .hero.hands-touched .btn,
  .hero.hands-touched .word-inner {
    opacity: 1;
    transform: translateY(0);
  }

  .beeldmerk-draw path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
  }

  .hero.hands-touched .beeldmerk-draw path {
    animation: draw-in 0.8s ease-out forwards;
  }

  @keyframes draw-in {
    to { stroke-dashoffset: 0; }
  }

  .word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
  }

  .word-inner {
    display: inline-block;
    transform: translateY(110%);
  }

  .marquee { overflow-x: hidden; }

  .marquee-track {
    animation: marquee-scroll 40s linear infinite;
  }

  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track {
    animation-play-state: paused;
  }

  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

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