/* Fortigi — huisstijl: groen uit het schild, antraciet uit het woordmerk. */
:root {
  --green: #50b848;        /* huisstijl: schild links */
  --green-2: #71bf44;      /* huisstijl: schild rechts */
  --green-ink: #54ae31;    /* huisstijl: kopteksten */
  --green-soft: #eef7e9;
  --charcoal: #494948;     /* huisstijl: tekst */
  --ink: #494948;
  --muted: #494948;
  --line: #e3e5e1;
  --bg: #ffffff;
  --bg-alt: #f6f7f5;
  --dark: #494948;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, .96);
  --btn-hover: #3d8a24;
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--green-ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; text-wrap: balance; }
h1 span { color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; max-width: 26ch; }
.h2-small { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand img { width: 150px; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--charcoal); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover { color: var(--green-ink); }
.nav-cta { border: 1.5px solid var(--green-ink); border-radius: 999px; padding: 6px 14px; color: var(--green-ink) !important; }
.nav-cta:hover { background: var(--green-ink); color: #fff !important; }
@media (max-width: 719px) {
  .site-header { position: static; }
  .header-inner { justify-content: center; }
  .brand img { width: 130px; }
  .nav { justify-content: center; gap: 4px 16px; }
  .nav li:not(:last-child) a { font-size: .92rem; }
  html { scroll-padding-top: 0; }
}

/* Generic sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-ink); margin-bottom: .9em;
}
.intro { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin-bottom: 2em; }

/* Hero */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--green-soft) 100%); }
@media (min-width: 900px) { .hero { padding: 120px 0 112px; } }
.hero-grid { display: grid; gap: 48px; align-items: end; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.6fr 1fr; gap: 72px; } }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--green-ink); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--btn-hover); color: #fff; }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--bg); }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--green); }
.facts li { padding: 14px 0 14px 22px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.35rem; color: var(--green-ink); }
.facts span { color: var(--muted); font-size: .98rem; }

/* Expertise tags */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 550; color: var(--charcoal); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
@media (min-width: 820px) {
  .steps li { border-radius: 0; }
  .steps li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .steps li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
  .steps li + li { border-left: none; }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; right: -9px; top: 36px; width: 16px; height: 16px; z-index: 1;
    background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg);
  }
}
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* Principles (dark) */
.section-dark { background: var(--dark); color: #f1f2ef; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #a8db8c; }
.principles-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .principles-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; color: #fff; padding: 16px 0 16px 34px; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; }
.principles li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--green); }

/* Split layouts */
.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split p:not(.eyebrow) { color: var(--muted); }
.link-arrow { font-weight: 650; }
.link-arrow::after { content: " →"; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: start; }
.card { border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 22px 24px; }
.card h3 { margin-bottom: .35em; }
.card h3 a { color: var(--green-ink); text-decoration: none; }
.card h3 a:hover { color: var(--ink); text-decoration: underline; }
.card p { margin: 0; color: var(--muted); }
.card .card-links { margin-top: 10px; font-size: .95rem; font-weight: 600; }

/* People */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.person h3 { margin: 2px 0 4px; }
.person p { color: var(--muted); font-size: .97rem; margin: 0 0 6px; line-height: 1.5; }
.li { font-size: .9rem; font-weight: 600; }

/* Contact */
.section-contact { background: var(--green-soft); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-grid p { color: var(--muted); font-size: 1.15rem; max-width: 44ch; }
.contact-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 22px; }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 650; }

/* Footer */
.site-footer { background: var(--dark); color: #e2e3df; font-size: .93rem; padding: 36px 0; }
.site-footer p { margin: 0 0 .3em; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: auto 1fr auto; gap: 28px; } }
.footer-shield { width: 52px; background: #fff; border-radius: 8px; padding: 5px; }
.footer-links { white-space: nowrap; }

/* Taalwissel */
.lang a { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--charcoal); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.lang a:hover { border-color: var(--green); color: var(--green-ink); }

/* Foto's van de maten */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar:has(img) { background: none; width: 64px; height: 64px; }

/* Dark mode: volgt de systeeminstelling, tenzij de bezoeker met de knop kiest (data-theme op <html>). Groenen blijven huisstijl. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8e9e5;
    --charcoal: #e8e9e5;
    --muted: #c8c9c4;
    --line: #3a3c39;
    --bg: #1c1d1c;
    --bg-alt: #232423;
    --surface: #272927;
    --dark: #121312;
    --green-soft: #1f2a1b;
    --header-bg: rgba(28, 29, 28, .96);
    --btn-hover: #3d8a24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --ink: #e8e9e5;
    --charcoal: #e8e9e5;
    --muted: #c8c9c4;
    --line: #3a3c39;
    --bg: #1c1d1c;
    --bg-alt: #232423;
    --surface: #272927;
    --dark: #121312;
    --green-soft: #1f2a1b;
    --header-bg: rgba(28, 29, 28, .96);
    --btn-hover: #3d8a24;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* Het woordmerk is donkergrijs: in dark mode het logo op een wit vlak zodat het leesbaar blijft. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 8px; padding: 4px 8px; box-sizing: content-box; }
  :root:not([data-theme="light"]) .section-dark { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}
:root[data-theme="dark"] .brand img { background: #fff; border-radius: 8px; padding: 4px 8px; box-sizing: content-box; }
:root[data-theme="dark"] .section-dark { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Dark-modeknop: alleen zichtbaar als JavaScript draait (theme.js zet .js op <html>). */
.theme-item { display: none; }
.js .theme-item { display: list-item; list-style: none; }
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--charcoal); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--green); color: var(--green-ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
