/* 404 page: full viewport hero and centered content */
.err404 .hero { 
  min-height: calc(100dvh - var(--header-h, 64px));
  display: flex; align-items: center;
  padding-top: clamp(20px, 5vw, 60px);
  padding-bottom: clamp(20px, 5vw, 60px);
}
.err404 .hero .container { align-items: center; }
/* Keep orbs visible but non-blocking on 404 */
.err404 .hero-visual { position: relative; pointer-events: none; }
/* Hide scroll indicator on 404 since section fills viewport */
.err404 .scroll-indicator { display: none !important; }

@media (max-width: 940px) {
  .err404 .hero { padding-top: 14px; padding-bottom: 14px; }
  .err404 .hero .container { grid-template-columns: 1fr; }
  .err404 .hero-copy { order: 1; }
  .err404 .hero-visual { order: 2; margin-top: 12px; }
  .err404 .actions { flex-wrap: wrap; gap: 10px; }
}

@media (min-width: 941px) and (max-width: 1200px) {
  .err404 .hero .container { align-items: center; }
}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap');
/* THEO Bedrijfsovernamefonds – styles */
:root {
  /* Light theme (default) */
  --bg: #FCF8F3;
  --bg-alt: #F4EEE7;
  --card: #FFFFFF;
  --elev: rgba(0, 0, 0, 0.04);
  --text: #1D2235;
  --muted: rgba(29, 34, 53, 0.72);
  --primary: #F28E00; /* orange */
  --primary-2: #E4C39B; /* sand */
  --accent: #E4C39B;
  --danger: #ff6b6b;
  --gradient: linear-gradient(120deg, var(--primary), var(--accent));
  --radius: 14px;
  --shadow: 0 8px 22px rgba(0,0,0,0.15);
  --header-bg: rgba(255,255,255,0.7);
  --header-border: rgba(0,0,0,0.06);
  --panel-bg: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
  --panel-border: rgba(0,0,0,0.08);
  --ghost-hover: rgba(0,0,0,0.06);
  --outline-bg: rgba(0,0,0,0.02);
  --outline-border: rgba(0,0,0,0.18);
  --mobile-nav-bg: rgba(255,255,255,0.95);
  --section-space: clamp(28px, 4.8vw, 56px);
  /* Extra veilige marge boven eerste hero zodat visuals niet tegen header aan komen */
  --header-clear: 12px;
}

/* Tablet en desktop: extra clearance groter maken */
@media (min-width: 640px) {
  :root { --header-clear: 50px; }
}

html[data-theme="dark"] {
  /* Dark theme overrides */
  --bg: #1D2235;
  --bg-alt: #1A2030;
  --card: #242a40;
  --elev: rgba(252, 248, 243, 0.06);
  --text: #FCF8F3;
  --muted: rgba(252, 248, 243, 0.72);
  --primary: #F28E00;
  --primary-2: #E4C39B;
  --accent: #E4C39B;
  --danger: #ff6b6b;
  --gradient: linear-gradient(120deg, var(--primary), var(--accent));
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --header-bg: rgba(29,34,53,0.6);
  --header-border: rgba(255,255,255,0.06);
  --panel-bg: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  --panel-border: rgba(255,255,255,0.08);
  --ghost-hover: rgba(255,255,255,0.06);
  --outline-bg: rgba(255,255,255,0.03);
  --outline-border: rgba(255,255,255,0.25);
  --mobile-nav-bg: rgba(29,34,53,0.9);
}

/* Ensure background flows seamlessly in dark mode under hero and between sections */
/* Sections remain transparent so the body background flows seamlessly */
/* (dark-mode hero background is softened below to avoid a visible seam) */

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: radial-gradient(1600px 1100px at 10% -10%, rgba(242, 142, 0, 0.08), transparent 60%),
              radial-gradient(1800px 1200px at 120% 10%, rgba(228, 195, 155, 0.10), transparent 60%),
              radial-gradient(1400px 1000px at 50% 120%, rgba(252, 248, 243, 0.06), transparent 70%),
              var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Prevent accidental horizontal scroll on mobile (iOS 100vw quirks, etc.) */
html, body { overflow-x: hidden; }

/* Subtle animation for images site-wide */
img:not(.no-anim) {
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
  transform-origin: center center;
  will-change: transform;
}
img:not(.no-anim):hover,
img:not(.no-anim):focus-visible {
  transform: translateZ(0) scale(1.02);
}
/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  img:not(.no-anim) { transition: none; }
}

/* Links */
/* Improve contrast/readability of links in dark mode */
html[data-theme="dark"] a { color: #fff; text-decoration: underline; }
/* Buttons and navigation should not be underlined */
html[data-theme="dark"] a.btn { text-decoration: none; }
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .footer-nav a { text-decoration: none; }

/* Containers */
.container {
  width: min(1280px, 92%);
  margin: 0 auto;
}
.container.narrow { width: min(980px, 92%); }
.grid {
  display: grid;
  gap: 28px;
}
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

/* Typography */
.display {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  padding-bottom: 2px; /* voorkom clipping van staarten (zoals 'g') */
}
.h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
}
/* Center section headings */
.section .h2 { text-align: center; margin-bottom: clamp(18px, 3vw, 28px); }
.lead { font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); }
.muted { color: var(--muted); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
html.scrolled .site-header { background: var(--header-bg); border-bottom-color: var(--header-border); backdrop-filter: blur(12px); }
.nav-wrap { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 14px 0; }
.logo { display: grid; grid-template-columns: auto auto; gap: 6px; text-decoration: none; align-items: end; color: var(--text); }
.logo .logo-mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--gradient); font-weight: 800; }
.logo .logo-type { font-weight: 800; letter-spacing: 0.08em; }
.logo .logo-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); letter-spacing: 0.03em; margin-top: -2px; }
/* Image logo variants */
.logo-img { height: 28px; width: auto; display: block; }
.logo-img-light { display: none; }
[data-theme="dark"] .logo-img-dark { display: none; }
[data-theme="dark"] .logo-img-light { display: block; }

