/* HSEinhuren.be — design tokens + stijlen. Kleuren uit de brief. */
:root {
  --navy: #10283f;
  --navy-700: #1b3a57;
  --teal: #147d82;       /* 5.1:1 op wit */
  --teal-dark: #0d5f63;
  --teal-100: #e1f1f1;
  --orange: #f47a20;     /* knoppen: donkerblauwe tekst, 5.3:1 */
  --orange-600: #e06a10;
  --white: #fff;
  --grey: #f3f5f7;
  --border: #d9dfe5;
  --text: #15222f;
  --text-soft: #46566a;  /* 7:1 op wit */
  --ok: #0a6b3d;
  --err: #b42318;

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-6: 1.5rem;
  --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem; --sp-24: 6rem;

  --text-sm: clamp(.86rem, .83rem + .15vw, .95rem);
  --text-base: clamp(1rem, .96rem + .2vw, 1.1rem);
  --text-lg: clamp(1.15rem, 1.08rem + .4vw, 1.35rem);
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --text-3xl: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 8px; --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(16,40,63,.08), 0 10px 28px rgba(16,40,63,.10);
  --container: 1180px; --measure: 68ch;
  --header-h: 68px; --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { background: var(--white); color: var(--text); font: var(--text-base)/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: .005em; color: var(--navy); text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); margin-bottom: var(--sp-4); }
