/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* Merkkleuren, direct uit assets/logo.png bemonsterd */
  --blue:        #004C99;
  --blue-dark:   #003A75;
  --red:         #E5342C;

  --bg:          #fafafa;
  --fg:          #262b33;
  --card:        #ffffff;
  --muted:       #f1f3f7;
  --muted-fg:    #656c7a;   /* 4.52:1 op --muted, 4.81:1 op --bg */
  --border:      #dfe3ea;
  --border-input: #878E9B;  /* 3.30:1 op de kaart, 3.16:1 op de veldvulling */
  --red-text:    #C2251D;   /* donkerder rood, alleen voor tekst (5.72:1 op wit) */

  --radius:      10px;
  --radius-lg:   14px;
  --shadow:      0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);

  --wrap:        1180px;
  --gutter:      1.25rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, iframe { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }

address { font-style: normal; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Op de donkere hero haalt het merkblauw de 3:1 niet tegen de foto — daar een
   witte ring met donkere rand eromheen, die in beide richtingen standhoudt. */
.hero :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px rgba(12, 18, 28, .85);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--sm { padding: .55rem 1rem; font-size: .875rem; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .24); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, .88);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(8px)) {
  /* .72 liet de foto er zo ver doorheen dat de navigatie op 2,3:1 uitkwam. */
  .site-header { background: rgba(250, 250, 250, .93); backdrop-filter: blur(10px); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .875rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .875rem;
  text-decoration: none;
  min-width: 0;
}

/* Vaste hoogte, breedte volgt vanzelf. */
.brand__logo { height: 34px; width: auto; flex: none; }

/* white-space:nowrap plus flex:none om zich heen betekent dat deze tekst niet
   kan krimpen: past hij niet, dan loopt hij over de buren heen. Daarom alleen
   tonen op breedtes waar hij aantoonbaar past — zie de media queries onderaan. */
.brand__sub {
  display: none;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--muted-fg);
  padding-left: .875rem;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex: none;
}

/* Taalschakelaar: segmented control naast de belknop. */
.lang {
  display: flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}

.lang__btn {
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .55rem;
  border: 0;
  border-radius: calc(var(--radius) - 3px);
  background: none;
  color: var(--muted-fg);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang__btn:hover { color: var(--fg); }

.lang__btn.is-active {
  background: var(--card);
  color: var(--blue);
  box-shadow: var(--shadow);
}

.nav { display: none; gap: 1.75rem; font-size: .9375rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted-fg); transition: color .15s ease; }
.nav a:hover { color: var(--blue); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Onder ~640px wordt het woordmerk in het logo onleesbaar klein naast de
   belknop; dan alleen het beeldmerk tonen. De naam staat in de <h1>. */
@media (max-width: 640px) { .brand__logo { height: 40px; } }
@media (max-width: 420px) { .brand__logo { height: 34px; } }

/* Ruimte voor de ondertitel: naast het smalle beeldmerk (421–640px), en naast
   het brede logo pas vanaf 960px — daaronder botst hij met nav of schakelaar. */
@media (min-width: 421px) and (max-width: 640px) { .brand__sub { display: block; } }
@media (min-width: 960px)                        { .brand__sub { display: block; } }

/* ── Hero ──────────────────────────────────────────────────── */
/* Foto, verloop en tekst liggen op elkaar in één gridcel. De hoogte volgt
   de hoogste van de twee: op mobiel is dat de tekst, op desktop de foto.
   Zo kan de tekst nooit meer buiten de foto vallen. */
.hero {
  display: grid;
  isolation: isolate;
  background: var(--blue-dark);
  /* Groeit mee met de viewport, maar nooit lager dan de tekst nodig heeft. */
  min-height: clamp(420px, 52vw, 620px);
}
/* Alle drie de lagen in dezelfde cel; ze strekken standaard mee. */
.hero > * { grid-area: 1 / 1; min-width: 0; }

.hero__media { overflow: hidden; }
.hero__media picture { display: contents; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Iets boven het midden uitsnijden houdt het blauwe dak in beeld. */
  object-position: center 42%;
}

.hero__scrim {
  background: linear-gradient(90deg,
    rgba(12, 18, 28, .80) 0%,
    rgba(12, 18, 28, .52) 45%,
    rgba(12, 18, 28, .08) 100%);
}
/* Op smalle schermen loopt de tekst over de volle breedte, dus daar een
   verticaal verloop dat onderin dieper is. */
@media (max-width: 639px) {
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(12, 18, 28, .55) 0%,
      rgba(12, 18, 28, .72) 100%);
  }
}

