/* Basis-CSS — reset, typografie, layout, componenten */

*, *::before, *::after { box-sizing: border-box; }
/* Decoratieve absolute elementen (de naaimachine-rail) mogen nooit een horizontale
   scrollbalk veroorzaken. `clip` i.p.v. `hidden`: dat maakt geen scroll-container en laat
   `position: sticky` (de scroll-scene) gewoon werken. */
html, body { overflow-x: clip; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-2); }

.label {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  /* geen expliciete kleur: erft de context (licht op de donkere footer, donker op licht) */
  margin: 0 0 var(--space-1);
}
.label--on-dark { color: var(--color-accent); }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section { padding: var(--space-6) 0; position: relative; }
.section--dark { background: var(--color-dark); color: var(--color-text-on-dark); }
.section--alt { background: var(--color-bg-alt); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-text-on-dark); }
.section--texture { position: relative; }

/* Linnen-textuur op crème-vlakken: subtiel noise-patroon via SVG data-uri, geen extra request */
.section--texture::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.16  0 0 0 0 0.13  0 0 0 0 0.11  0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(var(--color-bg-rgb), 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding: 0.9rem var(--space-3);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--color-dark); }
.nav__scissor { color: var(--color-accent); display: inline-flex; }
.nav__wordmark {
  font-family: var(--font-sans); font-weight: 700; letter-spacing: 2px;
  font-size: 1.05rem; text-transform: uppercase; color: var(--color-dark);
}
.nav__menu { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; }
.nav__link {
  text-decoration: none; color: var(--color-text); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 0.25rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--color-accent); transition: right 0.25s var(--ease-atelier);
}
.nav__link:hover::after, .nav__link:focus-visible::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 0.6rem; }
.nav__toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s var(--ease-atelier), background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--color-accent); color: var(--color-dark); font-weight: 700; }
.btn--accent:hover { background: #e9761a; }
.btn--dark { background: var(--color-dark); color: var(--color-text-on-dark); }
.btn--dark:hover { background: #23262c; }
.btn--outline { background: transparent; border-color: var(--color-dark); color: var(--color-dark); }
.btn--ghost-dark { background: transparent; border-color: rgba(38,34,29,0.3); color: var(--color-text); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-3); transition: box-shadow 0.25s var(--ease-atelier), transform 0.25s var(--ease-atelier);
}
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.card__icon {
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center; color: var(--color-dark);
  margin-bottom: var(--space-2); flex-shrink: 0;
}
.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Hero */
.hero { padding: var(--space-6) 0 var(--space-5); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-4); align-items: center; }
.hero__eyebrow { color: var(--color-accent); }
.hero__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.hero__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; background: var(--color-dark);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder foto-blok (GATE-F) */
.photo-placeholder {
  background: repeating-linear-gradient(135deg, rgba(46,49,56,0.06) 0 14px, rgba(46,49,56,0.02) 14px 28px);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--color-text-soft); text-align: center; padding: var(--space-3);
  min-height: 220px;
}
.photo-placeholder__label {
  font-family: var(--font-sans); font-size: var(--fs-label); text-transform: uppercase;
  letter-spacing: var(--label-tracking); font-weight: 600;
}

/* Before/after slider */
.ba-slider { display: block; }
.ba-slider__frame {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  cursor: ew-resize; user-select: none; background: var(--color-dark);
}
.ba-slider__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba-slider__tag {
  position: absolute; top: 0.75rem; font-family: var(--font-sans); font-size: var(--fs-label);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  background: var(--color-dark); color: var(--color-text-on-dark); padding: 0.3rem 0.7rem; border-radius: 3px;
}
.ba-slider__tag--after { right: 0.75rem; }
.ba-slider__tag--before { left: 0.75rem; }
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; width: 3px; background: var(--color-accent);
  transform: translateX(-50%);
}
.ba-slider__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--color-accent);
  color: var(--color-dark); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
/* Eén caption-stijl voor ALLE before/after-sliders (de gedeelde before-after-partial + homepage),
   in de DNA-look: zacht en gecentreerd. [2026-07-23 geconsolideerd, .ba-slider__cap verviel] */
