/* diensten.css: opmaak van /diensten/. Bouwt voort op site.css en page.css. */

.dh { max-width: 1240px; }

/* Zacht verschijnen; alleen actief als diensten.js draait en beweging is toegestaan */
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ds-ease), transform 700ms var(--ds-ease); }
.rv-on .rv.is-in { opacity: 1; transform: none; }

/* Hero: groot beeld met de kop erop */
.dh-hero { position: relative; border-radius: 16px; overflow: hidden; min-height: clamp(380px, 56vw, 620px); display: flex; align-items: flex-end; color: var(--ds-dune); isolation: isolate; }
.dh-hero__img, .dh-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dh-hero__img img { object-fit: cover; }
.dh-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.15) 100%); }
.dh-hero__text { position: relative; z-index: 1; padding: clamp(24px, 4vw, 56px); max-width: 880px; }
.dh-hero .eyebrow { color: var(--ds-teal); }
.dh-hero h1 { margin: 14px 0 18px; color: var(--ds-dune); }
.dh-hero .lead { color: color-mix(in srgb, var(--ds-dune) 88%, transparent); max-width: 38ch; }

/* Snelkeuze */
.dh-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: clamp(20px, 3vw, 32px) 0; position: sticky; top: 76px; z-index: 5; background: color-mix(in srgb, var(--sc-canvas) 92%, transparent); backdrop-filter: blur(8px); }
.dh-chips a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sc-ink) 22%, transparent); transition: background-color 200ms, color 200ms, border-color 200ms; }
.dh-chips a:hover, .dh-chips a:focus-visible { background: var(--ds-teal); border-color: var(--ds-teal); color: #0a0a0a; }
.dh-chips a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Feiten */
.dh-facts { list-style: none; margin: clamp(16px, 3vw, 32px) 0 clamp(40px, 6vw, 80px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dh-facts li { background: var(--ds-teal); color: #0a0a0a; border-radius: 14px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.dh-facts strong { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.dh-facts span { font-size: 15px; line-height: 1.45; color: rgba(10,10,10,0.78); }
@media (max-width: 900px) { .dh-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dh-facts { grid-template-columns: 1fr; } }

/* Een dienst: beeld en tekst om en om */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding: clamp(36px, 6vw, 88px) 0; border-top: 1px solid color-mix(in srgb, var(--sc-ink) 12%, transparent); scroll-margin-top: 120px; }
.svc--flip .svc__media { order: 2; }
.svc__media { margin: 0; position: sticky; top: 140px; }
.svc__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 30px 70px -40px rgba(10,10,10,0.55); }
.svc__num { position: absolute; left: 16px; bottom: 14px; font-family: var(--ds-mono); font-size: 13px; letter-spacing: 0.1em; background: var(--sc-canvas); color: var(--sc-ink); padding: 6px 12px; border-radius: 999px; }
.svc__tag { font-family: var(--ds-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ds-teal-ink); }
.svc h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 12px 0 20px; }
.svc__lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 20px; max-width: 34ch; }
.svc__body > p { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; color: #2a2f2f; max-width: 58ch; margin: 0 0 1.1em; }
.svc__body > .svc__lead { color: var(--sc-ink); }
.svc__for { background: var(--ds-teal); color: #0a0a0a !important; border-radius: 14px; padding: 18px 22px; margin: 24px 0 8px !important; }
.svc__for span { display: block; font-family: var(--ds-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 6px; }

.svc__qa { margin-top: 12px; }
.svc__qa details { border-bottom: 1px solid color-mix(in srgb, var(--sc-ink) 16%, transparent); }
.svc__qa details:first-child { border-top: 1px solid color-mix(in srgb, var(--sc-ink) 16%, transparent); }
.svc__qa summary { list-style: none; cursor: pointer; position: relative; padding: 18px 44px 18px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; min-height: 44px; }
.svc__qa summary::-webkit-details-marker { display: none; }
.svc__qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 240ms var(--ds-ease); }
.svc__qa details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.svc__qa summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.svc__qa details p { margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: #2a2f2f; max-width: 54ch; }
.svc__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0 !important; }
.svc__links .ds-cta { font-size: 15px; padding: 13px 26px; }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; gap: 20px; }
  .svc--flip .svc__media { order: 0; }
  .svc__media { position: relative; top: auto; }
  .dh-chips { top: 64px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .dh-chips::-webkit-scrollbar { display: none; }
  .dh-chips a { flex: none; }
}

/* Donkere sectie: werkgebied en grenzen */
.dh-dark { position: relative; isolation: isolate; border-radius: 16px; overflow: hidden; margin: clamp(24px, 4vw, 48px) 0; padding: clamp(32px, 6vw, 88px) clamp(20px, 4vw, 56px); color: var(--ds-dune); background: #0a0a0a; }
.dh-dark__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; }
.dh-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(10,10,10,0.55), rgba(10,10,10,0.8)); }
.dh-dark__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.dh-card { background: color-mix(in srgb, var(--sc-canvas) 8%, transparent); border: 1px solid color-mix(in srgb, var(--ds-dune) 22%, transparent); backdrop-filter: blur(10px); border-radius: 14px; padding: clamp(22px, 3vw, 40px); }
.dh-card h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 14px; color: var(--ds-teal); }
.dh-card p { margin: 0; font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--ds-dune) 90%, transparent); max-width: 46ch; }
@media (max-width: 800px) { .dh-dark__grid { grid-template-columns: 1fr; } }

/* Afsluiter */
.dh-close { display: flex; flex-direction: column; gap: 22px; padding: clamp(32px, 5vw, 72px) 0 0; }
.dh-close .page-close__title { font-size: clamp(30px, 4.6vw, 64px); max-width: 20ch; letter-spacing: -0.04em; line-height: 1.02; font-weight: 800; }

@media (prefers-reduced-motion: reduce) { .rv-on .rv { opacity: 1; transform: none; transition: none; } .svc__media { position: relative; top: auto; } }