.hero__body {
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 3.5rem);
}

.hero__copy { max-width: 40rem; color: #fff; }

.hero__copy h1 {
  font-size: clamp(1.875rem, 5.5vw, 3.75rem);
  text-wrap: balance;
}

.hero__lead {
  margin-top: 1rem;
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: rgba(255, 255, 255, .92);
  max-width: 34rem;
}

.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ── Secties ───────────────────────────────────────────────── */
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  /* Zodat een sectiekop niet onder de sticky header verdwijnt. */
  scroll-margin-top: 5rem;
}
.section--alt { background: var(--muted); border-block: 1px solid var(--border); }

.section__head { max-width: 46rem; margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.section__head p { margin-top: 1rem; font-size: 1.0625rem; color: var(--muted-fg); }

.grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted-fg);
}
.card__value { margin-top: .75rem; font-size: 1rem; font-weight: 500; }
.card__value a { text-decoration: none; transition: color .15s ease; }
.card__value a:hover { color: var(--blue); }

.card--service h3 { font-size: 1.125rem; }
.card--service h3::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: .875rem;
  border-radius: 2px;
  background: var(--red);
}
.card--service p { margin-top: .625rem; color: var(--muted-fg); }

/* ── Contactformulier ──────────────────────────────────────── */
.contact-form {
  margin: 2.5rem auto 0;
  max-width: 42rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.contact-form__title { font-size: 1.25rem; }
.contact-form__intro { margin-top: .5rem; color: var(--muted-fg); }

.field { margin-top: 1.25rem; }

.field label {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .375rem;
  font-size: .875rem;
  font-weight: 600;
}
.field__optional {
  font-weight: 400;
  font-size: .8125rem;
  color: var(--muted-fg);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;          /* < 16px laat iOS bij focus inzoomen */
  color: var(--fg);
  background: var(--bg);
  padding: .625rem .75rem;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 76, 153, .18);
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--red); }
.field.is-invalid input:focus,
.field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(229, 52, 44, .18); }

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Honeypot: uit beeld, maar niet display:none — dat slaan veel bots over. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.75rem;
}
.contact-form__foot .btn:disabled { opacity: .6; cursor: progress; }

.contact-form__status { font-size: .9375rem; flex: 1 1 14rem; }
.contact-form__status.is-busy    { color: var(--muted-fg); }
.contact-form__status.is-success { color: #14713b; font-weight: 600; }
.contact-form__status.is-error   { color: var(--red-text); font-weight: 600; }

/* ── Kaart / route ─────────────────────────────────────────── */
.section--map {
  background: var(--muted);
  border-block: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.map__title { font-size: clamp(1.5rem, 3.5vw, 1.875rem); }
.map__sub { margin-top: .5rem; color: var(--muted-fg); }

.map__frame {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map__frame iframe { width: 100%; height: 20rem; border: 0; }
@media (min-width: 640px) { .map__frame iframe { height: 24rem; } }

.map__link { margin-top: 1rem; font-size: .9375rem; font-weight: 600; }
.map__link a { color: var(--blue); text-decoration: none; }
.map__link a:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-block: 2rem;
}
.site-footer__logo {
  height: 74px;
  width: auto;
  margin: 0 auto 1.25rem;
}
.site-footer p { text-align: center; font-size: .875rem; color: var(--muted-fg); }
