/* KAPZONES demo site (lead 1042): one shipped stylesheet.
   Written fresh per doc 05 §4e: the skeleton's CONTRACTS are kept (demo-banner,
   robots noindex, form action + honeypot, bedankt.html) but the layout is not a
   contract and is authored per site. Replacing only a :root block produces a
   re-skin, which is recorded as reason #2 that three redesigns stayed flat.

   Single file on purpose: two separately-authored stylesheets cost a
   render-blocking request and 12 Lighthouse Performance points on
   garagebedrijf-karol (doc 05 session log, 2026-07-25). */

/* ------------------------------------------------------------------ tokens */

@font-face {
  font-family: "Gabarito";
  src: url("../fonts/Gabarito-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Committed colour strategy (impeccable new-work.md §4): one saturated field
     owns roughly half the surface. Every pair below was computed with a real
     WCAG luminance calculation before it was used, not eyeballed. The ratio in
     each comment is the measured value against its stated ground. */
  --petrol: #0e3b38;        /* the committed field */
  --petrol-diep: #072523;   /* deepest field, footer */
  --papier: #f2f5f3;        /* cool pale ground, deliberately not cream */
  --wit: #ffffff;
  --magenta: #d4356f;       /* 4.22:1 on --papier: FILLS AND RULES ONLY, never text */
  --magenta-tekst: #a31e52; /* 6.68:1 on --papier: accent text on light */
  --magenta-licht: #f09cbb; /* 5.98:1 on --petrol: accent text on the field */
  --magenta-knop: #e888ac;  /* 7.57:1 under #2a0512: buttons sitting on the field */
  --mist: #c3d6d1;          /* 8.15:1 on --petrol: muted text on the field */
  --inkt: #10201e;          /* body text on --papier */
  --inkt-zacht: #46605c;    /* 5.4:1 on --papier: muted text on light */
  --rand: #d3dedb;

  --font-kop: "Gabarito", ui-sans-serif, system-ui, sans-serif;
  --font-tekst: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maat-1: 0.5rem;
  --maat-2: 1rem;
  --maat-3: 1.5rem;
  --maat-4: 2.5rem;
  --maat-5: 4rem;
  --maat-6: 6rem;

  --breed: 76rem;
  --radius: 2px;
  --radius-groot: 14px;
}

/* Animated accent for the hero rule: @property makes the custom property
   interpolable, which a plain custom property is not. Zero library. */
@property --gloed {
  syntax: "<color>";
  inherits: false;
  initial-value: #d4356f;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--font-tekst);
  font-size: 1.0625rem;   /* 17px, gate floor is 16px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-kop);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 var(--maat-2);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; }

p { margin: 0 0 var(--maat-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--magenta-tekst); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 2.5rem, var(--breed)); margin-inline: auto; }

.visueel-verborgen {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sectie { padding-block: clamp(var(--maat-4), 8vw, var(--maat-6)); }

/* ------------------------------------------------------- contract: banner */

.demo-banner {
  background: var(--petrol-diep);
  color: var(--mist);
  font-size: 1rem;          /* gate floor; 13.6px here was a real §5 failure */
  line-height: 1.45;
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.demo-banner p { margin: 0; max-width: 62ch; margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;         /* gate floor is 44px */
  padding: 0.75rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--magenta-tekst);
  color: var(--papier);
  font-family: var(--font-kop);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}
.btn:hover { background: #8d1846; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--outline { background: transparent; border-color: var(--inkt); color: var(--inkt); }
.btn--outline:hover { background: var(--inkt); color: var(--papier); }

/* NOT --magenta: #2a0512 on #d4356f measures 4.02:1 and fails AA at this text
   size. #2a0512 on #e888ac measures 7.57:1. Lighthouse caught the first version. */
.btn--op-veld { background: var(--magenta-knop); color: #2a0512; }
.btn--op-veld:hover { background: var(--magenta-licht); }

.btn--leeg-op-veld { background: transparent; border-color: var(--mist); color: var(--papier); }
.btn--leeg-op-veld:hover { background: var(--papier); color: var(--petrol); }

/* ----------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 40; background: var(--petrol); color: var(--papier); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--maat-2);
  min-height: 68px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--papier);
  text-decoration: none;
}
.site-header__logo span { color: var(--magenta-licht); }

.site-header__nav ul { display: flex; gap: var(--maat-1); list-style: none; margin: 0; padding: 0; }
.site-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--papier);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
}
.site-header__nav a:hover { background: rgba(255, 255, 255, 0.1); }
.site-header__nav a[aria-current="page"] { color: var(--magenta-licht); }

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--mist);
  border-radius: var(--radius);
  color: var(--papier);
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.site-header__bel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--magenta-knop);
  color: #2a0512;
  font-weight: 700;
  text-decoration: none;
}
.site-header__bel svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { position: relative; }
  .site-header__nav { position: absolute; inset: 100% 0 auto 0; background: var(--petrol-diep); display: none; }
  .site-header__nav.is-open { display: block; }
  .site-header__nav ul { flex-direction: column; padding: var(--maat-2); }
  .site-header__nav a { min-height: 52px; }
  /* tap-to-call is plausibly the top mobile conversion path for a salon;
     hiding it below 640px was a real P0 on the previous site.
     The label is CLIPPED, not display:none: display:none removes it from the
     accessibility tree too, leaving the link with no discernible name at all
     (Lighthouse link-name failure on all five pages, caught 2026-07-25). */
  .site-header__bel span {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .site-header__bel { padding: 0 0.9rem; }
}

/* =================================================== FAMILY 1: cover hero */

.cover { position: relative; background: var(--petrol); color: var(--papier); }
.cover__veld { padding-block: clamp(var(--maat-4), 7vw, 5rem) var(--maat-4); }

.cover__eyebrow {
  font-family: var(--font-kop);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magenta-licht);
  margin-bottom: var(--maat-2);
}

.cover__kop { max-width: 14ch; margin-bottom: var(--maat-3); }

.cover__streep {
  width: clamp(90px, 22vw, 190px);
  height: 6px;
  border-radius: 3px;
  background: var(--gloed);
  margin-bottom: var(--maat-3);
  animation: gloed-wissel 9s ease-in-out infinite alternate;
}
@keyframes gloed-wissel {
  from { --gloed: #d4356f; }
  to   { --gloed: #f09cbb; }
}

.cover__sub {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--mist);
  margin-bottom: var(--maat-3);
}

.cover__acties { display: flex; flex-wrap: wrap; gap: var(--maat-2); }

.cover__beeld { position: relative; line-height: 0; }
.cover__beeld img {
  width: 100%;
  height: clamp(210px, 36vw, 440px);
  object-fit: cover;
  object-position: 46% 40%;
}

/* the booking card straddles the seam between field and photograph: this is
   the structural move that separates this hero from the register's other two */
.cover__kaartje {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 27rem);
  margin: -3.5rem auto calc(-1 * var(--maat-4));
  background: var(--papier);
  color: var(--inkt);
  border-radius: var(--radius-groot);
  padding: var(--maat-3);
  box-shadow: 0 18px 40px rgba(7, 37, 35, 0.3);
}
.cover__kaartje h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.cover__kaartje p { font-size: 1rem; color: var(--inkt-zacht); margin-bottom: var(--maat-2); }
.cover__kaartje .btn { width: 100%; }

@media (min-width: 900px) {
  .cover__kaartje {
    margin-inline: 0;
    margin-left: max(1.25rem, calc((100vw - var(--breed)) / 2));
  }
}

.na-cover { padding-top: calc(var(--maat-5) + var(--maat-2)); }

/* ==================================================== FAMILY 2: feitenrail */

/* On the petrol field, not the pale ground: the Committed colour strategy asks
   for one saturated field owning roughly half the surface, and the pale ground
   was running away with the middle of every page. */
.rail { background: var(--petrol); color: var(--papier); }
.rail__lijst {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(242, 245, 243, 0.16);
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail__lijst li { background: var(--petrol); padding: var(--maat-3) var(--maat-2); }
.rail__cijfer {
  display: block;
  font-family: var(--font-kop);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--magenta-licht);   /* 5.98:1 on --petrol, measured */
  letter-spacing: -0.03em;
}
.rail__label { display: block; margin-top: 0.5rem; font-size: 1rem; color: var(--mist); }

/* ================================================ FAMILY 3: editorial index */

.index-lijst { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--inkt); }
.index-lijst > li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--maat-2);
  align-items: start;
  padding-block: var(--maat-3);
  border-bottom: 1px solid var(--rand);
}
/* Below 760px the row is a 2-column grid, so auto-placement drops the third
   child into the narrow number column and wraps it one word per line. Pin it
   under the heading instead. */
