/* Zorgbrug — tokens uit DESIGN.md §4 */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/voorbeelden/zorgbrug/fonts/schibsted.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f5f2;
  --surface: #ecebf1;
  --ink: #17141f;
  --ink-muted: #5c5867;
  --line: #dcdae2;
  --accent-fill: #5420e0;
  --on-accent: #ffffff;
  --on-accent-muted: #e4dcff;
  --accent-text: #5420e0;
  --focus: #5420e0;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131119;
    --surface: #1c1925;
    --ink: #f2f0f7;
    --ink-muted: #a9a4b8;
    --line: #2c2838;
    --accent-fill: #9d85ff;
    --on-accent: #131119;
    --on-accent-muted: #2a2140;
    --accent-text: #b7a3ff;
    --focus: #b7a3ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent-fill); color: var(--on-accent); }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 760; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-muted); max-width: 40ch; line-height: 1.5; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 10; }
.skip:focus { top: 16px; }
.hp { position: absolute; left: -9999px; }
.nowrap { white-space: nowrap; }

/* knoppen */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-size: 1rem; font-weight: 640; line-height: 1.2;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.arrow { width: 20px; height: 20px; flex: none; transition: transform 300ms var(--ease); }

/* header */
.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 150px; height: auto; }
.nav { display: none; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 560; font-size: 1rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent-fill); }
.nav-mobile { display: flex; align-items: center; gap: 10px; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 48px; padding: 12px 18px;
  border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 640; font-size: 1rem; line-height: 1.2;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--bg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
  display: grid; min-width: 250px; padding: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgb(23 20 31 / 0.28);
}
.menu-panel a { padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 10px; }
.menu-panel a:hover { background: var(--surface); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-mobile { display: none; }
}

/* secties */
.section { padding-block: clamp(72px, 10vw, 144px); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* hero: twee deuren */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: end; }
.hero-text { display: grid; gap: 24px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; }
.hero h1 .via { color: var(--accent-text); }
.doors { display: grid; gap: 12px; margin-top: 16px; }
.door {
  position: relative; display: grid; gap: 6px; align-content: end;
  min-height: 168px; padding: 24px 24px 22px;
  border-radius: 20px; text-decoration: none;
  transition: transform 400ms var(--ease), background-color 300ms var(--ease);
}
.door strong { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 760; }
.door span { font-size: 1rem; }
.door .arrow { position: absolute; top: 22px; right: 22px; width: 28px; height: 28px; }
.door:hover .arrow { transform: translateX(6px); }
.door:hover { transform: translateY(-3px); }
.door-org { background: var(--accent-fill); color: var(--on-accent); }
.door-org span { color: var(--on-accent-muted); }
.door-pro { border: 1.5px solid var(--ink); color: var(--ink); }
.door-pro span { color: var(--ink-muted); }
.door-pro:hover { background: var(--surface); }
.hero-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
  .hero-photo { aspect-ratio: 4 / 5; }
}

/* sectoren: typografische lijst */
.sectors { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.sectors li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--line);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}
.sectors li small { font-size: 1rem; font-weight: 450; letter-spacing: 0; color: var(--ink-muted); text-align: right; max-width: 22ch; line-height: 1.4; }
@media (min-width: 900px) {
  .sectors { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
}
.sectors-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .sectors-grid { grid-template-columns: 4fr 8fr; align-items: start; } .sectors-grid .section-head { position: sticky; top: 32px; } .sectors { grid-template-columns: 1fr; } }

/* werkwijze: twee kanten */
.how { background: var(--surface); }
.how-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.how-col { display: grid; gap: 28px; align-content: start; }
.how-col h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.02em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(s); grid-row: span 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums;
}
.steps h4 { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 700; padding-top: 6px; }
.steps p { color: var(--ink-muted); max-width: 46ch; }
.how-col .btn { justify-self: start; }

/* beeldstrook */
.band { margin: 0; overflow: hidden; }
.band img { width: 100%; height: clamp(260px, 42vw, 620px); object-fit: cover; }

