/* ============================================================
   VitaService — Modern CSS Reset
   reset.css  ·  v1.0
   
   Gebaseerd op Josh Comeau's Modern CSS Reset, uitgebreid
   met VitaService-specifieke basisstijlen.
   ============================================================ */

/* Box sizing voor alle elementen */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Verwijder standaard marges */
* {
  margin: 0;
  padding: 0;
}

/* HTML & body */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Voorkom layout-shift bij scrollbar verschijnen */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Afbeeldingen: block + max-width voor responsive */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Formulier-elementen erven font */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* Overschrijdende tekst netjes afbreken */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Heading lettertypes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

/* Lijsten zonder stijl als nav-gebruik */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Links */
a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-link-hover);
}

/* Focus zichtbaar voor toetsenbord */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Verwijder focus voor muis/touch */
:focus:not(:focus-visible) {
  outline: none;
}

/* Buttons: basis reset */
button {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Code */
code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* HR */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* Tabel reset */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Scroll behavior voor motion-sensitive gebruikers */
@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;
    scroll-behavior: auto !important;
  }
}

/* Skip-link voor screen readers en toetsenbordgebruikers */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: white;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Selectie */
::selection {
  background: rgba(194, 65, 12, 0.25);
  color: var(--color-text-primary);
}

/* Scrollbar stijl (voor browsers die dit ondersteunen) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