.index-lijst > li > div + div { grid-column: 2; }

@media (min-width: 760px) {
  .index-lijst > li { grid-template-columns: 5rem 1fr 1.15fr; gap: var(--maat-3); }
  .index-lijst > li > div + div { grid-column: auto; }
}

.index-lijst__duur {
  margin: 0;
  font-size: 1rem;
  color: var(--inkt-zacht);
}
/* repeated on all six rows, so it stays muted: accent colour on a six-times
   repeated placeholder drums instead of pointing */
.index-lijst__prijs {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  color: var(--inkt-zacht);
  font-style: italic;
}
.index-lijst__nr {
  font-family: var(--font-kop);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--magenta-tekst);
  padding-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.index-lijst h3 { margin-bottom: 0.35rem; }
.index-lijst__uitleg { color: var(--inkt-zacht); margin: 0; }

/* ====================================================== FAMILY 4: full band */

.band { line-height: 0; background: var(--petrol-diep); }
.band img { width: 100%; height: clamp(150px, 22vw, 280px); object-fit: cover; }
/* a 4:3 source sliced to a 5:1 band loses the subject; give it more height and
   bias the crop upward to the hands and hair rather than the shirt */
.band--hoog img { height: clamp(230px, 34vw, 430px); object-position: 52% 32%; }

