/* ==========================================================================
   Kendok — stylesheet
   Minimalist, single-page site. One accent family (indigo, from the logo),
   restrained neutrals, system fonts (zero third-party requests → fast + GDPR-
   clean, no calls leaving the EU). Personality comes from the typographic
   treatment and the "index/measure" motif, not from decoration.

   Edit guide:
   - Brand colour lives in ONE place: --brand (see :root). Set it to the exact
     hex of the Kendok logo and the whole palette follows.
   - To use a self-hosted brand font instead of system fonts, drop a .woff2 into
     assets/fonts/ and see the @font-face stub at the bottom of this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — the single knob. Match this to the logo's indigo. */
  --brand:        #4338CA;   /* primary indigo                              */
  --brand-deep:   #3730A3;   /* darker indigo — headers on tint, hovers     */
  --brand-soft:   #A5B4FC;   /* soft indigo — ticks, subtle lines           */
  --brand-wash:   #EEF0FE;   /* indigo wash — tinted section background      */

  /* Neutrals — warm-cool greys with a faint indigo undertone */
  --ink:    #15162B;         /* primary text (near-black)                   */
  --slate:  #565A73;         /* secondary text                              */
  --line:   #E6E6F0;         /* hairlines / dividers                        */
  --mist:   #FAFAFB;         /* page background                             */
  --paper:  #FFFFFF;         /* cards / raised surfaces                     */

  /* Type roles */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;

  /* Rhythm */
  --maxw: 1120px;            /* content measure                             */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;            /* anchor nav glides instead of jumps */
  scroll-padding-top: 84px;           /* keep targets clear of sticky header */
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Keyboard focus — always visible, indigo, never removed (a11y floor). */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link — first tab stop for keyboard / screen-reader users. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 0 0 8px 0;
  font: 600 .85rem/1 var(--font-sans);
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A section row. All vertical spacing comes from THIS class only, so section
   paddings never fight other rules (avoids specificity collisions). */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }

/* The "index" eyebrow that labels each section (§01 Diensten …). The numbering
   is meaningful here: the page is a structured index of the firm, read top to
   bottom, so the markers encode order rather than decorate. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  margin: 0 0 1.4rem;
}
.eyebrow .num { color: var(--brand); }
.eyebrow::before {                   /* a short measure tick before the label */
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand-soft);
  align-self: center;
}

/* --------------------------------------------------------------------------
   4. Typography scale
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}
h2.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  color: var(--slate);
  max-width: 56ch;
  margin: 0;
}
p { margin: 0 0 1rem; }
.muted { color: var(--slate); }

/* Tiny spacing utilities (so the HTML needs no inline styles → strict CSP). */
.mt-md { margin-top: 1.4rem; }
.mt-lg { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bw: 1px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font: 600 .95rem/1 var(--font-sans);
  text-decoration: none;
  padding: .85rem 1.25rem;
  border-radius: 10px;
  border: var(--bw) solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }

/* --------------------------------------------------------------------------
   6. Header / navigation (sticky, minimal, hairline base)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.06rem;
}
.brand img { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--slate);
  font-size: .92rem;
  padding: .35rem 0;
  position: relative;
  transition: color .15s var(--ease);
}
.nav-links a:not(.btn)::after {     /* indigo underline that grows on hover/active */
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).is-active::after { transform: scaleX(1); }
.nav-links a:not(.btn).is-active { color: var(--ink); }

.nav-cta { margin-left: .4rem; }

/* Mobile menu toggle — hidden on desktop, shown < 760px */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { margin: auto; }

/* --------------------------------------------------------------------------
   7. Hero + signature "measure" motif
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) var(--section-y); }
.hero .container { position: relative; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.6rem;
}
.hero-eyebrow b { color: var(--brand-deep); font-weight: 600; }

.hero .display { max-width: 16ch; }
.hero .display em {                  /* the one emphasised word, in indigo */
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2rem;
}
.hero-sub .lead { flex: 1 1 30ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* The signature: a faint indigo "measure scale" of horizontal rules that draws
   itself in on load — a visual echo of calibration / turning raw signal into a
   readable index. Decorative only, so aria-hidden in the markup. */
.measure {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 14px;
}
.measure .rule {
  height: 1px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-soft) 60%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
}
.measure .rule:nth-child(1) { width: 100%; }
.measure .rule:nth-child(2) { width: 82%;  opacity: .8; }
.measure .rule:nth-child(3) { width: 64%;  opacity: .62; }
.measure .rule:nth-child(4) { width: 46%;  opacity: .44; }
.measure .rule:nth-child(5) { width: 28%;  opacity: .3; }

