@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Warm, light base */
  --bg: #fbfaf7;
  --surface: #ffffff;

  /* Text */
  --text: #2f4858;
  --muted: #203864;
  --line: #e8e4dc;

  /* Brand */
  --accent: #1f4ea8;
  /* blauw */
  --cta: #d9c9b6;
  /* zand/beige CTA zoals referentie */

  --radius: 18px;
  --shadow: 0 12px 28px rgba(0, 0, 0, .08);
  --shadow2: 0 8px 20px rgba(0, 0, 0, .06);

  --max: 1140px;
  --pad: clamp(18px, 3.5vw, 40px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

li {
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0 0 1rem;
}

/* Headings — editorial like the reference */
h1,
h2 {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: -.02em;
}

h3 {
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 .75rem;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 0 0 .75rem;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 .5rem;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Sections feel like fewer, bigger blocks */
.section {
  padding: clamp(54px, 7vw, 96px) 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}

.panel--flat {
  box-shadow: none;
}

/* Backwards compatible naming used by components */
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}

.surface--flat {
  box-shadow: none;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--cta);
  border-color: color-mix(in srgb, var(--cta) 65%, #000 0%);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--cta) 88%, #fff 12%);
}

.btn--ghost {
  background: transparent;
}

.card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow2);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 68%, transparent);
  margin-bottom: 10px;
}

.kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Accessibility */
.skiplink {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skiplink:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 9999;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.small {
  font-size: 14px;
}

/* -------------------------
   Mobile typography tuning
   ------------------------- */
@media (max-width: 520px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  h1 {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(24px, 6.2vw, 34px);
    line-height: 1.15;
  }

  h3 {
    font-size: 16px;
    line-height: 1.3;
  }

  p {
    margin: 0 0 .85rem;
  }

  .kicker {
    font-size: 11px;
    letter-spacing: .12em;
    color: color-mix(in srgb, var(--text) 70%, transparent);
  }

  .small {
    font-size: 13px;
  }
}

/* -------------------------
   Optional: calmer “muted”
   (only on very small screens)
   ------------------------- */
@media (max-width: 380px) {
  .muted {
    color: color-mix(in srgb, var(--muted) 78%, var(--text) 22%);
  }
}