/* ============================================================
   RIET QUADEN MAKELAARS — basis (fonts, reset, type, sectie-ritme)
   ============================================================ */

/* ---------- zelf-gehoste variabele fonts (latin), geen Google-verbinding ---------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* geen css scroll-behavior: interne links scrollen via JS (GSAP ScrollToPlugin),
   anders vechten browser en animatie om de scrollpositie */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--zwart);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  overflow-x: hidden;
  /* viewport-fit=cover: houd inhoud uit de afgeronde hoeken/notch */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

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

img, svg, video { display: block; max-width: 100%; }
/* zonder height:auto wint een height-attribuut op de <img> van aspect-ratio */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* ---------- type-scale ---------- */
h1, h2, h3 {
  font-family: var(--font-kop);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.tekst-display {
  font-family: var(--font-kop);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.tekst-klein { font-size: var(--fs-klein); }
.tekst-steun { color: var(--steungrijs); }

/* prijzen/tellers: cijfers verspringen niet bij het optellen */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ---------- lijn-iconen (telefoon, mail, kopiëren) ----------
   Eén vorm per betekenis, overal hetzelfde: het telefoon-icoontje in de
   hero, in #contact, in de footer en in de melding is letterlijk dezelfde
   <path>. De kleur volgt de tekst (currentColor), dus hetzelfde icoon
   werkt op wit én op de zwarte contactsectie. */
.icoon {
  flex: none;
  width: 18px;
  height: 18px;
}
.icoon--klein {
  width: 15px;
  height: 15px;
}
.icoon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* alleen voor schermlezers ("opent in een nieuw tabblad", statusmeldingen) */
.alleen-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- sectie-ritme ---------- */
section { padding-block: var(--sectie-verticaal); background: var(--wit); }

/* Een NATIEVE hash-sprong (gedeelde link zoals /#contact, herladen met een
   anker, back/forward) kent de vaste header niet en zet de sectiekop onder
   de balk — op mobiel is de sectiepadding (64px) kleiner dan de compacte
   header (84px). scroll-margin-top reserveert die ruimte. Klikken op interne
   links loopt via main.js (eigen offset) en raakt dit niet: noch
   window.scrollTo, noch ScrollToPlugin kijkt naar scroll-margin. */
main[id],
section[id] { scroll-margin-top: var(--header-hoogte); }
.sectie-grijs { background: var(--warmgrijs); }

/* ---------- G4: scroll-voortgang ----------
   Ligt niet als losse streep bovenin het scherm (dat gaf een tweede rode lijn
   naast de bies), maar exact op de rode bies onder de header: de bies is de
   baan, de balk de vulling. Zelfde merkkleur, één tint dieper, naar zwart.
   Zit in .kop__balk (position: relative), dus hij schuift mee met het
   condenseren van de header. */
.scroll-voortgang {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, var(--rood-diep), var(--zwart));
  transform: scaleX(0); transform-origin: left;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-voortgang { display: none; }
}
