/* Fabrica coming soon. BEM, mobile-first. Tokens uit Figma "Web design - Fabrica.nl" v1.0. */

:root {
  --c-ink: #23211c;
  --c-ink-900: #33312b;
  --c-cream: #fbf9f4;
  --c-sand: #c9b68a;
  --c-cta: #c25a2e;
  --c-cta-dark: #a94b24;
  --c-olive: #5c6347;
  --c-gray-200: #ece6db;
  --c-gray-600: #b3a998;
  --c-gray-700: #8a8170;
  --c-gray-800: #6f6a5e;
  --c-error: #ef4444;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --radius-card: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body.page {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 300;
  color: #fff;
  background: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* Achtergrond: geblurde render, ken burns + parallax via JS */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--c-ink);
}
.backdrop__picture { position: absolute; inset: -6%; will-change: transform, filter; }
.backdrop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: blur(9px) saturate(1.05);
  transform: scale(1.02);
}
.backdrop__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35,33,28,0.62) 0%, rgba(35,33,28,0.28) 30%, rgba(35,33,28,0.42) 60%, rgba(35,33,28,0.92) 100%),
    radial-gradient(120% 80% at 80% 60%, rgba(35,33,28,0) 0%, rgba(35,33,28,0.45) 100%);
}
.backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.wordmark__name { font-weight: 800; font-size: 20px; letter-spacing: 0.32em; }
.wordmark__sub { font-weight: 500; font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.7); }
.topbar__cta {
  display: none;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1.5px solid rgba(255,255,255,0.4);
  transition: border-color 0.3s;
}
.topbar__cta:hover { border-color: #fff; }

/* Hero grid */
.hero {
  flex: 1;
  display: grid;
  gap: 40px;
  padding: 24px var(--gutter) 56px;
  align-content: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0;
  padding: 9px 17px;
  border-radius: 100px;
  background: rgba(251,249,244,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 13px;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cta);
  box-shadow: 0 0 0 0 rgba(194,90,46,0.7);
  animation: badge-pulse 2.2s ease-out infinite;
}
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(194,90,46,0.7); }
  70% { box-shadow: 0 0 0 9px rgba(194,90,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,90,46,0); }
}

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(48px, 12vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.hero__word { display: inline-block; margin-right: 0.06em; }
.hero__word--accent { color: var(--c-cta); }

.hero__lead {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.94);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  padding-top: 8px;
}
.stats__item { display: flex; flex-direction: column; gap: 4px; }
.stats__value { font-weight: 700; font-size: 30px; line-height: 1.1; white-space: nowrap; }
.stats__value small { font-size: 0.6em; color: var(--c-sand); font-weight: 700; }
.stats__label { font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); }

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-top: 6px;
  max-width: 420px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
}
.contact__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.contact__text { display: flex; flex-direction: column; gap: 2px; }
.contact__eyebrow { font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-sand); }
.contact__name { font-weight: 700; font-size: 16px; }
.contact__role { font-size: 13px; color: rgba(255,255,255,0.7); }

/* Card */
.hero.hero--single { grid-template-columns: 1fr; justify-items: center; }
.card--thanks { max-width: 620px; }
.hero.hero--single .card { justify-self: center; }
.card--thanks .card__title { font-size: 28px; }
.card--thanks .btn { margin-top: 12px; text-decoration: none; }
.card {
  width: 100%;
  max-width: 560px;
  padding: 28px 22px;
  border-radius: var(--radius-card);
  background: var(--c-cream);
  color: var(--c-ink-900);
  box-shadow: 0 24px 60px rgba(35,33,28,0.35);
}
.card__title { margin: 0 0 8px; font-weight: 500; font-size: 24px; line-height: 1.3; letter-spacing: 0.01em; }
.card__intro { margin: 0 0 20px; font-weight: 300; font-size: 15px; line-height: 1.55; color: var(--c-gray-700); }
.card__success { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card__check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--c-olive);
  color: #fff;
  font-weight: 700;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 12px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; gap: 12px; }
.form__field { display: flex; flex-direction: column; gap: 5px; }
.form__label { font-weight: 500; font-size: 13px; color: var(--c-gray-800); letter-spacing: 0.02em; }
.form__req { color: var(--c-error); }
.form__input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  color: var(--c-ink-900);
  background: #fff;
  border: 1px solid var(--c-gray-200);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__input::placeholder { color: var(--c-gray-600); font-weight: 300; }
