/* =========================================================================
   LUKAS Installatietechniek, herontwerp · shell
   Reset, zelfgehoste fonts en cross-versie utilities. De compositie zelf zit
   in v1.css, gescopet onder #version-v1 zodat geen token kan lekken zodra er
   een tweede versie bij komt.
   ========================================================================= */

/* Zelfgehost, nul verzoeken naar derden (bewezen patroon 9). */
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/chivo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/chivo-700.woff2") format("woff2");
}
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../font/chivo-900.woff2") format("woff2");
}

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

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

body {
  margin: 0;
  background: #f4f4f1;
  color: #16150f;
  font-family: "Chivo", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* De width/height attributen staan er voor de beeldverhouding. Zonder deze
   regel blijft het height-attribuut de baas zodra CSS alleen breedte zet. */
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

/* Eén focusring, bewust dubbel: een enkele currentColor-ring verdwijnt juist
   op een gevulde knop, want daar is de ringkleur de tekstkleur van die knop
   (LESSONS regel 19). Gele kern plus donkere halo overleeft antraciet, geel
   en wit. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #16150f;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(245, 229, 0, 0.9);
  border-radius: 2px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  background: #f5e500;
  color: #1e1d1b;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.22s ease;
}

.skip-link:focus-visible { transform: translateY(0); }

.version-root[hidden] { display: none !important; }

/* ---------- versiewisselaar ---------------------------------------------
   Gereedschap van het voorstel, geen onderdeel van het ontwerp. Rechtsonder
   in plaats van gecentreerd, zodat hij op 320 px niet over een knop valt.
   ----------------------------------------------------------------------- */

.vswitch {
  position: fixed;
  z-index: 900;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(30, 29, 27, 0.94);
  border: 1px solid rgba(244, 243, 239, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vswitch__label {
  padding: 0 8px 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 243, 239, 0.62);
}

.vswitch__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 9px 16px;
  background: transparent;
  color: #f4f3ef;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.vswitch__btn:hover { background: rgba(244, 243, 239, 0.14); }
.vswitch__btn[aria-pressed="true"] { background: #f5e500; color: #1e1d1b; }

@media (max-width: 560px) {
  .vswitch { right: 10px; bottom: 10px; padding: 4px; }
  .vswitch__label { display: none; }
  .vswitch__btn { padding: 8px 13px; font-size: 11px; }
}

/* Bewegingsveiligheid. De reveals hangen aan een .js klasse die alleen wordt
   gezet als beweging gewenst is, zodat er bij motion-uit nooit een opacity:0
   blijft staan zonder dat iets hem onthult (LESSONS regel 8). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- hamburger op smal scherm --------------------------------------
   Het menu zit in een <details class="burger-nav"> die op `open` staat; het
   script klapt hem dicht onder 961px. Zo werkt hij ook zonder JavaScript en
   blijft hij op desktop met het toetsenbord bereikbaar.
   -------------------------------------------------------------------------- */

.burger-nav { position: relative; }

.burger-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.burger-toggle::-webkit-details-marker { display: none; }
.burger-toggle span { display: inline-flex; flex-direction: column; gap: 3px; }
.burger-toggle span i { display: block; width: 16px; height: 2px; background: currentColor; }

@media (max-width: 960px) {
  .burger-toggle { display: inline-flex; }
  .burger-nav { margin-left: auto; }
  .burger-nav:not([open]) > nav { display: none !important; }

  .burger-nav[open] > nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 60;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    min-width: 226px;
    padding: 6px 0;
    background: #ffffff;
    border: 1px solid #dcdbd3;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  }

  .burger-nav[open] > nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 17px;
    white-space: nowrap;
  }
}
