/* =================================================================
   SCALIS — Stabiliteitsstudies
   Website stylesheet · v1.0 · 2026
   Huisstijl: donkergroen (Pine) + lime accent, technisch raster.
   Lettertypes: IBM Plex Sans (kop/tekst) + IBM Plex Mono (labels).
   ================================================================= */

/* -----------------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------------- */
:root {
  /* Merkkleuren */
  --pine:        #00402C;   /* primair / fundament */
  --pine-deep:   #002A1C;   /* diepere variant      */
  --pine-700:    #0A4E38;   /* hover op pine        */
  --lime:        #79C01A;   /* accent / draagpunt   */
  --lime-bright: #9BD636;   /* accent op donker     */
  --green:       #008000;   /* signaalgroen         */

  /* Neutralen */
  --ink:    #16201A;        /* bodytekst            */
  --steel:  #5A645C;        /* secundaire tekst     */
  --stone:  #8C958A;        /* bijschrift / labels  */
  --line:   #E3E7DE;        /* hairlines / randen   */
  --mist:   #ECEFE8;        /* lichte vlakken       */
  --paper:  #F7F8F4;        /* paginabodem          */
  --white:  #FFFFFF;

  /* Typografie */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Type-schaal (fluid) */
  --fs-display: clamp(2.75rem, 1.6rem + 5.2vw, 5rem);
  --fs-h1:      clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);
  --fs-h2:      clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  --fs-h3:      1.375rem;
  --fs-lead:    clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-label:   0.75rem;

  /* Ruimte (8px-raster) */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4rem;   --sp-7: 6rem;    --sp-8: 8rem;

  /* Vorm */
  --radius:    6px;
  --radius-sm: 3px;
  --radius-lg: 10px;

  /* Schaduw */
  --shadow:    0 18px 44px -24px rgba(0, 40, 28, .25);
  --shadow-lg: 0 28px 60px -28px rgba(0, 40, 28, .40);

  /* Layout */
  --container: 1180px;
  --gutter:    clamp(1.25rem, 4vw, 4.5rem);
  --nav-h:     76px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* -----------------------------------------------------------------
   2. RESET
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--lime); color: var(--pine-deep); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -----------------------------------------------------------------
   3. TYPOGRAFISCHE HELPERS
   ----------------------------------------------------------------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; color: var(--pine); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--steel); font-weight: 400; }
.muted { color: var(--steel); }

/* Mono eyebrow-label met streepje + index */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--light { color: var(--lime-bright); }
.eyebrow--plain::before { display: none; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Lime markeerstreep onder een kop */
.rule {
  width: 52px;
  height: 3px;
  background: var(--lime);
  border: 0;
  margin: var(--sp-3) 0;
}

/* -----------------------------------------------------------------
   4. LAYOUT
   ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section--line { border-top: 1px solid var(--line); }

/* Donkere band met subtiel raster (huisstijl-motief) */
.section--pine {
  background-color: var(--pine);
  color: var(--white);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.section--pine h1, .section--pine h2, .section--pine h3 { color: var(--white); }
.section--pine .lead { color: rgba(255,255,255,.78); }

.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head .lead { margin-top: var(--sp-2); }

/* -----------------------------------------------------------------
   5. KNOPPEN
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--lime); color: var(--pine-deep); }
.btn--primary:hover { background: var(--lime-bright); }

.btn--dark { background: var(--pine); color: var(--white); }
.btn--dark:hover { background: var(--pine-700); }

.btn--ghost { border: 1px solid var(--line); color: var(--pine); }
.btn--ghost:hover { border-color: var(--pine); background: var(--white); }

.btn--outline-light { border: 1px solid rgba(255,255,255,.3); color: var(--white); }
.btn--outline-light:hover { border-color: var(--lime); color: var(--lime-bright); }

.btn--lg { padding: 1.05rem 1.8rem; font-size: 1rem; }

/* -----------------------------------------------------------------
   6. NAVIGATIE
   ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { height: 30px; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__links a {
  font-size: var(--fs-small);
  color: var(--steel);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--pine); }
.nav__cta {
  background: var(--lime);
  color: var(--pine-deep);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-small);
}
.nav__cta:hover { background: var(--lime-bright); }
.nav__toggle { display: none; color: var(--pine); font-size: 1.6rem; line-height: 1; }

/* -----------------------------------------------------------------
   7. HERO
   ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.hero__inner { max-width: 760px; position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-display); margin-top: var(--sp-3); }
.hero .lead { margin-top: var(--sp-3); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stat .num { font-size: 2rem; font-weight: 600; color: var(--lime-bright); }
.hero__stat .lbl { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Decoratief raster rechtsboven */
.hero__grid {
  position: absolute;
  top: -40px; right: -40px;
  width: 360px; height: 360px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  opacity: .9;
  z-index: 1;
}
.hero__grid span { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); }
.hero__grid span.is-lime { background: var(--lime); border-color: var(--lime); }

/* -----------------------------------------------------------------
   8. KAARTEN
   ----------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D3DACB; }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-bottom: var(--sp-3);
}
.card__icon img { width: 36px; height: 36px; }
.card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  color: var(--lime);
  margin-bottom: var(--sp-2);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: var(--fs-small); color: var(--steel); line-height: 1.6; }

/* Werkwijze — genummerde stappen */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
  align-items: start;
}
.step__no {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--lime);
  min-width: 3ch;
}
.step h3 { color: var(--pine); }
.step p { color: var(--steel); margin-top: 0.4rem; font-size: var(--fs-small); }

