/* =========================================================
   WELZIJNWERK — ONEPAGER CSS (Clean / Mobile-first)
   Brand:
   - Navy:   #142f59
   - Teal:   #168d95
   - Orange: #f5720b (accent/hover)
   - Light:  #e1e3e6
   Font: Montserrat (400/600/700)
   ========================================================= */

/* -------------------- Tokens -------------------- */
:root {
  --c-navy: #142f59;
  --c-teal: #168d95;
  --c-orange: #f5720b;
  --c-orange-hover: #c75100;

  --c-bg: #e1e3e6;
  --c-white: #ffffff;

  --c-text: var(--c-navy);
  --c-muted: rgba(20, 47, 89, 0.78);
  --c-border: rgba(20, 47, 89, 0.14);
  --c-ring: rgba(22, 141, 149, 0.55);

  --shadow-sm: 0 6px 18px rgba(20, 47, 89, 0.08);
  --shadow-md: 0 12px 28px rgba(20, 47, 89, 0.12);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --container: 1120px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* Fallback. Wordt door main.js overschreven. */
  --header-offset: 76px;
}

/* -------------------- Reset / basis -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding-top: var(--header-offset);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Anchor offset extra betrouwbaar (naast scroll-padding-top) */
section[id] {
  scroll-margin-top: calc(var(--header-offset) + var(--space-3));
}

/* Links */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(22, 141, 149, 0.65);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--c-orange);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-ring);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Typografie */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-3); }

.muted { color: var(--c-muted); }

/* Container */
.container,
.header-container,
.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Skip link + sr-only */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--c-white);
  color: var(--c-text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  z-index: 2000;
}
.skip-link:focus { left: 10px; }

.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =========================================================
   HEADER (alleen .site-header fixed — NIET alle <header>)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 6px 18px rgba(20, 47, 89, 0.06);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: blur(8px); }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  min-height: 64px;

  position: relative; /* voor mobile dropdown positioning */
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Burger button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;

  background: rgba(225, 227, 230, 0.6);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__icon {
  width: 20px;
  height: 2px;
  background: var(--c-navy);
  position: relative;
  display: block;
  border-radius: var(--radius-pill);
  transition: background-color 160ms ease;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--c-navy);
  border-radius: var(--radius-pill);
  transition: transform 160ms ease, top 160ms ease;
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after  { top:  6px; }

/* Burger -> X als menu open */
body.nav-open .nav-toggle__icon { background: transparent; }
body.nav-open .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle__icon::after  { top: 0; transform: rotate(-45deg); }

/* Nav */
.primary-nav {
  display: none;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.primary-nav a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.primary-nav a:hover {
  background: rgba(225, 227, 230, 0.65);
  border-color: var(--c-border);
}

/* Mobile dropdown */
body.nav-open .primary-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);

  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;

  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-3);

  box-shadow: var(--shadow-md);

  max-height: calc(100vh - var(--header-offset) - 12px);
  overflow: auto;
}

.header-cta {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    display: flex !important;
    align-items: center;
    gap: var(--space-2);
    position: static;
  }

  .primary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .primary-nav a {
    padding: 8px 10px;
  }

  .header-cta {
    width: auto;
    margin-top: 0;
    margin-left: var(--space-2);
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: var(--c-teal);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.18);

  padding: 12px 18px;
  border-radius: var(--radius-pill);

  font-weight: 700;
  text-decoration: none;

  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cta-button:hover {
  background: var(--c-orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.cta-button--small {
  padding: 10px 14px;
}

/* Secondary button on dark hero */
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.38);

  color: var(--c-white);
  text-decoration: none;
  font-weight: 700;

  background: rgba(255, 255, 255, 0.10);
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.52);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: var(--space-7) 0 var(--space-6);
  color: var(--c-white);

  background:
    radial-gradient(70% 120% at 18% 10%, rgba(22, 141, 149, 0.35) 0%, rgba(22, 141, 149, 0) 55%),
    linear-gradient(135deg, #0f2445 0%, var(--c-navy) 55%, #0b1a33 100%);
}

.hero-inner {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }
}

.kicker {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(242, 245, 247, 0.92);
}