.form__input:focus, .form__input:focus-visible { outline: none; border-color: var(--c-olive); box-shadow: none; }
.form__input:user-invalid { border-color: var(--c-error); }
.form__input--area { resize: vertical; min-height: 84px; }
.form__input--select option { font-size: 14px; font-weight: 400; }
.form__input--select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f6a5e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-gray-800);
}
.form__consent a { color: var(--c-olive); }
.form__checkbox { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c-olive); flex-shrink: 0; }
.form__status { min-height: 1em; margin: 0; font-size: 13px; font-weight: 500; color: var(--c-error); }
.form__status:empty { display: none; }
.form__status--ok { color: var(--c-olive); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 8px 8px 8px 22px;
  border: 0;
  border-radius: 9999px;
  background: var(--c-cta);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.btn:hover { background: var(--c-cta-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(194,90,46,0.4); outline-offset: 2px; }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-cta);
}
.btn__icon svg { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__icon svg { transform: translate(2px, -2px); }

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px var(--gutter) 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.footer__credit { display: flex; align-items: center; gap: 14px; }
.footer__jspr { font-weight: 800; font-size: 15px; letter-spacing: 0.06em; color: #fff; white-space: nowrap; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__contact a { text-decoration: none; font-weight: 500; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color 0.3s; }
.footer__contact a:hover { border-color: #fff; }
.footer__privacy { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); align-self: flex-start; transition: color 0.3s, border-color 0.3s; }
.footer__privacy:hover { color: #fff; border-color: #fff; }

/* Privacy-popup: native dialog, alleen via JS te openen */
.modal {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--c-cream);
  color: var(--c-ink-900);
  box-shadow: 0 32px 80px rgba(35,33,28,0.5);
}
.modal::backdrop { background: rgba(35,33,28,0.6); backdrop-filter: blur(4px); }

/* Zacht openen/sluiten: transition op display + overlay via allow-discrete */
@media (prefers-reduced-motion: no-preference) {
  .modal, .modal::backdrop {
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
  }
  .modal { opacity: 0; transform: translateY(16px) scale(0.98); }
  .modal::backdrop { opacity: 0; }
  .modal[open] { opacity: 1; transform: none; }
  .modal[open]::backdrop { opacity: 1; }
  @starting-style {
    .modal[open] { opacity: 0; transform: translateY(16px) scale(0.98); }
    .modal[open]::backdrop { opacity: 0; }
  }
}
.modal__inner { position: relative; margin: 0; padding: 32px 28px 28px; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-gray-800);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { background: var(--c-gray-200); color: var(--c-ink); }
.modal__close:focus-visible { outline: 2px solid var(--c-olive); outline-offset: 2px; }
.modal__close:focus:not(:focus-visible) { outline: none; }
.modal__title { margin: 0 0 14px; font-weight: 500; font-size: 22px; padding-right: 40px; }
.modal__text { margin: 0 0 12px; font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--c-gray-700); }
.modal__text a { color: var(--c-olive); }

/* Animatie-startstand, alleen als motion is toegestaan én JS draait */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .hero__word,
  .js-anim .badge,
  .js-anim .hero__lead,
  .js-anim .stats__item,
  .js-anim .contact,
  .js-anim .card,
  .js-anim .topbar,
  .js-anim .footer { opacity: 0; }
  .js-anim .backdrop__img { filter: blur(34px) saturate(0.8); transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .badge__dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* Tablet en groter */
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .topbar { padding-block: 26px; }
  .topbar__cta { display: inline-block; }
  .wordmark { flex-direction: row; align-items: baseline; gap: 12px; }
  .wordmark__name { font-size: 24px; }
  .wordmark__sub { font-size: 12px; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .card { padding: 32px 36px; }
  .hero__lead { font-size: 20px; }
  .stats { gap: 24px 40px; }
  .stats__value { font-size: 36px; }
}

/* Desktop: copy links, kaart rechts */
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 560px);
    gap: 64px;
    align-items: center;
    padding-block: 32px 72px;
  }
  .hero__copy { gap: 26px; }
  .hero__lead { font-size: 22px; max-width: 30em; }
  .card { justify-self: end; }
  .footer { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
}

@media (min-width: 1440px) {
  :root { --gutter: clamp(40px, 6vw, 120px); }
}