.main-nav { position: relative; }
.main-nav ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
.main-nav a { color: var(--text); text-decoration: none; opacity: 0.9; }
.main-nav a:hover { opacity: 1; }
.nav-cta .btn { white-space: nowrap; }
/* Hide the theme toggle inside dropdown by default (desktop only) */
.mobile-theme { display: none; }
/* Hidden by default; becomes visible in mobile menu */
.mobile-cta { display: none; }

/* Mobile nav */
.nav-toggle { background: transparent; border: 0; display: none; padding: 6px; }
/* Hamburger icon (3 bars) with X animation */
.nav-toggle { width: 32px; height: 28px; position: relative; }
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: transform .25s ease, opacity .2s ease, background-color .2s ease; transform-origin: 50% 50%; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translate(-1px, 5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translate(-1px, -5px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background .3s ease, color .3s ease; }
.btn-primary { color: #1D2235; background: var(--gradient); box-shadow: 0 8px 24px rgba(242, 142, 0, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(242, 142, 0, 0.35); }
.btn-ghost { color: var(--text); border: 1px solid var(--panel-border); background: transparent; }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-outline { color: var(--text); border: 1px solid var(--outline-border); background: var(--outline-bg); }
.btn-outline:hover { border-color: color-mix(in oklab, var(--outline-border), currentColor 40%); }

/* CTA flare sweep on hover for primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden; /* contain the flare */
  isolation: isolate; /* ensure proper blending */
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 60%;
  height: 220%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.75), rgba(255,255,255,0.25) 35%, rgba(255,255,255,0) 60%);
  filter: blur(2px);
  transform: translateX(-140%) rotate(18deg);
  transition: transform .7s ease, opacity .3s ease;
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}
.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  transform: translateX(220%) rotate(18deg);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { transition: none; opacity: 0; }
}

/* Theme toggle button */
.theme-toggle { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--panel-border); background: transparent; color: var(--text); display: inline-grid; place-items: center; cursor: pointer; margin-left: 10px; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.theme-toggle:hover { background: var(--ghost-hover); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* Sections */
.section { padding: var(--section-space) 0; position: relative; }
/* Ensure anchored sections aren’t hidden behind sticky header */
.section[id] { scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
  .section > .container > :first-child { margin-top: 0; }
  .section > .container > :last-child { margin-bottom: 0; }
  .section.alt { background: transparent; }

/* Roadmap (Ons proces) */
.roadmap-intro { max-width: 860px; margin: 0 auto var(--section-space); text-align: center; }
.roadmap-intro .lead { margin-bottom: 10px; }

.intro-wide { max-width: 1100px; margin: 0 auto var(--section-space); text-align: center; }
.intro-wide .h2 { margin-bottom: 10px; }
/* Two-column lead text on desktop for long intros */
.lead-columns { column-count: 2; column-gap: 28px; text-align: left; max-width: 100%; margin: 0 auto; }
.lead-columns p { break-inside: avoid; margin: 0 0 12px; }

@media (max-width: 860px) {
  .lead-columns { column-count: 1; }
}

/* Decorative bunting (animated flags) */
.intro-wide { position: relative; }
.decor-bunting { display: flex; justify-content: center; margin: 0 auto 8px; pointer-events: none; }
.decor-bunting svg { width: min(560px, 95%); height: auto; overflow: visible; }
.decor-bunting .flag { 
  transform-origin: top center; 
  /* Independent motion via CSS vars */
  --dur: 3.6s; /* duration */
  --delay: 0s; /* delay */
  --amp: 2px; /* vertical bob */
  --rot: 3deg; /* max rotation */
  animation: swayVar var(--dur) ease-in-out infinite var(--delay);
}
@keyframes swayVar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(var(--amp)) rotate(var(--rot)); }
}

/* Card microinteraction */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.18), var(--shadow); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .decor-bunting .flag { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
}

.roadmap { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
/* Center timeline - solid, always visible */
.roadmap::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--outline-border); opacity: 0.6; pointer-events: none; z-index: 0; }

.roadmap-step { position: relative; display: grid; align-items: stretch; }
.roadmap-step .step-card { position: relative; z-index: 1; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 18px 18px 18px 54px; box-shadow: var(--shadow); transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease, background .26s ease; }
.roadmap-step .step-card h3 { margin: 0 0 6px; }
.roadmap-step .step-card p { margin: 0; color: var(--muted); }
.roadmap-step .step-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Step index badge */
.roadmap-step .step-index { position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; color: var(--text); background: rgba(242,142,0,0.16); border: 1px solid rgba(242,142,0,0.35); box-shadow: 0 2px 10px rgba(0,0,0,0.08); z-index: 3; }

/* Connector dot on timeline */
.roadmap-step::before { content: ""; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent); z-index: 2; }

/* Alternate alignment on larger screens */
@media (min-width: 941px) {
  .roadmap { gap: 28px; }
  .roadmap-step { grid-template-columns: 1fr 1fr; }
  .roadmap-step:nth-child(odd) .step-card { grid-column: 1 / 2; justify-self: end; margin-right: 32px; }
  .roadmap-step:nth-child(even) .step-card { grid-column: 2 / 3; justify-self: start; margin-left: 32px; padding-left: 18px; padding-right: 54px; }
  /* Move index badge to the outer side on even rows */
  .roadmap-step:nth-child(even) .step-index { left: auto; right: 14px; }
}

