/* ==========================================================================
   Garagebedrijf Karol - v2. Purpose-built for THIS site, not a :root reskin
   of /demo-template/skeleton. The shared skeleton's contracts are kept
   (demo-banner, robots noindex, form action + honeypot, bedankt.html), the
   layout is written fresh - a custom-property swap can only ever produce a
   re-skin of the same shapes, which is what made v1 read as templated.

   Design read: a working garage's site should feel like the shop floor -
   photographic, physical, specific about time and cost.
   Dials: VARIANCE 6 / MOTION 3 / DENSITY 6.
   Every colour pair below was computed against WCAG AA, not eyeballed.
   ========================================================================== */

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

:root {
  /* warm charcoal + bone + oxblood rust. Deliberately a different palette
     family from every prior attempt (dark navy + burnt orange, concrete +
     steel blue, forest green + cream). */
  --inkt: #1a1613;
  --bone: #f5f2ec;
  --bone-2: #e9e4da;
  --rust: #9c3a24;
  --rust-donker: #7d2d1b;
  --rust-op-donker: #e08a6f;
  --tekst-zacht: #6a625a;
  --rand: #d9d2c6;
  --rand-donker: rgba(245, 242, 236, 0.16);
  --bone-zacht: rgba(245, 242, 236, 0.78);

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

  /* sharp, workshop-signage corners - not v1's soft 8px */
  --radius: 2px;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.875rem;
  --s-4: 1.375rem;
  --s-5: 2.25rem;
  --s-6: 3.5rem;
  --s-7: 5.5rem;

  --breed: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-tekst);
  font-size: 17px;
  line-height: 1.55;
  color: var(--inkt);
  background: var(--bone);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-kop);
  margin: 0 0 var(--s-3);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h1 { font-size: clamp(2.35rem, 4.6vw, 3.4rem); line-height: 0.99; letter-spacing: -0.033em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 var(--s-3); }
a { color: var(--rust); }

.container {
  width: 100%;
  max-width: var(--breed);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 700px) { .container { padding: 0 var(--s-5); } }

.sectie { padding: var(--s-7) 0; }
.sectie--strak { padding: var(--s-6) 0; }
.sectie--donker { background: var(--inkt); color: var(--bone); }
.sectie--donker h2, .sectie--donker h3 { color: var(--bone); }
.sectie--zacht { background: var(--bone-2); }
@media (max-width: 700px) {
  .sectie { padding: var(--s-6) 0; }
}

/* eyebrow label */
.label {
  display: block;
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 var(--s-3);
}
.sectie--donker .label { color: var(--rust-op-donker); }

.intro { font-size: 1.15rem; color: var(--tekst-zacht); max-width: 52ch; }
.sectie--donker .intro { color: var(--bone-zacht); }

/* -- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  min-height: 48px;
  border: 2px solid var(--rust);
  border-radius: var(--radius);
  background: var(--rust);
  color: var(--bone);
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover, .btn:focus-visible { background: var(--rust-donker); border-color: var(--rust-donker); }
.btn--lijn {
  background: transparent;
  color: var(--inkt);
  border-color: var(--inkt);
}
.btn--lijn:hover, .btn--lijn:focus-visible {
  background: var(--inkt);
  border-color: var(--inkt);
  color: var(--bone);
}
.sectie--donker .btn--lijn { color: var(--bone); border-color: var(--bone); }
.sectie--donker .btn--lijn:hover, .sectie--donker .btn--lijn:focus-visible {
  background: var(--bone); color: var(--inkt);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}
.sectie--donker :where(a, button):focus-visible { outline-color: var(--rust-op-donker); }

.visueel-verborgen {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.overslaan {
  position: absolute; left: var(--s-3); top: -100px;
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--inkt); color: var(--bone);
  padding: var(--s-2) var(--s-3); z-index: 20; border-radius: var(--radius);
}
.overslaan:focus { top: var(--s-3); }

/* -- demo banner (doc 05 mandated component) -- */
.demo-banner {
  background: var(--inkt);
  color: var(--bone-zacht);
  text-align: center;
  padding: var(--s-2) var(--s-4);
  font-size: 1rem;
  line-height: 1.4;
}
.demo-banner p { margin: 0; }
.demo-banner strong { color: var(--bone); font-weight: 600; }

