/* RE:SELF · landingspagina
   Tokens volgen README.md van de design handoff. */

:root {
  --paper: #F4EFE6;
  --stone: #D8D1C7;
  --stone-line: #C3BAAE;
  --ink: #282724;
  --ink-soft: #5A554D;
  --ink-soft-stone: #4A4640;
  --oxblood: #502832;
  --oxblood-dark: #3B1C24;
  --oxblood-light: #5E3540;
  --gold: #B8925A;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 144px);
  --col-gap: clamp(40px, 6vw, 88px);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* vangnet, oorzaken zijn opgelost met minmax(min(100%,…)) */
}

img { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

a { color: var(--oxblood); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood-dark); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

em { font-style: italic; color: var(--oxblood); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--paper); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.section { padding: var(--section-y) var(--gutter); }
.section--stone { background: var(--stone); }
.section--oxblood { background: var(--oxblood); color: var(--paper); }
.section--rule { border-top: 1px solid var(--stone); }
.section--flush-top { padding-top: 0; }

.wrap { max-width: var(--max); margin: 0 auto; }

.stack { display: flex; flex-direction: column; }
.stack--16 { gap: 16px; }
.stack--24 { gap: 24px; }
.stack--28 { gap: 28px; }
.stack--section { gap: clamp(40px, 6vw, 72px); }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: var(--col-gap);
  align-items: start;
}
.cols--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cols--center { align-items: center; }

.muted { color: var(--ink-soft); }
.section--stone .muted { color: var(--ink-soft-stone); }
.small { font-size: 15px; }
.pretty { text-wrap: pretty; }

/* ---------- Typografie ---------- */

.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.section--oxblood .label { color: var(--paper); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  text-wrap: balance;
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
}
.h3--trust { font-size: 28px; line-height: 1.15; }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.14em;
  color: var(--oxblood);
  line-height: 1;
}

.dateline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--oxblood);
}
.dateline--center { justify-content: center; }

.rule-gold { display: block; height: 1px; background: var(--gold); flex: 0 0 auto; }
.rule-gold--56 { width: 56px; }
.rule-gold--40 { width: 40px; }

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--oxblood);
  border-radius: 2px;
  background: var(--oxblood);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.btn:hover { background: var(--oxblood-dark); border-color: var(--oxblood-dark); color: var(--paper); }

.btn--secondary { background: transparent; color: var(--oxblood); }
.btn--secondary:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }

.textlink { font-size: 16px; display: inline-flex; align-items: center; min-height: 48px; }

.cta-group { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- Beelden ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--on-stone { background: var(--paper); }
.media--on-oxblood { background: var(--oxblood-light); }

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* visibility i.p.v. display, zodat lazy-loading blijft werken */
.media.is-missing img { visibility: hidden; }

/* Beschrijving van de gewenste foto, zichtbaar zolang het bestand ontbreekt */
.media__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft-stone);
}
.media--on-oxblood .media__ph { color: var(--paper); }

.impression {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  padding: 5px 10px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.caption { font-size: 14px; color: var(--ink-soft-stone); }

/* ---------- Header ---------- */

.site-header { padding: 20px var(--gutter); border-bottom: 1px solid var(--stone); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand__descriptor { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); }
.header-link { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; min-height: 48px; }

/* ---------- 01 Hero ---------- */

.hero { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(72px, 10vw, 128px); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: var(--col-gap); align-items: center; }
.hero__text, .hero__media { flex: 1 1 400px; min-width: 0; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__sub { font-size: clamp(17px, 1.6vw, 19px); max-width: 30em; text-wrap: pretty; }

/* ---------- 02 Het moment ---------- */

.moment .wrap { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 88px); }
.moment__lines {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}
.moment__l1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.15; }
.moment__l2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--ink-soft); }
.moment__l3 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.2; font-style: italic; color: var(--oxblood); }

/* ---------- 03 Tijdlijn / 07 Vertrouwen ---------- */

.ruled-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px 32px;
}
.ruled-grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ruled-grid > li {
  border-top: 1px solid var(--gold);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ruled-grid p { text-wrap: pretty; }

.media-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 3vw, 32px);
}

/* ---------- 04 Product / 08 Cadeau lijsten ---------- */

.contents { list-style: none; padding: 0; border-top: 1px solid var(--gold); }
.contents li { padding: 14px 0; border-bottom: 1px solid var(--stone-line); }

.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1; }

/* ---------- 05 Vijf vragen ---------- */

.questions {
  list-style: none;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.questions li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-family: var(--serif);
}
.questions__nr { font-style: italic; font-size: 22px; color: var(--oxblood); }
.questions__q {
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.3;
  text-wrap: pretty;
}

/* ---------- 06 Ons verhaal ---------- */

.story-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.45;
  text-wrap: pretty;
}
.signature { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.signature__name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; }

/* ---------- 09 Eerste ervaringen ---------- */

.experiences {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.experiences__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  color: var(--ink-soft);
}

/* ---------- 10 FAQ ---------- */

.faq { border-top: 1px solid var(--stone); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: 22px 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__plus {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 24px;
  color: var(--oxblood);
  transition: transform 150ms;
}
.faq details[open] .faq__plus { transform: rotate(45deg); }
.faq p { padding: 0 0 24px; max-width: 36em; text-wrap: pretty; }

/* ---------- 11 Afsluitende CTA ---------- */

.closing { padding: clamp(80px, 12vw, 160px) var(--gutter); border-top: 1px solid var(--stone); }
.closing .wrap {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.closing h2 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.06; }

.seal {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--oxblood);
  box-shadow: inset 0 0 0 4px var(--oxblood-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

/* ---------- Footer ---------- */

.site-footer { padding: 56px var(--gutter) 40px; background: var(--stone); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand span:last-child { font-size: 14px; color: var(--ink-soft-stone); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 48px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft-stone);
  border-top: 1px solid var(--stone-line);
  padding-top: 20px;
}

/* ---------- Vaste bestelbalk (mobiel) ---------- */

.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--paper);
  border-top: 1px solid var(--stone);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.order-bar[hidden] { display: none; }
.order-bar__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.order-bar__price { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.order-bar__note { font-size: 13px; color: var(--ink-soft); }
.order-bar .btn { min-height: 48px; padding: 0 20px; font-size: 15px; letter-spacing: 0; }

/* ---------- Cookiebanner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--stone);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Gelijkwaardige knoppen: weigeren is net zo makkelijk als accepteren */
.cookie-banner .btn { flex: 1 1 140px; min-height: 48px; padding: 0 20px; }
button.btn { cursor: pointer; }

/* ---------- Juridische pagina's ---------- */

.legal { padding: clamp(40px, 7vw, 96px) var(--gutter) var(--section-y); }
.legal .wrap { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 54px); line-height: 1.08; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; margin-top: 20px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal .muted { font-size: 15px; }

@media (max-width: 767px) {
  /* 84px ruimte zodat de bestelbalk de footer niet afdekt */
  .site-footer { padding-bottom: calc(40px + 84px); }
}
