/*
   NHS Advies @ Arbeid — stylesheet
   Statische site, geen frameworks. Kleuren en opbouw volgen de oorspronkelijke
   site: donkerblauw #004975 met goud accent #edd55c.
*/

:root {
  --color-primary: #004975;
  --color-primary-dark: #00304d;
  --color-gold: #edd55c;
  --color-gold-deep: #d3ad00;
  --color-ink: #333333;
  --color-ink-soft: #707070;
  --color-paper: #ffffff;
  --color-paper-soft: #f8f8f8;
  --color-border: #e2e6e9;
  --font-sans: Ubuntu, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.14);
  --max-width: 1200px;
  --header-height: 92px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink-soft);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--color-primary-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-gold-deep);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-primary); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  height: var(--header-height);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height);
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-mark { height: 60px; width: auto; flex-shrink: 0; object-fit: contain; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-border);
  border-radius: 8px; padding: 0.5rem 0.65rem; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--color-primary);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.main-nav > ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; align-items: center; }
.sub-nav { list-style: none; margin: 0; padding: 0; }
.main-nav a, .sub-toggle {
  color: var(--color-primary); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.sub-toggle {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 0.35rem;
}
.sub-toggle::after {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--color-primary);
}
.main-nav a:hover, .sub-toggle:hover { color: var(--color-gold-deep); }

.has-sub { position: relative; }
.sub-nav {
  display: none; position: absolute; top: 100%; left: -1rem;
  background: var(--color-paper); box-shadow: var(--shadow-lg);
  border-radius: var(--radius); padding: 0.5rem 0; min-width: 260px;
  flex-direction: column; gap: 0;
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { display: flex; }
.sub-nav a { display: block; padding: 0.6rem 1.25rem; font-weight: 500; white-space: nowrap; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--color-paper); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 0.5rem 0; align-items: stretch; }
  .main-nav > ul > li { border-top: 1px solid var(--color-border); }
  .main-nav > ul > li:first-child { border-top: none; }
  .main-nav a, .sub-toggle { display: block; padding: 0.9rem 1.5rem; width: 100%; text-align: left; }
  .sub-nav { display: flex; position: static; box-shadow: none; padding: 0 0 0.5rem; min-width: 0; }
  .sub-nav a { padding-left: 2.75rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Hoogte schaalt mee met de vensterbreedte; brandpunt rechts op 32% van
     boven, zodat Natascha bij elk formaat in beeld blijft. */
  height: clamp(480px, 41vw, 780px);
  display: flex;
  align-items: center;
  background-image: url('/img/hero.jpg');
  background-size: cover;
  background-position: 100% 32%;
  background-repeat: no-repeat;
}
.hero-card {
  background: var(--color-primary);
  color: #fff;
  max-width: 480px;
  padding: 3rem 2.5rem;
  text-align: center;
}
.hero-logo { width: 200px; margin: 0 auto 1.75rem; }
.hero-tagline { font-size: 1.15rem; font-weight: 500; line-height: 1.45; margin: 0 0 2rem; }
.hero-signature { width: 200px; margin: 0 auto; }

/* Onder de navigatie-breekpunt staat het blauwe blok boven de foto, zodat het
   de foto niet half afdekt. */
@media (max-width: 900px) {
  .hero { height: auto; background-image: none; display: block; }
  .hero .container { padding: 0; }
  .hero-card { max-width: none; padding: 2.5rem 1.5rem; }
  .hero::after {
    content: ""; display: block; height: min(62vw, 380px);
    background: url('/img/hero-mobiel.jpg') 70% 38% / cover no-repeat;
  }
}

