/* EVD Group – evd-group.nl
   Eén stylesheet, geen scripts, geen externe bronnen. Lettertype en beelden staan in /assets. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #45433f;
  --muted: #74716a;
  --line: #e2ded5;
  --dark: #141414;
  --on-dark: #f4f1ea;
  --on-dark-muted: #a8a49b;
  --line-dark: #2e2d2a;
  --radius: 20px;
  --gutter: 20px;
  --max: 1200px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }

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

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Kop ---------- */

.kop {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.kop .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.kop-logo img { height: 26px; width: auto; }
.kop nav ul { display: flex; gap: clamp(14px, 3.5vw, 36px); list-style: none; margin: 0; padding: 0; }
.kop nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.kop nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 379px) {
  .kop-logo img { height: 22px; }
  .kop nav a { font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .kop .wrap { height: 76px; }
  .kop-logo img { height: 30px; }
}

/* ---------- Bouwstenen ---------- */

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--ink); transition: background-color .2s, color .2s;
}
.knop-vol { background: var(--ink); color: var(--on-dark); }
.knop-vol:hover { background: #2b2a27; }
.knop-rand { background: transparent; color: var(--ink); }
.knop-rand:hover { background: var(--ink); color: var(--on-dark); }

.pijl { width: 1em; height: 1em; flex: none; }

section { padding-block: 72px; }
@media (min-width: 1024px) { section { padding-block: 120px; } }

.sectiekop { display: grid; gap: 16px; margin-bottom: 40px; max-width: 760px; }
.sectiekop h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.sectiekop p { font-size: 1.125rem; }
@media (min-width: 1024px) { .sectiekop { margin-bottom: 56px; } }

/* ---------- Opening ---------- */

.opening { padding-top: 56px; padding-bottom: 64px; }
.opening h1 { font-size: clamp(2.75rem, 9vw, 6rem); max-width: 13ch; margin-top: 20px; }
.opening .intro { font-size: clamp(1.125rem, 2.2vw, 1.375rem); max-width: 34ch; margin-top: 24px; color: var(--ink-2); }
.opening .knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (min-width: 1024px) {
  .opening { padding-top: 112px; padding-bottom: 96px; }
  .opening .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
  .opening .knoppen { justify-content: flex-end; margin-top: 0; }
}

/* ---------- Merken ---------- */

.merken { padding-top: 0; }
.merk-raster {
  display: grid; gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
@media (min-width: 768px) { .merk-raster { gap: 32px; } }

.merk { display: grid; gap: 22px; text-decoration: none; color: inherit; }
.merk-beeld { position: relative; overflow: hidden; border-radius: var(--radius); background: #e8e4dc; aspect-ratio: 5 / 4; }
.merk-beeld img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.merk:hover .merk-beeld img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .merk-beeld img { transition: none; } .merk:hover .merk-beeld img { transform: none; } }

.merk-kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.merk-logo { height: 30px; width: auto; }
.merk-logo--fint { height: 36px; }
@media (max-width: 379px) { .merk-logo { height: 24px; } .merk-logo--fint { height: 30px; } }
.merk-soort {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--merk, var(--ink)); border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.merk-tekst { display: grid; gap: 6px; }
.merk-tekst h3 { font-size: 1.5rem; }
.merk-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.merk:hover .merk-link { text-decoration-thickness: 2px; }

.groei {
  margin-top: 56px; padding: 28px; border: 1px dashed #cfc9bd; border-radius: var(--radius);
  display: grid; gap: 16px; align-items: center;
}
.groei p { max-width: 52ch; }
.groei strong { color: var(--ink); font-weight: 500; }
@media (min-width: 768px) { .groei { grid-template-columns: 1fr auto; padding: 32px 40px; } }

/* ---------- Over ons (donker vlak) ---------- */

.over { background: var(--dark); color: var(--on-dark-muted); }
.over h2, .over h3 { color: var(--on-dark); }
.over .label { color: var(--on-dark-muted); }
.over .sectiekop p { color: var(--on-dark); opacity: .86; }
.pijlers { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: pijler; }
.pijlers li { padding-block: 28px; border-top: 1px solid var(--line-dark); display: grid; gap: 10px; align-content: start; }
.pijlers h3 { font-size: 1.375rem; }
.pijlers li::before {
  counter-increment: pijler; content: "0" counter(pijler);
  font-size: 0.875rem; letter-spacing: 0.1em; color: var(--on-dark-muted);
}
@media (min-width: 900px) {
  .pijlers { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .pijlers li { padding-block: 32px 0; }
}

/* ---------- Waarden ---------- */

.waarden-lijst { list-style: none; margin: 0; padding: 0; display: grid; }
.waarden-lijst li {
  display: grid; gap: 4px; padding-block: 22px; border-top: 1px solid var(--line);
}
.waarden-lijst li:last-child { border-bottom: 1px solid var(--line); }
.waarden-lijst h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 768px) {
  .waarden-lijst li { grid-template-columns: minmax(220px, 1fr) 1.4fr; align-items: baseline; gap: 32px; padding-block: 28px; }
  .waarden-lijst p { font-size: 1.125rem; }
}

/* ---------- Contact ---------- */

.contact { padding-top: 0; }
.contact-raster { display: grid; gap: 16px; }
@media (min-width: 768px) { .contact-raster { grid-template-columns: 1fr 1fr; gap: 24px; } }
.contact-kaart {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 10px; align-content: start;
}
.contact-kaart h3 { font-size: 1.375rem; }
.contact-kaart a.mail {
  justify-self: start; margin-top: 10px; font-size: 1.125rem; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; word-break: break-word;
}
.contact-kaart a.mail:hover { text-decoration-thickness: 2px; }
@media (min-width: 768px) { .contact-kaart { padding: 36px 40px; } }

/* ---------- Voet ---------- */

.voet { background: var(--dark); color: var(--on-dark-muted); padding-block: 56px 32px; font-size: 0.9375rem; }
.voet a { color: var(--on-dark); text-decoration: none; }
.voet a:hover { text-decoration: underline; text-underline-offset: 4px; }
.voet-boven { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.voet-logo img { height: 28px; width: auto; }
.voet-merk p { margin-top: 16px; max-width: 30ch; }
.voet-kolommen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.voet h2 { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.voet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.voet-onder { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 900px) {
  .voet-boven { grid-template-columns: 1.2fr 2fr; }
  .voet-kolommen { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Juridische pagina's ---------- */

.document { padding-top: 48px; padding-bottom: 96px; }
.document .wrap { max-width: 840px; }
.document h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-top: 16px; }
.kruimel { font-size: 0.9375rem; color: var(--muted); }
.kruimel a { color: var(--muted); }
.document-tekst { margin-top: 32px; }
.document-tekst > * + * { margin-top: 16px; }
.document-tekst h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-top: 48px; padding-top: 8px; }
.document-tekst ul, .document-tekst ol { padding-left: 1.25em; }
.document-tekst li + li { margin-top: 6px; }
.document-tekst strong { color: var(--ink); font-weight: 600; }
.document-tekst a { color: var(--ink); text-underline-offset: 3px; word-break: break-word; }
.inhoud {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-top: 32px;
}
.inhoud h2 { margin-top: 0; padding-top: 0; font-size: 1.125rem; }
.inhoud ol { margin: 12px 0 0; padding-left: 1.4em; columns: 1; }
.inhoud li + li { margin-top: 4px; }
.inhoud a { text-decoration: none; color: var(--ink-2); }
.inhoud a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 768px) { .inhoud ol { columns: 2; column-gap: 40px; } .inhoud li { break-inside: avoid; } }

/* ---------- 404 ---------- */

.nietgevonden { padding-block: 96px 120px; }
.nietgevonden h1 { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 16ch; margin-top: 16px; }
.nietgevonden p { margin-top: 20px; max-width: 44ch; }
.nietgevonden .knop { margin-top: 32px; }