/* waarden */
.values-grid { display: grid; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 1000px) { .values-grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.values-quote { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.values { margin: 0; display: grid; gap: 0; }
.values div { display: grid; gap: 6px; padding-block: 22px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .values div { grid-template-columns: 200px 1fr; gap: 24px; } }
.values dt { font-weight: 760; font-size: 1.25rem; letter-spacing: -0.01em; }
.values dd { margin: 0; color: var(--ink-muted); max-width: 52ch; }

/* contactstrook */
.callout { border-top: 1px solid var(--line); }
.callout-grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .callout-grid { grid-template-columns: 1fr auto; } }
.callout .big { font-size: clamp(2.2rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-decoration: none; color: var(--ink); display: inline-block; }
.callout .big:hover { color: var(--accent-text); }
.callout-meta { display: grid; gap: 6px; color: var(--ink-muted); }
.callout-meta a { color: var(--ink); }

/* subpagina's */
.page-head { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 6vw, 80px); }
.page-head-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: end; }
.page-head .text { display: grid; gap: 24px; }
.page-head figure { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 2; }
.page-head figure img { width: 100%; height: 100%; object-fit: cover; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) { .page-head-grid { grid-template-columns: 6fr 6fr; } }

.offer { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 1000px) { .offer { grid-template-columns: 5fr 7fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.ticks svg { width: 22px; height: 22px; margin-top: 4px; color: var(--accent-text); }
.ticks strong { display: block; font-size: 1.15rem; }
.ticks span { color: var(--ink-muted); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 560; font-size: 1rem; }

.story { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 1000px) { .story { grid-template-columns: 7fr 5fr; align-items: start; } }
.story .prose { display: grid; gap: 20px; max-width: 62ch; }
.story .prose p:first-of-type { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.story .prose p { color: var(--ink-muted); }
.story figure { margin: 0; border-radius: 24px; overflow: hidden; }

.place { display: grid; gap: 24px; }
@media (min-width: 900px) { .place { grid-template-columns: 1fr 1fr; align-items: end; } }
.place address { font-style: normal; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* formulier */
.form-wrap { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 1000px) { .form-wrap { grid-template-columns: 4fr 8fr; align-items: start; } }
.form-intro { display: grid; gap: 18px; }
.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 48px); background: var(--surface); border-radius: 24px; }
.form .row { display: grid; gap: 22px; }
@media (min-width: 700px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 640; font-size: 1rem; padding: 0; }
.hint { font-weight: 400; color: var(--ink-muted); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color 150ms;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #c4314b; }
.error { display: none; font-size: 0.9375rem; color: #b42840; font-weight: 560; }
@media (prefers-color-scheme: dark) {
  input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #ff8fa3; }
  .error { color: #ff9cad; }
}
input:user-invalid ~ .error, select:user-invalid ~ .error, textarea:user-invalid ~ .error { display: block; }
.form .privacy { font-size: 0.9375rem; color: var(--ink-muted); }
.form button { justify-self: start; }
.sent { display: none; padding: 18px 20px; border-radius: 14px; background: var(--accent-fill); color: var(--on-accent); }
.sent:target { display: block; }
.sent a { color: inherit; }

.routes { display: grid; gap: 12px; }
@media (min-width: 700px) { .routes { grid-template-columns: 1fr 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.contact-list li { display: grid; gap: 2px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: 0.9375rem; color: var(--ink-muted); }
.contact-list a, .contact-list .v { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent-text); }

/* footer */
.site-footer { background: var(--surface); padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { width: 180px; }
.footer-brand p { color: var(--ink-muted); max-width: 30ch; }
.col-title { font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); }
.site-footer address { font-style: normal; color: var(--ink-muted); }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-muted); font-size: 0.9375rem; }

.notfound { padding-block: clamp(64px, 10vw, 140px); display: grid; gap: 28px; }
.notfound .routes { max-width: 820px; }

/* beweging: alleen als het mag; standaard staat alles */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span { animation: line-up 1000ms var(--ease) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 110ms; }
  .hero .lead { animation: fade-up 900ms var(--ease) 260ms both; }
  .door { animation: fade-up 900ms var(--ease) both; }
  .door-org { animation-delay: 380ms; }
  .door-pro { animation-delay: 470ms; }
  .hero-photo img, .page-head figure img { animation: settle 1800ms var(--ease) both; }

  @supports (animation-timeline: view()) {
    .reveal { animation: open-up linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .band img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    .sectors li { animation: slide-in linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
  }
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.08); } }
@keyframes open-up { from { clip-path: inset(14% 6% round 24px); } to { clip-path: inset(0 0 round 0); } }
@keyframes drift { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }
@keyframes slide-in { from { opacity: 0.2; transform: translateX(-24px); } }

.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; }
.steps h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 700; padding-top: 6px; letter-spacing: -0.01em; }
.how > .wrap > .steps { max-width: 760px; }
.form h3 { font-size: 1.6rem; }
.page-head > .wrap > .text { max-width: 900px; }
::placeholder { color: var(--ink-muted); opacity: 1; }
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }

