/* ==================================================
   Studio Eleva — brand-audit publieke pagina's
   Bron: design.md + branding/studio-eleva-design-system/
   ================================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'NyghtSerif';
  src: url('/fonts/NyghtSerif-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NyghtSerif';
  src: url('/fonts/NyghtSerif-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NyghtSerif';
  src: url('/fonts/NyghtSerif-RegularItalic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'NyghtSerif';
  src: url('/fonts/NyghtSerif-MediumItalic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* --- Tokens (uit het Studio Eleva design system) --- */
:root {
  /* Brand palette */
  --color-beige-light:  #F8F4F3;
  --color-beige:        #FBF5F4;
  --color-beige-dark:   #F7ECE8;
  --color-beige-darker: #FDB69D;
  --color-pink:         #FD7E6E;
  --color-pink2:        #C95440;
  --color-brown:        #5B2D29;
  --color-black:        #382821;

  /* Semantisch */
  --color-bg:           var(--color-beige);
  --color-bg-warm:      var(--color-beige-dark);
  --color-fg:           var(--color-black);
  --color-fg-muted:     var(--color-brown);
  --color-fg-subtle:    #7A5C58;
  --color-accent:       var(--color-pink);
  --color-accent-dark:  var(--color-pink2);
  --color-border:       rgba(56, 40, 33, 0.12);
  --color-border-warm:  rgba(56, 40, 33, 0.20);

  /* Typography */
  --font-serif: 'NyghtSerif', Georgia, serif;
  --font-sans:  'Satoshi', 'Inter', Helvetica, Arial, sans-serif;

  --tracking-tight: -0.02em;
  --tracking-wide:   0.06em;
  --tracking-wider:  0.12em;

  /* Radii */
  --radius-md:   8px;
  --radius-lg:  16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(56,40,33,0.08);
  --shadow-md:  0 4px 16px rgba(56,40,33,0.10);
  --shadow-lg:  0 8px 32px rgba(56,40,33,0.12);

  /* Layout */
  --header-height: 88px;
  --progress-height: 3px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }
input, button, textarea, select { font: inherit; color: inherit; }

html, body { height: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 16px;
  color: var(--color-fg);
}
h2 em, h3 em { font-style: italic; font-weight: 500; }

/* H1: gemixt — Satoshi medium als basis, NyghtSerif regular italic voor
   focuswoorden (gemarkeerd met <em>). Minimaal 1 woord moet <em> zijn. */
h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 16px;
  color: var(--color-fg);
}
h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
a { color: var(--color-accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--color-fg); }
kbd {
  font-family: var(--font-sans);
  background: var(--color-beige-dark);
  border: 1px solid var(--color-border-warm);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  color: var(--color-fg-muted);
}

/* --- Knoppen — design uit /branding/button-primary.png ---
   Donkere pill, witte tekst, witte cirkel met pijl, omringd door
   een zachte perzik-gloed (drop-shadow). */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-black);
  color: white;
  border: none;
  padding: 12px 14px 12px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 0 0 6px rgba(253, 182, 157, 0.55),
    0 8px 22px rgba(253, 126, 110, 0.35);
  transition: background-color 180ms ease, color 180ms ease,
              transform 120ms ease, box-shadow 220ms ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--color-brown);
  color: white;
  box-shadow:
    0 0 0 8px rgba(253, 182, 157, 0.65),
    0 10px 28px rgba(253, 126, 110, 0.45);
}
.btn:active { transform: translateY(1px); }
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: 0 0 0 6px rgba(253, 182, 157, 0.35);
}

/* Witte cirkel met pijltje rechts in de knop */
.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  color: var(--color-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* Secundaire knop — outline-stijl, geen gloed (voor "Terug") */
.btn-secondary {
  background: transparent;
  color: var(--color-fg);
  padding: 11px 22px;
  border: 1.5px solid var(--color-border-warm);
  box-shadow: none;
  font-size: 12px;
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-fg);
  box-shadow: none;
}
.btn-secondary .btn__arrow { display: none; }

/* ==================================================
   Formulier — conversational
   ================================================== */

