/* Berchum Interim Management, website v1.0
   Huisstijl: HUISSTIJLGIDS v1.0 (tokens § 8.1). Geen externe bronnen, geen inline styles (CSP). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (licht thema) ---------- */
:root {
  color-scheme: light dark;
  --navy: #04325C;
  --navy-50: #F2F5F7;
  --navy-100: #E6EAEF;
  --navy-200: #CDD6DE;
  --navy-300: #AAB9C8;
  --navy-400: #879DB1;
  --navy-700: #1D466C;
  --navy-900: #03203C;
  --blauw: #4A7296;
  --blauw-100: #DEE6EC;
  --groen: #8FB078;
  --groen-donker: #5C714D;
  --inkt: #1F2933;
  --grijs-tekst: #5B6670;
  --lijn: #D5DBE1;
  --achtergrond: #F5F7F9;
  --wit: #FFFFFF;
  --signaal: #B8461B;

  --bg: var(--wit);
  --bg-subtle: var(--achtergrond);
  --bg-header: var(--wit);
  --text: var(--inkt);
  --text-muted: var(--grijs-tekst);
  --heading: var(--navy);
  --link: var(--navy);
  --accent-text: var(--groen-donker);
  --border: var(--lijn);
  --field-border: var(--grijs-tekst);
  --field-bg: var(--wit);
  --focus: var(--blauw);
  --decor: var(--groen);
  --plane-1: var(--navy-50);
  --plane-2: var(--blauw-100);
  --btn-bg: var(--navy);
  --btn-bg-hover: var(--navy-700);
  --btn-text: var(--wit);
  --error: var(--signaal);
  --card-bg: var(--wit);
  --kpi-bg: var(--navy-50);
  --footer-bg: var(--navy);
  --footer-text: var(--navy-200);

  --font-heading: "Manrope", Arial, "Helvetica Neue", sans-serif;
  --font-body: "Inter", Arial, "Helvetica Neue", sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-900);
    --bg-subtle: #062744;
    --bg-header: var(--navy-900);
    --text: var(--navy-100);
    --text-muted: var(--navy-300);
    --heading: var(--wit);
    --link: var(--wit);
    --accent-text: var(--groen);
    --border: var(--navy-700);
    --field-border: var(--navy-400);
    --field-bg: var(--navy-900);
    --focus: var(--groen);
    --plane-1: #0A2B4C;
    --plane-2: var(--navy-700);
    --btn-bg: var(--groen);
    --btn-bg-hover: #A8C196;
    --btn-text: var(--navy-900);
    --error: #F2A07B;
    --card-bg: var(--navy);
    --kpi-bg: var(--navy-900);
    --footer-bg: #021829;
    --footer-text: var(--navy-200);
  }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin: 0 0 0.5em;
}
h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 1.625rem; font-weight: 700; line-height: 1.27; letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.36; }
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.375rem; }
}
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.caption {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.lead { font-size: 1.125rem; }
.measure { max-width: 680px; }

/* Hellingstreep (HSG § 5.2): parallellogram onder 30,96 graden, vóór H1/H2 */
.slope-mark {
  display: inline-block;
  width: 40px;
  height: 34px;              /* 10 px dik + 0,6 x 40 px helling */
  margin-right: 10px;
  background: var(--decor);
  clip-path: polygon(0 100%, 0 70.6%, 100% 0, 100% 29.4%);
  vertical-align: -2px;
}
h2 .slope-mark { width: 30px; height: 25.5px; margin-right: 8px; clip-path: polygon(0 100%, 0 70.6%, 100% 0, 100% 29.4%); }

/* ---------- Skip-link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 160px; height: auto; }
@media (min-width: 768px) { .brand img { width: 200px; } }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: inline-block;
  padding: 10px 10px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--heading);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent-text); }
.site-nav a[aria-current="true"] { border-bottom-color: var(--accent-text); }
.site-nav .lang a {
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.site-nav .btn { color: var(--btn-text); border-bottom: 0; margin-left: 8px; }

/* Mobiel menu, alleen als JavaScript actief is (zonder JS blijft het menu een scrollbare rij) */
@media (max-width: 1023px) {
  .site-nav .btn { margin-left: 0; }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-header .container { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  html:not(.js) .site-nav { width: 100%; overflow-x: auto; }
  html:not(.js) main { padding-top: 120px; }
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg-header);
    overflow-y: auto;
    padding: 24px var(--gutter);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 8px; }
  .js .site-nav a { display: block; padding: 12px 4px; font-size: 1.125rem; }
  .js .site-nav .btn { text-align: center; margin-top: 8px; }
  .js .site-nav .lang a { display: inline-block; padding: 8px 14px; font-size: 1rem; }
}

