/* ============================================================================
 * FlexHero — design-tokens.css
 * ----------------------------------------------------------------------------
 * Gedeelde, portable design-laag voor de HELE site. Eén <link> per pagina:
 *     <link rel="stylesheet" href="design-tokens.css">
 *
 * Bevat:
 *   1. Brand- & systeem-tokens onder de --fh-* namespace (kleur, spacing,
 *      radius, shadow, motion). Bewust geprefixt zodat het NIETS overschrijft
 *      van het bestaande styles.css token-systeem (--green, --space-*, etc.).
 *   2. Herbruikbare componenten: .fh-btn (primary/secondary/ghost), .fh-card,
 *      .fh-section-head, .fh-eyebrow, .fh-pill, plus de .fh-reveal scroll-
 *      animatie-utility en een subtiele neongroene custom scrollbar.
 *
 * Veilig om op elke pagina toe te voegen: puur additief (nieuwe vars +
 * .fh-* klassen). Geen bestaande selector of variabele wordt aangeraakt.
 * ========================================================================== */

:root {
  /* ---- Brand ---------------------------------------------------------- */
  /* Brand-aligned: --fh-* tokens nu 1:1 met de --green/--green-deep tokens
     uit styles.css zodat aanvraag.html en de rest van de site dezelfde
     groen-tinten en donker-groene basis delen.                              */
  --fh-primary:        #0C261B;   /* === --green-deep — hoofd-merkkleur     */
  --fh-primary-deep:   #061410;   /* === --green-darker — diepte/gradients  */
  --fh-primary-mid:    #143426;   /* === --green-mid — gradient-stop        */
  --fh-accent:         #88D932;   /* === --green — accent & CTA             */
  --fh-accent-strong:  #6FB827;   /* === --green-ink — hover                */
  --fh-accent-ink:     #0C261B;   /* === --green-deep — tekst op accent     */
  --fh-accent-text:    #3F7A0E;   /* === --green-text — groen op licht      */
  --fh-accent-soft:    rgba(136, 217, 50, 0.20);  /* focus-ring / glow      */
  --fh-accent-softer:  rgba(136, 217, 50, 0.12);

  /* ---- Neutrals ------------------------------------------------------- */
  --fh-cream:    #fcf7f2;
  --fh-cream-2:  #f4ece1;
  --fh-paper:    #ffffff;
  --fh-rule:     #e5dccd;
  --fh-rule-dark:rgba(252, 247, 242, 0.16);
  --fh-ink:      #1d1d1b;
  --fh-ink-2:    #2a2a28;
  --fh-muted:    #5f5f5b;
  --fh-on-dark:  #fcf7f2;
  --fh-on-dark-muted: rgba(252, 247, 242, 0.78);

  /* ---- Typografie (stack ongewijzigd, alleen aangereikt) -------------- */
  --fh-font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --fh-font-sans:    "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --fh-font-serif:   "Fraunces", Georgia, serif;

  /* ---- Spacing (8-pt grid + fluide sectie-stops) ---------------------- */
  --fh-space-2xs: 4px;
  --fh-space-xs:  8px;
  --fh-space-sm:  12px;
  --fh-space-md:  16px;
  --fh-space-lg:  24px;
  --fh-space-xl:  32px;
  --fh-space-2xl: 48px;
  --fh-space-3xl: 64px;
  --fh-space-4xl: 96px;
  --fh-space-5xl: 128px;
  --fh-field-gap: 28px;                         /* min. ruimte tussen velden */
  --fh-section-pad: clamp(96px, 12vw, 120px);   /* verticale sectie-padding  */

  /* ---- Radius --------------------------------------------------------- */
  --fh-radius-sm:   10px;
  --fh-radius-md:   14px;
  --fh-radius-lg:   20px;
  --fh-radius-xl:   28px;
  --fh-radius-pill: 999px;

  /* ---- Shadow --------------------------------------------------------- */
  --fh-shadow-sm: 0 2px 6px rgba(8, 24, 17, 0.07), 0 1px 2px rgba(8, 24, 17, 0.04);
  --fh-shadow-md: 0 8px 22px -4px rgba(8, 24, 17, 0.10), 0 3px 8px -2px rgba(8, 24, 17, 0.06);
  --fh-shadow-lg: 0 18px 40px -8px rgba(8, 24, 17, 0.16), 0 6px 14px -3px rgba(8, 24, 17, 0.08);
  --fh-shadow-xl: 0 34px 80px -24px rgba(8, 24, 17, 0.30), 0 8px 24px rgba(8, 24, 17, 0.06);
  --fh-glow:      0 12px 30px rgba(136, 217, 50, 0.32);
  --fh-focus-ring: 0 0 0 3px var(--fh-accent-soft);

  /* ---- Motion --------------------------------------------------------- */
  --fh-transition: 0.2s ease;
  --fh-transition-slow: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================================
 * COMPONENT — Buttons  (.fh-btn + modifiers)
 * ========================================================================== */
.fh-btn {
  --_pad-y: 14px;
  --_pad-x: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--_pad-y) var(--_pad-x);
  border: 1.5px solid transparent;
  border-radius: var(--fh-radius-md);
  font-family: var(--fh-font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--fh-transition), background var(--fh-transition),
              box-shadow var(--fh-transition), border-color var(--fh-transition),
              color var(--fh-transition);
}
.fh-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Primary — gevuld neongroen, dominante CTA */
.fh-btn--primary {
  background: var(--fh-accent);
  color: var(--fh-accent-ink);
  box-shadow: var(--fh-glow);
}
.fh-btn--primary:hover {
  background: var(--fh-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(136, 217, 50, 0.42);
}

/* Secondary — outline op donkere of lichte achtergrond */
.fh-btn--secondary {
  background: transparent;
  color: var(--fh-on-dark);
  border-color: rgba(252, 247, 242, 0.30);
}
.fh-btn--secondary:hover {
  border-color: var(--fh-accent);
  color: var(--fh-accent);
  transform: translateY(-2px);
}
.fh-btn--secondary.fh-on-light {
  color: var(--fh-primary);
  border-color: var(--fh-rule);
}
.fh-btn--secondary.fh-on-light:hover {
  border-color: var(--fh-accent-text);
  color: var(--fh-accent-text);
}

/* Ghost — subtiel gevuld glas */
.fh-btn--ghost {
  background: rgba(252, 247, 242, 0.08);
  color: var(--fh-on-dark);
  border-color: rgba(252, 247, 242, 0.22);
}
.fh-btn--ghost:hover { background: rgba(252, 247, 242, 0.16); transform: translateY(-2px); }

/* Bewegende pijl bij hover */
.fh-btn__arrow { transition: transform var(--fh-transition); }
.fh-btn:hover .fh-btn__arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .fh-btn, .fh-btn__arrow { transition: none; }
  .fh-btn:hover { transform: none; }
}