/* ---------- Secties ---------- */
section { padding: 4.5rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin: 0 0 1rem; }
.rule { width: 76px; height: 6px; background: var(--color-gold); margin: 0 0 1.75rem; }
.rule-gold { background: var(--color-gold); }
.rule-wit { background: #fff; }

section p, section ul, section ol { max-width: 78ch; }
.intro { color: var(--color-primary); }
.lead-bold { font-weight: 700; color: var(--color-ink-soft); margin-bottom: 0.5rem; }
section ul { padding-left: 1.25rem; }
section ul li { margin-bottom: 0.5rem; }
.statement {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700; color: var(--color-primary); line-height: 1.3;
  margin: 0 0 2rem; max-width: 24ch;
}
#over h3 { font-size: 1.1rem; margin: 2rem 0 0.4rem; }

/* ---------- Werkwijze ---------- */
.steps-title { font-size: 1.1rem; margin: 3rem 0 2.25rem; }
.steps {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; align-items: stretch; gap: 1.75rem;
}
.step {
  position: relative;
  flex: 1 1 0;
  background: var(--color-primary);
  border-radius: var(--radius);
  padding: 3.25rem 1rem 2rem;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; min-height: 220px;
}
.step + .step::before {
  content: ""; position: absolute; left: -1.5rem; top: 50%;
  width: 1.25rem; height: 1.9rem;
  transform: translateY(-50%);
  background: var(--color-primary);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.step-num {
  position: absolute; top: -1.4rem; left: 50%; transform: translateX(-50%);
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--color-gold); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.35rem;
}
.step-label { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }

@media (max-width: 900px) {
  .steps { flex-direction: column; gap: 2.75rem; }
  .step { min-height: 0; padding: 2.75rem 1rem 1.5rem; }
  .step + .step::before {
    left: 50%; top: -2rem; transform: translateX(-50%);
    width: 1.9rem; height: 1.25rem;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
}

/* ---------- Quote-banden ---------- */
.quote-band { background: var(--color-primary); color: #fff; padding: 4rem 0; }
.quote-band-inner { max-width: 460px; margin-left: auto; text-align: right; }
.quote-band .rule { margin-left: auto; margin-bottom: 1.5rem; }
.quote-band blockquote {
  margin: 0 0 2rem; font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700; line-height: 1.45;
}
.quote-logo { width: 240px; margin-left: auto; }

@media (max-width: 760px) {
  .quote-band-inner { max-width: none; text-align: center; }
  .quote-band .rule { margin-left: auto; margin-right: auto; }
  .quote-logo { margin-right: auto; }
}

/* ---------- Fotobanden ---------- */
.photo-band { height: clamp(240px, 23vw, 430px); background-size: cover; background-position: center 45%; background-repeat: no-repeat; }
.photo-band-spoor { background-image: url('/img/band-2e-spoor.jpg'); }
.photo-band-over { background-image: url('/img/band-over.jpg'); }
@media (max-width: 760px) { .photo-band { height: min(46vw, 220px); } }

/* ---------- Veelgestelde vragen ---------- */
.faq { background: var(--color-gold); }
.faq .section-title { color: var(--color-primary); }
.faq-intro { color: #4a4636; margin-bottom: 2.5rem; }

.faq details {
  background: var(--color-paper);
  margin-bottom: 0.9rem;
  border-radius: 2px;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-weight: 700; color: var(--color-primary);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%;
  width: 0; height: 0; transform: translateY(-50%);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 8px solid var(--color-gold-deep);
}
.faq details[open] summary::after {
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 8px solid var(--color-gold-deep); border-bottom: 0;
}
.faq .faq-body { background: var(--color-paper-soft); padding: 1.5rem 1.4rem; }
.faq .faq-body p { margin-top: 0; }
.faq .faq-body p:last-child, .faq .faq-body ul:last-child { margin-bottom: 0; }
.faq .faq-body ul { max-width: none; }

/* ---------- Afsluitende quote ---------- */
.closing { padding: 4rem 0; text-align: center; }
.closing .rule { margin: 0 auto 1.75rem; }
.closing-quote {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic; color: var(--color-ink-soft); margin: 0;
  max-width: 60ch; margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary) url('/img/footer.jpg') right center / auto 100% no-repeat;
  color: #fff; padding: 3.5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; max-width: 720px; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 180px; }
.site-footer p { margin: 0 0 1.25rem; }
.footer-contact { line-height: 1.8; }
.site-footer a { color: var(--color-gold); }
.site-footer a:hover { color: #fff; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
}
.social-link svg { fill: var(--color-primary); }
.footer-note { font-size: 0.95rem; }
.footer-ae { width: 220px; }
.footer-legal { line-height: 1.9; }
.footer-bottom {
  margin: 2.5rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 760px) {
  .site-footer { background-image: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Terug naar boven ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
