/* ==========================================================================
   DL Dakadvies – stijlen bovenop Bootstrap 5.3
   Ontwerp-canvas: 1680px breed. Alle maten zijn afgeleid uit Figma.
   ========================================================================== */

/* ---------- Fonts: DM Sans zelf gehost, Redonda via Adobe Fonts ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
/* Redonda wordt geladen via Adobe Fonts (Typekit-link in de <head> van elke pagina) */

/* ---------- Tokens ---------- */
:root {
  --dl-blue: #273066;
  --dl-red: #e41326;
  --dl-red-dark: #b90e1e;
  --dl-grey: #f5f6f8;
  --dl-cream: #f7f5f0;
  --dl-line: rgba(39, 48, 102, .2);
  --bs-link-color-rgb: 39, 48, 102;
  --bs-link-hover-color-rgb: 228, 19, 38;

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "redonda", "Arial Black", system-ui, sans-serif;

  --shell: 1540px;
  --inner: 1296px;
  --radius: 5px;
  --gap: clamp(1.5rem, 6vw, 100px);   /* zijmarge binnen de kaders: header en hero lijnen hiermee uit */
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--dl-blue);
  --bs-body-bg: #fff;
  --bs-link-color: var(--dl-blue);
  --bs-link-hover-color: var(--dl-red);
}

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--dl-blue);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { transition: color .25s ease; }
:focus-visible { outline: 3px solid var(--dl-red); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--dl-blue); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout helpers ---------- */
.shell { width: min(var(--shell), 100% - 2rem); margin-inline: auto; }
.inner { width: min(var(--inner), 100%); margin-inline: auto; padding-inline: 1rem; }

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: 1.1;
  color: var(--dl-blue);
  margin: 0;
}
h1.display-title { font-size: clamp(2rem, 1.1rem + 3.3vw, 3.75rem); line-height: 1; }
h2.display-title { font-size: clamp(1.65rem, 1rem + 2.4vw, 2.8125rem); line-height: 1.11; }

.rule { display: block; width: 70px; height: 4px; border-radius: 2px; margin: 1.6rem 0 2.1rem; }
.rule-red { background: var(--dl-red); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 20; background: #fff; }
.header-shell { border-bottom: 1px solid var(--dl-line); }
.header-inner {
  width: 100%; padding-inline: var(--gap);
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-block: 1.25rem 1.1rem;
}
@media (min-width: 992px) { .header-inner { padding-block: 46px 38px; } }

/* Logo opgebouwd uit 4 SVG's, posities in % van 324,8 x 80,8 */
.brand { position: relative; display: block; width: clamp(200px, 60vw, 324.8px); aspect-ratio: 324.8 / 80.8; flex: none; }
.brand img { position: absolute; display: block; height: auto; max-width: none; }
.brand-shield { left: 0; top: 0; width: 21.6%; }
.brand-dl { left: 27.4%; top: 21.9%; width: 11.5%; }
.brand-name { left: 44.8%; top: 21.9%; width: 55.2%; }
.brand-tag { left: 27.6%; top: 62.7%; width: 72.4%; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; }

.contact-list { gap: 3.4rem; padding: 0; margin: 0 0 .9rem; list-style: none; }
.contact-list a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1rem; text-transform: uppercase; color: var(--dl-red); text-decoration: none; line-height: 1.2;
}
.contact-list a:hover { color: var(--dl-blue); }
.contact-list img { transition: transform .35s var(--ease); }
.contact-list a:hover img { transform: rotate(-12deg) scale(1.15); }

.main-nav { gap: 0; }
.main-nav .nav-link {
  position: relative;
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; font-size: 1rem; color: var(--dl-blue);
  padding: .35rem 0; margin-left: 2.6rem;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--dl-red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav .nav-link:hover, .main-nav .nav-link:focus-visible, .main-nav .nav-link.active { color: var(--dl-red); }
@media (min-width: 992px) { .navbar-expand-lg .main-nav .nav-link { padding-inline: 0; } }
/* smalle desktopschermen: menu en contactgegevens krapper zodat alles in beeld past */
@media (min-width: 992px) and (max-width: 1279.98px) {
  .main-nav .nav-link { margin-left: 1.4rem; font-size: .9375rem; }
  .contact-list { gap: 1.6rem; }
}
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }

