@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --inkt: #18253b;
  --inkt-zacht: #4f5a6c;
  --creme: #f5f6f8;
  --lijn: #d6d9e0;
  --accent: #2e4568;
  --grijs: #858688;
  --tint: #e1e2e7;
  --accent-donker: #223654;
  --wit: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rand: clamp(16px, 3.4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--inkt);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
section[id] { scroll-margin-top: 20px; }

.binnen { max-width: 1240px; margin: 0 auto; padding: 0 var(--rand); }

/* Knoppen */
.knop {
  display: inline-block;
  padding: 0.72em 1.5em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.knop-accent { background: var(--accent); color: #fff; }
.knop-accent:hover { background: var(--accent-donker); }
/* Op donkere vlakken is de hoofdknop wit met blauwe tekst. */
.kop .knop-accent, .hero .knop-accent, .cta .knop-accent { background: #fff; color: var(--accent); }
.kop .knop-accent:hover, .hero .knop-accent:hover, .cta .knop-accent:hover { background: var(--tint); }
.knop-lijn { border-color: rgba(255,255,255,.85); color: #fff; }
.knop-lijn:hover { background: #fff; color: var(--inkt); }
.knoppen { display: flex; flex-wrap: wrap; gap: 16px; }

/* Kop */
.kop { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: #fff; }
.kop-rij { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 58px; width: auto; }
/* Boven de foto staat het logo in wit; het bestand zelf is blauw met grijs. */
.kop .logo img { filter: brightness(0) invert(1); }
.menu { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); }
.menu a:not(.knop) { text-decoration: none; font-size: 1.125rem; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.menu a:not(.knop):hover { border-bottom-color: currentColor; }
.menuknop { display: none; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; background: var(--inkt); color: #fff; overflow: hidden; }
.hero-beeld, .hero-beeld img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-beeld img { object-fit: cover; object-position: 70% 40%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,31,50,.94) 0%, rgba(20,31,50,.82) 30%, rgba(20,31,50,.38) 62%, rgba(20,31,50,.12) 100%),
    linear-gradient(180deg, rgba(20,31,50,.55) 0%, rgba(20,31,50,0) 26%, rgba(20,31,50,0) 70%, rgba(20,31,50,.45) 100%);
}
.hero-tekst { position: relative; z-index: 1; width: 100%; padding-top: 130px; padding-bottom: 90px; }
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-intro { font-size: clamp(1.15rem, 2.1vw, 1.6rem); line-height: 1.35; margin: 26px 0 38px; }

/* Secties */
.sectie { padding: clamp(56px, 8vw, 104px) 0; }
.sectie-lijn { border-top: 1px solid var(--lijn); }
.sectiekop { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 22px; margin-bottom: 34px; border-bottom: 1.5px solid var(--inkt); }
h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1.45rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.pijl-link { color: var(--accent); font-weight: 600; font-size: 1.2rem; text-decoration: none; white-space: nowrap; padding-bottom: 10px; }
.pijl-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.lood { font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.4; }

/* Uitgelicht werk */
.werk { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); }
.tegel { position: relative; overflow: hidden; background: var(--inkt); min-height: 250px; }
.tegel-groot { grid-row: 1 / span 2; min-height: 540px; }
.tegel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tegel:hover img { transform: scale(1.03); }
.tegel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,31,50,0) 45%, rgba(20,31,50,.82) 100%); }
.tegel figcaption {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1;
  color: #fff; font-weight: 600; line-height: 1.15;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  padding-bottom: 14px;
}
.tegel-groot figcaption { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.tegel figcaption::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: #fff; }

/* Expertises */
.twee { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.lijst li { display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--lijn); }
.lijst li:first-child { padding-top: 0; }
.lijst p { color: var(--inkt-zacht); margin-top: 4px; }
.nr { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; padding-top: 9px; min-width: 26px; }

/* Werkwijze */
.sectie-donker { background: var(--accent); color: var(--wit); }
.sectie-donker .sectiekop { border-bottom-color: rgba(255,255,255,.3); }
.stappen { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.stap .nr { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 700; letter-spacing: 0; color: #b9c2d2; padding: 0; line-height: 1; margin-bottom: 14px; }
.stap p { color: rgba(255,255,255,.8); margin-top: 8px; }

/* Over */
.over { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.over-beeld { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.over-tekst h2 { margin-bottom: 26px; }
.over-tekst p + p { margin-top: 18px; }
.over-tekst p:not(.lood):not(.naam) { color: var(--inkt-zacht); }
.naam { font-weight: 650; font-size: 1.25rem; padding-top: 18px; border-top: 1.5px solid var(--inkt); margin-top: 30px !important; }
.naam span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--inkt-zacht); margin-top: 4px; }

/* CTA */
.cta { background: var(--inkt); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.cta-rij { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.cta p { color: rgba(255,255,255,.75); margin-top: 12px; max-width: 34em; }

/* Voet */
.voet { background: var(--tint); color: var(--inkt); padding: 44px 0; font-size: 1rem; }
.voet-rij { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; align-items: flex-start; }
.voet .logo img { height: 64px; }
.voet address { font-style: normal; }
.voet a { text-decoration: none; }
.voet a:hover { text-decoration: underline; text-underline-offset: 3px; }
.voet .klein { font-family: var(--sans); font-size: 0.82rem; line-height: 1.7; color: var(--inkt-zacht); }

/* Smal scherm */
@media (max-width: 860px) {
  .menuknop {
    display: inline-block; background: none; color: #fff; border: 1.5px solid rgba(255,255,255,.85);
    font-family: var(--serif); font-weight: 600; font-size: 1rem; padding: 0.5em 1em; cursor: pointer;
  }
  .menu {
    display: none; position: absolute; top: 100%; left: var(--rand); right: var(--rand);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--inkt); border: 1px solid rgba(255,255,255,.2); padding: 8px 20px 20px;
  }
  .menu.open { display: flex; }
  .menu a:not(.knop) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .menu .knop { margin-top: 18px; text-align: center; }
  .kop .logo img { height: 46px; }
  .hero { min-height: 620px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(20,31,50,.86) 0%, rgba(20,31,50,.6) 45%, rgba(20,31,50,.78) 100%);
  }
  .hero-tekst { padding-top: 120px; padding-bottom: 56px; }
  .hero-intro br { display: none; }
  .werk { grid-template-columns: 1fr; grid-template-rows: none; }
  .tegel-groot { grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .tegel { min-height: 0; aspect-ratio: 4 / 3; }
  .twee, .over { grid-template-columns: 1fr; }
  .stappen { grid-template-columns: 1fr; }
  .sectiekop { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pijl-link { padding-bottom: 0; }
  .over-beeld { aspect-ratio: 4 / 3; }
  .knoppen .knop { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tegel img { transition: none; }
}
