/* ==========================================================================
   Projectpagina (layouts/case.njk)
   Kop + meta, headerfoto, beschrijving / uitdaging / oplossing met sticky
   labels, galerij, impact-tellers, CTA-band, meer projecten, volgende case.
   Gedeelde componenten (.crumbs, .eyebrow, .band, .card, .clip, .rv) staan in main.css.
   ========================================================================== */

/* ---- 1. Kop ------------------------------------------------------------------ */
.cs-kop { display: flex; flex-direction: column; gap: 40px; padding-top: 72px; padding-bottom: 64px; }
/* Links in het kruimelpad hebben 3px onderruimte (.lk): uitlijnen op de basislijn */
.cs-kop .crumbs { align-items: baseline; }
.cs-kop__rij { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; }
/* Kop links groeit tot 820px; meta rechts blijft ernaast staan (max 400px) zolang er plek is */
.cs-kop__l { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; min-width: min(560px, 100%); max-width: 820px; }
.cs-label { align-self: flex-start; font-size: 14px; font-weight: 600; line-height: 1.3; padding: 8px 14px; border-radius: var(--r-pill); background: var(--c-light); }
.cs-h1 { font-size: var(--fs-h1-xl); line-height: .98; letter-spacing: -.055em; font-weight: 700; color: var(--c-black); overflow-wrap: break-word; }
.cs-nw { white-space: nowrap; }
.cs-meta { flex: 0 1 auto; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 15px; line-height: 1.3; min-width: min(300px, 100%); max-width: 400px; }
.cs-meta dd { font-weight: 600; }

/* ---- 2. Headerfoto ------------------------------------------------------------ */
.cs-foto-sec { padding-bottom: 120px; }
.cs-foto { border-radius: 36px; overflow: hidden; background: var(--c-ink); aspect-ratio: 16 / 8.4; }
.cs-foto img { width: 100%; height: 100%; object-fit: cover; }
.phero img { transition: transform 1.4s var(--ease); }

/* ---- 3/4. Tekstblokken met sticky label links ------------------------------------ */
.cs-sec { padding-bottom: 120px; }
.cs-blok { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.cs-blok__l { flex: 1 1 280px; }
.cs-blok__kop { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 12px; }
.cs-blok__kop .eyebrow, .cs-sectiekop .eyebrow { line-height: 1.3; }
.cs-h2 { font-size: 36px; line-height: 1.1; letter-spacing: -.035em; color: var(--c-black); }
.cs-blok__r { flex: 2 1 560px; min-width: 0; }
.cs-tekst { display: flex; flex-direction: column; gap: 22px; font-size: 20px; line-height: 1.65; }

.cs-grijs { background: var(--c-light); padding: 120px 0; }
.cs-grijs__in { display: flex; flex-direction: column; gap: 100px; }

/* Oplossing: genummerde stappen */
.cs-stappen { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--c-input); }
.step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--c-input); font-size: 19px; line-height: 1.55; transition: color .5s var(--ease); }
/* Inhoud schuift 16 px in via transform (geen layout-animatie) */
.step > * { transition: transform .6s var(--ease); }
.step .n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; line-height: 1; color: var(--c-ink); transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease); }

/* ---- Sectiekop (galerij, impact) ------------------------------------------------- */
.cs-sectiekop { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.cs-h2-xl { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.04em; color: var(--c-black); }

/* ---- 5. Galerij (optioneel) -------------------------------------------------------- */
.cs-galerij { display: flex; flex-direction: column; gap: 56px; padding-top: 120px; }
.cs-galerij__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cs-galerij__item { position: relative; overflow: hidden; border-radius: 28px; background: var(--c-placeholder); aspect-ratio: 3 / 2; isolation: isolate; }
.cs-galerij__item:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 8.4; }
.cs-galerij__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

/* ---- 6. Impact ------------------------------------------------------------------------ */
.cs-impact { display: flex; flex-direction: column; gap: 56px; padding-top: 130px; padding-bottom: 130px; }
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.stat { height: 100%; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 36px; border-radius: 28px; background: var(--c-light); transition: background-color .6s var(--ease), color .6s var(--ease), transform .6s var(--ease); }
.stat__getal { font-size: 72px; font-weight: 800; letter-spacing: -.05em; line-height: 1; overflow-wrap: break-word; }
.stat__getal--tekst { font-size: 56px; }
.stat__getal--lang { font-size: 48px; }
.stat .muted { font-size: 17px; line-height: 1.3; transition: color .6s var(--ease); }

/* ---- 7. CTA-band ------------------------------------------------------------------------ */
.cs-cta { padding-bottom: 120px; }
.cs-cta--los { padding-top: 120px; }
.cs-cta .band__txt { max-width: 600px; }