/* ---- Warmwerk-niveau (19-11-2026) ---- */
.panel { margin-inline: clamp(8px, 1.2vw, 16px); border-radius: clamp(20px, 2.4vw, 32px); overflow: hidden; }
.hero.panel { background: var(--surface); padding-inline: 0; }
.hero-photo { position: relative; }
.float-card { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; background: rgb(23 20 31 / 0.82); backdrop-filter: blur(8px); color: #ffffff; text-decoration: none; }
.float-card strong { font-size: 1.1rem; }
.float-card span { color: #e4dcff; }

.switch { position: relative; display: inline-flex; gap: 4px; padding: 4px; margin-bottom: clamp(28px, 4vw, 48px); border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.switch input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.switch label { padding: 12px 22px; border-radius: 999px; font-weight: 650; cursor: pointer; transition: background-color 250ms var(--ease), color 250ms var(--ease); }
.switch input:checked + label { background: var(--accent-fill); color: var(--on-accent); }
.switch input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
@supports selector(:has(*)) {
  .how-grid { grid-template-columns: 1fr !important; }
  .how:has(#kant-org:checked) .how-col:nth-child(2), .how:has(#kant-pro:checked) .how-col:first-child { display: none; }
  @media (min-width: 900px) { .how-col { grid-template-columns: 6fr 5fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; } .how-col h3, .how-col .steps, .how-col .btn { grid-column: 1; } .how-col .how-photo { grid-column: 2; grid-row: 1 / span 3; } }
  .how-col { animation: fade-in 500ms var(--ease) both; }
}
.how-photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.how-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } }

.band.panel { margin-block: clamp(8px, 1.2vw, 16px); }
.values-panel { background: var(--ink); color: var(--bg); }
.values-panel .values div { border-top-color: color-mix(in oklab, var(--bg) 22%, transparent); }
.values-panel .values dd { color: color-mix(in oklab, var(--bg) 78%, var(--ink)); }

.route-cards { display: grid; gap: 16px; }
@media (min-width: 860px) { .route-cards { grid-template-columns: repeat(3, 1fr); } }
.rcard { position: relative; display: grid; align-content: end; gap: 6px; min-height: 360px; padding: 26px; border-radius: 24px; overflow: hidden; isolation: isolate; color: #ffffff; text-decoration: none; }
.rcard img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.rcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(23 20 31 / 0.96) 38%, rgb(23 20 31 / 0.25) 80%); }
.rcard:hover img { transform: scale(1.05); }
.rcard .t { font-size: 1.5rem; font-weight: 760; letter-spacing: -0.02em; }
.rcard .d { color: #e4dcff; }

.callout.panel { background: var(--accent-fill); color: var(--on-accent); border-top: 0; margin-bottom: clamp(8px, 1.2vw, 16px); }
.callout.panel .big, .callout.panel .callout-meta, .callout.panel .callout-meta a { color: var(--on-accent); }
.callout.panel :focus-visible { outline-color: var(--on-accent); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .panel:not(.hero) { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    .rcard { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@keyframes grow { from { transform: scale(0.95); } }
