/* ============================================================
   MAXLINQ — base.css
   Reset + design tokens (CSS custom properties)
   ============================================================ */

/* ---------- Self-hosted fonts (vervangt Google Fonts — sneller + privacy) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-variable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Kleuren — licht met één sterk accent */
  --bg: #FAF9F6;            /* warm wit, basis */
  --bg-soft: #F1EEE6;       /* zachte beige voor afwisselende secties */
  --bg-card: #FFFFFF;       /* kaarten */
  --bg-deep: #151513;       /* footer */

  --ink: #1A1A1A;           /* primaire tekst */
  --ink-soft: #504F49;      /* secundaire tekst */
  --ink-faint: #767469;     /* meta / kleine labels */
  --ink-invert: #F6F4EE;    /* tekst op donkere vlakken */

  --line: #E5E1D5;          /* hairlines en borders */

  --accent: #0F766E;        /* diep teal — CTA's, links, AI-accenten */
  --accent-strong: #0B5D56; /* hover */
  --accent-deep: #0A4742;   /* het ene accentvlak (AI-teaser) */
  --accent-soft: #E4EFEC;   /* lichte teal-tint voor chips/badges */
  --accent-glow: #8FD8CE;   /* waveform & details op donkere teal */

  /* Typografie — één displayfont, één leesbare sans */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;

  /* Max. 5 tekststijlen */
  --fs-display: clamp(2.5rem, 5.2vw + 1rem, 4.375rem); /* hero H1 */
  --fs-h2: clamp(1.875rem, 2.4vw + 1rem, 2.875rem);    /* sectiekoppen */
  --fs-h3: clamp(1.175rem, 0.6vw + 1rem, 1.375rem);    /* kaarttitels */
  --fs-body: 1.0625rem;                                 /* lopende tekst */
  --fs-small: 0.875rem;                                 /* meta, noten */
  --fs-eyebrow: 0.8125rem;                              /* labels */

  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.65;

  /* Layout & ritme */
  --container: 1160px;
  --container-narrow: 768px;
  --section-pad: clamp(4.5rem, 9vw, 7.75rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Vorm & diepte */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(26, 26, 26, 0.05), 0 4px 14px rgba(26, 26, 26, 0.05);
  --shadow-m: 0 2px 4px rgba(26, 26, 26, 0.06), 0 14px 34px rgba(26, 26, 26, 0.09);

  /* Beweging — subtiel en functioneel */
  --speed: 200ms;
  --speed-slow: 240ms;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

/* ---------- Toegankelijkheid ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--ink-invert);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 0;
  color: var(--ink-invert);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ankers vrijhouden van de sticky header */
[id] {
  scroll-margin-top: 6rem;
}

/* ---------- Verminderde beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