h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
h4 { font-size: var(--text-lg); }
p { max-width: var(--measure); }
p + p { margin-top: var(--sp-4); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
ul, ol { padding-left: 1.2rem; }
li + li { margin-top: .35rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #e8eef4; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #fff; }
.eyebrow { font: 700 .82rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: var(--sp-3); display: block; }
.section--navy .eyebrow { color: #7fd1d4; }
.lead { font-size: var(--text-lg); color: var(--text-soft); max-width: 62ch; }
.section--navy .lead { color: #cfdbe6; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius); font: 700 1rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; text-align: center; }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: var(--orange-600); color: var(--navy); transform: translateY(-1px); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.section--navy .btn--ghost, .hero .btn--ghost { border-color: #fff; color: #fff; }
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; height: var(--header-h); border-bottom: 3px solid var(--teal); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--sp-4); }
.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1; }
.brand b { font: 700 1.7rem/1 var(--font-display); letter-spacing: .02em; }
.brand b span { color: #f9a15f; }
.brand small { font-size: .68rem; letter-spacing: .08em; color: #b9c8d6; margin-top: 3px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > ul { display: flex; list-style: none; padding: 0; gap: 2px; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a.l, .nav button.l { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; color: #fff; text-decoration: none; font: 600 .95rem/1 var(--font-body); background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm); }
.nav a.l:hover, .nav button.l:hover, .nav a.l[aria-current] { background: rgba(255,255,255,.1); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 300px; box-shadow: var(--shadow); border-radius: var(--radius); padding: 8px; list-style: none; border-top: 3px solid var(--orange); }
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav .sub.open { display: block; }
.nav .sub a { display: block; padding: 10px 12px; color: var(--navy); text-decoration: none; font-weight: 600; border-radius: var(--radius-sm); font-size: .95rem; }
.nav .sub a:hover { background: var(--grey); }
.header .cta { margin-left: var(--sp-3); }
.menu-btn { display: none; background: none; border: 2px solid #fff; color: #fff; border-radius: var(--radius); min-height: 44px; padding: 0 14px; font: 700 .95rem var(--font-body); cursor: pointer; }
@media (max-width: 1100px) {
  .header .cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; max-height: calc(100vh - var(--header-h) - var(--bar-h)); overflow: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a.l, .nav button.l { width: 100%; }
  .nav .sub { display: block; position: static; background: transparent; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
  .nav .sub a { color: #dbe6ef; }
  .nav .sub a:hover { background: rgba(255,255,255,.08); }
}

/* Mobiele onderbalk */
.mbar { display: none; }
@media (max-width: 1100px) {
  body { padding-bottom: var(--bar-h); }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 3px solid var(--teal); }
  .mbar .btn { min-height: 48px; padding: .4rem .6rem; font-size: .95rem; }
  .mbar .btn--call { background: transparent; border-color: #fff; color: #fff; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero .container { display: grid; gap: var(--sp-8); padding-block: clamp(2.5rem, 7vw, 5rem); align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { color: #fff; }
.hero .sub-h { font: 700 var(--text-xl)/1.15 var(--font-display); color: #f9a15f; margin: var(--sp-3) 0 var(--sp-4); letter-spacing: .01em; }
.hero p { color: #d3dfea; font-size: var(--text-lg); }
.hero .eyebrow { color: #7fd1d4; }
.ticks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: var(--sp-6); color: #fff; font-weight: 600; font-size: .95rem; }
.ticks li { margin: 0; display: flex; gap: 8px; align-items: center; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); flex: none; }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.hero-art svg { width: 100%; height: auto; }
.page-hero { background: var(--navy); color: #fff; }
.page-hero .container { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: #d3dfea; font-size: var(--text-lg); margin-top: var(--sp-4); }
.crumbs { font-size: .85rem; color: #aebfce; margin-bottom: var(--sp-4); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: #d8e4ee; }

/* Rasters */
.grid { display: grid; gap: var(--sp-6); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; gap: var(--sp-8); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-12); } .split--wide { grid-template-columns: 1.3fr .7fr; } }
.section-head { margin-bottom: var(--sp-8); }

/* Keuzes (klantvragen) */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.choice { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 20px; background: #fff; border: 2px solid var(--border); border-left: 6px solid var(--teal); border-radius: var(--radius); text-decoration: none; color: var(--navy); font: 700 1.2rem/1.2 var(--font-display); min-height: 120px; transition: border-color .15s, box-shadow .15s; }
.choice span { font: 600 .9rem var(--font-body); color: var(--teal-dark); }
.choice:hover { border-color: var(--orange); border-left-color: var(--orange); box-shadow: var(--shadow); color: var(--navy); }

/* Kerndiensten: genummerde lijst */
.services { list-style: none; padding: 0; border-top: 1px solid var(--border); }
.services li { margin: 0; border-bottom: 1px solid var(--border); }
.services a { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px 18px; align-items: center; padding: 22px 8px; text-decoration: none; color: var(--text); }
.services a:hover { background: var(--grey); }
.services .n { font: 700 2rem/1 var(--font-display); color: var(--teal); }
.services h3 { margin: 0 0 4px; }
.services p { margin: 0; color: var(--text-soft); font-size: .98rem; }
.services .arrow { font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
@media (max-width: 600px) { .services a { grid-template-columns: 36px 1fr; } .services .arrow { display: none; } }

/* Taken */
.tasks { list-style: none; padding: 0; display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tasks li { margin: 0; padding: 12px 0 12px 34px; border-bottom: 1px solid rgba(255,255,255,.18); position: relative; }
.tasks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 18px; height: 18px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); border-radius: 50%; }
.section:not(.section--navy) .tasks li { border-bottom-color: var(--border); }

/* Stappen */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.steps li { margin: 0; counter-increment: s; position: relative; padding-top: 52px; border-top: 3px solid var(--teal); }
.steps li::before { content: counter(s); position: absolute; top: 8px; left: 0; font: 700 2.2rem/1 var(--font-display); color: var(--teal); }
.steps h3 { font-size: 1.25rem; }
.steps p { font-size: .96rem; color: var(--text-soft); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips li { margin: 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 2px solid var(--border); color: var(--navy); font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--teal); background: var(--teal-100); color: var(--navy); }
.chip--draft { border-style: dashed; }

/* Sectorkaarten */
.sector-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; padding: 0; }
.sector-list li { margin: 0; }
.sector-card { display: block; height: 100%; padding: 22px; border: 2px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.sector-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.sector-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.sector-card p { font-size: .96rem; color: var(--text-soft); }
.sector-card svg { width: 40px; height: 40px; margin-bottom: 10px; color: var(--teal); }

/* Inhoud */
.prose h2 { margin-top: var(--sp-12); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-6); }
.prose ul, .prose ol { max-width: var(--measure); margin-block: var(--sp-3); }
.note { background: var(--teal-100); border-left: 5px solid var(--teal); padding: 16px 20px; border-radius: var(--radius-sm); max-width: var(--measure); margin-block: var(--sp-6); color: var(--navy); font-size: .98rem; }
.side { background: var(--grey); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--teal); }
.side h3 { font-size: 1.35rem; }
.side ul { padding-left: 1.1rem; font-size: .96rem; }
.side .btn { width: 100%; margin-top: var(--sp-4); }
@media (min-width: 900px) { .sticky { position: sticky; top: calc(var(--header-h) + 20px); } }
.cols { columns: 2 260px; column-gap: 40px; max-width: 900px; }
.cols li { break-inside: avoid; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); max-width: 820px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 700 1.25rem/1.25 var(--font-display); color: var(--navy); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.8rem; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--text-soft); }

/* Formulieren */
.form { display: grid; gap: 18px; max-width: 760px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 680px) { .form .row--2 { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 1rem var(--font-body); color: var(--text); background: #fff; border: 2px solid #8794a3; border-radius: var(--radius); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--navy); }
.field .hint { font-size: .86rem; color: var(--text-soft); margin-top: 4px; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .err { color: var(--err); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--teal); }
.check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.more { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; background: var(--grey); }
.more summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 44px; color: var(--navy); }
.more .grid { padding-bottom: 18px; }
.alert { padding: 16px 20px; border-radius: var(--radius); font-weight: 600; max-width: 760px; }
.alert--ok { background: #e3f4ea; color: #064d2b; border: 2px solid var(--ok); }
.alert--err { background: #fdecea; color: #7a1710; border: 2px solid var(--err); }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }

/* Footer */
.footer { background: var(--navy); color: #c7d4e0; padding-top: var(--sp-12); font-size: .95rem; }
.footer a { color: #fff; }
.footer h2 { font: 700 1.1rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #7fd1d4; margin-bottom: var(--sp-3); }
.footer ul { list-style: none; padding: 0; }
.footer li { margin: 0 0 6px; }
.fgrid { display: grid; gap: var(--sp-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); padding-bottom: var(--sp-8); }
.fbar { border-top: 1px solid rgba(255,255,255,.15); padding-block: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Beweging: bescheiden */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
  .reveal.in { opacity: 1; transform: none; }
}
@media print { .header, .mbar, .footer { display: none; } }

/* Zelf gehoste lettertypen (OFL, via Fontsource) — geen verbinding met Google */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* Foto's */
.photo { display: block; border-radius: var(--radius, 12px); overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-art--photo { border: 0; box-shadow: none; background: none; }
.page-hero--photo .container { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 900px) { .page-hero--photo .container { grid-template-columns: 1.25fr .75fr; } }
.page-hero__art { max-width: 560px; width: 100%; }

.hero .container > *, .page-hero .container > * { min-width: 0; }
.photo img { max-width: 100%; }
