/* ============================================================
   BASE — gedeelde tokens, reset & fonts
   De enige bron van waarheid voor kleuren, fonts en reset.
   Wordt op ELKE pagina als eerste geladen, vóór de
   pagina-specifieke CSS. Definieer kleuren/fonts hier, niet
   opnieuw in de andere bestanden.
   ============================================================ */

:root {
  /* Merkkleuren */
  --orange: #F15A22;
  --orange-dark: #d44c1a;
  --cream: #FDF4EC;
  --cream-2: #f7ead9;
  --dark: #1A1A1A;
  --dark-2: #2a2a2a;
  --text: #2e2e2e;
  --muted: #7a7a7a;

  /* Lijnen & vlakken */
  --line: rgba(26, 26, 26, .08);
  --line-dark: rgba(255, 255, 255, .08);
  --bg: #f5f5f4;
  --border: rgba(0, 0, 0, 0.08);

  /* Status */
  --green: #16a34a;
  --red: #dc2626;

  /* Vormgeving */
  --radius-btn: 14px;

  /* Fonts */
  --display: "Archivo", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ============ UTILITIES ============ */
/* Visueel verborgen, maar wél leesbaar voor screenreaders & SEO.
   Gebruikt voor een h1 op pagina's zonder zichtbare hoofd-titel. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ TAALSWITCHER ============ */
/* Dropdown in de nav (desktop + mobiel), dashboard/account-nav en onboarding.
   Gerenderd door js/taalwissel.js in elk element met [data-taalwissel]. */
.taalwissel { display: inline-flex; align-items: center; }
.taalwissel-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center / 12px;
  padding: 6px 26px 6px 10px;
  font: 600 0.85rem/1.2 Manrope, system-ui, sans-serif;
  color: inherit;
  cursor: pointer;
}
.taalwissel-select:hover,
.taalwissel-select:focus-visible { border-color: #F15A22; outline: none; }
.taalcompact { position: relative; }
.taalcompact summary { display: flex; align-items: center; padding: 5px; border: 0; border-radius: 6px; cursor: pointer; list-style: none; background: transparent; }
.taalcompact summary::-webkit-details-marker { display: none; }
.taalvlag { display: block; width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); overflow: hidden; }
.taalcompact-menu { position: absolute; z-index: 1000; top: calc(100% + 7px); right: 0; min-width: 168px; padding: 6px; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.taalcompact-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #1a1a1a; font: 600 .86rem var(--body); cursor: pointer; text-align: left; }
.taalcompact-menu button:hover, .taalcompact-menu button.actief { background: rgba(241,90,34,.08); color: #F15A22; }
.nav-mob-actions .taalwissel-select { width: 100%; padding: 10px 30px 10px 12px; }

/* Footer-variant: lichte switcher op de donkere footer */
.foot-taalwissel { margin: 28px 0 14px; }
footer .taalwissel-select {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
footer .taalwissel-select option { color: #1a1a1a; }
