/* Memoire & Co — pagina-opmaak. Bouwt op tokens.css (design systeem) en components.css (mc-klassen).
   Opbouw: een vaste 3D-kaart rechts, een tekstkolom links die eroverheen scrolt. */

:root {
  --kolom: min(600px, 46vw);
  --gutter: 6vw;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
[hidden] { display: none !important; }
body { background: var(--ivoor); }

/* Achtergrond: rustig verloop van ivoor naar champagne, geen lichtvlekken */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(160deg, var(--ivoor) 0%, var(--champagne) 100%); }

/* ---------- 3D ---------- */
.stage { position: fixed; inset: 0; z-index: 1; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.stage canvas.is-dragging { cursor: grabbing; }
.stage__hint { position: absolute; left: calc(var(--gutter) + var(--kolom)); right: 0; bottom: var(--ruimte-6); margin: 0; text-align: center;
  font-size: 14px; color: var(--inkt-gedempt); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: var(--ruimte-2); }
.stage__hint .stage__bewerk { pointer-events: auto; min-height: 40px; padding: var(--ruimte-2) var(--ruimte-4); font-size: 16px; background: var(--ivoor); }
.stage__hint .stage__bewerk:hover { background: var(--champagne); }
.stage__sleep { transition: opacity .3s; }
.stage.is-gesleept .stage__sleep { opacity: 0; }
.stage.is-uit canvas, .stage.is-uit .stage__hint { display: none; }
.stage.is-uit .stage__stil { display: block; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(38vw, 520px); border-radius: var(--hoek-groot); }

/* ---------- Bovenbalk ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-6);
  padding: var(--ruimte-4) var(--gutter); transition: background-color .3s, box-shadow .3s; }
.topbar.is-scrolled { background: color-mix(in srgb, var(--ivoor) 88%, transparent); box-shadow: 0 1px 0 var(--lijn); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar__logo { display: block; height: 20px; }
.topbar__logo img { height: 100%; width: auto; }
.topbar__nav { display: none; align-items: center; gap: var(--ruimte-8); }
.topbar__nav a:not(.mc-knop) { text-decoration: none; font-weight: 500; color: var(--inkt); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.topbar__nav a:not(.mc-knop):hover, .topbar__nav a.is-active { border-bottom-color: var(--goud); }
.topbar__menu { background: none; border: 1px solid var(--inkt); border-radius: var(--hoek-klein); padding: var(--ruimte-2) var(--ruimte-4); font: inherit; font-weight: 500; color: var(--inkt); cursor: pointer; }
.topbar__paneel { display: none; position: fixed; z-index: 9; left: var(--ruimte-4); right: var(--ruimte-4); top: 64px; flex-direction: column; gap: var(--ruimte-3);
  padding: var(--ruimte-6); background: var(--champagne); border-radius: var(--hoek-middel); box-shadow: var(--schaduw-zacht); }
.topbar__paneel[data-open="true"] { display: flex; }
.topbar__paneel a:not(.mc-knop) { text-decoration: none; font-family: var(--font-kop); font-size: 22px; font-weight: 500; }

/* ---------- Inhoudskolom ---------- */
/* Sluier: houdt de tekstkolom leesbaar waar de kaart eronderdoor draait */
.sluier { position: fixed; left: 0; top: 0; bottom: 0; z-index: 2; pointer-events: none; width: calc(var(--kolom) + var(--gutter) + 24px);
  background: var(--ivoor); }
.inhoud { position: relative; z-index: 3; width: calc(var(--kolom) + var(--gutter)); padding-left: var(--gutter); pointer-events: none; }
.inhoud > * { pointer-events: auto; }
.sectie { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: var(--ruimte-6); padding: 120px 0 var(--ruimte-16); }
.sectie .mc-sectiekop { margin-bottom: var(--ruimte-2); }
.sectie .kop-sectie { font-size: clamp(32px, 3vw, 40px); }
.tekst { display: flex; flex-direction: column; gap: var(--ruimte-4); max-width: 60ch; }
.noot { color: var(--inkt-gedempt); max-width: 60ch; }
.noot a { color: inherit; }

/* Onthulling bij scrollen: begint zichtbaar, schuift alleen zacht in */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.sectie--hero { gap: var(--ruimte-6); }
.hero__boven { font-size: 14px; letter-spacing: .04em; color: var(--inkt-gedempt); }
.hero__titel { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.005em; }
.hero__intro { font-size: 20px; line-height: 1.55; max-width: 32em; }
.hero__punten { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ruimte-2) var(--ruimte-4); color: var(--inkt-gedempt); font-size: 15px; }
.hero__punten li + li::before { content: "·"; margin-right: var(--ruimte-4); }

