/* ==========================================================================
   DE LIEFDESCOACH — De LiefdesSpiegel
   Gebaseerd op het design system van deliefdescoach.com (site.css):
   Palette: forest #0F2E22 / gold #D4AF37 / off-white #FDFBF7
   Type: Cinzel (headings) / Montserrat (labels, nav, buttons) / Lato (body)
   ========================================================================== */

:root {
  --forest: #0F2E22;
  --forest-2: #14352A;
  --forest-line: rgba(212, 175, 55, 0.22);
  --gold: #D4AF37;
  --gold-deep: #B8942C;
  --cream: #FDFBF7;
  --cream-2: #F6F1E6;
  --ink: #1C2420;
  --ink-soft: #45524C;
  --line: rgba(28, 36, 32, 0.12);
  --error: #8C2F2F;

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --content-width: 1160px;
  --article-width: 720px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: clamp(3.5rem, 7vw, 6rem);

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body, h1, h2, h3, h4, p, figure, fieldset, legend { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

html, body { min-height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.app { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.005em;
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
h1 { font-size: clamp(2.1rem, 3.4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.6vw + 1.2rem, 2.5rem); }
p { max-width: 62ch; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--forest); color: var(--cream);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-label); font-size: 0.9rem;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1[tabindex="-1"]:focus { outline: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: calc(var(--article-width) + 2 * clamp(1.25rem, 4vw, 2.5rem)); }
.section { padding-block: var(--space-5) var(--space-6); }
.bg-forest { background: var(--forest); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-2);
}
.on-dark .eyebrow { color: var(--gold); }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }
.on-dark .lede { color: rgba(253, 251, 247, 0.82); }
.lede + .lede, .prose p + p { margin-top: 1rem; }
.prose p { max-width: 62ch; }

.small-note {
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: var(--space-3);
  line-height: 1.6;
}
.on-dark .small-note { color: rgba(253, 251, 247, 0.65); }

/* ---------- Buttons (identiek aan de site) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--forest); color: var(--cream); }
.on-dark .btn-gold:hover { background: var(--cream); color: var(--forest); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.btn-text {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 0.15rem;
  line-height: 1.4;
}
.btn-text:hover { color: var(--forest); border-color: var(--forest); }
.on-dark .btn-text { color: var(--gold); border-color: var(--gold); }
.on-dark .btn-text:hover { color: var(--cream); border-color: var(--cream); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: var(--space-4);
}
.cta-row .small-note { margin-top: 0; }

/* ---------- Header / footer (identiek aan de site) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid transparent;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  gap: 1.5rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--cream);
}
.wordmark__icon { width: 34px; height: 34px; flex-shrink: 0; }
.wordmark__icon img { display: block; width: 34px; height: 34px; }
.wordmark > span:last-child { white-space: nowrap; }
.header-link { color: rgba(253, 251, 247, 0.86); border-color: var(--forest-line); white-space: nowrap; }
.header-link:hover { color: var(--cream); border-color: var(--gold); }
.header-link__short { display: none; }
@media (max-width: 479px) {
  .header-link__long { display: none; }
  .header-link__short { display: inline; }
}

.site-footer { background: var(--forest); color: rgba(253, 251, 247, 0.78); }
.footer-bottom {
  border-top: 1px solid var(--forest-line);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Page hero (donkere kop, zoals de binnenpagina's) ---------- */
.page-hero {
  background: var(--forest);
  color: var(--cream);
  padding-block: var(--space-5) var(--space-6);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: var(--space-2); }
.page-hero .hero__sub {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.9rem;
}

/* ---------- Intro ---------- */
.intro-body .prose p { font-size: 1.08rem; }
.intro-facts {
  margin-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: grid;
}
.intro-facts div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.intro-facts span:first-child { font-family: var(--font-display); color: var(--gold-deep); line-height: 1.6; }

/* ---------- Vraagscherm ---------- */
.scan-progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--space-3);
}
.scan-progress .eyebrow { margin-bottom: 0; }
.scan-count {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--forest);
}
.scan-count span { color: var(--ink-soft); font-size: 0.85rem; }
.scan-bar {
  position: relative;
  height: 1px;
  background: var(--line);
  margin-top: 0.9rem;
  margin-bottom: var(--space-5);
}
.scan-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--gold-deep);
  height: 1px;
  transition: width 0.4s var(--ease);
}

.question__number {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}
.question__title {
  font-size: clamp(1.45rem, 1.2vw + 1.05rem, 2.05rem);
  max-width: 24ch;
  line-height: 1.22;
}
.field-help {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}
.question-form { margin-top: var(--space-4); }

.choice-group { display: grid; gap: 0.8rem; }
.choice-group legend {
  width: 100%;
  padding: 0 0 0.75rem;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.choice:hover { border-color: var(--gold-deep); }
.choice input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.3rem 0 0;
  accent-color: var(--forest);
}
.choice span { display: block; }
.choice.is-selected {
  border-color: var(--forest);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--forest);
}
.choice:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice input:focus-visible { outline: none; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  line-height: 1.55;
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { border-color: var(--gold-deep); outline: 2px solid var(--gold); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-note { font-size: 0.9rem; color: var(--ink-soft); }
.other-wrap { margin-top: 1rem; }
.other-wrap[hidden] { display: none; }
.field-row { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-error {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: var(--space-3);
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--error);
  background: rgba(140, 47, 47, 0.06);
  color: var(--error);
  font-family: var(--font-label);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.actions .btn-text { order: 1; }
.actions .btn { order: 2; margin-left: auto; }

/* ---------- Afronding ---------- */
.contact-fields { display: grid; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.contact-fields[hidden] { display: none; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.privacy-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: var(--space-3); }

/* ---------- Bedankt ---------- */
.thanks .prose { margin-bottom: var(--space-4); }

/* ---------- Mobiel ---------- */
@media (max-width: 699px) {
  body { font-size: 1rem; }
  .site-header__bar { padding-block: 0.9rem; gap: 1rem; }
  .wordmark { font-size: 1rem; gap: 0.5rem; }
  .wordmark__icon, .wordmark__icon img { width: 30px; height: 30px; }
  .header-link { font-size: 0.72rem; }
  .page-hero { padding-block: var(--space-4) var(--space-4); }
  .page-hero .lede { font-size: 1.05rem; }
  .cta-row { margin-top: var(--space-3); }
  .section { padding-block: var(--space-4) var(--space-5); }
  .scan-progress { padding-top: 0; }
  .scan-bar { margin-bottom: var(--space-4); }
  .question__title { font-size: 1.4rem; }
  .choice { padding: 0.9rem 0.95rem; font-size: 0.97rem; line-height: 1.5; }
  .btn { white-space: normal; text-align: center; padding: 0.95rem 1.4rem; font-size: 0.8rem; line-height: 1.45; }
  .actions .btn { flex: 1 1 100%; margin-left: 0; order: 1; }
  .actions .btn-text { order: 2; }
  .cta-row .btn { width: 100%; }
}
