/* use-casepagina's (bv. /use-cases/vastgoedai/): brede layout in de huisstijl */
.pg-main.pg-case { max-width: none; padding: 0; }
.case { --breed: min(1240px, calc(100% - 2 * var(--zij))); }
.case h2 { font-family: var(--font-kop); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .92; font-size: clamp(2rem, 4.6vw, 3.6rem); margin: 0 0 20px; color: #0A0A0A; text-wrap: balance; }
.case p { font-size: 17.5px; line-height: 1.6; color: #3D3D3A; margin: 0; }

/* kop */
.case-hero { width: var(--breed); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 4vw, 56px); text-align: center; }
.case-terug { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #5E5D59 !important; text-decoration: none !important; margin-bottom: 26px; }
.case-terug::before { content: ""; width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.case-terug:hover { color: #0A0A0A !important; }
.case-hero h1 { font-family: var(--font-kop); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 10.6vw, 10rem) !important; line-height: .82; white-space: nowrap; letter-spacing: -.045em; margin: 0 0 28px !important; color: #0A0A0A; }
.case-lead { max-width: 640px; margin: 0 auto !important; font-size: clamp(18px, 1.6vw, 21px) !important; color: #3D3D3A; text-wrap: balance; }
.case-feiten { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.case-feiten div { padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(10,10,10,.08); display: flex; gap: 8px; font-size: 14.5px; }
.case-feiten dt { color: #76766F; }
.case-feiten dd { margin: 0; font-weight: 600; color: #0A0A0A; }

/* groot beeld */
.case-podium { position: relative; width: var(--breed); margin: 0 auto; padding: clamp(28px, 5vw, 70px) clamp(20px, 6vw, 90px) clamp(40px, 7vw, 100px); border-radius: 28px; background: radial-gradient(70% 90% at 20% 10%, #3E8F6A, #1B4B38 75%); }
.case-podium__scherm { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 50px 100px -40px rgba(0,0,0,.6); }
.case-podium__tel { position: absolute; right: clamp(14px, 4vw, 56px); bottom: clamp(-30px, -2vw, -12px); width: clamp(110px, 17vw, 230px); height: auto; border-radius: 22px; border: 6px solid #0A0A0A; box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); }

/* tekstblok */
.case-blok { width: var(--breed); margin: 0 auto; padding: clamp(70px, 10vw, 140px) 0 clamp(30px, 4vw, 50px); }
.case-blok--smal { max-width: 760px; text-align: center; }
.case-blok--smal p { max-width: 600px; margin: 0 auto; }

/* stappen: tekst + beeld, om en om */
.case-stap { width: var(--breed); margin: clamp(40px, 6vw, 80px) auto 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.case-stap--om .case-stap__tekst { order: 2; }
.case-stap__beeld { border-radius: 26px; padding: clamp(22px, 4vw, 54px); display: grid; place-items: center; min-height: 340px; }
.case-stap__beeld img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 40px 80px -36px rgba(20,20,40,.45); }
.case-stap__beeld img.case-tel { width: min(260px, 70%); border-radius: 22px; border: 6px solid #0A0A0A; }
.case-stap__beeld--groen { background: #D6F2E3; }
.case-stap__beeld--blauw { background: #DCE8FA; }
.case-stap__beeld--zand { background: #EFE7DA; }
.case-stap__beeld--lila { background: #E6DEFA; }
.case-drie { list-style: none !important; padding: 0 !important; margin: 28px 0 0 !important; display: grid !important; gap: 0 !important; }
.case-drie li { padding: 14px 0; border-top: 1px solid rgba(10,10,10,.1); font-size: 16px !important; color: #3D3D3A; }
.case-drie b { display: block; color: #0A0A0A; font-weight: 700; margin-bottom: 2px; }

/* resultaat: donker blok */
.case-resultaat { width: var(--breed); margin: clamp(90px, 12vw, 160px) auto 0; padding: clamp(40px, 6vw, 80px); border-radius: 28px; background: #0A0A0A; }
.case-resultaat h2 { color: #F2F1EC; }
.case-resultaat ul { list-style: none !important; padding: 0 !important; margin: 40px 0 0 !important; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0 !important; }
.case-resultaat li { padding: 22px 26px 22px 0; border-top: 1px solid rgba(242,241,236,.16); color: rgba(242,241,236,.7) !important; font-size: 16px !important; }
.case-resultaat li b { display: block; color: #F2F1EC; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.case-tech { margin-top: 36px !important; font-size: 14.5px !important; color: rgba(242,241,236,.5) !important; }

/* afsluiter */
.case-cta { width: var(--breed); margin: 0 auto; padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); text-align: center; }
.case-cta h2 { font-size: clamp(2.4rem, 7vw, 5.4rem); }
.case-cta p { max-width: 560px; margin: 0 auto 32px !important; }
.case-cta .knop { background: #0A0A0A; color: #fff !important; }
.case-cta .knop:hover { background: #2A2A28; }

@media (max-width: 860px) {
  .case-stap, .case-stap--om { grid-template-columns: 1fr; }
  .case-stap--om .case-stap__tekst { order: 0; }
  .case-stap__beeld { min-height: 0; }
  .case-resultaat ul { grid-template-columns: 1fr; }
  .case-feiten div { font-size: 13.5px; padding: 8px 14px; }
  .case-podium { border-radius: 20px; }
}

/* ————— beweging ————— */
.case-hero h1 { overflow: hidden; padding: .04em 0; }
.case-hero h1 span { display: inline-block; }
.case-beweegt .case-hero h1 span { animation: case-op 1.1s var(--ease) both; }
.case-beweegt .case-lead, .case-beweegt .case-feiten, .case-beweegt .case-terug { animation: case-in .9s var(--ease) both; }
.case-beweegt .case-lead { animation-delay: .25s; } .case-beweegt .case-feiten { animation-delay: .38s; }
@keyframes case-op { from { transform: translateY(105%); } }
@keyframes case-in { from { opacity: 0; transform: translateY(16px); } }

/* hoofdbeeld kantelt rechtop tijdens scrollen */
.case-podium { --p: 1; perspective: 1800px; }
.case-beweegt .case-podium { --p: 0; }
.case-podium__scherm { transform: rotateX(calc(16deg * (1 - var(--p)))) scale(calc(.92 + .08 * var(--p))); transform-origin: 50% 100%; will-change: transform; }
.case-podium__tel { transform: translateY(calc(120px * (1 - var(--p)))) rotate(calc(-9deg * (1 - var(--p)))); will-change: transform; }

/* onthullen */
.case-beweegt .case-onthul { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform 1s var(--ease); }
.case-beweegt .case-onthul.is-zicht { opacity: 1; transform: none; }
.case-beweegt .case-drie li:nth-child(2), .case-beweegt .case-resultaat li:nth-child(2) { transition-delay: .1s; }
.case-beweegt .case-drie li:nth-child(3), .case-beweegt .case-resultaat li:nth-child(3) { transition-delay: .2s; }
.case-stap__beeld { overflow: hidden; }
.case-stap__beeld > img { transform: translateY(var(--y, 0px)); transition: transform .2s linear; }

/* live WhatsApp-gesprek */
.wa { width: min(320px, 86%); height: 560px; border-radius: 40px; border: 8px solid #0A0A0A; background: #EFE8DF; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 80px -36px rgba(20,20,40,.55); font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; }
.wa-kop { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: #F7F5F2; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 15px; }
.wa-logo { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1B4B38; color: #CFF27A; font-weight: 800; font-size: 15px; }
.wa-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; overflow: hidden; }
.wa-datum { align-self: center; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.85); font-size: 11.5px; color: #555; margin-bottom: auto; }
.wa-b { max-width: 82%; padding: 8px 10px 6px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-b small { display: block; text-align: right; font-size: 10.5px; color: #8A8A86; margin-top: 2px; }
.wa-in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.wa-uit { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.wa-foto { padding: 4px; } .wa-foto img { display: block; width: 150px; height: auto; border-radius: 9px; }
.wa-typt { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 12px; border-top-left-radius: 4px; background: #fff; }
.wa-typt i { width: 7px; height: 7px; border-radius: 50%; background: #9A9A96; animation: wa-dot 1s infinite ease-in-out; }
.wa-typt i:nth-child(2) { animation-delay: .15s; } .wa-typt i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.case-beweegt [data-wa-stap], .case-beweegt .wa-typt { display: none; }
.case-beweegt [data-wa-stap].is-zicht, .case-beweegt .wa-typt.is-zicht { display: flex; flex-direction: column; animation: wa-in .45s var(--ease) both; }
.case-beweegt .wa-typt.is-zicht { flex-direction: row; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.case-rustig .wa-typt { display: none; }
@media (max-width: 860px) { .wa { height: 520px; } }
