/* ============================================================
   Stichting Klimaatwijk — homepage
   Kleuren afgeleid uit de originele pagina.
   Fonts: Fredoka (koppen) + Spectral (bodytekst) via Google Fonts.
   Zelf hosten i.p.v. Google (AVG)? Download de fonts, plaats ze in
   /fonts en vervang de <link> in index.html door @font-face regels.
   ============================================================ */

:root {
  --cyan: #00a8dd;
  --cyan-dark: #0090c0;
  --ink: #0f3a52;         /* bodytekst donker navy */
  --navy: #004060;        /* footer / diepe kleur */
  --lav: #ece9f5;         /* lavendel decoratieve blob */
  --line: #cfe6ef;
  --maxw: 1180px;
  --pad: 24px;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

h1, h2, h3, h4, .btn, .logo-text, .site-nav a {
  font-family: var(--display);
  font-weight: 600;
}

h1 {
  color: var(--cyan);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 .6em;
  letter-spacing: .5px;
}
h2 {
  color: var(--cyan);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 .5em;
}
h3 {
  color: var(--cyan);
  font-size: 1.4rem;
  margin: 1.8em 0 .4em;
}
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--cyan); }

/* -------- Knop (pill outline) -------- */
.btn {
  display: inline-block;
  margin-top: .6em;
  padding: .7em 1.8em;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--cyan); color: #fff; }

/* ======================= HEADER ======================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eef3f5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 66px; width: auto; display: block; }

.site-nav { display: flex; gap: clamp(16px, 2.5vw, 40px); }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color .2s;
}
.site-nav a:hover { color: var(--cyan); }

/* mobiel menu */
.nav-toggle, .nav-burger { display: none; }

/* ======================= HERO ======================= */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 8vw, 100px); }
.blob-lav {
  position: absolute; top: -120px; right: -120px;
  width: 620px; height: 620px; border-radius: 50%;
  background: var(--lav); z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-text { max-width: 620px; }

.blob-img { width: 100%; height: auto; display: block; }
.blob-hero { transform: translateX(6%); }
.ph-text { font-family: var(--display); fill: #fff; font-size: 30px; opacity: .95; }

/* ======================= HET DOEL ======================= */
.doel { padding: clamp(30px, 6vw, 70px) 0; }
.doel-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.vold-list {
  list-style: none; margin: 0; padding: 0;
  align-self: center;
  display: grid; gap: 26px;
}
.vold-list li {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--cyan);
  display: flex; align-items: center; gap: 18px;
}
.drop {
  width: 28px; height: 36px; flex: none;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 34'%3E%3Cpath fill='%2300a8dd' d='M12 0S24 16 24 23A12 12 0 1 1 0 23C0 16 12 0 12 0Z'/%3E%3C/svg%3E");
}

/* ======================= VOOR WIE ======================= */
.voor-wie { padding: clamp(30px, 6vw, 70px) 0; }
.voorwie-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.blob-orange { transform: translateX(8%); }
.voorwie-extra { max-width: 820px; }
.lead { font-family: var(--display); color: var(--cyan); font-size: 1.25rem; margin-top: .2em; }

.bullets { padding-left: 1.1em; margin: 0 0 1.2em; }
.bullets li { margin-bottom: .5em; }

/* ======================= CONTACT ======================= */
.contact { padding: clamp(30px, 6vw, 70px) 0; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 1em; }
.contact-buttons .btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 0;
}
.btn-solid { background: var(--cyan); color: #fff; }
.btn-solid:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); color: #fff; }

/* ======================= VIDEO ======================= */
.video { padding: clamp(30px, 6vw, 70px) 0 clamp(60px, 9vw, 120px); }
.video-frame {
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--lav);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--cyan);
  font-family: var(--display); font-size: 1.2rem;
}