/* mobiel menu */
.navbar-toggler { border: 0; padding: .6rem; }
.navbar-toggler:focus { box-shadow: none; }
.burger { display: grid; gap: 5px; width: 28px; }
.burger span { display: block; height: 3px; border-radius: 2px; background: var(--dl-blue); transition: transform .3s var(--ease), opacity .2s; transform-origin: center; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .header-right, .navbar { position: static; align-items: flex-end; }
  .navbar-collapse {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--dl-blue);
    padding: .5rem 1.5rem 1.5rem; box-shadow: 0 18px 30px rgba(39, 48, 102, .25); border-top: 3px solid var(--dl-red);
  }
  .main-nav .nav-link { margin: 0; padding: .8rem 0; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .main-nav .nav-link:hover, .main-nav .nav-link:focus-visible { color: #fff; padding-left: .5rem; }
  .main-nav .nav-link { transition: padding-left .3s var(--ease), color .25s; }
  .main-nav .nav-link.active { color: #fff; box-shadow: inset 3px 0 0 var(--dl-red); padding-left: .9rem; }
  .main-nav .nav-link::after { display: none; }
  .mobile-contact { display: grid; gap: .4rem; padding-top: 1rem; }
  .mobile-contact a { color: #fff; font-family: var(--font-display); text-transform: uppercase; text-decoration: none; }
}

/* ==========================================================================
   Knoppen
   ========================================================================== */
.btn-dl {
  --btn-bg: var(--dl-red); --btn-fg: #fff; --btn-border: var(--dl-red);
  --btn-hover-bg: var(--dl-blue); --btn-hover-fg: #fff; --btn-hover-border: var(--dl-blue);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 50px; padding: .8rem 1.9rem;
  font-family: var(--font-body); font-weight: 700; font-size: .9375rem;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-border); border-radius: var(--radius);
  transition: color .35s ease, border-color .35s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-dl::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover-bg);
  transform: translateX(-101%); transition: transform .5s var(--ease);
}
.btn-dl:hover, .btn-dl:focus-visible {
  color: var(--btn-hover-fg); border-color: var(--btn-hover-border);
  transform: translateY(-3px); box-shadow: 0 10px 22px rgba(39, 48, 102, .22);
}
.btn-dl:hover::before, .btn-dl:focus-visible::before { transform: translateX(0); }
.btn-dl:active { transform: translateY(0); box-shadow: none; }
.btn-dl img { transition: transform .4s var(--ease), filter .35s ease; }
.btn-dl:hover img { transform: scale(1.12) rotate(-6deg); }

.btn-dl-red { padding-inline: 2rem; font-size: 1rem; letter-spacing: .2em; }
.btn-dl-blue { --btn-bg: var(--dl-blue); --btn-border: var(--dl-blue); --btn-hover-bg: #fff; --btn-hover-fg: var(--dl-blue); --btn-hover-border: #fff; }
.btn-dl-outline { --btn-bg: transparent; --btn-fg: var(--dl-cream); --btn-border: var(--dl-cream); --btn-hover-bg: var(--dl-cream); --btn-hover-fg: var(--dl-red); --btn-hover-border: var(--dl-cream); }
.btn-dl-blue:hover img { filter: invert(15%) sepia(40%) saturate(1500%) hue-rotate(205deg) brightness(.7); }
.btn-dl-outline:hover img { filter: invert(15%) sepia(90%) saturate(4000%) hue-rotate(340deg) brightness(.95); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 62px; position: relative; z-index: 2; }
@media (min-width: 992px) { .hero { z-index: 30; overflow-x: clip; } } /* foto (schoorsteen) mag over de header heen */
.hero-card {
  position: relative; background: var(--dl-grey); border-radius: 10px;
}
.hero { --pw: clamp(380px, 37.5vw, 629px); }
.hero-inner { position: relative; width: 100%; min-height: 758px; padding: 3.5rem var(--gap); display: flex; align-items: center; }
.hero-inner > .row { width: 100%; }

.eyebrow {
  font-weight: 700; font-size: .8125rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--dl-red); margin: 0 0 1.4rem;
}
.hero .lead-text { font-size: 1.0625rem; line-height: 1.65; margin: 1.6rem 0 2rem; max-width: 512px; }

.hero-media {
  position: relative; width: min(629px, 100%); aspect-ratio: 629 / 786;
  margin: 2.5rem auto 0;
}
@media (min-width: 992px) {
  .hero-media { position: absolute; width: var(--pw); top: calc(var(--pw) * -.156); right: calc(var(--gap) - var(--pw) * .038); margin: 0; }
  .hero-media-col { min-height: 1px; }
}
.hero picture, .portrait picture { display: contents; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; object-fit: contain; }

/* decoratieve lijnen achter de foto (% van de fotobox 629 x 786) */
.deco {
  position: absolute; display: block; max-width: none; height: auto; overflow: visible; pointer-events: none;
  will-change: transform, translate;
  translate: calc(var(--px, 0) * var(--depth, 12px)) calc(var(--py, 0) * var(--depth, 12px));
  transition: translate 1.4s var(--ease);
}
.deco path { fill: none; stroke: var(--line, #273066); stroke-linecap: round; stroke-linejoin: round; }
.deco .base { stroke-opacity: .2; stroke-width: 1; }
.deco .glow { stroke-opacity: .06; stroke-width: 1.5; stroke-dasharray: var(--l) calc(1 - var(--l)); animation: trace 45s linear infinite; }
/* 4 lagen op elkaar: in het midden het sterkst, aan beide uiteinden vervaagt het naar 0 */
.deco .g1 { --l: .22; --o: .11; }
.deco .g2 { --l: .15; --o: .075; }
.deco .g3 { --l: .09; --o: .045; }
.deco .g4 { --l: .045; --o: .0225; }
.js .deco .base { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.4s cubic-bezier(.45, .05, .25, 1) .35s; }
.js .deco .glow { opacity: 0; transition: opacity 1.6s ease 3s; }
.is-visible .deco .base { stroke-dashoffset: 0; }
.is-visible .deco .glow { opacity: 1; }
.deco-a1 { --line: #273066; --depth: -16px; }
.deco-a2 { --line: #273066; --depth: 14px; }
.deco-b1 { --line: #fff; --depth: 14px; }
.deco-b2 { --line: #fff; --depth: -18px; }
.deco-c1 { --line: #fff; --depth: 22px; }
.deco-c2 { --line: #fff; --depth: -22px; }
.deco-a1 { left: 32%; top: 32.4%; width: 73.6%; z-index: 0; animation: drift-a 18s ease-in-out infinite alternate; }
.deco-a2 { left: 1.3%; top: 20.7%; width: 59.6%; z-index: 1; animation: drift-b 22s ease-in-out infinite alternate; }

/* draaiende cirkeltekst */
.spin-badge { position: absolute; left: -0.5%; top: 76.5%; width: 29.5%; aspect-ratio: 1; overflow: visible; }
.spin-badge text { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
.spin-blue { z-index: 1; fill: var(--dl-blue); }
.spin-white { fill: #fff; }
.spin { transform-origin: 100px 100px; animation: spin 40s linear infinite; }

/* wit exemplaar: enkel zichtbaar waar de foto (cirkel) ligt */
.white-clip {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  clip-path: ellipse(46.4% 37.2% at 49.8% 58.3%);
}

.scroll-hint { position: absolute; left: 92.6%; top: 88.5%; width: 3.2%; min-width: 16px; z-index: 3; animation: nudge 2.8s ease-in-out infinite; }

/* ==========================================================================
   Over Dieter (blauw)
   ========================================================================== */
.intro { background: var(--dl-blue); color: #fff; margin-top: -68px; padding: 185px 0 90px; position: relative; overflow: hidden; }
@media (max-width: 991.98px) { .intro { margin-top: 0; padding: 70px 0 70px; } }
.intro .display-title { color: #fff; }
.intro-inner { position: relative; }

.portrait { position: relative; width: min(684px, 100%); aspect-ratio: 684 / 822; margin-inline: auto; }
@media (min-width: 992px) { .portrait { margin: -80px 0 -10px 11px; } }
.portrait-photo {
  position: absolute; left: 50%; top: 50%; width: 89.6%; height: 93.2%; z-index: 2; object-fit: contain;
  transform: translate(-50%, -50%) rotate(0deg);
}
.deco-b1 { left: -1.6%; top: 29.2%; width: 67.6%; z-index: 0; animation: drift-b 20s ease-in-out infinite alternate; }
.deco-b2 { left: 33.9%; top: 54.4%; width: 54.8%; z-index: 1; animation: drift-a 24s ease-in-out infinite alternate; }

.pebble { position: absolute; left: 69%; top: 42%; width: 28.4%; z-index: 1; transform: rotate(-24.95deg); animation: float 9s ease-in-out infinite; }

.years-badge {
  position: absolute; left: 9.2%; top: 75.4%; z-index: 5; width: 21.9%; aspect-ratio: 1;
  background: var(--dl-red); border-radius: 50%; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(228, 19, 38, .5); animation: pulse 3.6s ease-out infinite;
}
.years-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.8125rem); line-height: 1; }
.years-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(.6rem, 1.1vw, 1.0625rem); line-height: 1.05; margin-top: .25rem; }

.intro-text { max-width: 554px; margin-inline: auto; padding-top: 2.5rem; }
@media (min-width: 992px) { .intro-text { margin: 0; padding-top: 0; } }
@media (min-width: 1200px) { .intro-text { margin-left: -45px; } }
.intro-text .rule { margin-bottom: 2rem; }
.intro-text p { margin-bottom: 1.6rem; color: #fff; }

.more-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2.2rem; max-width: 512px; }
.more-link {
  display: inline-flex; align-items: center; gap: .9rem;
  font-weight: 700; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75); text-decoration: none;
}
.more-line { display: block; width: 35px; height: 2px; background: currentColor; transition: width .45s var(--ease), background .3s; }
.more-link:hover { color: #fff; }
.more-link:hover .more-line { width: 70px; background: var(--dl-red); }
.more-shield { transition: transform .5s var(--ease); }
.more-row:hover .more-shield { transform: translateY(-4px) rotate(-6deg); }

/* ==========================================================================
   CTA (rood)
   ========================================================================== */
.cta { position: relative; overflow: hidden; background: var(--dl-red); color: #fff; text-align: center; padding: 108px 0 118px; }
.cta .inner { position: relative; z-index: 1; }
.cta-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-c1 { left: -7%; top: -22%; width: 30%; }
.deco-c2 { right: -5%; bottom: -34%; width: 26%; }
.cta .display-title { color: #fff; }
.cta-text { max-width: 1100px; margin: 1.9rem auto 2.4rem; }
.cta-text p { margin: 0 0 1rem; color: #fff; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 19px; justify-content: center; }
.cta-buttons .btn-dl { min-width: 287px; }

/* ==========================================================================
   Kennis / diploma's
   ========================================================================== */
.credentials { background: var(--dl-grey); padding: 109px 0 96px; }
.credentials-inner { padding-inline: 1rem; }
@media (min-width: 992px) { .credentials-inner { padding-inline: 4rem; } }
.credentials .rule { margin: 1.5rem 0 2rem; }
.credentials p { max-width: 512px; }
.credentials-shield { margin-top: 3rem; opacity: .9; animation: float 10s ease-in-out infinite; }

.credential-list { max-width: 520px; margin-left: auto !important; }
@media (max-width: 991.98px) { .credential-list { max-width: none; } }
.credential-list li { border-bottom: 1px solid var(--dl-line); }
.credential-list li:first-child { border-top: 0; }
.credential-list li:last-child { border-bottom: 0; }
.credential {
  position: relative; display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.25rem .5rem 1.4rem; margin-inline: -.5rem; border-radius: 4px;
  color: var(--dl-blue); text-decoration: none;
  transition: background-color .35s ease;
}
.cred-icon { flex: none; margin-top: 4px; transition: transform .4s var(--ease); }
.cred-body { flex: 1; min-width: 0; }
.cred-badge {
  display: inline-block; font-weight: 700; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; line-height: 20px;
  padding: 0 .9rem; border-radius: 3px; background: var(--dl-line); color: var(--dl-blue); margin-bottom: .45rem;
}
.cred-title { margin: 0; font-size: 1rem; line-height: 1.25; font-weight: 700; font-family: var(--font-body); }
.cred-title span { font-weight: 500; }
.cred-download { flex: none; margin-top: 12px; transition: transform .35s var(--ease); }
.credential::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px;
  background: var(--dl-red); transform: scaleY(0); transition: transform .4s var(--ease);
}
.credential:hover, .credential:focus-visible { background: rgba(39, 48, 102, .05); color: var(--dl-blue); }
.credential:hover::before, .credential:focus-visible::before { transform: scaleY(1); }
.cred-title { transition: color .3s ease; }
.credential:hover .cred-title { color: var(--dl-red); }
.credential:hover .cred-icon { transform: translateX(4px) scale(1.08) rotate(-4deg); }
.credential:hover .cred-download { transform: translateY(5px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #fff; padding-top: 63px; }
.footer-inner { width: min(var(--shell), 100% - 2rem); padding-inline: 0; }   /* even breed als de header */
.site-footer .footer-inner > * { padding-inline: var(--gap); }
.footer-cols { padding-bottom: 3rem; }
.site-footer address { font-style: normal; line-height: 1.625; }
.site-footer a { color: var(--dl-blue); }
.site-footer a:hover { color: var(--dl-red); }
.footer-nav a { text-decoration: none; display: inline-block; transition: transform .3s var(--ease), color .25s; }
.footer-nav a:hover { transform: translateX(-4px); }
@media (max-width: 767.98px) { .footer-nav a:hover { transform: translateX(4px); } }
.footer-company { line-height: 1.625; }
.social {
  display: inline-flex; align-items: center; justify-content: center; margin-top: .9rem; padding: .5rem;
  color: var(--dl-blue); border-radius: 4px;
  transition: color .3s, transform .35s var(--ease);
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .social:hover, .site-footer .social:focus-visible { color: var(--dl-red); transform: translateY(-2px); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--dl-line); padding: 1.7rem 0 2.2rem; color: rgba(39, 48, 102, .5);
}
.footer-bottom a { color: rgba(39, 48, 102, .5); text-decoration: none; }
.footer-bottom a:hover { color: var(--dl-red); }
.legal li + li { margin-left: 1.9rem; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: var(--radius);
  background: var(--dl-red); box-shadow: 0 8px 20px rgba(39, 48, 102, .25);
  opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease), background-color .3s;
}
.to-top:not([hidden]) { display: grid; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--dl-blue); }
.to-top:hover img { animation: nudge-up .8s ease-in-out infinite; }

/* ==========================================================================
   Animaties
   ========================================================================== */
/* inschuiven bij scrollen – content blijft zichtbaar zonder JavaScript */
.js .reveal {
  opacity: 0; transform: translate3d(0, 32px, 0);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js .reveal-left { transform: translate3d(-70px, 0, 0); }
.js .reveal-right { transform: translate3d(70px, 0, 0); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(16px, -12px, 0) rotate(2.2deg); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(-14px, 14px, 0) rotate(-2deg); }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes nudge-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 19, 38, .55); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(228, 19, 38, 0); }
}

/* --- extra verfijning --- */
@keyframes trace { from { stroke-dashoffset: var(--o); } to { stroke-dashoffset: calc(var(--o) - 1); } }
@keyframes fade-down { from { opacity: 0; transform: translate3d(0, -14px, 0); } to { opacity: 1; transform: none; } }

/* foto komt rustig binnen */
.js .reveal-scale { transform: translate3d(40px, 0, 0) scale(.94); transform-origin: 60% 60%; }

/* rode streepjes groeien uit */
.js .rule.reveal { transform: scaleX(0); transform-origin: left center; }
.js .rule.reveal.is-visible { transform: none; }

/* "24 jaar" bol springt zachtjes binnen */
.js .years-badge { opacity: 0; transform: scale(.3); }
.js .portrait.is-visible .years-badge {
  opacity: 1; transform: none;
  transition: opacity .5s ease .7s, transform .9s cubic-bezier(.34, 1.56, .64, 1) .7s;
}

/* header zakt zacht binnen */
@media (min-width: 992px) {
  .js .brand, .js .contact-list, .js .main-nav .nav-item { animation: fade-down .8s var(--ease) both; }
  .js .contact-list { animation-delay: .15s; }
  .js .main-nav .nav-item:nth-child(1) { animation-delay: .25s; }
  .js .main-nav .nav-item:nth-child(2) { animation-delay: .31s; }
  .js .main-nav .nav-item:nth-child(3) { animation-delay: .37s; }
  .js .main-nav .nav-item:nth-child(4) { animation-delay: .43s; }
  .js .main-nav .nav-item:nth-child(5) { animation-delay: .49s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .years-badge { opacity: 1; transform: none; }
  .js .rule.reveal { transform: none; }
  .js .deco .base { stroke-dashoffset: 0; }
  .js .deco .glow { opacity: 1; }
}


/* ==========================================================================
   Tekstpagina's (cookies, privacy, ...)
   ========================================================================== */
.page-head { position: relative; overflow: hidden; background: var(--dl-blue); color: #fff; }
.page-head-inner { position: relative; z-index: 1; width: min(var(--shell), 100% - 2rem); margin-inline: auto; padding: 3.5rem var(--gap) 3.75rem; }
@media (min-width: 992px) { .page-head-inner { padding-block: 5rem 5rem; } }
.page-head .display-title { color: #fff; }
.page-head .rule { margin: 1.5rem 0 2rem; }
.page-lead-wide { max-width: none !important; }
.page-lead { max-width: 46rem; margin: 0; font-size: 1.125rem; line-height: 1.65; opacity: .92; }
.crumbs { margin-bottom: 1.6rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { color: #fff; text-decoration: none; opacity: .75; }
.crumbs a:hover { opacity: 1; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: #fff; }

.page-body { padding: 3.5rem 0 5rem; }
.page-body-inner { width: min(var(--shell), 100% - 2rem); margin-inline: auto; padding-inline: var(--gap); }
@media (min-width: 992px) { .page-body { padding: 5rem 0 6.5rem; } }

.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15;
  margin: 6rem 0 1.5rem; padding-bottom: .9rem; border-bottom: 1px solid #cdd3e8; scroll-margin-top: 1.5rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin: 2rem 0 .5rem; }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--dl-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .prose a:focus-visible { color: var(--dl-red); }
.prose code { font-size: .875em; padding: .12em .4em; border-radius: 3px; background: var(--dl-grey); color: var(--dl-blue); }
.meta-line { font-size: .875rem; opacity: .7; }

.toc { position: sticky; top: 1.5rem; padding: 2rem 2.25rem; background: var(--dl-grey); border-radius: var(--radius); }
.toc-title { margin: 0 0 1.1rem; font-weight: 700; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .9375rem; line-height: 1.4; }
.toc li { margin: 0 0 .85rem; padding-left: .25rem; }
.toc li:last-child { margin-bottom: 0; }
.toc a { color: var(--dl-blue); text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--dl-red); text-decoration: underline; text-underline-offset: 3px; }

.table-wrap { margin: 3rem 0 4rem; overflow-x: auto; border: 1px solid var(--dl-line); border-radius: var(--radius); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.cookie-table caption { padding: .9rem 1rem; text-align: left; font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; caption-side: top; background: var(--dl-grey); }
.cookie-table th, .cookie-table td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--dl-line); }
.cookie-table thead th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; background: #fff; }
.cookie-table tbody th { font-weight: 600; white-space: nowrap; }
@media (max-width: 767.98px) {
  .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table th, .cookie-table td { display: block; width: 100%; }
  .cookie-table tr { border-top: 1px solid var(--dl-line); padding: .5rem 0; }
  .cookie-table th, .cookie-table td { border: 0; padding: .3rem 1rem; }
  .cookie-table td::before, .cookie-table tbody th::before { content: attr(data-label); display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
}

.consent-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: 1.5rem 0 1rem; padding: 1.75rem 2rem; background: var(--dl-grey); border-radius: var(--radius); }
.consent-box p { margin: 0; }
.consent-title { font-weight: 700; font-size: 1.0625rem; }
.consent-text { font-size: .9375rem; }

/* footer in licht blauw op tekstpagina's, voor contrast met de inhoud */
.footer-light { background: var(--dl-grey); }
.footer-light .footer-bottom { border-top-color: rgba(39, 48, 102, .18); }


/* slogan bovenaan de footer */
.footer-slogan {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .15em .45em;
  margin: 0 0 3rem; padding-bottom: 1rem;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; text-align: center;
  font-size: clamp(1.15rem, .8rem + 1.5vw, 1.9rem); line-height: 1.15; letter-spacing: -.005em; color: var(--dl-blue);
}
.footer-slogan .accent { color: var(--dl-red); }
@media (max-width: 575.98px) { .footer-slogan { flex-direction: column; align-items: center; margin-bottom: 2.25rem; padding-bottom: 2.25rem; } }

/* ==========================================================================
   Contactpagina
   ========================================================================== */
.contact-head { overflow-x: clip; overflow-y: visible; z-index: 2; }
.contact-head h1 { text-wrap: balance; }
.contact-head .page-head-inner { padding-block: 3rem 3.25rem; }
@media (min-width: 992px) { .contact-head .page-head-inner { padding-block: .5rem 3.25rem; } }
.contact-head-grid { display: grid; gap: 2.25rem 2.5rem; align-items: center; }
@media (min-width: 992px) { .contact-head-grid { grid-template-columns: minmax(0, 1fr) auto; } }
.contact-head .portrait { width: min(380px, 90%); margin: 0 auto; }
@media (min-width: 992px) { .contact-head .portrait { --pw: clamp(400px, 42vw, 660px); width: var(--pw); margin: -36px calc(var(--pw) * -.076) -140px 0; pointer-events: none; } }   /* rechterrand van de cirkel op de lijn van menu en formulier */
/* Dieter kijkt naar links, richting de tekst (spiegeling van de foto) */
.contact-head .portrait-photo { transform: translate(-50%, -50%) scaleX(-1) rotate(-0deg); }
/* rode bol "24 jaar ervaring" rechtsonder, deels over de foto */
.contact-head .years-badge { left: auto; right: 6%; top: 69%; width: 22%; }
@media (min-width: 992px) { .contact-head .years-badge { top: auto; bottom: 158px; } }   /* onderkant bol ongeveer 70px boven de onderrand van de blauwe zone */

.contact-body { padding: 3.5rem 0 5rem; }
@media (min-width: 992px) { .contact-body { padding: 8.5rem 0 7rem; } }

.contact-card { padding: 3rem 3rem 3.25rem; background: var(--dl-grey); border-radius: var(--radius); }
.contact-card-title, .contact-form-title {
  margin: 0 0 1.75rem; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15;
}
.contact-dl { margin: 0; }
.contact-dl > div { padding: 1.15rem 0; border-bottom: 1px solid var(--dl-line); }
.contact-dl > div:first-child { padding-top: 0; }
.contact-dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-dl dt { margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.contact-dl dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.contact-dl a { color: var(--dl-blue); text-decoration: none; transition: color .25s ease; }
.contact-dl a:hover, .contact-dl a:focus-visible { color: var(--dl-red); }

.contact-form-card { padding: 0; }
@media (min-width: 992px) { .contact-form-card { padding-top: 3rem; } }
.contact-form-intro { margin: 0 0 1.75rem; }
.req { color: var(--dl-red); }
.contact-form .form-label { margin-bottom: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-form .form-control {
  padding: .8rem 1rem; font-size: 1rem; color: var(--dl-blue); background: #fff;
  border: 1px solid rgba(39, 48, 102, .3); border-radius: var(--radius);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-form .form-control:hover { border-color: rgba(39, 48, 102, .6); }
.contact-form .form-control:focus { border-color: var(--dl-blue); box-shadow: 0 0 0 4px rgba(39, 48, 102, .14); outline: 0; }
.contact-form .form-control[aria-invalid="true"] { border-color: var(--dl-red); }
.contact-form textarea.form-control { min-height: 9rem; resize: vertical; }
.contact-form .form-check { display: flex; align-items: flex-start; gap: .75rem; padding: 0; margin: .25rem 0 .5rem; }
.contact-form .form-check-input { flex: none; float: none; margin: .2rem 0 0; width: 1.25rem; height: 1.25rem; border: 1px solid rgba(39, 48, 102, .5); }
.contact-form .form-check-input:checked { background-color: var(--dl-red); border-color: var(--dl-red); }
.contact-form .form-check-input:focus { box-shadow: 0 0 0 4px rgba(228, 19, 38, .18); border-color: var(--dl-red); }
.contact-form .form-check a { color: var(--dl-blue); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .form-check a:hover { color: var(--dl-red); }
.errors-contact { margin: .4rem 0 0; font-size: .875rem; font-weight: 600; color: var(--dl-red); }
.contact-form .btn-dl:disabled { opacity: .6; pointer-events: none; }
.form-flash:empty { display: none; }
.form-flash { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--dl-grey); border-left: 4px solid var(--dl-blue); font-size: .9375rem; line-height: 1.6; animation: fade-in .5s ease both; }
.form-flash.is-error { border-left-color: var(--dl-red); }
.form-flash p { margin: 0 0 .5rem; }
.form-flash p:last-child { margin-bottom: 0; }
.recaptcha-note { margin: 1.5rem 0 0; font-size: .75rem; line-height: 1.5; opacity: .65; }
.recaptcha-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.grecaptcha-badge { visibility: hidden; }   /* de verplichte melding staat onder het formulier */
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .contact-card { padding: 1.75rem 1.5rem 2rem; } }
@media (prefers-reduced-motion: reduce) { .form-flash { animation: none; } }


/* Kaart over de volle breedte, boven de footer */
.contact-body { padding-bottom: 4.5rem; }
@media (min-width: 992px) { .contact-body { padding-bottom: 6rem; } }
.map-section { position: relative; width: 100%; }
.map-wrap { position: relative; height: clamp(420px, 45vw, 650px); background: #ececec; }
.map-canvas { position: absolute; inset: 0; }
.map-canvas[hidden], .map-placeholder[hidden] { display: none; }
.map-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.7) 0 8%, transparent 8.2%),
    radial-gradient(circle at 72% 62%, rgba(255,255,255,.6) 0 10%, transparent 10.2%),
    repeating-linear-gradient(32deg, transparent 0 62px, rgba(255,255,255,.75) 62px 66px),
    repeating-linear-gradient(-58deg, transparent 0 90px, rgba(255,255,255,.75) 90px 94px),
    #e9e9e9;
}
/* Vervaagde kaartafbeelding achter het kader (lokaal bestand, geen verbinding met Google) */
.map-placeholder { overflow: hidden; }
.map-placeholder::before { content: ""; position: absolute; inset: -40px; background: url("../img/kaart-blur.jpg") center / cover no-repeat; filter: blur(6px) saturate(.85); opacity: .9; }
.map-placeholder::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.18); }
.map-placeholder-card { position: relative; z-index: 1; }
.map-placeholder-card { width: min(440px, 100%); padding: 2.25rem 2.25rem 2rem; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(39, 48, 102, .14); }
.map-placeholder-card img { display: block; margin: 0 auto 1rem; }
.map-address { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.5; }
.map-note { margin: 0 0 1.25rem; font-size: .8125rem; line-height: 1.55; opacity: .75; }
.map-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.map-fout { color: var(--dl-red); opacity: 1; font-weight: 600; }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.5rem; }
.map-route { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dl-blue); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: color .25s ease, background-size .35s var(--ease); }
.map-route:hover, .map-route:focus-visible { color: var(--dl-red); background-size: 40% 1px; }
.map-actions .btn-dl:disabled { opacity: .6; pointer-events: none; }
@media (max-width: 575.98px) { .map-placeholder-card { padding: 1.75rem 1.25rem 1.5rem; } }

/* ==========================================================================
   Inhoudspagina's (over-dl-dakadvies, dakadvies, gerechtsdeskundige)
   ========================================================================== */
.sec { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.sec-grey { background: var(--dl-grey); }
.sec-blue { background: var(--dl-blue); color: #fff; }
.sec-blue .display-title { color: #fff; }
.sec-inner { width: min(var(--shell), 100% - 2rem); margin-inline: auto; padding-inline: var(--gap); }
.sec-head { margin-bottom: 3.25rem; }
.sec-head .rule { margin-bottom: 2.1rem; }
.sec-lead { max-width: 46rem; margin: 0; font-size: 1.125rem; line-height: 1.65; }
.prose-lite p { margin: 0 0 1.1rem; font-size: 1.0625rem; line-height: 1.7; }
.prose-lite p:last-child { margin-bottom: 0; }

/* Lijstjes met vinkje */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: .95rem 0 .95rem 2.5rem; border-bottom: 1px solid var(--dl-line); font-weight: 500; line-height: 1.45; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: 1.2rem; height: 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e41326' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 768px) {
  .check-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .check-grid li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.panel { padding: clamp(1.75rem, 3vw, 3rem); background: var(--dl-grey); border-radius: var(--radius); }
.panel-title { margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: var(--dl-blue); }
.panel .check-list li { border-color: var(--dl-line); font-size: 1.25rem; padding-block: 1.1rem; }
.panel .check-list li::before { top: 1.4rem; }
.portrait-fig { position: relative; margin: 0; text-align: center; }
.portrait-fig img { position: relative; z-index: 2; display: block; width: 100%; height: auto; transform: scaleX(-1); }
.portrait-fig .white-clip { clip-path: ellipse(48% 38.4% at 49.9% 59.1%); }
@media (min-width: 992px) { .portrait-fig { margin-top: -3.5rem; } }

/* Kaarten: icoon, titel, korte tekst, lijn eronder */
.info-grid { display: grid; gap: 3rem 4rem; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.info-card { position: relative; padding: 0 0 2.25rem; border-bottom: 1px solid var(--dl-line); }
.info-card::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--dl-red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.info-card:hover::after { transform: scaleX(1); }
.info-icon { display: block; width: 56px; height: 56px; margin-bottom: 1.6rem; color: var(--dl-red); transition: transform .45s var(--ease); }
.info-card:hover .info-icon { transform: translateY(-3px) scale(1.05); }
.info-card h3 { margin: 0 0 .75rem; font-size: 1.375rem; font-weight: 500; line-height: 1.3; color: var(--dl-blue); }
.info-card p { margin: 0; line-height: 1.7; }
.info-nr { display: block; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .08em; color: var(--dl-red); }

/* Waarom-blok op blauw */
.why-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.why-grid li { padding: 1.75rem 1.5rem 2rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); font-size: 1.25rem; font-weight: 700; line-height: 1.3; transition: background .35s ease, border-color .35s ease; }
.why-grid li:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .4); }
.why-grid .info-nr { color: #ff7d8a; }

/* Slotboodschap */
.statement { text-align: center; }
.statement-text { max-width: 52rem; margin: 0 auto; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.25rem); line-height: 1.3; text-transform: uppercase; }
.statement-text span { color: #ff7d8a; }
.statement-shield { display: block; margin: 2rem auto 0; }

/* Credentials in 2 kolommen */
.credential-list.is-two-col { max-width: none; margin-left: 0 !important; }
@media (min-width: 992px) {
  .credential-list.is-two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .credential-list.is-two-col li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* Fotogalerij (masonry) */
.gallery { columns: 3 260px; column-gap: 1rem; margin: 0; padding: 0; }
.gallery li { break-inside: avoid; margin-bottom: 1rem; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--dl-grey); }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
a.gallery-item { cursor: zoom-in; }
a.gallery-item:hover img, a.gallery-item:focus-visible img { transform: scale(1.04); }
a.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(39, 48, 102, 0); transition: background .4s ease; }
a.gallery-item:hover::after { background: rgba(39, 48, 102, .15); }
.gallery-ph { display: grid; place-items: center; width: 100%; background: linear-gradient(135deg, #eceef3, #e2e5ee); color: rgba(39, 48, 102, .45); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(20, 25, 55, .92); }
.lightbox-figure { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 4rem 4.5rem; }
.lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .25s ease, border-color .25s ease; }
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: var(--dl-red); border-color: var(--dl-red); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; font-size: .875rem; letter-spacing: .12em; opacity: .8; }
@media (max-width: 575.98px) { .lightbox-figure { padding: 4rem 1rem; } .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; } }

/* Fotoplaatsen naast de tekst */
.photo-slot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, #eceef3, #e2e5ee); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: rgba(39, 48, 102, .5); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 1rem; }
.photo-ph b { font-weight: 800; color: var(--dl-blue); }

/* Galerij: grijs, kleur bij hover/focus; extra foto's achter "Meer tonen" */
a.gallery-item img { filter: grayscale(1) contrast(1.02); transition: filter .6s ease, transform .8s var(--ease); }
a.gallery-item:hover img, a.gallery-item:focus-visible img { filter: grayscale(0); }
.js .gallery li.is-extra { display: none; }
.js .gallery li.is-extra.is-shown { display: block; animation: galleryIn .6s var(--ease) both; }
@keyframes galleryIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.gallery-more-wrap { display: flex; justify-content: center; margin: 2rem 0 0; }
.gallery-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .js .gallery li.is-extra.is-shown { animation: none; } }

/* Detailpagina's: H2-titels in gewone hoofdletters (geen kapitalen) */
.sec h2.display-title, .sec ~ .cta h2.display-title { text-transform: none; letter-spacing: -.01em; }

/* Homepage: deze twee H2-titels ook zonder kapitalen */
#over-titel, #kennis-titel { text-transform: none; letter-spacing: -.01em; }

.sec:has(.portrait-fig) { overflow-x: clip; }

/* Variant met de hero-foto van de homepage (niet gespiegeld) */
.portrait-fig--hero img { transform: none; }
.portrait-fig--hero .white-clip { clip-path: ellipse(46.4% 37.2% at 49.8% 58.3%); }
.check-grid li { font-size: 1.25rem; padding-block: 1.1rem; }
.check-grid li::before { top: 1.4rem; }

/* "Waarom"-blok als lopende tekst op blauw */
.why-text { max-width: none; }
.why-text p { margin: 0 0 1.25rem; font-size: 1.0625rem; line-height: 1.7; color: #fff; }
.why-text p:last-child { margin-bottom: 0; }
.why-text strong { font-weight: 700; }

/* Tijdlijn: verticale lijn in het midden met iconen, titel en tekst */
.timeline { position: relative; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; top: 28px; bottom: 28px; left: 28px; width: 2px; background: var(--dl-line); }
.tl-item { position: relative; padding: 0 0 3rem 5.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--dl-red); border-radius: 50%; background: #fff; color: var(--dl-red); transition: background .35s ease, color .35s ease, transform .45s var(--ease); }
.tl-item:hover .tl-node { background: var(--dl-red); color: #fff; transform: scale(1.06); }
.tl-step { display: block; margin: .1rem 0 .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dl-red); }
.tl-card h3 { margin: 0 0 .6rem; font-size: 1.5rem; font-weight: 500; line-height: 1.25; color: var(--dl-blue); }
.tl-card p { margin: 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.7; }
@media (min-width: 992px) {
  .timeline::before { left: 50%; margin-left: -1px; }
  .tl-item { width: 50%; padding: 0 5rem 4rem 0; text-align: right; }
  .tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 4rem 5rem; text-align: left; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-node { left: auto; right: -28px; }
  .tl-item:nth-child(even) .tl-node { right: auto; left: -28px; }
  .tl-item .tl-card p { margin-left: auto; }
  .tl-item:nth-child(even) .tl-card p { margin-left: 0; }
}

/* Galerij: 4 kolommen (desktop), 3 (tablet), 2 (mobiel); lead over volledige breedte */
.sec-lead-wide { max-width: none; }
.gallery { columns: 4 200px; column-gap: .875rem; }
.gallery li { margin-bottom: .875rem; }
@media (max-width: 991.98px) { .gallery { columns: 3 160px; } }
@media (max-width: 575.98px) { .gallery { columns: 2 140px; column-gap: .625rem; } .gallery li { margin-bottom: .625rem; } }

/* Lightbox: foto schaalt altijd mee met het scherm (geen scroll), met optionele titel eronder */
.lightbox { overflow: hidden; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 4rem 5rem 4.5rem; }
.lightbox-img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem); object-fit: contain; }
.lightbox-caption { max-width: 48rem; margin: 0; text-align: center; font-size: 1.0625rem; line-height: 1.5; color: #fff; }
.lightbox-caption[hidden] { display: none; }
@media (max-width: 575.98px) { .lightbox-figure { padding: 4rem 1rem 6rem; } .lightbox-img { max-height: calc(100vh - 13rem); max-height: calc(100dvh - 13rem); } }

.gallery-more-wrap { margin: 0; min-height: 1px; }

/* Zachte fade bij het inladen van de galerij (geen flikker) */
.js .gallery img { opacity: 0; }
.js .gallery img.is-loaded { opacity: 1; }
a.gallery-item img { transition: opacity .9s ease, filter .6s ease, transform .8s var(--ease); }
@keyframes galleryIn { from { opacity: 0; } to { opacity: 1; } }
.js .gallery li.is-extra.is-shown { animation-duration: .9s; animation-timing-function: ease; }

/* Masonry met vaste posities (JS): foto's schuiven nooit meer, nieuwe komen onderaan */
.js .gallery:not(.is-masonry) { visibility: hidden; }
.gallery.is-masonry { position: relative; columns: auto; margin: 0; }
.gallery.is-masonry li { position: absolute; margin: 0; break-inside: auto; }

/* Dakadvies-foto: vierkant, cirkel gecentreerd op 50,2% / 53% met straal 45,6% */
.portrait-fig--inspecties .white-clip { clip-path: ellipse(45.6% 45.6% at 50.2% 53%); }
.portrait-fig--inspecties .spin-badge { left: -0.8%; top: 71%; }

/* Gerechtsdeskundige-foto: vierkant, cirkel op 49,8% / 50,4% met straal 46,1% */
.portrait-fig--gerecht .white-clip { clip-path: ellipse(46.1% 46.1% at 49.8% 50.4%); }
.portrait-fig--gerecht .spin-badge { left: -0.8%; top: 69%; }

/* Bedankpagina */
.thanks-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.thanks { background: var(--dl-grey); }   /* zelfde lichtgrijs als de hero op de homepage; footer blijft wit */