.page-form {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Subtiele animerende gradient — drie zachte "blobs" die langzaam over
   de beige achtergrond driften. Echte <div>-elementen ipv pseudo-elements
   omdat dat betrouwbaarder is met fixed positionering en transforms. */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-blob {
  position: absolute;
  display: block;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  will-change: transform;
  /* `transform` is gezet via animatie — `top/left` definieert het beginpunt */
}
.bg-blob--1 {
  background: #FD7E6E;
  top: -10vmax;
  left: -15vmax;
  animation: blob-drift-1 18s ease-in-out infinite alternate;
}
.bg-blob--2 {
  background: #FDA56E;
  bottom: -15vmax;
  right: -10vmax;
  animation: blob-drift-2 22s ease-in-out infinite alternate;
}
.bg-blob--3 {
  background: #FDB69D;
  top: 20%;
  left: 30%;
  width: 40vmax;
  height: 40vmax;
  opacity: 0.55;
  animation: blob-drift-3 26s ease-in-out infinite alternate;
}
/* Grote, duidelijk waarneembare verschuivingen — anders perceptueel statisch */
@keyframes blob-drift-1 {
  0%   { transform: translate(0,        0)       scale(1); }
  100% { transform: translate(70vw,     45vh)    scale(1.25); }
}
@keyframes blob-drift-2 {
  0%   { transform: translate(0,        0)       scale(1); }
  100% { transform: translate(-65vw,   -50vh)    scale(0.85); }
}
@keyframes blob-drift-3 {
  0%   { transform: translate(0,        0)       scale(0.9); }
  100% { transform: translate(-40vw,    35vh)    scale(1.2); }
}

/* Header, steps en alle interactieve elementen blijven boven de gradient */
.site-header,
.steps,
.progress {
  position: relative;
  z-index: 1;
}

/* Progress bar — bovenin */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--progress-height);
  background: var(--color-beige-dark);
  z-index: 20;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 300ms ease;
}

/* Floating header met logo + stap-teller */
.site-header--floating {
  position: fixed;
  top: var(--progress-height);
  left: 0; right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(251, 245, 244, 0.85);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  z-index: 10;
}
.site-header__logo img { height: 45px; }
.step-indicator {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  font-variant-numeric: tabular-nums;
}
.step-indicator #step-current {
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* Steps-container */
.steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--progress-height) + var(--header-height));
  min-height: 100vh;
}

/* Een stap — neemt de hele viewport */
.step {
  display: none;
  flex: 1;
  min-height: calc(100vh - var(--progress-height) - var(--header-height));
  align-items: center;
  padding: 40px 24px 60px;
}
.step.active {
  display: flex;
  animation: step-in 320ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step__inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* Eyebrow — uppercase label */
.step__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.step__eyebrow .step__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: none;
  letter-spacing: 0;
}

/* Vraag */
.step h1,
.step__question {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 12px;
}
.step__helper {
  font-size: 14.5px;
  color: var(--color-fg-muted);
  margin: 0 0 24px;
  font-style: italic;
}
.step .lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-fg-muted);
  max-width: 32em;
  margin-bottom: 24px;
}
.step .meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  margin-bottom: 40px;
}

/* --- Keuze-opties --- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 20px;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 60ms ease;
  line-height: 1.4;
  user-select: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.option:hover {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.95);
}
.option:active { transform: translateY(1px); }
.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Letter-indicator (A, B, C…) */
.option__letter {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-border-warm);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-fg-muted);
  background: white;
  transition: all 160ms ease;
}
.option__label {
  flex: 1;
  font-size: 16px;
  color: var(--color-fg);
}
.option__check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: opacity 140ms ease;
}

.option:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}
.option:has(input:checked) .option__letter {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}
.option:has(input:checked) .option__check {
  opacity: 1;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M7.629 14.571 3.343 10.286 4.757 8.87l2.872 2.872L15.243 4.13l1.414 1.414z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='black' d='M7.629 14.571 3.343 10.286 4.757 8.87l2.872 2.872L15.243 4.13l1.414 1.414z'/></svg>") center/contain no-repeat;
}
.option:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.option:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}
.option:has(input:disabled):hover {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.7);
}