/* Mobile/tablet: single column, line on the left for clarity */
@media (max-width: 940px) {
  .roadmap::before { left: 18px; transform: none; opacity: .4; width: 3px; }
  /* Center the connector dot vertically per step while keeping number badge position */
  .roadmap-step::before { left: 18px; top: 50%; transform: translate(-50%, -50%); }
  .roadmap-step .step-card { padding-left: 54px; }
  /* Over THEO: on mobile, place images inline between paragraph and quote */
  .about-block > .about-media { display: none; }
  .about-block .about-copy .about-media.inline-mobile { display: block; margin: 12px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
  .about-block .about-copy .about-media.inline-mobile img { width: 100%; height: auto; display: block; }
}

/* Hover and focus effects */
.roadmap-step .step-card:hover, .roadmap-step .step-card:focus-within { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 40%, var(--panel-border)); box-shadow: 0 14px 28px rgba(0,0,0,0.18); }
.roadmap-step .step-card:hover .step-index { background: rgba(242,142,0,0.24); }

/* Staggered reveal delays for steps */
.roadmap-step.reveal:nth-child(1) { transition-delay: .02s; }
.roadmap-step.reveal:nth-child(2) { transition-delay: .08s; }
.roadmap-step.reveal:nth-child(3) { transition-delay: .14s; }
.roadmap-step.reveal:nth-child(4) { transition-delay: .20s; }
.roadmap-step.reveal:nth-child(5) { transition-delay: .26s; }
.roadmap-step.reveal:nth-child(6) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .roadmap-step .step-card { transition: none; }
  .roadmap-step .step-card:hover { transform: none; }
}

/* Roadmap grid (Vakantie) – zigzag cards with connector arrows */
.roadmap-grid-wrap { position: relative; margin: 0 auto; max-width: 1100px; }
.roadmap-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 44px 72px; 
  position: relative; 
  z-index: 1; 
  grid-auto-flow: dense;
  align-items: stretch;
}
/* Targeted vertical space between rows using dedicated spacer items */
.roadmap-spacer { height: 36px; }
.roadmap-card { 
  background: var(--panel-bg); 
  border: 1px solid var(--panel-border); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease, background .26s ease; 
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 92%; /* leave room for arrow gutters */
}
.roadmap-grid > .roadmap-card[style*="grid-column:1"] { justify-self: start; }
.roadmap-grid > .roadmap-card[style*="grid-column:2"] { justify-self: end; }
.roadmap-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,0.18); border-color: color-mix(in oklab, var(--panel-border) 40%, var(--primary) 60%); }

/* SVG underlay for arrows (covers the grid area) */
.roadmap-svg { 
  position: absolute; inset: 0; width: 100%; height: 100%; 
  z-index: 0; pointer-events: none; overflow: visible; 
}
.roadmap-svg defs marker path { fill: currentColor; }
.roadmap-svg .arrow-path { 
  stroke: color-mix(in oklab, var(--text) 80%, var(--primary) 20%);
  stroke-width: 1.8; 
  fill: none; 
  marker-end: url(#arrowHead);
  stroke-linecap: round; 
  stroke-linejoin: round; 
  vector-effect: non-scaling-stroke; 
  opacity: .9;
}
/* Animated draw-in */
.roadmap-svg .arrow-path.is-anim { 
  stroke-dasharray: 3 6; 
  animation: dashFlow 2.0s ease-in-out infinite; 
}
@keyframes dashFlow { to { stroke-dashoffset: -16; } }

/* Mobile: stack cards, hide decorative SVG arrows for clarity */
@media (max-width: 720px) {
  .roadmap-grid { grid-template-columns: 1fr; gap: 16px; grid-auto-flow: row; }
  .roadmap-grid .roadmap-card { grid-column: 1 !important; grid-row: auto !important; width: 100%; }
  .roadmap-grid .roadmap-spacer { display: none !important; }
  .roadmap-svg { display: none; }
}

/* Over THEO – About blocks */
.about-block { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: center; margin-bottom: var(--section-space); }
.about-block.reverse { grid-template-columns: 0.95fr 1.05fr; }
.about-block.reverse .about-media { order: 2; }
.about-block.reverse .about-copy { order: 1; }
/* Over THEO: left-align the second article heading */
.about-block.reverse .about-copy .h2 { text-align: left; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.15; }
/* Default: inline mobile figure hidden on desktop */
.about-block .about-media.inline-mobile { display: none; }

/* Utilities */
.mb-plus { margin-bottom: calc(var(--section-space) * 1.5); }
/* Over THEO specific spacing boost between the two about-blocks */
#content .about-block.mb-plus { margin-bottom: calc(var(--section-space) * 2); }

.about-media { margin: 0; position: relative; justify-self: center; }
.about-media img { display: block; width: 100%; height: auto; max-width: 520px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-alt); transition: transform .24s ease, box-shadow .24s ease; }
.about-block.reverse .about-media img { max-width: 460px; }
/* Make the Sebastiaan (reverse block) image and its container smaller on large screens */
.about-block.reverse .about-media { max-width: 400px; }
.about-block.reverse .about-media img { max-width: 380px; }
/* Specific size for Sebastiaan photo */
.sebastiaan-photo { max-width: 360px !important; width: 100%; height: auto; margin: 0 auto; display: block; }

.about-copy { display: grid; gap: 12px; }
.about-copy .actions { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }

.quote { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--outline-bg); color: var(--text); border-radius: 8px; font-style: italic; }

@media (max-width: 940px) {
  .about-block,
  .about-block.reverse { grid-template-columns: 1fr; }
  .about-block.reverse .about-media,
  .about-block.reverse .about-copy { order: initial; }
}

