/* ===== Design tokens (afgeleid van het Transportopleider-beeldmerk) ===== */
:root {
  --navy: #0F3A57;       /* donkere afgeleide van het logoblauw, voor tekst/diepte */
  --navy-deep: #0A2740;  /* nog dieper, voor donkere secties */
  --brand-blue: #1D9AD7; /* het logoblauw zelf — primaire merkkleur */
  --brand-blue-deep: #157CAD;
  --asphalt: #2B2D33;
  --paper: #F6F7F8;
  --paper-dim: #EBEDEF;
  --amber: #1D9AD7;      /* alias: accentkleur = merkblauw i.p.v. amber */
  --amber-deep: #157CAD;
  --ink: #182430;
  --muted: #5B6570;
  --line: #D8DCE0;
  --logo-grey: #B3B2B2;
  --white: #FFFFFF;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 2px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

.hero h1 {
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-line {
  display: inline-block;
  animation: line-pulse 5s ease-in-out infinite;
  animation-delay: 2s;
}
.hero-line.line-b { animation-delay: 4.5s; }
@keyframes line-pulse {
  0%, 38% { color: var(--brand-blue); }
  50%, 88% { color: var(--white); }
  100% { color: var(--brand-blue); }
}

p { margin: 0 0 1em; color: var(--ink); }
p.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

a { color: var(--navy); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.9em;
}

/* ===== Layout helpers ===== */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 84px 0; }
.section-alt { background: var(--paper-dim); }
.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep) url('assets/texture-band.svg') center/cover no-repeat;
  color: var(--paper);
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,39,64,0.7), rgba(29,154,215,0.5));
  pointer-events: none;
}
.section-dark .wrap { position: relative; z-index: 2; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #C8CEDC; }
.page-hero { padding-top: 90px; padding-bottom: 70px; }

/* ===== Header / nav ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
.brand-logo-full {
  height: 42px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .brand-logo-full { height: 34px; }
}

/* footer beeldmerk */
.footer-mark {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.9;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-color: var(--amber);
  color: var(--navy);
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 60;
    background: var(--paper);
    flex-direction: column;
    padding: 24px 28px;
    gap: 18px;
    transform: translateY(-110%);
    transition: transform 0.2s ease;
    border-top: 1px solid var(--line);
  }
  nav.main-nav.open { transform: translateY(0); }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: var(--amber-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== Hero / route motif ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: var(--navy-deep);
  color: var(--paper);
}
.hero .wrap { position: relative; z-index: 2; }
.hero .proofbar {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--amber);
  letter-spacing: 0.06em;
  margin: 22px 0 34px;
}
.hero p.lead { color: #DCE3EE; font-weight: 500; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.55;
}
.route-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.4;
  stroke-dasharray: 6 8;
  stroke-linecap: round;
  animation: dash-move 26s linear infinite;
}
.route-node { fill: var(--amber); opacity: 0.9; }
.route-node-ring { fill: none; stroke: var(--amber); stroke-width: 1; opacity: 0.5; }
@keyframes dash-move {
  to { stroke-dashoffset: -280; }
}

/* ===== Cards / grids ===== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.card-top h3 { margin-bottom: 0; }
.card-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.pillar-card {
  border-left: 3px solid var(--amber);
  background: var(--white);
  padding: 26px 28px;
}
.pillar-card h3 { margin-bottom: 6px; }
.pillar-card .tagline { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.pillar-card ul { margin: 0; padding-left: 18px; }
.pillar-card li { margin-bottom: 6px; color: var(--ink); }

.step-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-mono);
  color: var(--amber-deep);
  font-size: 0.9rem;
  min-width: 2.4em;
}

.quality-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.quality-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
}
.quality-list .mark {
  color: var(--amber-deep);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* member cards */
.member-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.member-logo-slot {
  height: 56px;
  width: 100%;
  max-width: 168px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: transparent;
}
.member-logo-slot img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.member-logo-slot--dark {
  background: var(--navy-deep);
  padding: 8px 14px;
  width: auto;
  justify-content: center;
}
.member-logo-slot--dark img { object-position: center; }

/* Home: rij met ledenlogo's onder Probleem → Oplossing */
.member-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.member-logo-row img {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.member-logo-row img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@media (max-width: 760px) {
  .member-logo-row {
    justify-content: center;
    gap: 24px 32px;
  }
  .member-logo-row img { height: 22px; }
}
.member-region {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}
.member-card h3 { margin-bottom: 8px; }
.member-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.member-card .link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
}
.member-card .link:hover { color: var(--amber-deep); }

/* contact table */
table.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
table.contact-table th, table.contact-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
table.contact-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
}

/* placeholder blocks (dev/editorial notes) */
.dev-note {
  border: 1px dashed var(--amber-deep);
  background: #FBF3E1;
  color: var(--asphalt);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 18px 0;
}

/* Diensten: jump-navigatie */
.pillar-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.pillar-jumpnav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--paper);
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 11px 20px 11px 16px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  scroll-margin-top: 90px;
}
.pillar-jumpnav a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
}
.pillar-jumpnav a:hover {
  border-color: var(--brand-blue);
  background: rgba(29,154,215,0.18);
  color: var(--white);
  transform: translateY(-1px);
}

/* Diensten: pijlerkop met icoon */
.pillar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.pillar-heading > div { flex: 1; }
.pillar-icon {
  width: 252px;
  height: 252px;
  object-fit: contain;
  flex-shrink: 0;
}
section[id] { scroll-margin-top: 90px; }
section.pillar-section { padding: 22px 0; }
@media (max-width: 640px) {
  .pillar-heading { flex-direction: column-reverse; gap: 16px; }
  .pillar-icon { width: 160px; height: 160px; }
}
.cta-band {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C8CEDC; margin-bottom: 26px; }

/* Network map */
.network-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.network-map-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: #9AA4B8;
  padding: 48px 0 30px;
  font-size: 0.9rem;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
footer.site-footer a { color: #C8CEDC; text-decoration: none; }
footer.site-footer a:hover { color: var(--amber); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