/* ======================================================= FAMILY 5: stagger */

.stagger { display: grid; gap: var(--maat-4); }
@media (min-width: 880px) {
  .stagger { grid-template-columns: 1fr 1fr; gap: var(--maat-5) var(--maat-4); align-items: start; }
  .stagger > *:nth-child(even) { margin-top: var(--maat-5); }
  /* The text column is short and the image column is a 1000x1180 portrait, so
     align-items:start left roughly 600px of empty ground beside every row: that
     reads as an unfinished row rather than as air. Centre the text against the
     image and cap the image's own aspect so it stops dictating row height. */
  .stagger__blok { align-self: center; }
  .stagger__beeld img { aspect-ratio: 4 / 5; object-fit: cover; }
}
.stagger__blok h3 { margin-bottom: 0.6rem; }
.stagger__blok p { color: var(--inkt-zacht); }
.stagger__beeld { border-radius: var(--radius-groot); overflow: hidden; line-height: 0; }
.stagger__beeld img { width: 100%; }

/* ================================================ FAMILY 6: paneel (op veld) */

.paneel { background: var(--petrol); color: var(--papier); }
.paneel h2 { color: var(--papier); }
.paneel__grid { display: grid; gap: var(--maat-4); align-items: start; }
@media (min-width: 900px) { .paneel__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--maat-5); } }
.paneel__intro { color: var(--mist); max-width: 44ch; }
.paneel__beeld { margin: 0; border-radius: var(--radius-groot); overflow: hidden; line-height: 0; }
@media (min-width: 900px) { .paneel__beeld img { aspect-ratio: 4 / 3; object-fit: cover; } }

/* Every photograph on this site is openly-licensed stock, not KAPZONES' own
   salon. Saying so on the page matters more than saying it in CREDITS.md: an
   owner who recognises a stranger's floor presented as theirs is PRODUCT.md
   failure mode #2 firing in one glance. */
.beeld-bijschrift {
  line-height: 1.45;
  font-size: 1rem;
  color: var(--inkt-zacht);
  padding-top: 0.6rem;
}
.beeld-bijschrift--op-veld { color: var(--mist); }

/* ============================================== FAMILY 7: split (feit/tijd) */

.split { display: grid; gap: var(--maat-4); }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: var(--maat-4); } }

.kader { border: 2px solid var(--rand); border-radius: var(--radius-groot); padding: var(--maat-3); background: var(--wit); }
.kader h3 { margin-bottom: var(--maat-2); }
.kader dl { margin: 0; }
.kader dt {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1rem;          /* gate floor is 16px; 0.95rem measured 15.2px */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--inkt-zacht);
  margin-top: var(--maat-2);
}
.kader dt:first-child { margin-top: 0; }
.kader dd { margin: 0.2rem 0 0; font-size: 1.0625rem; }