/* Subtle hover/focus animation for about images */
  .about-media:hover img,
  .about-media:focus-within img { transform: translateY(-2px) scale(1.015); box-shadow: 0 10px 22px rgba(0,0,0,0.12); }

@media (prefers-reduced-motion: reduce) {
  .about-media img { transition: none; }
  .about-media:hover img,
  .about-media:focus-within img { transform: none; }
}

/* Opleider page: tighten space between hero image and first CTA on mobile */
@media (max-width: 940px) {
  body.opleider .hero { padding-bottom: 12px; }
  body.opleider .hero-visual { min-height: 300px; }
  /* Reduce top padding of the following section to pull CTA up a bit */
  body.opleider #intro.section { padding-top: 12px; }
}

/* Focus – structured criteria */
.focus-intro { max-width: 860px; margin: 0 auto 28px; font-size: 1.08rem; color: var(--text); }
.criteria-intro { text-align: center; color: var(--muted); font-weight: 700; margin: 6px 0 16px; }
/* Focus page: tighter space between H2 and intro */
.focus-section .h2 { margin-bottom: 8px !important; }
.focus-section .criteria-intro { margin-top: 2px; }

.criteria-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.criteria-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: 44px 1fr; gap: 10px 14px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; position: relative; overflow: hidden; align-content: start; height: 100%; }
.criteria-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); border-color: color-mix(in oklab, var(--panel-border) 60%, var(--primary) 40%); }
.criteria-card.wide { grid-column: auto; }

.criteria-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--primary); background: rgba(242,142,0,0.12); border: 1px solid rgba(242,142,0,0.28); box-shadow: 0 2px 8px rgba(0,0,0,0.06); grid-column: 1; grid-row: 1; align-self: start; }
.criteria-card .icon svg { display: block; }
.criteria-card h3 { margin: 0; font-size: 1.08rem; align-self: start; grid-column: 2; grid-row: 1; }
.criteria-card p { margin: 0; color: var(--muted); grid-column: 1 / -1; align-self: start; }
.criteria-card ul { margin: 4px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); grid-column: 1 / -1; align-self: start; }
.criteria-card ul li { position: relative; padding-left: 20px; }
.criteria-card ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--primary); opacity: .9; box-shadow: 0 0 0 3px rgba(242,142,0,0.12); }

@media (max-width: 1100px) {
  .criteria-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .criteria-grid { grid-template-columns: 1fr; }
}

/* Casussen – premium case cards */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; align-items: stretch; }
.case-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: calc(var(--radius) + 8px); background:
  linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) ,
  color-mix(in oklab, var(--panel-bg) 85%, transparent 15%);
 border: 1px solid color-mix(in oklab, var(--panel-border) 50%, rgba(255,255,255,0.35) 50%);
 box-shadow: 0 10px 28px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.10);
 transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
 overflow: hidden;
 backdrop-filter: blur(14px) saturate(120%);
 -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.case-card.clickable { cursor: pointer; }
.case-card .stretched-link { position: absolute; inset: 0; z-index: 1; text-indent: -9999px; }
.case-card .case-actions { position: relative; z-index: 2; }
.case-card.clickable:focus-within { outline: 2px solid color-mix(in oklab, var(--primary) 80%, white 20%); outline-offset: 2px; }
.case-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(1200px 280px at -10% -10%, rgba(242,142,0,0.08), transparent 45%),
  radial-gradient(900px 220px at 110% -10%, rgba(228,195,155,0.08), transparent 50%);
 opacity: 0.9; }
.case-card::after { content: ""; position: absolute; left: -30%; right: -30%; top: -40px; height: 120px; transform: rotate(4deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.04));
  filter: blur(6px); opacity: 0.25; pointer-events: none; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); border-color: color-mix(in oklab, var(--panel-border) 20%, var(--primary) 80%); }

/* Case media (stock photo) */
.case-media { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; aspect-ratio: 16 / 9; background: #0e0f14; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); }
.case-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(110%) contrast(102%); }
.case-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.00) 30%, rgba(0,0,0,0.08) 100%),
  linear-gradient(120deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
 mix-blend-mode: screen; pointer-events: none; }

.case-name { font-size: 1.15rem; margin: 0 0 2px; color: var(--text-strong, var(--text)); font-weight: 700; letter-spacing: 0.2px; }
.case-tagline { margin: 0 0 8px; color: color-mix(in oklab, var(--text) 70%, var(--primary) 30%); font-weight: 700; }
.blog-date { margin: -2px 0 8px; font-size: .92rem; color: var(--muted); }
.case-desc { margin: 0 0 14px; color: var(--text); line-height: 1.55; }
.case-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.case-actions .btn { min-width: 0; }