/* ---------- Gelegenheden ---------- */
.gelegenheden { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ruimte-3); }
.gelegenheid { text-align: left; display: flex; flex-direction: column; gap: var(--ruimte-1); padding: var(--ruimte-4) var(--ruimte-4);
  border: 1px solid transparent; border-radius: var(--hoek-middel); background: var(--champagne); color: var(--inkt); font: inherit; cursor: pointer;
  transition: border-color .15s, background-color .15s; }
.gelegenheid:hover { border-color: var(--rand-invoer); }
.gelegenheid[aria-pressed="true"] { border-color: var(--inkt); box-shadow: inset 0 0 0 1px var(--inkt); }
.gelegenheid__naam { font-family: var(--font-kop); font-size: 24px; line-height: 1.2; font-weight: 500; }
.gelegenheid__tekst { font-size: 15px; color: var(--inkt-gedempt); }

/* ---------- Configurator ---------- */
.configurator { background: var(--champagne); border-radius: var(--hoek-middel); overflow: hidden; }
.configurator__tabs { display: flex; gap: var(--ruimte-1); padding: var(--ruimte-2); border-bottom: 1px solid var(--lijn); overflow-x: auto; scrollbar-width: none; }
.configurator__tabs::-webkit-scrollbar { display: none; }
.configurator__tab { flex: 1 0 auto; padding: var(--ruimte-3) var(--ruimte-4); border: 0; border-radius: var(--hoek-klein); background: none; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--inkt-gedempt); white-space: nowrap; transition: background-color .15s, color .15s; }
.configurator__tab:hover { color: var(--inkt); background: var(--ivoor); }
.configurator__tab[aria-selected="true"] { background: var(--vlak-donker); color: var(--op-vlak-donker); }
.configurator__paneel { padding: var(--ruimte-6); }
.configurator__paneel > div { display: flex; flex-direction: column; gap: var(--ruimte-3); }
.groep { display: block; font-weight: 500; font-size: 15px; margin-top: var(--ruimte-3); }
.configurator__paneel > div > .groep:first-child { margin-top: 0; }

.opties { display: grid; gap: var(--ruimte-2); }
.opties--2 { grid-template-columns: 1fr 1fr; }
.optie { position: relative; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: var(--ruimte-3) var(--ruimte-4);
  border: 1px solid var(--lijn); border-radius: var(--hoek-klein); background: var(--ivoor); color: var(--inkt); font: inherit; cursor: pointer;
  transition: border-color .15s; }
.optie:hover { border-color: var(--rand-invoer); }
.optie[aria-pressed="true"] { border-color: var(--inkt); box-shadow: inset 0 0 0 1px var(--inkt); }
.optie--rij { flex-direction: row; align-items: center; gap: var(--ruimte-3); }
.optie__tekst { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.optie__titel { font-family: var(--font-kop); font-size: 20px; line-height: 1.15; font-weight: 500; }
.optie__sub { font-size: 14px; color: var(--inkt-gedempt); }
.optie__icoon { flex: none; width: 32px; height: 32px; color: var(--goud-tekst); }
.optie__icoon svg { width: 100%; height: 100%; }
.stijl-voorbeeld { font-size: 26px; line-height: 1; color: var(--inkt); padding-right: var(--ruimte-2); }
.stijl-klassiek { font-family: var(--font-kop); font-weight: 500; }
.stijl-script { font-family: "Pinyon Script", cursive; }
.stijl-modern { font-family: var(--font-kop); font-size: 18px; letter-spacing: .12em; }
.papier-staal { flex: none; width: 40px; height: 40px; border-radius: var(--hoek-klein); border: 1px solid var(--lijn); background-color: #efe7d8; }
.papier-linnen { background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 4px); }
.papier-pearl { background-image: linear-gradient(135deg, rgba(255,255,255,.7), rgba(0,0,0,.04)); }
.papier-mat { background-image: none; }

.stalen { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); }
.staal { display: flex; flex-direction: column; align-items: center; gap: var(--ruimte-1); width: 64px; background: none; border: 0; padding: var(--ruimte-1) 0;
  font: inherit; font-size: 12px; line-height: 1.2; color: var(--inkt-gedempt); cursor: pointer; text-align: center; }