/* ======================= FOOTER ======================= */
.site-footer { position: relative; margin-top: 40px; color: #fff; }
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; height: clamp(60px, 8vw, 120px); display: block; }
.footer-inner {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 40px;
  padding-bottom: 70px;
}
.site-footer .container.footer-inner { max-width: var(--maxw); }
/* zorg dat de navy achtergrond volledige breedte vult */
.site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 78%; background: var(--navy); z-index: -1;
}
.footer-col h4 { font-family: var(--display); font-size: 1.6rem; color: #fff; margin: 0 0 .6em; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5em; }
.footer-col a { color: #dcedf3; text-decoration: underline; text-underline-offset: 3px; }
.footer-col a:hover { color: #fff; }
.footer-logo { align-self: start; display: flex; align-items: center; justify-content: flex-end; }
.footer-logo img { height: 120px; width: auto; display: block; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 860px) {
  body { font-size: 17px; }

  /* nav -> burger */
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; z-index: 60;
  }
  .nav-burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: #fff; flex-direction: column; gap: 8px;
    padding: 90px 28px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -12px 0 40px rgba(0,0,0,.12);
  }
  .site-nav a { font-size: 1.25rem; padding: 10px 0; }
  .nav-toggle:checked ~ .site-nav { transform: translateX(0); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-inner, .doel-inner, .voorwie-inner { grid-template-columns: 1fr; gap: 28px; }
  .doel-inner { gap: 8px; }
  .vold-list { flex-direction: row; justify-self: start; grid-auto-flow: column; gap: 22px; display: flex; flex-wrap: wrap; margin-bottom: 10px; }
  .vold-list li { font-size: 1.4rem; }
  .hero-media, .voorwie-media { order: -1; max-width: 460px; margin: 0 auto; }
  .blob-hero, .blob-orange { transform: none; }
  .blob-lav { width: 360px; height: 360px; top: -80px; right: -100px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-logo { grid-column: 1 / -1; justify-content: flex-start; }
}

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

/* ============================================================
   ANIMATIES & INTERACTIE
   ============================================================ */

/* --- Scroll-reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Muis-parallax op de illustraties (basis-offset + var) --- */
.blob-hero { transform: translate(calc(6% + var(--px, 0px)), var(--py, 0px)); transition: transform .25s ease-out; }
.blob-orange { transform: translate(calc(8% + var(--px, 0px)), var(--py, 0px)); transition: transform .25s ease-out; }

/* --- Interactieve waterdruppels (VOLD) --- */
.vold-list li .drop { transition: transform .3s cubic-bezier(.34,1.56,.64,1); animation: dropBob 3.5s ease-in-out infinite; }
.vold-list li:nth-child(2) .drop { animation-delay: .4s; }
.vold-list li:nth-child(3) .drop { animation-delay: .8s; }
.vold-list li:nth-child(4) .drop { animation-delay: 1.2s; }
.vold-list li:hover .drop { transform: translateY(-8px) scale(1.15); }

/* --- SVG-illustratie animaties --- */
.anim-spin { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
.anim-pulse-soft { transform-box: fill-box; transform-origin: center; animation: pulseSoft 6s ease-in-out infinite; }
.anim-sparkle { animation: sparkle 3s ease-in-out infinite; }
.anim-sparkle.d1 { animation-delay: 1s; }
.anim-sparkle.d2 { animation-delay: 2s; }
.anim-ripple { transform-box: fill-box; transform-origin: center; animation: ripple 3.4s ease-out infinite; }
.anim-ripple.d2 { animation-delay: 1.7s; }
.tree { animation: sway 5s ease-in-out infinite; }
.tree.d1 { animation-delay: .8s; animation-duration: 6s; }
.tree.d2 { animation-delay: 1.6s; animation-duration: 5.5s; }
.node { transform-box: fill-box; transform-origin: center; animation: nodePulse 3s ease-in-out infinite; }
.node.d1 { animation-delay: .5s; } .node.d2 { animation-delay: 1s; } .node.d3 { animation-delay: 1.5s; }
.anim-flow { animation: flow 1.6s linear infinite; }
.anim-flow.d1 { animation-delay: .4s; } .anim-flow.d2 { animation-delay: .8s; }
.rain { animation: rainfall 1.3s ease-in infinite; }
.rain.d1 { animation-delay: .45s; } .rain.d2 { animation-delay: .9s; }

.cloud-a { animation: driftA 46s linear infinite; }
.cloud-b { animation: driftB 62s linear infinite; }
.cloud-c { animation: driftC 9s ease-in-out infinite alternate; transform: translate(390px, 95px); }
.cloud-d { animation: birds 26s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseSoft { 0%,100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes sparkle { 0%,100% { opacity: .15; transform: scale(.8); } 50% { opacity: .85; transform: scale(1.15); } }
@keyframes ripple { 0% { transform: scale(.35); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes nodePulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .55; } }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes rainfall { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes dropBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes driftA { from { transform: translate(-170px, 78px); } to { transform: translate(720px, 78px); } }
@keyframes driftB { from { transform: translate(-210px, 150px); } to { transform: translate(700px, 150px); } }
@keyframes driftC { from { transform: translate(372px, 95px); } to { transform: translate(432px, 108px); } }
@keyframes birds { 0% { transform: translate(-80px, 170px); } 100% { transform: translate(700px, 120px); } }

/* Respecteer voorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim-spin, .anim-pulse-soft, .anim-sparkle, .anim-ripple, .tree, .node,
  .anim-flow, .rain, .cloud-a, .cloud-b, .cloud-c, .cloud-d,
  .vold-list li .drop { animation: none !important; }
  .blob-hero, .blob-orange { transition: none; }
}