/* Blog detail image containment */
.blog-article { overflow: hidden; }
.blog-figure { margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; }
.blog-figure img { width: 100%; height: auto; display: block; max-width: 100%; }
/* Disable global hover scale for blog main image to avoid overflow */
.blog-figure img,
.blog-figure img:hover,
.blog-figure img:focus-visible { transform: none !important; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--panel-border); border-radius: 999px; background: var(--panel-bg); color: var(--text); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); transition: background .2s ease, border-color .2s ease, color .2s ease; }
.page-link:hover { border-color: color-mix(in oklab, var(--panel-border) 30%, var(--primary) 70%); color: var(--text); }
.page-link.is-current { background: var(--gradient); color: #07141c; border-color: transparent; }
.page-link.is-disabled { opacity: .5; pointer-events: none; }
.page-ellipsis { display: inline-flex; align-items: center; padding: 0 6px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .case-card { transition: none; }
  .case-card:hover { transform: none; }
}

@media (max-width: 1024px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-bottom: var(--section-space); padding-top: clamp(20px, 5vw, 60px); }
.hero .hero-bg { position: absolute; inset: -6%; background: radial-gradient(1000px 600px at 10% 10%, rgba(242,142,0,0.18), transparent 50%), radial-gradient(1000px 600px at 90% 20%, rgba(228,195,155,0.14), transparent 50%), radial-gradient(900px 500px at 50% 110%, rgba(252,248,243,0.08), transparent 60%); filter: blur(20px); animation: floatBg 16s ease-in-out infinite; }
/* Soften hero background in dark mode to match page background better */
/* Dark mode: let the body background show through, remove hero overlay to avoid any color seam */
html[data-theme="dark"] .hero .hero-bg { display: none; }
.hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; min-height: calc(100vh - (var(--header-h, 64px) + clamp(20px, 5vw, 60px) + var(--section-space))); min-height: calc(100svh - (var(--header-h, 64px) + clamp(20px, 5vw, 60px) + var(--section-space))); }
/* Full-height hero on all pages; homepage keeps column tweak on desktop only */
@media (min-width: 941px) {
  .home .hero .hero-grid { grid-template-columns: 1fr 1fr; }
}
/* Make non-home heroes shorter (start content earlier) */
body:not(.home) .hero .hero-grid {
  min-height: auto; /* remove full-viewport constraint */
}
/* Hide scroll indicator outside the homepage */
body:not(.home) .scroll-indicator { display: none !important; }
/* Tighter top spacing on Casussen and Blog, keep a little bottom padding so bg can fade */
body.casussen .hero, body.blog .hero, body.casus .hero {
  padding-top: clamp(6px, 2.5vw, 28px);
  padding-bottom: clamp(8px, 2vw, 20px);
}
/* Allow the hero background to extend beyond its bounds on Casussen */
body.casussen .hero { overflow: visible; }
body.casussen #content.section, body.blog #content.section, body.casus #content.section {
  padding-top: 12px;
}
/* Casussen: continue a soft hero-like background into the next section to avoid a seam */
body.casussen #content.section { position: relative; }
body.casussen #content.section::before {
  content: ""; position: absolute; left: 0; right: 0; top: -80px; height: 120px;
  background: radial-gradient(1000px 520px at 12% 0%, rgba(242,142,0,0.14), transparent 62%),
              radial-gradient(1000px 520px at 88% 0%, rgba(228,195,155,0.12), transparent 62%);
  filter: blur(18px); pointer-events: none; z-index: 0;
}
body.casussen #content.section > .container { position: relative; z-index: 1; }
  .actions { display: flex; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
  /* Highlights under CTA */
  .hero-highlights { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  .hero-highlights .mini-card { 
    animation: none; 
    background: var(--outline-bg); 
    border: 1px solid var(--panel-border); 
    backdrop-filter: none; 
  }
/* Laat de hero-achtergrond doorlopen achter de header (alleen homepage) */
.home main > .hero:first-child {
  margin-top: calc(-1 * var(--header-h, 64px));
  padding-top: calc(var(--header-h, 64px) + clamp(20px, 5vw, 60px) + var(--header-clear));
}
/* Op overige pagina's loopt de hero-achtergrond ook onder de header door, tekst blijft onder header */
body:not(.home) main > .hero:first-child {
  margin-top: calc(-1 * var(--header-h, 64px));
  padding-top: calc(var(--header-h, 64px) + clamp(20px, 5vw, 60px) + var(--header-clear));
}
.trust-points { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; color: var(--muted); }

/* Visual orbs/cards */
.hero-visual { position: relative; min-height: 420px; }
/* Homepage-specific: visual fills right column; image spans full column width */
.home .hero-visual { min-height: 0; display: block; }
  .orb { position: absolute; border-radius: 999px; filter: blur(6px); opacity: 0.8; will-change: transform; }
  .orb-1 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #F28E00, transparent 60%); top: 10%; left: 10%; animation: floatOrb1 14s ease-in-out infinite; animation-delay: 0s; }
  .orb-2 { width: 160px; height: 160px; background: radial-gradient(circle at 30% 30%, #E4C39B, transparent 60%); bottom: 12%; right: 8%; animation: floatOrb2 16s ease-in-out infinite; animation-delay: 0.8s; }
  /* Middle orb color aligned to brand */
  .orb-3 { width: 120px; height: 120px; background: radial-gradient(circle at 30% 30%, #1D2235, transparent 60%); top: 40%; right: 30%; animation: floatOrb3 18s ease-in-out infinite; animation-delay: 1.6s; }
.cards { position: absolute; inset: 0; display: grid; place-items: center; }
.mini-card { background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(10px); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); color: var(--text); margin: 8px; transform: translateY(0); animation: floatCard 6s ease-in-out infinite; }
.mini-card .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(242,142,0,0.2); border: 1px solid rgba(242,142,0,0.4); margin-bottom: 6px; }
.mini-card:nth-child(2) { animation-delay: .8s; }
.mini-card:nth-child(3) { animation-delay: 1.6s; }

/* Cards & lists */
.card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card.list ul { margin: 10px 0 0; padding-left: 18px; }
/* Photo cards */
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { display: block; width: 100%; height: auto; }
.photo-card figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); }

/* Casus detail layout */
.case-detail-grid { grid-template-columns: 7fr 3fr; gap: 24px; align-items: start; }
@media (max-width: 941px) { .case-detail-grid { grid-template-columns: 1fr; } }
.aside-stack { display: flex; flex-direction: column; gap: 16px; align-items: stretch; position: sticky; top: 96px; }
.aside-stack > * { width: 100%; }
.aside-stack figure { margin: 0; }
@media (max-width: 941px) { .aside-stack { position: static; } }

/* Media card (edge-to-edge image inside a card) */
.card.card-media { padding: 0; overflow: hidden; }
.card.card-media img { display: block; width: 100%; height: auto; }
.card.card-media figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); text-align: center; font-style: italic; font-weight: 600; }