.ba-slider__caption { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--color-text-soft); text-align: center; }
.ba-slider:focus-visible .ba-slider__frame { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Reviews */
/* Inline testimonial op dienst-/plaatspagina's. Bewust een lichtere, compacte quote naast de
   grote proof-band (.hp-proof__quote); zelfde DNA-tokens (oranje accent-rand, zachte naamkleur). */
.review-card { border-left: 3px solid var(--color-accent); padding-left: var(--space-2); }
.review-card__quote { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.review-card__name { font-size: var(--fs-small); color: var(--color-text-soft); font-weight: 600; }
.review-score { display: flex; align-items: baseline; gap: 0.5rem; }
.review-score__num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--space-2) 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-sans); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-dark); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: var(--space-1); }

/* Forms */
.field { margin-bottom: var(--space-2); }
.field label {
  display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius); font-family: var(--font-sans); font-size: 1rem;
  background: #fff; color: var(--color-text);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-accent); outline-offset: 2px;
}
.field__hint { font-size: 0.8rem; color: rgba(38,34,29,0.65); margin-top: 0.3rem; }
.field--file {
  border: 1.5px dashed var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-3); text-align: center; background: rgba(var(--color-accent-rgb), 0.05);
}
.file-preview { margin-top: var(--space-2); display: none; }
.file-preview.is-visible { display: flex; align-items: center; gap: var(--space-2); }
.file-preview__img {
  width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
}
.field__status {
  margin-top: var(--space-3); padding: var(--space-2); border-radius: var(--radius);
  background: rgba(140,47,42,0.08); border: 1px solid rgba(140,47,42,0.25); font-weight: 600;
}

/* Honeypot — verborgen voor mensen, wél bereikbaar voor bots (anti-spam) */
.field--hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; left: -9999px;
}

/* Lijsten in doorlopende tekst (juridische pagina's) */
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--space-2); }
.prose li { margin-bottom: 0.4rem; }
.prose h2 { margin-top: var(--space-4); }
.prose h3 { margin-top: var(--space-3); }

/* Footer */
.footer { background: var(--color-dark); color: var(--color-text-on-dark); padding: var(--space-5) 0 var(--space-3); margin-top: var(--space-6); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer__wordmark { display: block; margin-bottom: var(--space-1); }
.footer__payoff { font-family: var(--font-serif); font-style: italic; color: var(--color-accent); }
.footer__addr { font-size: var(--fs-small); opacity: 0.85; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.5rem; }
.footer__list a { text-decoration: none; opacity: 0.85; }
.footer__list a:hover { opacity: 1; text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--color-border-on-dark); padding-top: var(--space-2); font-size: 0.85rem; opacity: 0.7; }

/* Sticky WhatsApp CTA — mobiel */
.cta-sticky-mobile {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 700;
  align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-small); opacity: 0.75; margin-bottom: var(--space-2); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__menu, .nav__cta .btn--ghost-dark { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer;
    padding: 0.4rem;
  }
  .nav__toggle-bar { width: 22px; height: 2px; background: var(--color-dark); }
  .nav__menu.is-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border);
  }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-sticky-mobile { display: flex; }
  body { padding-bottom: 3.4rem; }
  .section { padding: var(--space-5) 0; }
}

/* ============ SITE-BREDE SCROLL-LEEUW ============
   Nationaal-Nederlands merkmotief: rent bij het scrollen langs de zijkant naar beneden.
   Puur decoratief (aria-hidden), achter de content, en volledig uit bij reduced-motion. */

/* Het heraldische leeuw-WATERMERK is geschrapt [2026-07-23, Nazif]: geen achtergrondmotief meer,
   in plaats daarvan leunt de huisstijl op de motion-/micro-effectlaag (scroll-reveals, de
   naaimachine-rail, count-ups, parallax, link-microinteracties). De geanimeerde scroll-leeuw
   is definitief geschrapt [2026-07-23, Nazif] — geen mascotte/Rive-invoegpunt meer. */

/* ============ SIGNATUUR: DE NAAIMACHINE DIE DE PAGINA DICHTNAAIT ============
   Close-up van de onderzijde: naald, naaldstang, persvoet, machineplaat, oranje draad.
   Onder de naald liggen twee LOSSE lappen; achter de naald sluiten ze tot een afgewerkte naad.
   Laagnamen volgen de animatie-masterspec (2026-07-21).
   Scroll-gedreven via --sew-y (0..1) = hoeveel er al genaaid is; terugscrollen draait terug.
   Puur decoratief (aria-hidden, pointer-events:none) en statisch bij reduced motion. */
