/* Kennis & Veiligheid — BHV — clean rewrite */
:root {
  --primary: #E20001;
  --primary-dark: #b80001;
  --navy: #0B1956;
  --navy-dark: #070f3a;
  --secondary: #222222;
  --text: #555555;
  --heading: #222222;
  --muted: #6b7280;
  --bg: #0B1956;
  --bg-alt: #0d1d66;
  --border: #e5e7eb;
  --radius: 6px;
  --max: 1200px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* Dark section variant — matches original Kennis & Veiligheid accent */
section.dark {
  background: var(--navy);
  color: #ffffff;
}
section.dark h1,
section.dark h2,
section.dark h3,
section.dark h4,
section.dark h5,
section.dark h6 { color: #ffffff; }
section.dark p { color: rgba(255,255,255,0.85); }
section.dark .section-head p { color: rgba(255,255,255,0.75); }
section.dark .step .num { background: var(--primary); color: #fff; box-shadow: 0 0 0 6px rgba(226,0,1,0.18); }
section.dark .value-card,
section.dark .review,
section.dark .course-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
section.dark .value-card h3,
section.dark .review .name,
section.dark .course-card h3 { color: #fff; }
section.dark .value-card p,
section.dark .review p { color: rgba(255,255,255,0.78); }
section.dark .value-card .icon { background: rgba(226,0,1,0.18); color: #fff; }
section.dark .course-card .meta { color: rgba(255,255,255,0.7); }
section.dark .course-card .meta li { border-color: rgba(255,255,255,0.12); }
section.dark .gift {
  background: rgba(226,0,1,0.18);
  border-left-color: var(--primary);
  color: #fff;
}
section.dark form.knv-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
section.dark form.knv-form input,
section.dark form.knv-form select,
section.dark form.knv-form textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
section.dark form.knv-form input::placeholder,
section.dark form.knv-form textarea::placeholder { color: rgba(255,255,255,0.55); }
section.dark .contact-info p,
section.dark .contact-info a { color: rgba(255,255,255,0.85); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  background: var(--primary);
  width: 0;
  z-index: 200;
  transition: width .1s linear;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  background: #0B1956;
  -webkit-font-smoothing: antialiased;
}
section, section.alt { background: #0B1956 !important; }
h1, h2, h3, h4, h5, h6 { color: #ffffff !important; }
p, li { color: rgba(255,255,255,0.85); }
.section-head p { color: rgba(255,255,255,0.75); }

/* Header navy */
.site-header { background: #0B1956 !important; border-bottom-color: rgba(255,255,255,0.1) !important; }
.brand-text, .nav a, .menu-toggle { color: #fff !important; }
.nav a:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 900px) {
  .nav { background: #0B1956 !important; border-bottom-color: rgba(255,255,255,0.12) !important; }
}

/* Cards */
.value-card, .course-card, .review, .faq details {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #fff;
}
.value-card p, .review p, .step p, .faq details p, .course-card .meta { color: rgba(255,255,255,0.78) !important; }
.course-card .meta li { border-color: rgba(255,255,255,0.12) !important; }
.value-card .icon { background: rgba(226,0,1,0.2); color: #fff; }
.faq summary { color: #fff !important; }
.gift { background: rgba(226,0,1,0.18); color: #fff; }

/* Form */
form.knv-form {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
form.knv-form input, form.knv-form select, form.knv-form textarea {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #fff !important;
}
form.knv-form input::placeholder, form.knv-form textarea::placeholder { color: rgba(255,255,255,0.55) !important; }
.hero-form { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.14) !important; }
.hero-form h3 { color: #fff !important; }

/* Contact info */
.contact-info p, .contact-info a { color: rgba(255,255,255,0.85); }

/* Footer */
.site-footer { background: #070f3a !important; }

/* Hero — DARK navy (matches original element 701ff57) */
section.hero {
  background: var(--navy);
  color: #fff;
  padding: 90px 0;
}
section.hero h1, section.hero h2, section.hero h3 { color: #fff; }
section.hero p, section.hero ul li { color: rgba(255,255,255,0.85); }
section.hero ul li::before { color: var(--primary); }
.hero-form {
  background: #fff;
  color: var(--text);
}
.hero-form h3 { color: var(--heading); }

/* Cursussen — DARK navy (matches original element b28163b) */
section#cursussen {
  background: var(--navy);
  color: #fff;
}
section#cursussen .section-head h2 { color: #fff; }
section#cursussen .section-head p { color: rgba(255,255,255,0.78); }
section#cursussen .course-card {
  background: #fff;
  color: var(--text);
}
section#cursussen .course-card h3 { color: var(--heading); }
section#cursussen > .container > p { color: rgba(255,255,255,0.85); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p + p { margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand-text { font-weight: 800; color: var(--navy); font-size: 1.1rem; line-height: 1; }
.brand-text small { display: block; color: var(--primary); font-size: .75rem; font-weight: 600; margin-top: 2px; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--navy);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-alt); text-decoration: none; }
.nav .btn { background: var(--primary); color: #fff; font-weight: 600; }
.nav .btn:hover { background: var(--primary-dark); color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #f7f8fa 0%, #ffffff 100%);
  padding: 70px 0 80px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--navy); }
.hero h1 span { color: var(--primary); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }
.hero ul { list-style: none; padding: 0; margin: 0 0 32px; }
.hero ul li { position: relative; padding-left: 28px; margin-bottom: 10px; font-weight: 500; }
.hero ul li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  color: var(--primary);
  font-weight: 800;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .12s ease, background .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: var(--bg); color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; text-decoration: none; }

.hero-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(15,23,42,0.10);
  padding: 32px;
  border: 1px solid var(--border);
}
.hero-form h3 { margin: 0 0 18px; font-size: 1.35rem; }

/* ---------- Sections ---------- */
section { padding: 80px 0; background: var(--bg); }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }

/* ---------- Kernwaarden ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value-card .icon {
  width: 52px; height: 52px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--muted); margin: 0; }

/* ---------- Cursussen ---------- */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.course-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-card h3 { font-size: 1.1rem; margin-bottom: 12px; min-height: 2.6em; }
.course-card .meta { list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.course-card .meta li { padding: 4px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.course-card .meta li:first-child { border-top: 0; }
.course-card .cta { margin-top: auto; }

/* ---------- Proces ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { text-align: center; padding: 0 12px; counter-increment: step; }
.step .num {
  width: 64px; height: 64px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.5rem;
  margin: 0 auto 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Recensies ---------- */
.reviews-summary { text-align: center; margin-bottom: 32px; }
.stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 2px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.review header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-alt); color: var(--navy);
  display: grid; place-items: center; font-weight: 700;
}
.review .name { font-weight: 700; color: var(--navy); }
.review .when { font-size: .82rem; color: var(--muted); }
.review p { margin: 0; color: var(--text); font-size: .94rem; }

/* ---------- Over Ons ---------- */
.over-ons { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.over-ons img { border-radius: var(--radius); box-shadow: var(--shadow); }
.video-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-wrap video { width: 100%; height: auto; display: block; aspect-ratio: 9/16; max-height: 600px; object-fit: cover; }
.gift {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(200, 16, 46, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info h3 { margin-top: 24px; margin-bottom: 4px; font-size: 1rem; }
.contact-info p { color: var(--muted); margin: 0; }
.contact-info a { color: var(--text); }

form.knv-form { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
form.knv-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.knv-form input, form.knv-form select, form.knv-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 14px;
  background: #fff;
}
form.knv-form input:focus, form.knv-form select:focus, form.knv-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}
form.knv-form textarea { min-height: 120px; resize: vertical; }
form.knv-form button { width: 100%; }
.form-msg { margin-top: 14px; padding: 12px; border-radius: 6px; display: none; }
.form-msg.success { display: block; background: #e2fde5; color: #0a6b1f; }
.form-msg.error { display: block; background: #fde2e2; color: #a40000; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 56px 0 24px;
  margin-top: 0;
}
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: 4px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: .9rem;
  color: #94a3b8;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 90;
  font-size: 28px;
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container,
  .over-ons,
  .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  form.knv-form .row { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