/* ============================================================================
 * COMPONENT — Card  (.fh-card)
 * ========================================================================== */
.fh-card {
  background: var(--fh-paper);
  border: 1px solid var(--fh-rule);
  border-radius: var(--fh-radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--fh-shadow-md);
}
.fh-card--lift { transition: transform var(--fh-transition-slow), box-shadow var(--fh-transition-slow); }
.fh-card--lift:hover { transform: translateY(-6px); box-shadow: var(--fh-shadow-lg); }
.fh-card--glass {
  background: rgba(252, 247, 242, 0.06);
  border: 1px solid rgba(252, 247, 242, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
  .fh-card--lift { transition: none; }
  .fh-card--lift:hover { transform: none; }
}

/* ============================================================================
 * COMPONENT — Section header  (.fh-section-head, .fh-eyebrow)
 * ========================================================================== */
.fh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fh-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fh-accent-text);
}
.fh-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--fh-accent); }
.fh-eyebrow.fh-on-dark { color: var(--fh-accent); }

.fh-section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.fh-section-head h2 {
  font-family: var(--fh-font-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--fh-primary);
  margin: 14px 0 0;
}
.fh-section-head h2 em {
  font-family: var(--fh-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fh-accent-text);
}
/* Neongroene linker border-accent variant (form-secties) */
.fh-section-head--bar {
  border-left: 3px solid var(--fh-accent);
  padding-left: 18px;
  margin-bottom: 0;
}

/* ============================================================================
 * COMPONENT — Pill / badge  (.fh-pill)
 * ========================================================================== */
.fh-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--fh-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fh-accent-ink);
  background: var(--fh-accent);
  padding: 4px 11px;
  border-radius: var(--fh-radius-pill);
}
.fh-pill--soft { background: var(--fh-accent-softer); color: var(--fh-accent-text); }

/* ============================================================================
 * UTILITY — Scroll-reveal (gevoed door IntersectionObserver, klasse .is-visible)
 * Zonder JS blijft alles zichtbaar (geen .fh-reveal-ready → geen verberging).
 * ========================================================================== */
.fh-reveal-ready .fh-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--fh-transition-slow), transform var(--fh-transition-slow);
  will-change: opacity, transform;
}
.fh-reveal-ready .fh-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fh-reveal-ready .fh-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
 * FINISH — subtiele neongroene custom scrollbar (webkit) + Firefox
 * ========================================================================== */
.fh-scroll, .fh-scroll * { scrollbar-width: thin; scrollbar-color: var(--fh-accent-text) transparent; }
.fh-scroll::-webkit-scrollbar { width: 11px; height: 11px; }
.fh-scroll::-webkit-scrollbar-track { background: transparent; }
.fh-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--fh-accent-text), var(--fh-primary));
  border-radius: var(--fh-radius-pill);
  border: 3px solid var(--fh-cream);
}
.fh-scroll::-webkit-scrollbar-thumb:hover { background: var(--fh-accent-text); }