.sew-rail {
  --sew-y: 0;
  position: fixed; top: 0; right: clamp(6px, 2vw, 46px);
  width: 92px; height: 100vh; z-index: 3; pointer-events: none;
  display: none; /* pas tonen als JS draait: nooit een half effect */
}
.reveal-on .sew-rail { display: block; }
/* LANE-REGEL (masterspec): de rail hoort in de RECHTERLANE (70-100%). Onder 1100px is er
   geen ruimte naast de content-safe-zone, dus dan verdwijnt hij volledig. */
@media (max-width: 1100px) { .reveal-on .sew-rail { display: none; } }

/* De twee lappen stof: BOVEN de naald tegen elkaar (genaaid), ERONDER uit elkaar (nog los). */
.sew-rail__fabric {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: rgba(29, 27, 25, 0.05);
  border-top: 1px solid rgba(29, 27, 25, 0.12);
  border-bottom: 1px solid rgba(29, 27, 25, 0.12);
}
.sew-rail__fabric--l {
  left: 0; border-left: 1px solid rgba(29, 27, 25, 0.12);
  clip-path: polygon(0 0, 100% 0, 100% calc(var(--sew-y) * 100%), 62% 100%, 0 100%);
}
.sew-rail__fabric--r {
  right: 0; border-right: 1px solid rgba(29, 27, 25, 0.12);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 38% 100%, 0 calc(var(--sew-y) * 100%));
}
/* Plooien/spanning: alleen zichtbaar in het nog-losse deel, vervagen als de naad sluit. */
.sew-rail__folds {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(29,27,25,0.055) 26px 27px);
  clip-path: inset(calc(var(--sew-y) * 100%) 0 0 0);
  opacity: calc(1 - var(--sew-y));
}

/* Naadlagen. preserveAspectRatio="none" rekt de SVG mee met de vensterhoogte. */
.sew-rail__seams { position: absolute; inset: 0; width: 100%; height: 100%; }
/* open-seam = de nog niet gestikte opening (onder de naald). */
.sew-rail__seams #open-seam {
  stroke: rgba(29, 27, 25, 0.30); stroke-width: 2; stroke-dasharray: 1 7;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
/* stitches = de steken die ÉÉN VOOR ÉÉN verschijnen naarmate de clip meegroeit. */
.sew-rail__seams #stitches {
  stroke: var(--color-accent); stroke-width: 2.5; stroke-dasharray: 7 6;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
/* seam-highlight = de zachte oranje glans over de afgeronde naad (eindtoestand). */
.sew-rail__seams #seam-highlight {
  stroke: var(--color-accent); stroke-width: 9; stroke-linecap: round;
  vector-effect: non-scaling-stroke; opacity: 0; filter: blur(3px);
  transition: opacity 480ms ease;
}
.sew-rail.is-finished .sew-rail__seams #seam-highlight { opacity: 0.28; }

/* De machinekop zakt mee met de scroll: de naald staat altijd op het naaipunt. */
.sew-rail__head {
  position: absolute; left: 50%; top: 0; width: 60px; height: 92px; margin-left: -30px;
  transform: translateY(calc(var(--sew-y) * (100vh - 92px)));
}
.sew-rail__head svg { width: 100%; height: 100%; overflow: visible; }
.sew-rail__head #machine-housing path { stroke: var(--color-text); stroke-width: 5; stroke-linecap: round; }
.sew-rail__head #machine-bed { fill: var(--color-text); opacity: 0.9; }
.sew-rail__head #needle-bar-shaft { stroke: var(--color-text); stroke-width: 5; stroke-linecap: round; }
.sew-rail__head #needle { stroke: var(--color-text); stroke-width: 2.2; stroke-linecap: round; }
.sew-rail__head #presser-foot path { stroke: var(--color-text); stroke-width: 3; stroke-linecap: round; }
.sew-rail__head #thread path { stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  /* DE kern: naaldstang + naald gaan echt ritmisch op en neer tijdens het naaien.
     De persvoet blijft staan (die drukt de stof vast) - alleen de naaldstang beweegt. */
  .sew-rail__head #needle-bar { animation: needle-stitch 0.42s cubic-bezier(.45,.05,.55,.95) infinite; }
  @keyframes needle-stitch {
    0%, 100% { transform: translateY(-9px); }
    50%      { transform: translateY(3px); }
  }
}
/* Reduced motion: naad direct voltooid, geen prikkende naald, machinekop uit beeld. */
@media (prefers-reduced-motion: reduce) {
  .reveal-on .sew-rail { --sew-y: 1; }
  .reveal-on .sew-rail__head { display: none; }
}