/* -- header -- */
.site-header {
  background: var(--bone);
  border-bottom: 1px solid var(--rand);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  max-width: var(--breed);
  margin: 0 auto;
}
@media (min-width: 700px) { .site-header__inner { padding: var(--s-3) var(--s-5); } }

/* typeset wordmark lockup - no decorative monogram (v1 used one; a typeset
   name is the more confident move and taste-skill prefers it) */
.merk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--inkt);
  margin-right: auto;
}
.merk__boven {
  font-family: var(--font-kop);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  line-height: 1;
}
.merk__naam {
  font-family: var(--font-kop);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.merk:hover .merk__naam, .merk:focus-visible .merk__naam { color: var(--rust); }

.hoofdnav { display: flex; gap: var(--s-4); }
.hoofdnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
  font-family: var(--font-kop);
  font-weight: 600;
  font-size: 1rem;
  color: var(--inkt);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.hoofdnav a:hover, .hoofdnav a:focus-visible { color: var(--rust); border-bottom-color: var(--rust); }
.hoofdnav a[aria-current="page"] { border-bottom-color: var(--rust); }

.nav-toggle {
  display: none;
  min-width: 46px; min-height: 46px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--inkt);
}
.nav-toggle svg { width: 22px; height: 22px; }

.header-bel {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1rem;
  color: var(--inkt);
  text-decoration: none;
  white-space: nowrap;
}
.header-bel svg { width: 17px; height: 17px; flex: none; color: var(--rust); }
.header-bel:hover, .header-bel:focus-visible { color: var(--rust); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .hoofdnav {
    order: 4;
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--rand);
    margin-top: var(--s-3);
    padding-top: var(--s-2);
  }
  .hoofdnav.is-open { display: flex; }
  .hoofdnav a { min-height: 52px; border-bottom: 1px solid var(--rand); width: 100%; }
  .site-header__inner { flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .header-bel span { display: none; }
  .header-bel::after { content: "Bellen"; }
}

/* ==========================================================================
   LAYOUT FAMILY 1 - split hero: type column + photo bleeding to the right
   viewport edge, with a fact card overlapping the seam.
   ========================================================================== */
.hero { border-bottom: 1px solid var(--rand); }
.hero__grid { display: grid; }
.hero__tekst {
  padding: var(--s-6) var(--s-4) var(--s-5);
  max-width: 620px;
}
.hero__beeld { position: relative; background: var(--bone-2); }
.hero__beeld img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.hero h1 { margin-bottom: var(--s-4); }
.hero__sub {
  font-size: 1.2rem;
  color: var(--tekst-zacht);
  max-width: 44ch;
  margin-bottom: var(--s-5);
}
.hero__acties { display: flex; flex-wrap: wrap; gap: var(--s-3); }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: stretch;
    min-height: 74vh;
  }
  .hero__tekst {
    padding: var(--s-7) var(--s-6) var(--s-7) max(var(--s-5), calc(50vw - (var(--breed) / 2) + var(--s-5)));
    max-width: none;
    align-self: center;
  }
  .hero__tekst > * { max-width: 36rem; }
  .hero__beeld img { height: 100%; aspect-ratio: auto; }
}

/* ==========================================================================
   LAYOUT FAMILY 2 - dark inline fact bar
   ========================================================================== */
.feitenbalk { background: var(--inkt); color: var(--bone); }
.feitenbalk__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: baseline;
  padding: var(--s-4) 0;
}
.feit { display: flex; align-items: baseline; gap: 0.55em; }
.feit__waarde {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--rust-op-donker);
}
.feit__label { color: var(--bone-zacht); font-size: 1rem; }

/* ==========================================================================
   LAYOUT FAMILY 3 - sticky heading column + thumbnail list
   ========================================================================== */
.dienst-layout { display: grid; gap: var(--s-5); }
@media (min-width: 900px) {
  .dienst-layout { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--s-7); }
  .dienst-layout__kop { position: sticky; top: 7.5rem; align-self: start; }
}
.dienst-lijst { display: flex; flex-direction: column; }
.dienst {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rand);
}
.dienst:last-child { border-bottom: 1px solid var(--rand); }
.dienst > * { min-width: 0; }
.dienst__foto {
  width: 108px; height: 108px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.25s ease;
}
.dienst:hover .dienst__foto { filter: grayscale(0); }
.dienst h3 { margin-bottom: var(--s-1); }
.dienst p { margin: 0; color: var(--tekst-zacht); }
.dienst__meta {
  display: inline-block;
  margin-top: var(--s-2);
  font-family: var(--font-kop);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
}
@media (max-width: 460px) {
  .dienst { grid-template-columns: 60px minmax(0, 1fr); gap: var(--s-3); }
  .dienst__foto { width: 60px; height: 60px; }
}

