/* ==========================================================================
   VDV Finance & Control
   ========================================================================== */

:root {
  --navy-950: #051423;
  --navy-900: #081c31;
  --navy-800: #0d2740;
  --navy-700: #14324f;
  --brand:    #022543;   /* logoblauw */
  --slate-600: #516a83;
  --slate-500: #647c95;
  --slate-300: #a3b5c7;
  --slate-200: #cdd7e2;
  --line:     #e0e6ee;
  --paper:    #f3f6f9;
  --white:    #ffffff;
  --sand:     #cdc5b4;   /* warme accentkleur uit het voorbeeld */
  --ink:      #12233a;
  --ink-soft: #46586d;

  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif", serif;

  --header-h: 76px;
  --radius: 14px;
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }

:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--white); color: var(--brand); font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95em 1.9em;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  color: var(--white); text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #6f879f 0%, var(--slate-600) 100%);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 0.65em 1.2em; font-size: .95rem; }

/* ---------- Logo (nagebouwd in HTML/CSS, blijft overal scherp) ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
  font-family: var(--font-serif);
}
.logo__mark {
  display: grid; place-items: center;
  width: 62px; height: 52px;
  background: var(--white); color: var(--brand);
  font-size: 1.55rem; line-height: 1; letter-spacing: .01em;
}
.logo__text {
  font-weight: 700; font-size: .86rem; line-height: 1.25;
  letter-spacing: .14em; text-transform: uppercase;
}
.logo--small .logo__mark { width: 52px; height: 44px; font-size: 1.3rem; }
.logo--small .logo__text { font-size: .76rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(6, 22, 39, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 12px 30px -20px rgba(0, 0, 0, .8);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.site-nav ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.site-nav a:not(.btn) {
  position: relative; display: block; padding: 8px 2px;
  color: rgba(255, 255, 255, .86); text-decoration: none;
  font-size: .98rem; font-weight: 500;
  transition: color .15s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--sand); transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--white); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px;
  color: var(--white); cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; margin: auto; }
.nav-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: rgba(6, 22, 39, .98);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; }
  /* zonder JavaScript: menu gewoon onder de header tonen */
  html:not(.js) .site-header { position: absolute; }
  html:not(.js) .nav-toggle { display: none; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav__cta { margin-top: 20px; }
  .site-nav__cta .btn { width: 100%; padding: .9em 1.2em; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  color: var(--white);
  background:
    radial-gradient(60% 55% at 22% 48%, rgba(120, 150, 185, .22), transparent 70%),
    radial-gradient(50% 60% at 95% 100%, rgba(120, 150, 185, .18), transparent 70%),
    linear-gradient(160deg, #14304c 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}
/* stippenraster, als knipoog naar de wereldkaart in het voorbeeld */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(48% 34% at 50% 20%, #000 0%, transparent 100%);
          mask-image: radial-gradient(48% 34% at 50% 20%, #000 0%, transparent 100%);
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__poly { position: absolute; z-index: -1; width: min(42vw, 480px); height: auto; pointer-events: none; }
.hero__poly--tr { top: 0; right: 0; }
.hero__poly--bl { bottom: 0; left: 0; }
.hero__bars { position: absolute; z-index: -1; right: 4%; bottom: 0; width: min(30vw, 300px); height: auto; pointer-events: none; }

.hero__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
}

.portrait {
  position: relative;
  width: 100%; max-width: 400px; aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, rgba(190, 210, 230, .9), rgba(90, 115, 145, .5));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .25),
    0 0 60px 6px rgba(140, 175, 215, .35),
    0 40px 80px -30px rgba(0, 0, 0, .9);
}
.portrait::after {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--navy-800);
}

.eyebrow, .kicker {
  font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--slate-300); margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.6rem);
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero h1 .accent { color: var(--sand); }

.hero__points { margin-top: 28px; display: grid; gap: 8px; font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); }
.hero__points li { position: relative; padding-left: 1.3em; color: rgba(255, 255, 255, .92); }
.hero__points li::before {
  content: ""; position: absolute; left: .15em; top: .68em;
  width: .38em; height: .38em; border-radius: 50%; background: var(--sand);
}