/* Centered, emphasized caption for inline photo figures */
.photo-card figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); text-align: center; font-style: italic; font-weight: 600; }

/* Highlighted card (accent) */
.card.card-highlight {
  background: linear-gradient(180deg, color-mix(in oklab, #F28E00 10%, var(--panel-bg) 90%), var(--panel-bg));
  border-color: color-mix(in oklab, var(--panel-border) 35%, #F28E00 65%);
  box-shadow: 0 8px 24px rgba(242,142,0,0.22), var(--shadow);
}
.card.card-highlight h3 { color: color-mix(in oklab, var(--text) 70%, #F28E00 30%); }
.card.card-highlight ul { margin: 10px 0 0; padding-left: 18px; }

/* Casussen: white background behind case logos */
.case-card.case-ffai .case-media,
.case-card.case-wft .case-media,
.case-card.case-snei .case-media,
.case-card.case-snelsubsidie .case-media,
.case-card.case-tiptop .case-media {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.case-card.case-ffai .case-media img,
.case-card.case-wft .case-media img,
.case-card.case-snei .case-media img,
.case-card.case-snelsubsidie .case-media img,
.case-card.case-tiptop .case-media img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

/* Team photo in hero */
.team-photo { 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  background: radial-gradient(800px 500px at 10% 10%, rgba(242,142,0,0.15), transparent 60%),
              radial-gradient(700px 400px at 90% 20%, rgba(228,195,155,0.12), transparent 60%),
              var(--bg-alt);
  aspect-ratio: auto; 
  margin: 0 auto;
  width: 100%;
  max-width: clamp(280px, 48vw, 520px);
}
.team-photo img { width: 100%; height: auto; object-fit: contain; display: block; }
/* Homepage: foto 100% van de kolombreedte */
.home .team-photo { width: 100%; max-width: none; }
/* Optional smaller variant for specific pages (e.g., vakantie) */
.team-photo--smaller { 
  max-width: clamp(220px, 36vw, 420px);
  aspect-ratio: 1 / 1;           /* force a square to allow perfect circle */
  border-radius: 50%;            /* make the container circular */
  overflow: hidden;              /* crop image to circle */
}
.team-photo--smaller img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* fill the circle nicely */
}

/* Mobile: hero image with rounded corners and reduced spacing */
@media (max-width: 720px) {
  .team-photo,
  .team-photo--smaller {
    border-radius: var(--radius);
  }
  .team-photo--smaller {
    aspect-ratio: auto;
    margin-bottom: 8px; /* reduce space under hero image */
    max-width: 92vw;   /* make the hero photo wider on phones */
    width: 100%;
  }
  /* Stretch hero visual column and image to full container width */
  .hero-grid .hero-visual { justify-self: stretch; }
  .hero-grid .hero-visual .team-photo,
  .hero-grid .hero-visual .team-photo--smaller { max-width: none; width: 100%; }
  .team-photo--smaller img {
    height: auto;
    object-fit: contain;
  }
  /* Hide end-of-page CTA on phones */
  #cta-end { display: none; }
  /* Center CTA in roadmap step 7 on phones */
  [data-step="7"] .actions { justify-content: center; width: 100%; }
  /* Tighten spacing between hero and next section */
  body:not(.home) .hero { padding-bottom: 8px !important; margin-bottom: 0 !important; }
  #denken.section { padding-top: 8px; margin-top: 0; }
}

/* Scroll indicator under hero */
.scroll-indicator { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: none; place-items: center; width: 40px; height: 60px; text-decoration: none; color: var(--text); opacity: 0.95; transition: opacity .35s ease; will-change: opacity; }
@media (min-width: 941px) { .scroll-indicator { display: inline-grid; } }
/* Hidden state controlled via JS */
.scroll-indicator.is-hidden { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { 
  .scroll-indicator .mouse, 
  .scroll-indicator .wheel { animation: none; }
}
.scroll-indicator .mouse { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 16px; position: relative; display: block; animation: mouseBob 1.6s ease-in-out infinite; }
.scroll-indicator .wheel { width: 3px; height: 8px; background: currentColor; border-radius: 999px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: wheelScroll 1.6s ease-in-out infinite; }
@keyframes mouseBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes wheelScroll { 0% { transform: translateX(-50%) translateY(0); opacity: .9; } 60% { transform: translateX(-50%) translateY(10px); opacity: 0; } 61% { transform: translateX(-50%) translateY(0); opacity: 0; } 100% { transform: translateX(-50%) translateY(0); opacity: .9; } }

  /* Steps */
  .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
  .steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: var(--radius); background: var(--panel-bg); border: 1px solid var(--panel-border); box-shadow: var(--shadow); }
  .step-index { width: 32px; height: 32px; border-radius: 8px; background: var(--gradient); color: #07141c; font-weight: 800; display: grid; place-items: center; }
  
  /* Pills */
  .pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: transparent; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .2px; }
  .pill::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: #F28E00; margin-right: 8px; display: inline-block; }
  
  /* 'Plezier drijft de ambitie' */
  #plezier .plezier-grid { display: grid; gap: 24px; align-items: stretch; }
  @media (min-width: 941px) { #plezier .plezier-grid { grid-template-columns: 1fr 1fr; } }
  #plezier .plezier-left { display: grid; gap: 12px; align-content: start; justify-items: stretch; }
  #plezier .plezier-media { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--panel-bg); border: 1px solid var(--panel-border); margin: 0; justify-self: stretch; }
  @media (min-width: 941px) { #plezier .plezier-media { aspect-ratio: 4 / 3; } }
  #plezier .plezier-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
  #plezier .plezier-stats { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  #plezier .stat-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 14px 16px; text-align: center; box-shadow: var(--shadow); }
  #plezier .stat-value { font-size: clamp(22px, 3.2vw, 28px); font-weight: 800; color: var(--text); line-height: 1; }
  #plezier .stat-label { margin-top: 4px; color: var(--muted); font-size: 14px; }
  #plezier .plezier-right p + p { margin-top: 10px; }
  /* Right column: make card fill full column height and left-align text */
  #plezier .plezier-right { align-self: stretch; display: grid; }
  #plezier .plezier-right .plezier-text { height: 100%; text-align: left; display: flex; flex-direction: column; }
  /* Extra padding to position text a bit lower and fill space */
  #plezier .plezier-right .plezier-text { padding: 20px 22px 28px; }
  #plezier .plezier-right .plezier-text .actions { margin-top: auto; }
  #plezier .plezier-right .plezier-text p { margin: 0 0 10px; }
  #plezier .plezier-right .plezier-text p:last-child { margin-bottom: 0; }
  
  /* FAQ as cards */
  #faq details { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
  #faq details + details { margin-top: 10px; }
  #faq summary { list-style: none; cursor: pointer; font-weight: 600; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  #faq summary::-webkit-details-marker { display: none; }
  #faq summary::after { content: '▾'; opacity: .7; transition: transform .2s ease; }
  #faq details[open] summary::after { transform: rotate(180deg); }
  #faq p { margin-top: 8px; }

  /* Contact: 'Vertrouwelijk kennismaken' */
  #contact .contact-grid { display: grid; gap: 24px; align-items: stretch; }
  @media (min-width: 941px) { #contact .contact-grid { grid-template-columns: 1fr 1fr; } }
  #contact .contact-media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--panel-bg); border: 1px solid var(--panel-border); margin: 0; }
  @media (min-width: 941px) { #contact .contact-media { aspect-ratio: auto; height: 100%; align-self: stretch; } }
  #contact .contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
  #contact .contact-right { align-self: stretch; display: grid; }
  #contact .contact-right .h2 { margin-bottom: 16px; }
  #contact > .container .h2 { text-align: center; margin-bottom: 20px; }
  #contact .contact-text { text-align: left; }
  #contact .contact-text p + p { margin-top: 10px; }
  #contact .contact-pane { text-align: left; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 28px; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow); }
  @media (min-width: 941px) { #contact .contact-pane { height: 100%; } }
  #contact .contact-info { text-align: left; }
  #contact .contact-info p { margin: 0; }
  #contact .contact-info p + p { margin-top: 6px; }
  #contact .actions { margin-top: auto; }

 

/* 'Onze aanpak' als roadmap/timeline – toepassen op alle pagina's */
#aanpak .steps { position: relative; margin-left: 8px; }
#aanpak .steps::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: var(--panel-border); }
#aanpak .steps li { background: transparent; border: 0; box-shadow: none; padding: 12px 12px 12px 60px; position: relative; }
#aanpak .steps li .step-index { position: absolute; left: 18px; top: 14px; width: 24px; height: 24px; border-radius: 999px; background: var(--gradient); color: #07141c; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); }
#aanpak .steps li::after { content: ''; position: absolute; left: 28px; top: 38px; bottom: -12px; width: 2px; background: var(--panel-border); }
#aanpak .steps li:last-child::after { display: none; }

/* Voor wie: media/text split met afbeelding */
#voor-wie .voorwie-grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 941px) { #voor-wie .voorwie-grid { grid-template-columns: 1.2fr 0.8fr; gap: 28px; } }
#voor-wie .voorwie-copy { display: grid; gap: 12px; }
#voor-wie .voorwie-media { margin: 0; position: relative; }
#voor-wie .voorwie-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
#voor-wie .voorwie-media::before { content: ''; position: absolute; inset: -8px -8px -12px -8px; border-radius: calc(var(--radius) + 10px); background: var(--outline-bg); z-index: -1; filter: blur(0.5px); }
#voor-wie figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Contact */
.contact .contact-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
  .contact .fineprint { color: var(--muted); font-size: 13px; }
  .contact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Footer */
.site-footer { padding: 22px 0 28px; border-top: 1px solid var(--header-border); background: var(--outline-bg); }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 14px 0; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-cta .btn { white-space: nowrap; }
.footer-bottom { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding-top: 12px; text-align: center; }
.logo.small .logo-mark { width: 26px; height: 26px; font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Keyframes */
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
@keyframes floatOrb1 {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  20%  { transform: translate3d(28px, -32px, 0) rotate(6deg) scale(1.05); }
  40%  { transform: translate3d(10px, -56px, 0) rotate(2deg) scale(1.07); }
  60%  { transform: translate3d(-26px, -34px, 0) rotate(-5deg) scale(1.04); }
  80%  { transform: translate3d(-16px, -48px, 0) rotate(-2deg) scale(1.06); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}
@keyframes floatOrb2 {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate3d(-30px, -26px, 0) rotate(-10deg) scale(1.04); }
  50%  { transform: translate3d(-10px, -54px, 0) rotate(-4deg) scale(1.06); }
  75%  { transform: translate3d(26px, -28px, 0) rotate(6deg) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}
@keyframes floatOrb3 {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  15%  { transform: translate3d(18px, -22px, 0) rotate(12deg) scale(1.02); }
  35%  { transform: translate3d(34px, -44px, 0) rotate(6deg) scale(1.05); }
  55%  { transform: translate3d(2px, -62px, 0) rotate(0deg) scale(1.08); }
  75%  { transform: translate3d(-30px, -36px, 0) rotate(-8deg) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}

/* Reduce motion for background orbs */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}
@keyframes floatCard { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes floatBg { 0%, 100% { transform: translateY(0) translateX(0) } 50% { transform: translateY(-12px) translateX(8px) } }

/* Utilities */
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 940px) {
  /* Mobile: use fixed header for reliability on iOS */
  .site-header { position: fixed; top: 0; left: 0; right: 0; }
  /* Exception: on homepage keep sticky so hero background flows under header naturally */
  .home .site-header { position: sticky; top: 0; }
  /* Ensure non-home content starts below fixed header */
  body:not(.home) main { padding-top: var(--header-h, 64px); }
  /* Homepage keeps hero flowing under header via existing negative margin/padding */
  .hero-grid { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .hero-highlights { justify-content: flex-start; }
  /* Improve left padding for mobile CTAs in roadmap step and contact section */
  .roadmap .btn, .roadmap .btn-primary { padding-left: 26px; padding-right: 22px; }
  #contact .actions .btn, #contact .actions .btn-primary { padding-left: 26px; padding-right: 22px; }
  /* Stronger shadow on mobile for case/blog cards for clearer separation */
  .case-card {
    box-shadow: 0 16px 44px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.10);
    border-color: color-mix(in oklab, var(--panel-border) 35%, rgba(255,255,255,0.45) 65%);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)) ,
      color-mix(in oklab, var(--panel-bg) 80%, transparent 20%);
  }
  /* Blog (mobile): allow hero bg to extend and add bridge into content section */
  body.blog .hero { overflow: visible; padding-bottom: clamp(8px, 2vw, 20px); }
  body.blog #content.section { position: relative; padding-top: 12px; }
  body.blog #content.section::before {
    content: ""; position: absolute; left: 0; right: 0; top: -80px; height: 120px;
    background: radial-gradient(1000px 520px at 12% 0%, rgba(242,142,0,0.14), transparent 62%),
                radial-gradient(1000px 520px at 88% 0%, rgba(228,195,155,0.12), transparent 62%);
    filter: blur(18px); pointer-events: none; z-index: 0;
  }
  body.blog #content.section > .container { position: relative; z-index: 1; }
  /* Ons Proces: only the 'Kennismaken?' contact section (no id on section) */
  .section.contact:not(#contact) .contact-actions .btn,
  .section.contact:not(#contact) .contact-actions .btn-primary {
    padding-left: 26px; padding-right: 22px;
  }
  /* Bring hero content higher (non-home only) */
  body:not(.home) .hero { padding-top: clamp(10px, 4vw, 22px); padding-bottom: 16px; }
  /* Stack context above visuals (non-home) */
  body:not(.home) .hero .container { position: relative; z-index: 1; }
  body:not(.home) .hero-copy { position: relative; z-index: 2; }
  /* Ensure all hero text/buttons sit above visuals (non-home) */
  body:not(.home) .hero .hero-copy *, body:not(.home) .hero .actions, body:not(.home) .hero .btn, body:not(.home) .hero .scroll-indicator { position: relative; z-index: 2; }
  /* Orb layout: only position when not a photo */
  body:not(.home) .hero-visual:not(.photo) { position: absolute; top: 56px; right: 6%; width: 52%; height: 200px; min-height: 0; z-index: 0; pointer-events: none; }
  /* Photo hero: behave like homepage when a team-photo is present, even without .photo marker (Safari supports :has) */
  body:not(.home) .hero-visual.photo,
  body:not(.home) .hero-visual:has(.team-photo) { position: static; width: 100%; height: auto; }
  body:not(.home) .orb-1 { width: 140px; height: 140px; top: 6%; left: auto; right: 10%; }
  body:not(.home) .orb-2 { width: 100px; height: 100px; bottom: 8%; left: auto; right: 4%; }
  body:not(.home) .orb-3 { width: 80px; height: 80px; top: 38%; left: auto; right: 22%; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-cta { justify-self: center; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 720px) {
  /* Fullscreen mobile nav overlay */
  .nav-toggle { display: inline-block; position: relative; z-index: 210; padding: 8px 16px; overflow: visible; }
  .main-nav { position: static; }
  .main-nav ul { 
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: fixed; inset: 0; width: 100%; height: 100dvh;
    background: var(--mobile-nav-bg);
    padding: 24px; border: 0; border-radius: 0;
    transform: translateX(-100%);
    transition: transform .32s ease;
    z-index: 200;
    pointer-events: none;
  }
  .main-nav[aria-expanded="true"] ul { transform: translateX(0); pointer-events: auto; }
  /* Highlight active page in mobile overlay when menu is open */
  .main-nav[aria-expanded="true"] a[aria-current="page"] {
    color: var(--primary);
    font-weight: 800;
    opacity: 1;
  }
  /* Optional subtle indicator dot for active item */
  .main-nav[aria-expanded="true"] a[aria-current="page"]::before {
    content: "•"; display: inline-block; margin-right: 8px; color: var(--primary);
  }
  /* Lock page scroll when nav open (html.nav-open toggled via JS) */
  html.nav-open { overflow: hidden; }

  /* Move theme toggle into overlay and align left */
  .nav-cta .theme-toggle { display: none; }
  .mobile-theme { display: block; width: 100%; }
  .mobile-theme .theme-toggle { margin-left: 0; align-self: flex-start; }
  /* Swap desktop CTA for mobile CTA inside the overlay */
  .nav-cta { display: none; }
  .mobile-cta { display: block; width: 100%; }
  .mobile-cta .btn { width: 100%; text-align: center; }
  /* Slightly reduce button padding to fit small viewports */
  .btn { padding: 10px 14px; }
}