/* ==========================================================================
   LAYOUT FAMILY 4 - price table (the highest-density block on the site)
   ========================================================================== */
.prijs-wrap { overflow-x: auto; margin-top: var(--s-5); }
.prijs-tabel {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.prijs-tabel caption {
  text-align: left;
  color: var(--tekst-zacht);
  padding-bottom: var(--s-3);
  font-size: 1rem;
}
.prijs-tabel th, .prijs-tabel td {
  text-align: left;
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-bottom: 1px solid var(--rand);
}
.prijs-tabel thead th {
  font-family: var(--font-kop);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  border-bottom-color: var(--inkt);
}
.prijs-tabel tbody th {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.prijs-tabel .bedrag {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.prijs-tabel .duur { color: var(--tekst-zacht); white-space: nowrap; }
.prijs-let {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--bone-2);
  border-radius: var(--radius);
  color: var(--tekst-zacht);
  font-size: 1rem;
  max-width: 46rem;
}
.sectie--zacht .prijs-let { background: var(--bone); }
.prijs-let strong { color: var(--inkt); }

/* ==========================================================================
   LAYOUT FAMILY 5 - numbered process steps over a dark photo band
   ========================================================================== */
.werkwijze { position: relative; background: var(--inkt); color: var(--bone); overflow: hidden; }
.werkwijze__achtergrond {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(1);
}
.werkwijze__inner { position: relative; padding: var(--s-7) 0; }
.stappen {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
  counter-reset: stap;
}
@media (min-width: 780px) { .stappen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.stap { min-width: 0; padding-top: var(--s-3); border-top: 2px solid var(--rust-op-donker); }
.stap__nr {
  display: block;
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--rust-op-donker);
  margin-bottom: var(--s-3);
}
.stap h3 { margin-bottom: var(--s-2); }
.stap p { margin: 0; color: var(--bone-zacht); }

/* ==========================================================================
   LAYOUT FAMILY 6 - photo + text pair (photo left, text right)
   ========================================================================== */
.duo { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 860px) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); }
  .duo--omgekeerd .duo__beeld { order: 2; }
}
.duo > * { min-width: 0; }
.duo__beeld img { width: 100%; border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; }

/* ==========================================================================
   LAYOUT FAMILY 9 - wide banner image with the copy in two columns below.
   Exists to break the zigzag on the diensten page: the skill caps consecutive
   image+text splits at two, and that page has four services to describe.
   ========================================================================== */
.breed-blok__beeld img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.06);
}
.breed-blok__tekst { margin-top: var(--s-5); }
.breed-blok__kolommen { display: grid; gap: var(--s-4); margin-top: var(--s-3); }
@media (min-width: 780px) {
  .breed-blok__kolommen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
}
.breed-blok__kolommen > * { min-width: 0; margin: 0; }

/* ==========================================================================
   LAYOUT FAMILY 7 - centred CTA band
   ========================================================================== */
.cta-band { background: var(--rust); color: var(--bone); text-align: center; }
.cta-band__inner { padding: var(--s-6) 0; }
.cta-band h2 { color: var(--bone); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(245, 242, 236, 0.85); max-width: 44ch; margin-inline: auto; }
.cta-band .btn {
  background: var(--bone); color: var(--inkt); border-color: var(--bone);
  margin-top: var(--s-3);
}
.cta-band .btn:hover, .cta-band .btn:focus-visible {
  background: var(--inkt); border-color: var(--inkt); color: var(--bone);
}
.cta-band .btn:focus-visible { outline-color: var(--bone); }

/* ==========================================================================
   LAYOUT FAMILY 8 - map + opening hours split
   ========================================================================== */