/* Play the draw-in once when the page has loaded (class added by main.js). */
.is-ready .measure .rule { animation: draw .7s var(--ease) forwards; }
.is-ready .measure .rule:nth-child(1) { animation-delay: .05s; }
.is-ready .measure .rule:nth-child(2) { animation-delay: .12s; }
.is-ready .measure .rule:nth-child(3) { animation-delay: .19s; }
.is-ready .measure .rule:nth-child(4) { animation-delay: .26s; }
.is-ready .measure .rule:nth-child(5) { animation-delay: .33s; }
@keyframes draw { to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   8. Diensten (services) — §01
   A precise two-column list. Each row reads like an index entry: a number,
   a name, and a one-line description.
   -------------------------------------------------------------------------- */
.services { list-style: none; margin: 0; padding: 0; }
.service {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.services .service:last-child { border-bottom: 1px solid var(--line); }
.service .idx {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--brand);
  padding-top: .35rem;
  letter-spacing: .04em;
}
.service h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .35rem;
}
.service p { margin: 0; color: var(--slate); max-width: 60ch; }

/* --------------------------------------------------------------------------
   9. Werkwijze (approach) — §02
   A genuine 4-step sequence → numbered cards are justified here.
   -------------------------------------------------------------------------- */
.steps {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);            /* gaps become hairlines between cells  */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step { background: var(--paper); padding: 1.6rem 1.4rem; }
.step .step-n {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--brand);
  letter-spacing: .1em;
}
.step h3 { font-size: 1.06rem; font-weight: 600; margin: .5rem 0 .4rem; }
.step p { margin: 0; color: var(--slate); font-size: .95rem; }

/* -------------------------------------------------------------------------- */
/*  10. Over (about) — §03  — tinted band for quiet contrast                   */
/* -------------------------------------------------------------------------- */
.band { background: var(--brand-wash); }
.band.section + .section { border-top: 0; }   /* tint already separates it */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid p { color: #3a3d57; }            /* slightly deeper on the wash */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--brand-soft) 55%, transparent);
  font-size: .95rem;
}
.facts li:first-child { border-top: 0; }
.facts .k { color: var(--brand-deep); }
.facts .v { font-family: var(--font-mono); color: var(--ink); text-align: right; }

/* -------------------------------------------------------------------------- */
/*  11. Contact — §04                                                          */
/* -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-card { }
.contact-card address {
  font-style: normal;
  color: var(--slate);
  line-height: 1.8;
  margin: 0 0 1.5rem;
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: block;
  margin-bottom: .25rem;
}
.contact-card a { color: var(--brand-deep); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------- */
/*  12. Footer + Algemene voorwaarden                                          */
/* -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #C9CBDD;
}
.site-footer .container { padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}
.foot-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; }
.foot-brand img { width: 24px; height: 24px; }

/* Statutaire gegevens, set in mono like precise data points. */
.legal-data {
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.9;
  color: #AEB0C6;
}
.legal-data .lk { color: #7E80A0; }
.legal-data .fill { color: #FFD27A; }        /* highlights a value to complete */

/* Algemene voorwaarden as a native <details> disclosure → on one page, no JS,
   accessible, and collapsed by default so the page stays minimal. */
.av {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
}
.av > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}
.av > summary::-webkit-details-marker { display: none; }
.av > summary .chev { transition: transform .2s var(--ease); color: var(--brand-soft); }
.av[open] > summary .chev { transform: rotate(90deg); }
.av .av-body {
  margin-top: 1.25rem;
  color: #B9BBD0;
  font-size: .9rem;
  line-height: 1.7;
  max-width: 80ch;
}
.av .av-body h4 {
  color: #fff;
  font-size: .95rem;
  margin: 1.4rem 0 .4rem;
  font-family: var(--font-sans);
}
.av .av-body h4:first-child { margin-top: 0; }
.av .av-body ol { margin: 0; padding-left: 1.2rem; }
.av .av-body li { margin: .25rem 0; }

.foot-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .82rem;
  color: #8A8CA6;
}
.foot-bottom a { color: #B9BBD0; }

/* -------------------------------------------------------------------------- */
/*  13. Scroll-reveal (progressive enhancement)                               */
/*  Hidden state only applies once .js is on <html>, so no-JS users see all.   */
/* -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* -------------------------------------------------------------------------- */
/*  14. Responsive                                                            */
/* -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
    /* collapsed by default; .open is toggled by main.js */
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .85rem 0; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .service { grid-template-columns: 2.4rem 1fr; }
}

/* -------------------------------------------------------------------------- */
/*  15. Reduced motion — honour the OS setting, disable all movement          */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .measure .rule { transform: none; }     /* show fully, no draw-in */
  .js .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------- */
/*  16. Optional: self-hosted brand font (sovereign, no third-party calls)     */
/*  Drop e.g. assets/fonts/brand.woff2, uncomment, then add the family to      */
/*  --font-sans above. Keeps everything served from your own www folder.       */
/* --------------------------------------------------------------------------
@font-face {
  font-family: "Kendok Sans";
  src: url("../fonts/brand.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
-------------------------------------------------------------------------- */