/* ---------- Secties ---------- */
main { padding-top: var(--header-h); }
.section { padding: 64px 0; }
.section--subtle { background: var(--bg-subtle); }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-intro { max-width: 680px; margin-bottom: 40px; }

/* Hero met Snijvlak (HSG § 5.1) */
.hero {
  position: relative;
  overflow: hidden;
  /* onder de tekst ruimte voor het Snijvlak: geen tekst over de schuine rand (HSG § 5.1) */
  padding: 72px 0 calc(var(--plane-edge) + 0.6 * 40vw + 24px);
  --plane-edge: 48px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}
/* Vlak 1: max. 40 % breed, bovenrand stijgt met tan 0,6 */
.hero::before {
  right: 0;
  width: 40%;
  height: calc(var(--plane-edge) + 0.6 * 40vw);
  background: var(--plane-1);
  clip-path: polygon(0 100%, 0 calc(100% - var(--plane-edge)), 100% 0, 100% 100%);
}
.hero::after {
  right: 0;
  width: 18%;
  height: calc(var(--plane-edge) * 0.6 + 0.6 * 18vw);
  background: var(--plane-2);
  clip-path: polygon(0 100%, 0 calc(100% - var(--plane-edge) * 0.6), 100% 0, 100% 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 0.4em; }
.hero .positioning {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--heading);
  max-width: 680px;
  font-weight: 500;
}
.hero .support { max-width: 640px; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.hero-actions .text-link { font-weight: 600; }
@media (min-width: 768px) {
  .hero { padding: 120px 0 160px; --plane-edge: 140px; }
  .hero .container { max-width: var(--container); }
  .hero .positioning, .hero .support { max-width: 56%; }
  .hero .positioning { font-size: 1.5rem; }
}

/* Profiel */
.profile-grid { display: grid; gap: 40px; }
.profile-photo picture, .profile-photo img { width: 100%; max-width: 420px; }
.profile-photo img { border-radius: var(--radius); background: var(--bg-subtle); }
@media (prefers-color-scheme: dark) {
  .profile-photo img { border: 1px solid var(--navy-700); filter: brightness(0.88); }
}
@media (min-width: 1024px) {
  .profile-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .profile-photo { order: 2; }
}
@media (max-width: 1023px) {
  .profile-photo img { max-width: 320px; }
}

/* Diensten */
.cards { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card .proof {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.sectors { margin-top: 32px; color: var(--text-muted); }

/* Werkwijze */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 64px;
  min-height: 48px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-heading);
  font-weight: 700;
}
.steps h3 { font-size: 1.125rem; margin-bottom: 0.25em; }
.steps p { margin: 0; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: start; }
  .steps li { padding: 64px 0 0; }
  /* oplopend ritme: elke stap 12 px hoger, als verwijzing naar de helling */
  .steps li:nth-child(1) { margin-top: 48px; }
  .steps li:nth-child(2) { margin-top: 36px; }
  .steps li:nth-child(3) { margin-top: 24px; }
  .steps li:nth-child(4) { margin-top: 12px; }
}

/* Resultaten */
.results { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) {
  .results { grid-template-columns: repeat(2, 1fr); }
  .results > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.result {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--decor);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.result .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.kpis {
  list-style: none;
  margin: 16px 0 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kpis li {
  background: var(--kpi-bg);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading);
  font-feature-settings: "tnum";
}

/* Contact en formulier */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--heading); }
.form-field .hint { display: block; font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
}
textarea { min-height: 180px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field-error {
  display: block;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 6px;
}
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.checkbox input { width: 22px; height: 22px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--btn-bg); }
.checkbox label { font-weight: 400; margin: 0; color: var(--text); }

/* Honeypot: buiten beeld, niet zichtbaar voor schermlezers */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--decor);
  background: var(--card-bg);
}
.notice--error { border-left-color: var(--error); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { padding-left: 1.2em; margin: 8px 0 0; }
.notice:empty { display: none; }
/* Meldingen na een gewone POST zonder JavaScript: zichtbaar via :target */
.target-notice { display: none; }
.target-notice:target { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 32px;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--wit); }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-200);
  margin-bottom: 12px;
}
.footer-grid { display: grid; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid address { font-style: normal; }
.footer-logo img { width: 180px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--navy-700);
  font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; }
@media (min-width: 768px) {
  .site-footer { padding: 64px 0 48px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
}

/* ---------- Privacyverklaring en eenvoudige pagina's ---------- */
.page { padding: 56px 0 80px; }
.page .container { max-width: 760px; }
.page h2 { font-size: 1.375rem; margin-top: 2em; }
.page table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.9375rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
.page th { background: var(--bg-subtle); color: var(--heading); }
.page .table-wrap { overflow-x: auto; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

@media print {
  .site-header, .nav-toggle, .skip-link, form, .hero::before, .hero::after { display: none !important; }
  main { padding-top: 0; }
}