/* "iets anders" tekstveld */
.other-field {
  margin: -4px 0 20px;
  animation: step-in 240ms ease;
}
.other-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border-warm);
  border-radius: var(--radius-md);
  background: white;
  font-size: 15px;
  color: var(--color-fg);
}
.other-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(253, 126, 110, 0.18);
}

/* Tekstvelden (url, email) — groot, prominent */
.text-field {
  margin: 28px 0 24px;
}
.text-field input {
  width: 100%;
  max-width: 560px;
  padding: 18px 20px;
  border: 0;
  border-bottom: 2px solid var(--color-border-warm);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  color: var(--color-fg);
  transition: border-color 200ms ease;
}
.text-field input::placeholder {
  color: var(--color-fg-subtle);
  font-style: italic;
  opacity: 0.6;
}
.text-field input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

/* --- Stap-navigatie --- */
.step__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.step__hint {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-fg-subtle);
}
.step__hint--bottom { margin-top: 18px; }

.step__error {
  color: #8C2020;
  background: #F5D5D1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin: 14px 0 0;
}

/* --- Consent (final step) --- */
.option--consent {
  display: flex;
  align-items: flex-start;
  margin: 24px 0 16px;
  padding: 20px 22px;
  background: rgba(247, 236, 232, 0.85);
  border-color: transparent;
  backdrop-filter: blur(6px);
}
.option--consent:hover {
  background: rgba(247, 236, 232, 0.95);
  border-color: var(--color-accent);
}
.option--consent .option__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 14px;
  margin-top: 2px;
  border: 1.5px solid var(--color-border-warm);
  border-radius: 4px;
  background: white;
  opacity: 1;
  order: -1;
  -webkit-mask: none;
          mask: none;
}
.option--consent:has(input:checked) .option__check {
  background: var(--color-accent);
  border-color: var(--color-accent);
  -webkit-mask: none;
          mask: none;
}
.option--consent:has(input:checked) .option__check::after {
  content: '';
  display: block;
  width: 6px;
  height: 11px;
  margin: 3.5px auto 0;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy-inline {
  margin: 8px 0 24px;
  font-size: 14px;
}
.privacy-inline summary {
  cursor: pointer;
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
  padding: 4px 0;
}
.privacy-inline summary::-webkit-details-marker { display: none; }
.privacy-inline summary::before {
  content: "+ ";
  font-weight: 600;
}
.privacy-inline[open] summary::before { content: "− "; }
.privacy-inline p {
  padding: 14px 18px;
  background: rgba(247, 236, 232, 0.7);
  border-radius: var(--radius-md);
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-fg-muted);
}

/* ==================================================
   Bedankt-pagina
   ================================================== */
.page-confirm {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}
.page-confirm .site-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
}
.page-confirm .site-header__logo img { height: 45px; }
.page-confirm .confirm {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  flex: 1;
}
.page-confirm h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 16px;
}
.page-confirm .lead {
  font-size: 18px;
  color: var(--color-fg-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.page-confirm .note {
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--color-bg-warm);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-fg-muted);
}
.page-confirm .note a { color: var(--color-accent-dark); }

.site-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-fg-subtle);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-align: center;
}

/* ==================================================
   Responsive
   ================================================== */
@media (max-width: 640px) {
  .site-header--floating { padding: 0 18px; }
  .site-header__logo img { height: 38px; }
  :root { --header-height: 76px; }
  .step { padding: 24px 20px 40px; }
  .option { padding: 14px 16px; gap: 12px; }
  .option__letter { width: 24px; height: 24px; font-size: 10px; }
  .option__label { font-size: 15px; }
  .text-field input { font-size: 22px; padding: 14px 0; }
  .step__nav { gap: 10px; }
  .bg-blob { filter: blur(60px); opacity: 0.45; }
  .bg-blob--3 { opacity: 0.3; }
}

@media (max-height: 600px) {
  .step { min-height: auto; padding-top: 24px; padding-bottom: 24px; }
}

/* Reduced motion — laat geen gradient bewegen, geen step-fade */
@media (prefers-reduced-motion: reduce) {
  .step.active { animation: none; }
  .progress__bar { transition: none; }
  .bg-blob { animation: none; }
}