.locatie { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 860px) { .locatie { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-6); } }
.locatie > * { min-width: 0; }
.kaart {
  width: 100%; height: 380px;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  display: block;
}
/* Click-to-load map facade. The OpenStreetMap embed pulls ~1.9 MB of Leaflet
   plus tiles, which alone breaks the 600 KB page-weight budget, so the iframe
   is only injected once the visitor asks for it. */
.kaart-facade {
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(26, 22, 19, 0.03) 22px 23px),
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(26, 22, 19, 0.03) 22px 23px),
    var(--bone-2);
}
.sectie--zacht .kaart-facade { background-color: var(--bone); }
.kaart-facade h3 { margin: 0; }
.kaart-facade p { margin: 0; color: var(--tekst-zacht); max-width: 40ch; }
.uren { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.uren th, .uren td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rand);
  font-weight: 400;
}
.uren th { font-weight: 600; }
/* muted "Gesloten" row. The soft grey only has 3.0:1 on the dark inkt
   background, so dark contexts get their own muted tone (8.7:1) instead of
   inheriting the light-theme one. */
.uren tr[data-dicht] td { color: var(--tekst-zacht); }
.site-footer .uren tr[data-dicht] td,
.zij-kaart .uren tr[data-dicht] td { color: var(--bone-zacht); }
.adres-blok { margin-bottom: var(--s-4); }
.adres-blok p { margin-bottom: var(--s-2); }

/* -- forms -- */
.formulier { max-width: 34rem; }
.veld { margin-bottom: var(--s-4); }
.veld label {
  display: block;
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--s-2);
}
.veld input, .veld textarea, .veld select {
  width: 100%;
  padding: 0.75em 0.9em;
  min-height: 48px;
  font: inherit;
  color: var(--inkt);
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
}
.veld textarea { min-height: 8rem; resize: vertical; }
.veld input::placeholder, .veld textarea::placeholder { color: var(--tekst-zacht); opacity: 1; }
.veld input:focus-visible, .veld textarea:focus-visible, .veld select:focus-visible { border-color: var(--rust); }
.veld input:user-invalid, .veld textarea:user-invalid { border-color: #a3231a; }
.veld__hint { margin: var(--s-2) 0 0; font-size: 1rem; color: var(--tekst-zacht); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulier__voet { margin-top: var(--s-3); font-size: 1rem; color: var(--tekst-zacht); }

.form-layout { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) {
  .form-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-7); }
}
.form-layout > * { min-width: 0; }
.zij-kaart {
  background: var(--inkt);
  color: var(--bone);
  padding: var(--s-5);
  border-radius: var(--radius);
}
.zij-kaart h2 { color: var(--bone); font-size: 1.4rem; }
.zij-kaart p, .zij-kaart li { color: var(--bone-zacht); }
.zij-kaart a { color: var(--rust-op-donker); }
.zij-kaart ul { margin: 0; padding-left: 1.1em; }
.zij-kaart li { margin-bottom: var(--s-2); }
.zij-kaart .uren th, .zij-kaart .uren td { border-bottom-color: var(--rand-donker); color: var(--bone-zacht); }
.zij-kaart .uren th { color: var(--bone); }

/* -- footer -- */
.site-footer { background: var(--inkt); color: var(--bone-zacht); }
.site-footer a { color: var(--bone); }
.site-footer__inner {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6) 0 var(--s-5);
}
@media (min-width: 780px) {
  .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-6); }
}
.site-footer__inner > * { min-width: 0; }
.site-footer h2 {
  font-size: 1.3rem;
  color: var(--bone);
  margin-bottom: var(--s-3);
}
.site-footer h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-op-donker);
  margin-bottom: var(--s-3);
}
.site-footer .uren th, .site-footer .uren td { border-bottom-color: var(--rand-donker); }
.site-footer .uren th { color: var(--bone); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer__streep { border-top: 1px solid var(--rand-donker); }

/* -- inner-page header block -- */
.paginakop { padding: var(--s-6) 0 var(--s-5); border-bottom: 1px solid var(--rand); }
.paginakop h1 { max-width: 18ch; margin-bottom: var(--s-4); }
.paginakop .intro { margin-bottom: 0; }

/* -- prose -- */
.prose { max-width: 34rem; }
.prose h2 { margin-top: var(--s-5); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15em; color: var(--tekst-zacht); }
.prose li { margin-bottom: var(--s-2); }