.hero__actions {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 28px;
}
.hero__contact { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px 22px; }
.hero__contact a {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, .9); text-decoration: none; font-size: .97rem; white-space: nowrap;
  transition: color .15s;
}
.hero__contact .icon { order: -1; }
@media (max-width: 480px) { .hero__contact { grid-template-columns: 1fr; } }
.hero__contact a:hover { color: var(--white); }
.hero__contact a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hero__contact .icon {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .22);
  transition: color .15s, border-color .15s, background-color .15s;
}
.hero__scroll:hover { color: var(--white); border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.hero__scroll svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 28px); padding-bottom: 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: min(54vw, 230px); padding: 7px; }
  .portrait::after { inset: -12px; }
  .portrait img { border-width: 4px; }
  .hero__text { text-align: left; }
  .hero__poly { width: 62vw; opacity: .7; }
  .hero__bars { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Secties ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--light { background: var(--white); }
.section--paper { background: var(--paper); }
.section--dark {
  color: var(--white);
  background: linear-gradient(170deg, var(--navy-800) 0%, var(--navy-900) 60%, var(--navy-950) 100%);
}

.kicker { color: var(--slate-600); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .kicker { color: var(--sand); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.section__head--center .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section__intro { margin-top: 18px; font-size: 1.15rem; color: rgba(255, 255, 255, .82); }

.lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.35rem); line-height: 1.55; color: var(--ink); }
.lead + p { margin-top: 1.1em; }
.section--light p:not(.lead):not(.kicker) { color: var(--ink-soft); }

/* Introductie + aanpak: twee kolommen */
.intro__grid, .aanpak {
  display: grid; gap: clamp(24px, 5vw, 80px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.intro__body, .aanpak__body { border-left: 3px solid var(--brand); padding-left: clamp(20px, 3vw, 36px); }

.traits { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.traits li {
  padding: .45em 1em; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--brand); font-weight: 600; font-size: .95rem;
}

@media (max-width: 800px) {
  .intro__grid, .aanpak { grid-template-columns: 1fr; }
}

/* Diensten: kaarten */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(18, 35, 58, .04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--slate-200); box-shadow: 0 24px 40px -28px rgba(18, 35, 58, .45); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 12px; color: var(--white);
  background: linear-gradient(145deg, var(--navy-700), var(--brand));
}
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { color: var(--brand); margin-bottom: 10px; hyphens: auto; }
.card p { color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .cards { grid-template-columns: 1fr; } .card { padding: 28px 24px; } }

/* Inzetbaar bij */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps li {
  display: flex; align-items: flex-start; gap: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
}
.steps__num {
  flex: none; font-family: var(--font-serif); font-size: 2rem; line-height: 1; color: var(--sand);
  padding-top: 2px;
}
.steps p { font-size: 1.12rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 22px; gap: 18px; } }

/* Contact */
.contact { position: relative; }
.contact__layout {
  display: grid; align-items: start; gap: 24px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.contact__grid { display: grid; gap: 16px; }
.tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 2px; align-items: center;
  padding: 22px 24px;
  color: var(--white); text-decoration: none;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  transition: transform .2s, background-color .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .32); }
.tile__icon {
  grid-row: 1 / span 3;
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.tile__icon .icon { width: 22px; height: 22px; }
.tile__label, .tile__value, .tile__more { grid-column: 2; }
.tile__label { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.tile__value { font-size: 1.12rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
a.tile__value { color: inherit; text-decoration: none; }
a.tile__value:hover { text-decoration: underline; text-underline-offset: 4px; }
.tile--plain:hover { transform: none; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.tile__more { margin-top: 4px; font-size: .95rem; color: var(--slate-300); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .contact__layout { grid-template-columns: 1fr; } }

/* Contactformulier */
.form {
  display: grid; gap: 18px;
  padding: clamp(22px, 3.5vw, 36px);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
}
.form__title { font-size: 1.35rem; margin-bottom: 2px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.field__req { color: var(--sand); }
.field input, .field textarea {
  width: 100%; padding: .8em .9em;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: var(--white);
  border: 2px solid transparent; border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(205, 197, 180, .35);
}
.field [aria-invalid="true"] { border-color: #e2664f; }
.field__error { font-size: .9rem; font-weight: 600; color: #ffb4a6; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.form__footer .btn { cursor: pointer; }
.form__footer .btn[disabled] { opacity: .65; cursor: progress; transform: none; filter: none; }
.form__note { flex: 1 1 220px; font-size: .88rem; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.form__status {
  padding: 14px 16px; border-radius: 8px; font-weight: 600; line-height: 1.5;
  color: var(--white); background: rgba(226, 102, 79, .18); border: 1px solid rgba(255, 180, 166, .55);
}
.form__status a { color: inherit; }
.form__status.is-ok { background: rgba(110, 190, 150, .16); border-color: rgba(150, 220, 185, .6); }
.form.is-sent > :not(.form__status):not(.form__title) { display: none; }
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }
}

/* Losse meldingspagina van contact.php (alleen zichtbaar zonder JavaScript) */
.melding { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.melding .logo { margin-bottom: 40px; }
.melding h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 16px; }
.melding p, .melding ul { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 12px; }
.melding .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: rgba(255, 255, 255, .75);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 36px 0;
  font-size: .95rem;
}
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__nav a { text-decoration: none; padding: 4px 0; }
.site-footer__nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { flex-basis: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); font-size: .88rem; }

/* ---------- Inscrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .contact__grid .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .contact__grid .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero__net, .hero__poly, .hero__bars, .hero__scroll, .nav-toggle { display: none !important; }
  .hero, .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
  .hero { min-height: 0; padding: 24px 0; }
  .js .reveal { opacity: 1; transform: none; }
}