.eerlijk { background: #e5eeeb; border-radius: var(--radius-groot); padding: var(--maat-3); }
.eerlijk h3 { color: var(--magenta-tekst); font-size: 1.2rem; }
.eerlijk p { color: var(--inkt); margin-bottom: 0.75rem; }
.eerlijk p:last-child { margin-bottom: 0; }

/* ============================================ FAMILY 8: page-header strip */

.kop-strip { background: var(--petrol); color: var(--papier); padding-block: clamp(var(--maat-4), 6vw, var(--maat-5)); }
.kop-strip h1 { max-width: 17ch; margin-bottom: var(--maat-2); font-size: clamp(2.3rem, 6vw, 4rem); }
.kop-strip p { color: var(--mist); max-width: 50ch; margin: 0; }

/* ============================================== FAMILY 9: statement blok */

.statement { background: var(--papier); }
.statement__tekst {
  font-family: var(--font-kop);
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 var(--maat-3);
  text-wrap: balance;
}
.statement__tekst em { font-style: normal; color: var(--magenta-tekst); }
.statement__na { max-width: 52ch; color: var(--inkt-zacht); }
.statement__beeld { margin: var(--maat-4) 0 0; }
.statement__beeld img { border-radius: var(--radius-groot); }

/* ============================================== FAMILY 10: kaart (facade) */

.kaart-facade { border: 2px dashed var(--rand); border-radius: var(--radius-groot); padding: var(--maat-3); background: var(--wit); text-align: center; }
.kaart-facade h3 { font-size: 1.2rem; }
.kaart-facade p { color: var(--inkt-zacht); max-width: 46ch; margin-inline: auto; }
.kaart-locatie iframe { width: 100%; min-height: 340px; border: 0; border-radius: var(--radius-groot); }
.kaart-locatie__adres { margin-top: var(--maat-2); font-weight: 600; }

/* --------------------------------------------------------------- formulier */

.formulier { display: grid; gap: 0.35rem; }
.formulier label { font-family: var(--font-kop); font-weight: 700; font-size: 1rem; margin-top: var(--maat-2); }
.formulier label:first-of-type { margin-top: 0; }

.formulier input,
.formulier select,
.formulier textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--inkt);
  background: var(--wit);
  border: 2px solid var(--rand);
  border-radius: var(--radius);
}
.formulier textarea { min-height: 120px; resize: vertical; }
.formulier input:focus,
.formulier select:focus,
.formulier textarea:focus { border-color: var(--magenta-tekst); }
.formulier .btn { margin-top: var(--maat-3); }

/* contract: honeypot must stay in the DOM and stay invisible */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulier__disclaimer {
  font-size: 1rem;          /* gate floor; 13.6px here was a real §5 failure */
  color: var(--inkt-zacht);
  margin-top: var(--maat-2);
}
.paneel .formulier { background: var(--papier); padding: var(--maat-3); border-radius: var(--radius-groot); color: var(--inkt); }
.paneel .formulier label { color: var(--inkt); }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--petrol-diep); color: var(--mist); }
.site-footer__inner { display: grid; gap: var(--maat-3); padding-block: var(--maat-4); }
@media (min-width: 780px) { .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; gap: var(--maat-4); } }

/* h2, not h3: an h3 here creates a heading-order violation on pages whose h1
   has no intervening h2. Decoupled from the generic h2 size rule. */
.site-footer__naam {
  font-family: var(--font-kop);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--papier);
  margin-bottom: var(--maat-2);
  letter-spacing: -0.01em;
}
.site-footer h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--papier);
  margin-bottom: 0.75rem;
}
.site-footer a { color: var(--magenta-licht); }
.site-footer p { margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }

/* -------------------------------------------------- §4f flash, CSS-native */

/* Cross-page view transitions. Multi-page static site, zero JS, degrades to a
   normal navigation where unsupported. */
@view-transition { navigation: auto; }

/* Scroll-driven entrance reveals. animation-timeline: view() is CSS-native and
   costs no library; the @supports guard leaves everything visible without it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .onthul {
      animation: onthullen linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 34%;
    }
    @keyframes onthullen {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .index-lijst > li {
      animation: regel-in linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }
    @keyframes regel-in {
      from { opacity: 0; transform: translateX(-14px); }
      to   { opacity: 1; transform: translateX(0); }
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header__nav.is-open { animation: nav-in 180ms ease both; }
  @keyframes nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cover__streep { animation: none; background: var(--magenta); }
}

/* grid children cannot shrink below their content without this; an unbroken
   long word forced horizontal overflow at 360px on the previous site. */
.index-lijst > li,
.rail__lijst li,
.stagger__blok,
.paneel__grid > *,
.split > * { min-width: 0; overflow-wrap: break-word; }