.staal i { display: block; width: 36px; height: 36px; border-radius: var(--hoek-rond); border: 1px solid var(--rand-invoer); box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.staal[aria-pressed="true"] { color: var(--inkt); }
.staal[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--champagne), 0 0 0 4px var(--inkt); }
.staal i.blind { background: linear-gradient(135deg, #f5eee2, #e3d8c4); box-shadow: inset 2px 2px 4px rgba(255,255,255,.9), inset -2px -2px 5px rgba(0,0,0,.12); }
.staal[aria-pressed="true"] i.blind { box-shadow: inset 2px 2px 4px rgba(255,255,255,.9), inset -2px -2px 5px rgba(0,0,0,.12), 0 0 0 2px var(--champagne), 0 0 0 4px var(--inkt); }
.druppel { flex: none; width: 28px; height: 38px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: inset -4px -6px 10px rgba(0,0,0,.12), inset 4px 4px 8px rgba(255,255,255,.7); }

.letters { display: flex; align-items: center; gap: var(--ruimte-3); }
.letters input { width: 64px; height: 72px; text-align: center; font-family: var(--font-kop); font-size: 40px; font-weight: 500; text-transform: uppercase;
  border: 1px solid var(--rand-invoer); border-radius: var(--hoek-klein); background: var(--ivoor); color: var(--inkt); }
.letters__amp { font-family: var(--font-kop); font-style: italic; font-size: 28px; color: var(--goud-tekst); }

/* ---------- Geuren ---------- */
.geuren { display: grid; gap: var(--ruimte-3); }
.geur { display: flex; gap: var(--ruimte-4); align-items: flex-start; text-align: left; padding: var(--ruimte-4) var(--ruimte-6);
  border: 1px solid transparent; border-radius: var(--hoek-middel); background: var(--champagne); color: var(--inkt); font: inherit; cursor: pointer; transition: border-color .15s; }
.geur:hover { border-color: var(--rand-invoer); }
.geur[aria-pressed="true"] { border-color: var(--inkt); box-shadow: inset 0 0 0 1px var(--inkt); }
.geur .druppel { width: 34px; height: 46px; margin-top: 4px; }
.geur > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.geur__naam { font-family: var(--font-kop); font-weight: 500; font-size: 26px; line-height: 1.2; }
.geur__profiel { font-weight: 500; font-size: 15px; letter-spacing: .06em; color: var(--goud-tekst); margin: 2px 0 var(--ruimte-1); }
.geur__tekst { font-size: 16px; line-height: 1.55; }
.geuren__test { display: flex; flex-direction: column; gap: var(--ruimte-3); padding: var(--ruimte-4) var(--ruimte-6); border: 1px solid var(--lijn); border-radius: var(--hoek-middel); }
.geuren__test .mc-knop[aria-pressed="true"] { background: var(--vlak-donker); color: var(--op-vlak-donker); border-color: var(--vlak-donker); }

/* ---------- Formulier ---------- */
.upload { position: relative; display: flex; flex-direction: column; gap: var(--ruimte-1); padding: var(--ruimte-4); border: 1px dashed var(--rand-invoer); border-radius: var(--hoek-klein);
  background: var(--ivoor); cursor: pointer; text-align: center; transition: border-color .15s; }
.upload:hover, .upload.is-over { border-color: var(--inkt); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__titel { font-family: var(--font-kop); font-size: 20px; font-weight: 500; }
.upload__sub { font-size: 14px; color: var(--inkt-gedempt); }
.upload__lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ruimte-1); }
.upload__lijst li { display: flex; justify-content: space-between; gap: var(--ruimte-2); font-size: 14px; padding: var(--ruimte-2) var(--ruimte-3); border-radius: var(--hoek-klein); background: var(--ivoor); }
.upload__lijst li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__lijst li.is-fout { color: var(--fout); }
.ontwerp-mee, .toestemming { display: flex; gap: var(--ruimte-3); align-items: flex-start; cursor: pointer; }
.ontwerp-mee { padding: var(--ruimte-4); border-radius: var(--hoek-klein); background: var(--ivoor); }
.ontwerp-mee input, .toestemming input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vlak-donker); flex: none; }
.ontwerp-mee__titel { display: block; font-weight: 500; }
.ontwerp-mee__samenvatting { display: block; font-size: 15px; line-height: 1.5; color: var(--inkt-gedempt); margin-top: 2px; }
.toestemming span { font-size: 15px; line-height: 1.5; }