.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  color: rgba(242, 245, 247, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
}

/* Hero side card */
.hero-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

.hero-card__title {
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
}

.hero-card__list {
  margin: 0 0 var(--space-4);
  padding-left: 18px;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: var(--space-7) 0;
}

.section--alt {
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

/* Section titles */
.section-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-header p {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--c-muted);
}

/* CTA center in section */
.section-cta {
  margin-top: var(--space-5);
  text-align: center;
}

/* =========================================================
   CARDS
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card li { margin-bottom: 6px; }

/* Card link bottom aligned */
.card-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(22, 141, 149, 0.55);
  padding-bottom: 2px;
  display: inline-flex;
  width: fit-content;
}
.card-link:hover {
  border-bottom-color: var(--c-orange);
}

/* Note block */
.note {
  margin-top: var(--space-4);
}

/* =========================================================
   STEPS
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.step {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid rgba(22, 141, 149, 0.85);
}

/* =========================================================
   FAQ (details/summary)
   ========================================================= */
.faq details {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-2);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "▾";
  float: right;
  opacity: 0.7;
}

.faq details[open] summary::after {
  content: "▴";
}

/* =========================================================
   CONTACT / FORMS
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

label {
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: var(--c-white);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(22, 141, 149, 0.6);
}

textarea { resize: vertical; }

.form-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-span-2 { grid-column: 1 / -1; }
}

.form-note { margin-top: 10px; }

/* Final CTA */
.final-cta { margin-top: var(--space-6); }

.final-cta__inner {
  background: linear-gradient(135deg, #0f2445 0%, var(--c-navy) 55%, #0b1a33 100%);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.final-cta__inner p {
  max-width: 70ch;
  margin: 0 auto var(--space-3);
  color: rgba(242, 245, 247, 0.92);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--c-navy);
  color: var(--c-white);
  margin-top: var(--space-6);
}

.footer-container {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);

  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

footer h3 {
  color: var(--c-white);
  margin-top: 0;
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
  position: relative;
}

footer h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  border-radius: var(--radius-pill);
  background: rgba(22, 141, 149, 0.9);
}

footer p {
  color: rgba(242, 245, 247, 0.92);
}

footer a {
  color: var(--c-white);
  text-decoration-color: rgba(22, 141, 149, 0.7);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(242, 245, 247, 0.18);
  padding: var(--space-3);
  text-align: center;
  color: rgba(242, 245, 247, 0.85);
  font-size: 0.95rem;
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* =========================================================
   HERO met achtergrondfoto + brand overlay
   Plak dit ONDERAAN style.css
   ========================================================= */

.hero.hero--image{
  position: relative;
  overflow: hidden;
  color: var(--c-white);

  /* fallback als image nog niet geladen is */
  background: linear-gradient(135deg, #0f2445 0%, #07162a 100%);
}

/* Background image layer */
.hero.hero--image .hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero.hero--image .hero-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Belangrijk: behoud gezichten/hoofden in crop */
  object-position: 50% 30%;

  /* heel subtiel: demp de oranje vest een beetje */
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.02);
}

/* Brand overlay (navy links -> lichter rechts + teal glow) */
.hero.hero--image::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(70% 120% at 18% 10%,
      rgba(22, 141, 149, 0.35) 0%,
      rgba(22, 141, 149, 0) 55%),
    linear-gradient(90deg,
      rgba(15, 36, 69, 0.92) 0%,
      rgba(20, 47, 89, 0.86) 40%,
      rgba(20, 47, 89, 0.65) 62%,
      rgba(20, 47, 89, 0.40) 80%,
      rgba(20, 47, 89, 0.22) 100%);
}

/* Content boven overlay */
.hero.hero--image .hero-inner{
  position: relative;
  z-index: 2;
}

/* Hero-card: net iets “premium” boven de foto */
.hero.hero--image .hero-card{
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@supports (backdrop-filter: blur(6px)){
  .hero.hero--image .hero-card{
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
  }
}

/* Mobiel: crop iets hoger zodat gezichten beter zichtbaar blijven */
@media (max-width: 699px){
  .hero.hero--image .hero-bg img{
    object-position: 50% 22%;
  }
}