/* ==========================================================================
   GTR TANDARTSEN · HUISSTIJL (VERGRENDELD)
   --------------------------------------------------------------------------
   Dit bestand is identiek voor alle vier de ontwerpsporen.
   Kleuren en typografie zijn 1-op-1 overgenomen van gtrtandartsen.nl.
   Er zijn GEEN varianten of nieuwe tinten toegevoegd: waar diepte nodig is,
   wordt dezelfde kleur met transparantie gebruikt, nooit een nieuwe hex.

   De sporen verschillen uitsluitend in indeling, ritme en beweging.
   ========================================================================== */

/* --- Typografie: exact de fonts van de huidige site -------------------- */
@font-face {
  font-family: 'Abel';
  src: url('fonts/abel-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Merkkleuren, afgelezen van de huidige website */
  --gtr-blauw:      #1C3583;  /* logo, koppen, primaire merkkleur   */
  --gtr-lila:       #888BBE;  /* secundair, navigatie en accenten   */
  --gtr-link:       #1E73BE;  /* linkblauw van de huidige site      */
  --gtr-inkt:       #33373D;  /* donkere tekst                      */
  --gtr-grijs:      #4F4F4F;  /* lopende tekst                      */
  --wit:            #FFFFFF;
  --grijs-licht:    #F2F2F2;
  --grijs-zacht:    #F9F9F9;

  /* Diepte zonder nieuwe kleuren: dezelfde blauwtint, alleen transparant */
  --blauw-05: rgba(28, 53, 131, 0.05);
  --blauw-10: rgba(28, 53, 131, 0.10);
  --blauw-20: rgba(28, 53, 131, 0.20);
  --blauw-40: rgba(28, 53, 131, 0.40);
  --blauw-70: rgba(28, 53, 131, 0.70);
  --blauw-90: rgba(28, 53, 131, 0.92);
  --lila-20:  rgba(136, 139, 190, 0.20);
  --lila-40:  rgba(136, 139, 190, 0.40);

  /* Lettertypen */
  --font-display: 'Abel', 'Helvetica Neue', Arial, sans-serif;
  --font-tekst: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Beweging */
  --soepel: cubic-bezier(0.22, 1, 0.36, 1);
  --traag: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-tekst);
  color: var(--gtr-grijs);
  background: var(--wit);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--gtr-blauw);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.1em; }
a { color: var(--gtr-link); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--gtr-blauw); color: var(--wit); }

/* --- Herbruikbare merkonderdelen --------------------------------------- */

/* Het logo van de huidige site, ongewijzigd */
.gtr-logo { height: 46px; width: auto; }

/* Klein bovenschrift, zoals de huidige site labels gebruikt */
.kicker {
  font-family: var(--font-tekst);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gtr-lila);
}

/* Focus zichtbaar houden voor toegankelijkheid */
:focus-visible {
  outline: 2px solid var(--gtr-link);
  outline-offset: 3px;
}

/* --- Scroll-onthulling (elk spoor doseert dit anders) ------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--soepel), transform 0.9s var(--soepel);
  transition-delay: var(--vertraging, 0s);
}
[data-reveal].zichtbaar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Laadscherm: korte, verzorgde entree met het GTR-logo --------------- */
.laadscherm {
  position: fixed; inset: 0; z-index: 200;
  background: var(--gtr-blauw);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--traag), visibility 0s linear 0.9s;
}
.laadscherm__midden { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.laadscherm img {
  height: 56px; width: auto; filter: brightness(0) invert(1);
  opacity: 0; transform: translateY(12px);
  animation: laad-logo 0.9s var(--soepel) 0.12s forwards;
}
.laadscherm__lijn {
  width: 130px; height: 1px; background: rgba(255,255,255,0.22);
  overflow: hidden; display: block;
}
.laadscherm__lijn i {
  display: block; height: 100%; background: var(--wit);
  transform: translateX(-101%);
  animation: laad-lijn 1.15s var(--soepel) 0.3s forwards;
}
.laadscherm.klaar { transform: translateY(-100%); visibility: hidden; }
@keyframes laad-logo { to { opacity: 1; transform: none; } }
@keyframes laad-lijn { to { transform: none; } }
body.laadt { overflow: hidden; }
/* In een verkleind voorbeeld of bij verminderde beweging: geen entree */
.geen-beweging .laadscherm { display: none !important; }
@media (prefers-reduced-motion: reduce) { .laadscherm { display: none !important; } }

/* Voorbeeldmodus: het spoor staat verkleind in een kader op de overzichtspagina.
   Alle beweging uit, zodat het voorbeeld de eindstand toont en niet halverwege
   een overgang blijft hangen. Zie assets/voorbeeldmodus.js */
.geen-beweging [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;   /* spoor 3 onthult beeld met een veeg */
}
.geen-beweging *, .geen-beweging *::before, .geen-beweging *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
}