.bedankt { display: flex; flex-direction: column; gap: var(--ruimte-4); background: var(--champagne); border-radius: var(--hoek-middel); padding: var(--ruimte-8) var(--ruimte-6); }
.bedankt__titel { font-size: 32px; }
.bedankt__ref { display: inline-block; align-self: flex-start; padding: var(--ruimte-2) var(--ruimte-4); border: 1px solid var(--lijn); border-radius: var(--hoek-klein); font-variant-numeric: tabular-nums; }
.bedankt__status { color: var(--geslaagd); font-weight: 500; }

/* ---------- Donkere blokken en footer ---------- */
#binnenkort .mc-contrastblok__titel { font-size: clamp(28px, 2.6vw, 34px); }
.footer { border-radius: var(--hoek-groot) var(--hoek-groot) 0 0; overflow: hidden; margin-top: var(--ruimte-16); }
.footer .mc-footer__boven, .footer .mc-footer__onder { padding-inline: var(--ruimte-6); }

/* ---------- Laden ---------- */
.loader { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: var(--ivoor); transition: opacity .6s ease, visibility .6s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__merk { font-family: var(--font-kop); font-size: 56px; font-weight: 500; color: var(--goud-tekst); }
.loader__merk span { font-style: italic; font-size: .6em; margin: 0 .05em; }
.noscript { position: fixed; inset: auto 0 40px; text-align: center; z-index: 30; padding: var(--ruimte-4); }

/* ---------- Telefoon en tablet ---------- */
@media (max-width: 899px) {
  :root { --kolom: 100%; --gutter: var(--ruimte-4); --stage-h: 34svh; }
  html { scroll-padding-top: calc(var(--stage-h) + 12px); }
  .topbar { padding: var(--ruimte-3) var(--ruimte-4); }
  .topbar.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar__menu { display: inline-block; }
  .stage { bottom: auto; height: var(--stage-h); z-index: 4; background: linear-gradient(170deg, var(--ivoor), var(--champagne)); transition: transform .45s var(--ease); }
  /* Waar de kaart niets toevoegt (werkwijze, binnenkort, vragen) schuift de band weg en krijgt de tekst het hele scherm */
  body.band-weg .stage { transform: translateY(-110%); }
  body.band-weg .topbar { background: var(--ivoor); box-shadow: 0 1px 0 var(--lijn); }
  .stage canvas { height: calc(100% - 44px); }
  .sectie--hero .mc-knoppen .mc-knop { width: 100%; }
  .stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; background: linear-gradient(var(--champagne), transparent); pointer-events: none; }
  .stage__hint { left: 0; bottom: 6px; font-size: 12px; flex-direction: row; justify-content: center; gap: var(--ruimte-3); }
  .stage__hint .stage__bewerk { min-height: 32px; font-size: 14px; padding: 0 var(--ruimte-3); }
  .stage.is-uit .stage__stil { position: absolute; right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: auto; height: 90%; }
  .sluier { display: none; }
  .inhoud { width: auto; padding: var(--stage-h) var(--ruimte-4) 0; }
  .sectie { min-height: auto; padding: var(--ruimte-12) 0 var(--ruimte-8); }
  .sectie--hero { padding-top: var(--ruimte-8); }
  .gelegenheden, .opties--2 { grid-template-columns: 1fr; }
  .configurator__paneel { padding: var(--ruimte-4); }
  .footer { margin-inline: calc(-1 * var(--ruimte-4)); border-radius: 0; }
}
@media (min-width: 900px) {
  .topbar__nav { display: flex; }
  .topbar__menu, .topbar__paneel { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Formulier in stappen ---------- */
.wizard { gap: var(--ruimte-6); }
.wizard__kop { display: flex; flex-direction: column; gap: var(--ruimte-2); }
.wizard__stapnr { font-size: 15px; color: var(--inkt-gedempt); }
.wizard__balk { height: 2px; background: var(--lijn); border-radius: 1px; overflow: hidden; }
.wizard__balk i { display: block; height: 100%; width: 20%; background: var(--goud); transition: width .3s var(--ease); }
.stap { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--ruimte-4); }
.stap__vraag { padding: 0; margin-bottom: var(--ruimte-2); font-family: var(--font-kop); font-size: 28px; line-height: 1.2; font-weight: 500; text-wrap: balance; }
.keuzekaarten { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ruimte-2); }
.keuzekaart { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: var(--ruimte-3) var(--ruimte-4); min-height: var(--hoogte-knop);
  border: 1px solid var(--lijn); border-radius: var(--hoek-klein); background: var(--ivoor); color: var(--inkt); font: inherit; cursor: pointer; transition: border-color .15s; }
