/* ────────────────────────────────────────────────────────────────
   Samen-Binden — design tokens
   Warm, friendly palette modernised from the puzzle-globe logo.
   ──────────────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:           #FAF6EE;          /* warm off-white */
  --bg-alt:       #F2EBDC;          /* cream */
  --bg-card:      #FFFFFF;
  --bg-deep:      #1F1B16;          /* dark warm */
  --bg-soft:      #FFFCF6;

  /* ink */
  --ink:          #1F1B16;
  --ink-2:        #3D3730;
  --ink-mute:     #6F665A;
  --ink-soft:     #948A7C;
  --line:         #E7DECC;
  --line-soft:    #EFE7D5;

  /* accents — softer cousins of the logo's blue / red / green */
  --leraar:       oklch(58% 0.11 240);   /* dusty blue */
  --leraar-soft:  oklch(94% 0.03 240);
  --kind:         oklch(65% 0.14 30);    /* warm coral */
  --kind-soft:    oklch(94% 0.04 30);
  --ouder:        oklch(58% 0.09 145);   /* muted sage */
  --ouder-soft:   oklch(94% 0.03 145);

  /* highlight / brand accent — used sparingly */
  --hi:           oklch(72% 0.13 60);    /* warm amber (echoes logo highlight) */
  --hi-soft:      oklch(94% 0.05 60);

  /* type */
  --f-display:    "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body:       "Public Sans", "Inter", system-ui, sans-serif;
  --f-serif:      "Newsreader", "Source Serif Pro", Georgia, serif;

  /* radii */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* shadows — soft and warm */
  --sh-1: 0 1px 2px rgba(31,27,22,.04), 0 2px 6px rgba(31,27,22,.04);
  --sh-2: 0 2px 6px rgba(31,27,22,.05), 0 12px 32px rgba(31,27,22,.06);
  --sh-3: 0 8px 24px rgba(31,27,22,.10), 0 24px 60px rgba(31,27,22,.10);

  /* layout */
  --maxw: 1240px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }

p  { margin: 0; text-wrap: pretty; }

/* ───────── layout helpers ───────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(64px, 9vw, 120px) 0; }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink-mute);
  display: inline-block;
}

.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-alt); }
.btn-arrow { padding-right: 18px; }
.btn-arrow .arr { transition: transform .15s ease; }
.btn-arrow:hover .arr { transform: translateX(3px); }

/* ───────── header ───────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.logo {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, oklch(78% 0.15 240) 0%, oklch(50% 0.13 245) 60%, oklch(38% 0.13 250) 100%);
  position: relative;
  box-shadow: inset -2px -3px 6px rgba(0,0,0,.18), inset 2px 3px 6px rgba(255,255,255,.25);
  flex-shrink: 0;
}
.logo-mark::before, .logo-mark::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 3px;
}
.logo-mark::before {
  background: oklch(60% 0.18 30);
  left: -2px; top: 8px;
  clip-path: polygon(0 0, 80% 0, 80% 35%, 100% 35%, 100% 65%, 80% 65%, 80% 100%, 0 100%);
}
.logo-mark::after {
  background: oklch(62% 0.16 145);
  right: -2px; bottom: 4px;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 20% 100%, 20% 65%, 0 65%, 0 35%, 20% 35%);
}
.logo-word {
  display: flex; flex-direction: column; line-height: 1;
}
.logo-word b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: oklch(50% 0.13 245);
}
.logo-word span {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.logo-word span em {
  color: var(--hi);
  font-style: normal;
  font-weight: 600;
}

.nav {
  display: flex; align-items: center; gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a.active { background: var(--ink); color: var(--bg); }

.header-cta { display: flex; gap: 8px; align-items: center; }

/* ───────── cards ───────── */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-1);
  border: 1px solid var(--line-soft);
}

/* ───────── placeholder image ───────── */
.ph {
  background:
    repeating-linear-gradient(135deg,
      var(--bg-alt) 0 14px,
      var(--bg-soft) 14px 28px);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink-mute);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--ink-soft);
  border-radius: calc(var(--r) - 6px);
  pointer-events: none;
  opacity: 0.4;
}
.ph .ph-inner {
  position: relative;
  z-index: 1;
  padding: 6px 10px;
  background: var(--bg-soft);
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* ───────── footer ───────── */
.footer {
  background: var(--bg-deep);
  color: #DCD3C0;
  padding: 80px 0 40px;
  margin-top: 60px;
}
.footer h4 {
  color: #FAF6EE;
  font-size: 13px;
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer a { color: #DCD3C0; opacity: 0.85; transition: opacity .15s ease; }
.footer a:hover { opacity: 1; color: #FAF6EE; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer-meta { font-size: 13px; line-height: 1.7; opacity: 0.7; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  opacity: 0.55;
}

/* ───────── page transitions ───────── */
.page-enter { animation: pageIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────── small utilities ───────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
