/* Op-Dat website. Kleuren uit het kleuroverzicht: zwart, antraciet, donkerblauw, petrol, wit. */
:root {
  --zwart: #000000;
  --antraciet: #262626;
  --donkerblauw: #1f3348;
  --petrol: #2e6368;
  --petrol-licht: #8cc3c6;
  --wit: #ffffff;
  --tekst-zacht: #4a4a4a;
  --tekst-op-donker: #d6d7da;
  --marge: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wit);
  color: var(--antraciet);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--petrol); }
a:hover { color: #1d4144; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--petrol-licht);
  outline-offset: 2px;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding-left: var(--marge);
  padding-right: var(--marge);
}

/* Bovenbalk */
.top {
  position: relative;
  z-index: 5;
  background: var(--zwart);
  color: var(--wit);
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(20px, 4vw, 56px);
  padding: 2px var(--marge);
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
}

.nav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(20px, 3.4vw, 48px);
}

.nav a,
.top-acties a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  font-size: 18px;
  color: var(--wit);
  text-decoration: none;
}

.nav a svg { transition: transform 0.2s ease; }
.nav a[aria-expanded="true"] { color: var(--petrol-licht); }
.nav a[aria-expanded="true"] svg { transform: rotate(180deg); }

.top-acties {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.top-acties .icoon {
  justify-content: center;
  width: 44px;
  height: 44px;
}

/* Uitklapmenu */
.paneel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-wrap: wrap;
  background: var(--antraciet);
  color: var(--wit);
}

.paneel[hidden] { display: none; }

.paneel-kolom {
  flex: 0 1 330px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 44px 0 36px clamp(16px, 3vw, 40px);
  background: var(--donkerblauw);
}

.paneel-kolom button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 50px;
  padding: 8px 24px 8px 20px;
  border: 0;
  background: transparent;
  color: #e3e4e6;
  font: inherit;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.paneel-kolom button[aria-pressed="true"] {
  background: var(--antraciet);
  color: var(--petrol-licht);
}

.paneel-kolom button svg { flex: none; }

.paneel-links {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 48px clamp(20px, 4vw, 48px) 40px;
}

.paneel-links a {
  padding: 9px 0;
  font-size: 21px;
  color: var(--wit);
  text-decoration: none;
}

.paneel-links a:hover { color: var(--petrol-licht); }

.paneel-beeld {
  flex: 0 1 380px;
  padding: 48px clamp(20px, 4vw, 56px) 48px clamp(20px, 4vw, 48px);
}

.paneel-beeld .vlak {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 272px;
  height: 180px;
  overflow: hidden;
  background: var(--zwart);
}

.paneel-beeld .vlak svg { width: 168px; height: 168px; }
.paneel-beeld p { margin-top: 24px; font-size: 18px; color: var(--tekst-op-donker); }
.paneel-beeld p + p { margin-top: 6px; font-size: 19px; color: var(--wit); }

/* Hero */
.hero {
  background: var(--zwart);
  color: var(--wit);
}

.hero-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 6.5vw, 88px);
}

.hero-tekst {
  flex: 1 1 520px;
  min-width: 0;
  padding-left: clamp(0px, 12vw, 180px);
}

.hero h1 {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.12;
  font-weight: 300;
}

.hero .sub {
  margin-top: 22px;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 600;
}

.hero .intro {
  margin-top: 22px;
  max-width: 660px;
  font-size: 22px;
  line-height: 1.45;
}

.knop {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 50px;
  border-radius: 999px;
  background: var(--petrol);
  color: var(--wit);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.knop:hover { background: #3a777d; color: var(--wit); }

.hero-beeld {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-beeld svg { width: 100%; max-width: 480px; height: auto; }

.hero.klein .hero-in { display: block; }
.hero.klein .hero-tekst { padding-left: 0; }

@keyframes draai {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.draai {
  transform-origin: 50% 50%;
  animation: draai 48s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draai { animation: none; }
  .nav a svg { transition: none; }
}

/* Secties */
.sectie { padding-top: clamp(64px, 8vw, 112px); }
.sectie.laatste { padding-bottom: clamp(72px, 8.5vw, 120px); }

.sectie h2 {
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.15;
  font-weight: 300;
}

.twee {
  display: flex;
  flex-wrap: wrap;
  gap: 56px clamp(40px, 6.5vw, 96px);
}

.twee > div { flex: 1 1 440px; min-width: 0; }
.twee p { margin-top: 20px; }
.twee h2 + p { margin-top: 28px; }

.tegels {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.tegel {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--antraciet);
  color: var(--wit);
  scroll-margin-top: 24px;
}

.tegel h3 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 300;
}

.tegel .kop { margin-top: 16px; font-weight: 600; }
.tegel .uitleg { margin-top: 16px; color: var(--tekst-op-donker); }
.tegel .kop + .uitleg { margin-top: 10px; }

.tegel ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 28px 0;
  font-size: 18px;
}

.tegel a {
  margin-top: auto;
  padding: 8px 0;
  color: #9fd0d3;
  font-weight: 600;
  text-decoration: none;
}

.tegel a:hover { color: var(--wit); }

/* Case studies */
.kaarten {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.kaart {
  flex: 1 1 380px;
  padding: 32px;
  background: #f1f2f3;
}

.kaart .thema { font-size: 16px; font-weight: 600; color: var(--petrol); }
.kaart h2 { margin-top: 10px; font-size: 25px; line-height: 1.25; font-weight: 600; }
.kaart p + h2 + p { margin-top: 10px; color: var(--tekst-zacht); }

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(40px, 6.5vw, 96px);
  margin-top: 40px;
}

.contact .gegevens { flex: 0 1 360px; font-size: 24px; line-height: 1.8; }
.contact .gegevens a { font-weight: 600; text-decoration: none; }
.contact .tekst { flex: 1 1 360px; max-width: 620px; }

/* Voet */
.voet {
  background: var(--zwart);
  color: var(--wit);
  font-size: 17px;
}

.voet-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.voet p { color: var(--tekst-op-donker); }
.voet nav { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.voet a { padding: 10px 0; color: var(--wit); }

@media (max-width: 720px) {
  body { font-size: 18px; }
  .nav a, .top-acties a { font-size: 17px; }
  .paneel-kolom { flex-basis: 100%; padding-top: 24px; padding-bottom: 20px; }
  .paneel-kolom button { font-size: 21px; }
  .paneel-links { padding-top: 24px; padding-bottom: 28px; }
  .paneel-beeld { display: none; }
  .hero .sub { font-size: 23px; }
  .hero .intro { font-size: 20px; }
  .tegel { padding: 28px 24px 24px; }
}