/* ---- 8. Meer projecten -------------------------------------------------------------------- */
.cs-meer { display: flex; flex-direction: column; gap: 40px; padding-bottom: 120px; }
.cs-meer__kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cs-meer__titel { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.035em; color: var(--c-black); }
.cs-meer__kop .lk { font-size: 17px; color: var(--c-ink); }
.cs-meer__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }

/* ---- 9. Volgende case ------------------------------------------------------------------------ */
.next { position: relative; display: block; overflow: hidden; padding: 110px 0; background: var(--c-black); color: #fff; text-decoration: none; }
.next:hover { color: #fff; }
.next:focus-visible { outline-color: var(--c-blue-light); outline-offset: -6px; border-radius: 0; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.next__in { position: relative; display: flex; flex-direction: column; gap: 12px; }
.next__label { font-size: 14px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.next .big { display: inline-block; align-self: flex-start; font-size: clamp(48px, 8vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: 1; transition: transform .8s var(--ease); }

/* ---- Hover (alleen met muis) --------------------------------------------------------------- */
@media (hover: hover) {
  .phero:hover img { transform: scale(1.04); }
  .step:hover { color: var(--c-blue); }
  .step:hover > * { transform: translateX(16px); }
  .step:hover .n { background: var(--c-blue); color: #fff; }
  .stat:hover { background: var(--c-blue); color: #fff; transform: translateY(-6px); }
  .stat:hover .muted { color: rgba(255, 255, 255, .88); }
  .cs-galerij__item:hover img { transform: scale(1.04); }
  .next:hover img { opacity: .6; transform: scale(1); }
  .next:hover .big { transform: translateX(24px); }
}

/* ---- Responsive -------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  /* Tablet: iets compacter verticaal ritme */
  .cs-foto-sec, .cs-sec, .cs-cta, .cs-meer { padding-bottom: 96px; }
  .cs-cta--los, .cs-galerij { padding-top: 96px; }
  .cs-grijs { padding: 96px 0; }
  .cs-impact { padding-top: 104px; padding-bottom: 104px; }
  .next { padding: 88px 0; }
  /* Tablet: twee kaarten naast elkaar, de derde valt weg */
  .cs-meer__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cs-meer__raster > :nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  /* Labels staan nu boven de tekst: niet meer sticky */
  .cs-blok__l { flex-basis: 100%; }
  .cs-blok__kop { position: static; }
  .cs-grijs__in { gap: 72px; }
}
@media (max-width: 760px) {
  .cs-kop { gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .cs-kop__rij { gap: 28px; }
  .cs-kop__l { gap: 16px; }
  .cs-h1 { font-size: clamp(40px, 11vw, 56px); line-height: 1; }
  .cs-meta { width: 100%; max-width: none; min-width: 0; gap: 8px 20px; }

  .cs-foto-sec { padding-bottom: 64px; }
  .cs-foto { aspect-ratio: 4 / 3; border-radius: 24px; }
  .cs-foto.clip.in { clip-path: inset(0 0 0 0 round 24px); }

  .cs-sec { padding-bottom: 64px; }
  .cs-blok { row-gap: 16px; }
  .cs-h2 { font-size: 28px; }
  .cs-tekst { gap: 16px; font-size: 18px; line-height: 1.6; }
  .cs-grijs { padding: 64px 0; }
  .cs-grijs__in { gap: 56px; }
  .step { gap: 16px; padding: 22px 0; font-size: 17px; }
  .step .n { width: 40px; height: 40px; font-size: 14px; }

  .cs-galerij { gap: 32px; padding-top: 64px; }
  .cs-galerij__raster { grid-template-columns: 1fr; gap: 16px; }
  .cs-galerij__item { border-radius: 22px; }
  .cs-galerij__item:last-child:nth-child(odd) { aspect-ratio: 3 / 2; }

  .cs-impact { gap: 32px; padding-top: 72px; padding-bottom: 72px; }
  .cs-stats { gap: 14px; }
  .stat { min-height: 170px; padding: 28px; border-radius: 24px; gap: 20px; }
  .stat__getal { font-size: 60px; }
  .stat__getal--tekst { font-size: 44px; }
  .stat__getal--lang { font-size: 38px; }
  .stat .muted { font-size: 16px; }

  .cs-cta { padding-bottom: 64px; }
  .cs-cta--los { padding-top: 64px; }
  .cs-cta .band__knoppen { width: 100%; }
  .cs-cta .band__knoppen .btn { flex: 1 1 220px; }

  .cs-meer { gap: 28px; padding-bottom: 72px; }
  .cs-meer__raster { grid-template-columns: 1fr; gap: 32px; }
  .cs-meer__raster > :nth-child(3) { display: block; }

  .next { padding: 64px 0; }
  .next__label { font-size: 13px; }
  .next .big { font-size: clamp(36px, 11vw, 56px); letter-spacing: -.05em; }
}