/* Projecten */
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  border: 1px solid var(--line);
}
.project__ph {
  position: absolute; inset: 0;
  background-color: var(--pine);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.project__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-3);
  background: linear-gradient(to top, rgba(0,42,28,.85) 0%, rgba(0,42,28,.1) 60%, transparent 100%);
  color: var(--white);
}
.project__tag { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--lime-bright); }
.project h3 { color: var(--white); font-size: 1.15rem; margin-top: 0.3rem; }

/* -----------------------------------------------------------------
   9. CIJFERS / OVER
   ----------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--white); padding: var(--sp-4); }
.stat .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--pine); letter-spacing: -.02em; }
.stat .num em { color: var(--lime); font-style: normal; }
.stat .lbl { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-top: 0.4rem; }

/* -----------------------------------------------------------------
   10. CTA-BLOK
   ----------------------------------------------------------------- */
.cta { text-align: center; }
.cta__inner { max-width: 620px; margin-inline: auto; }
.cta h2 { font-size: var(--fs-h1); }
.cta .lead { margin-top: var(--sp-2); }
.cta__actions { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-4); flex-wrap: wrap; }

/* -----------------------------------------------------------------
   11. FOOTER
   ----------------------------------------------------------------- */
.footer { background: var(--pine-deep); color: rgba(255,255,255,.7); padding-block: var(--sp-6) var(--sp-4); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-4); }
.footer__logo { height: 30px; margin-bottom: var(--sp-3); }
.footer h4 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--lime-bright); margin-bottom: var(--sp-2); font-weight: 500; }
.footer a:hover { color: var(--white); }
.footer ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--fs-small); }
.footer__contact { font-size: var(--fs-small); line-height: 1.9; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; color: rgba(255,255,255,.5);
}

/* -----------------------------------------------------------------
   12. RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 880px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__grid { display: none; }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__meta { gap: var(--sp-3); }
}

/* -----------------------------------------------------------------
   13. PRINT
   ----------------------------------------------------------------- */
@media print {
  .nav, .cta, .footer { display: none; }
  body { background: #fff; }
}

/* -----------------------------------------------------------------
   14. CONTENT COMPONENTS (toegevoegd voor de onderliggende pagina's)
   ----------------------------------------------------------------- */

/* Broodkruimel-navigatie */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--steel); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--pine); }
.breadcrumb span.sep { color: var(--stone); }
.breadcrumb span.current { color: var(--pine); }
/* Versie op donkere achtergrond (in de hero) */
.section--pine .breadcrumb a { color: rgba(255,255,255,.6); }
.section--pine .breadcrumb a:hover { color: var(--lime-bright); }
.section--pine .breadcrumb span.sep { color: rgba(255,255,255,.35); }
.section--pine .breadcrumb span.current { color: var(--white); }

/* Markeerstreepjes-lijst voor lopende tekst */
.list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: var(--sp-2); }
.list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  line-height: 1.6;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 2px;
}
.section--pine .list li { color: rgba(255,255,255,.88); }
.section--pine .list li::before { background: var(--lime-bright); }

/* Genummerde lijst (voor processtappen in lopende tekst) */
.list--numbered { counter-reset: li; }
.list--numbered li { padding-left: 2rem; }
.list--numbered li::before {
  counter-increment: li;
  content: counter(li);
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  top: -0.05em;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--lime);
}

/* Tags / chips voor diensten-opsommingen */
.tag-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-2); }
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .04em;
  color: var(--pine);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
}
.section--pine .tag { color: var(--white); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }

/* Subkop binnen een sectie (categorieën) */
.subhead { color: var(--pine); margin-top: var(--sp-5); margin-bottom: var(--sp-1); }
.subhead:first-child { margin-top: 0; }

/* Korte uitlichting / callout-paneel */
.callout {
  border-left: 3px solid var(--lime);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-3);
}
.callout p { color: var(--steel); font-size: var(--fs-small); }
.callout p + p { margin-top: 0.5rem; }

/* Verwante diensten-kaarten (link-kaart i.p.v. statische kaart) */
a.card { display: block; }
.card__arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--lime); margin-top: var(--sp-2);
}

/* Pagina-titel-kop binnen section--pine (lichter dan de homepage-hero) */
.page-head { max-width: 720px; }
.page-head .breadcrumb { margin-bottom: var(--sp-3); }
.page-head h1 { margin-top: var(--sp-1); }
.page-head .lead { margin-top: var(--sp-3); }

/* -----------------------------------------------------------------
   15. FAQ-ACCORDEON
   ----------------------------------------------------------------- */
.faq-cat + .faq-cat { margin-top: var(--sp-6); }
.faq-cat__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--sp-2);
}
.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  cursor: pointer;
  font-weight: 600;
  color: var(--pine);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--lime);
  transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding-bottom: var(--sp-3);
  color: var(--steel);
  font-size: var(--fs-small);
  max-width: 760px;
}

/* -----------------------------------------------------------------
   16. FORMULIER (contactpagina)
   ----------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color .2s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lime);
}
.form-note { font-size: var(--fs-label); color: var(--stone); margin-top: var(--sp-2); }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-2); }
.contact-info__row { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info__label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); min-width: 7.5rem; }
.contact-info__value { color: var(--ink); font-size: var(--fs-small); line-height: 1.6; }

/* Actieve navigatielink */
.nav__links a.is-active { color: var(--pine); font-weight: 600; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}