.keuzekaart:hover { border-color: var(--rand-invoer); }
.keuzekaart[aria-pressed="true"] { border-color: var(--inkt); box-shadow: inset 0 0 0 1px var(--inkt); }
.keuzekaart__titel { font-family: var(--font-kop); font-size: 21px; line-height: 1.2; font-weight: 500; }
.keuzekaart__sub { font-size: 14px; color: var(--inkt-gedempt); }
.keuzekaart--breed { grid-column: 1 / -1; }
.wizard__knoppen { display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-4); }
.wizard__knoppen .mc-knop--primair { margin-left: auto; }
@media (max-width: 480px) { .keuzekaarten { grid-template-columns: 1fr; } }

/* ---------- Aanvraag vult het scherm ---------- */
#aanvraag { min-height: 100svh; justify-content: center; }
#aanvraag .mc-sectiekop { margin-bottom: 0; }
#aanvraag .mc-sectiekop__intro { display: none; }
.wizard { min-height: 520px; justify-content: flex-start; }
.stap:not([hidden]) { animation: stapIn .35s var(--ease) both; }
@keyframes stapIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stap:not([hidden]) { animation: none; } }
@media (max-width: 899px) {
  /* Op telefoon opent de aanvraag na de eerste keuze als volledig scherm, zonder kaartband erachter */
  body.is-aanvraag-vol { overflow: hidden; }
  body.is-aanvraag-vol .inhoud { z-index: 30; } /* boven de kaartband en de bovenbalk */
  body.is-aanvraag-vol #aanvraag { position: fixed; inset: 0; z-index: 20; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--ivoor); margin: 0; padding: var(--ruimte-16) var(--ruimte-4) var(--ruimte-8); min-height: 0; justify-content: flex-start; }
  body.is-aanvraag-vol .wizard__sluit { display: inline-flex; }
  #aanvraag { padding-top: var(--ruimte-8); }
  #aanvraag .kop-sectie { font-size: 28px; }
  .wizard { min-height: 0; }
}
.wizard__sluit { display: none; position: fixed; top: var(--ruimte-3); right: var(--ruimte-4); z-index: 21; background: var(--ivoor); border: 1px solid var(--inkt); border-radius: var(--hoek-klein); padding: var(--ruimte-2) var(--ruimte-4); font: inherit; font-weight: 500; color: var(--inkt); cursor: pointer; }
