/* Wad of Wonders — website
   Ontwerp: wit, Jost 300/400, dunne lijnen, onderstreepte tekstlinks,
   foto's van rand tot rand. */
:root {
  --bg: #FFFFFF;
  --ink: #2A2A2A;
  --soft: #4A4A4A;
  --muted: #5C5C5C;
  --hover: #6B6B6B;
  --line: #E4E4E4;
  --ul: #B5B5B5;
  --ph: #EDEDED;
  --pad: clamp(20px, 3vw, 40px);
  --sec: clamp(64px, 9vw, 144px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Jost, system-ui, sans-serif; font-weight: 300; font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--hover); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: 0.01em; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.pad { padding-left: var(--pad); padding-right: var(--pad); }
.soft { color: var(--soft); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.big { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.links { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.ul { display: inline-block; padding: 12px 0; border-bottom: 1px solid var(--ul); font-size: 15px; transition: color 160ms ease, border-color 160ms ease; }
.ul:hover { color: var(--hover); border-color: var(--ink); }
.rule-row { border-top: 1px solid var(--line); padding-top: 16px; }

/* Header */
.header { padding: 14px var(--pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 40px; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.brand span { font-size: 14px; letter-spacing: 0.26em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.nav a { padding: 12px 0; }
.header-right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; gap: 14px; }
.lang button { padding: 12px 0; color: var(--hover); }
.lang button.is-active, .lang button:hover { color: var(--ink); }
.link-plain { padding: 12px 0; font-size: 14px; }
.link-plain:hover { color: var(--hover); }

/* Hero */
.hero { display: flex; flex-direction: column; }
.hero-media { position: relative; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 30, 40, .22) 0%, rgba(20, 30, 40, 0) 65%); pointer-events: none; }
.hero-name { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; margin: 0; padding: 0 var(--pad); text-align: center; color: #FFFFFF; font-weight: 300; font-size: clamp(48px, 9vw, 150px); line-height: 1; letter-spacing: 0.02em; text-shadow: 0 2px 40px rgba(20, 30, 40, .25); }
.hero-img { width: 100%; aspect-ratio: 16 / 9; min-height: 420px; max-height: 88vh; object-fit: cover; object-position: center 40%; background: var(--ph); }
.hero-text { padding-top: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.hero h1 { flex: 1 1 560px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; }
.hero-side { flex: 0 1 340px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 10px; }

/* Eilanden */
.islands { padding-top: clamp(56px, 7vw, 112px); }
.islands .rule-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; font-size: 14px; }

/* Collectie */
.collection { padding-top: var(--sec); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; }
.group { display: flex; flex-direction: column; gap: 16px; }
.group { scroll-margin-top: 16px; }
.group + .group { margin-top: clamp(40px, 5vw, 80px); }
.group-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 8px; }
.group-head::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1px solid var(--ink); }
.group-head > div { display: flex; flex-direction: column; gap: 6px; }
.group-head h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.group-head .muted { font-size: 15px; }
.group-count { font-size: 14px; color: var(--muted); padding-bottom: 2px; }

/* Keuze wenskaarten / ansichtkaarten */
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.type-card { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 20px; border: 1px solid var(--line); padding: 14px 22px 14px 14px; transition: border-color 160ms ease; }
.type-card:hover { border-color: var(--ink); color: var(--ink); }
.type-card img { width: 140px; aspect-ratio: 3 / 2; object-fit: cover; }
.type-card img.wide { aspect-ratio: 16 / 9; }
.type-info { display: flex; flex-direction: column; gap: 2px; }
.type-info h3 { font-size: 22px; }
.type-info .muted { font-size: 14px; line-height: 1.45; }
.type-go { font-size: 14px; border-bottom: 1px solid var(--ul); padding-bottom: 4px; white-space: nowrap; }
/* Eén raster voor beide soorten: elke kaart exact even groot */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); padding: 0 var(--pad); }
.tile { position: relative; display: block; width: 100%; overflow: hidden; background: var(--ph); text-align: left; }
.postcard .tile { aspect-ratio: 3 / 2; }
.greeting .tile { aspect-ratio: 16 / 9; }
.tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 700ms cubic-bezier(.2,.6,.3,1), opacity 400ms ease; }
.tile:hover img { transform: scale(1.05); }
.tile .tag { position: absolute; top: 14px; left: 14px; background: #FFFFFF; padding: 4px 10px; font-size: 12px; line-height: 1.5; }

.order-row { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 64px; }
.order-row p { flex: 1 1 420px; max-width: 620px; }

/* Kaart met bestelknop */
.card { display: flex; flex-direction: column; }
.card-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 0; font-size: 14px; }
.card-bar .name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.card-bar .name small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-bar .name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-bar .add { font-size: 13px; color: var(--soft); padding: 4px 0; border-bottom: 1px solid var(--ul); white-space: nowrap; transition: color 160ms ease, border-color 160ms ease; }
.card-bar .add:hover { color: var(--ink); border-color: var(--ink); }
.card-bar .qty { font-size: 13px; color: var(--ink); }
.card-bar .qty button { width: 24px; height: 24px; font-size: 15px; color: var(--muted); }
.card-bar .qty button:hover { color: var(--ink); }

/* Stappen */
.steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.steps b { display: block; font-weight: 400; color: var(--ink); }
.steps span:not(.step-n) { color: var(--muted); }
.step-n { flex: none; width: 26px; height: 26px; border: 1px solid var(--ul); border-radius: 50%; display: grid; place-items: center; font-size: 13px; }

/* Balk onderin */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #FFFFFF; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); transform: translateY(0); transition: transform 300ms ease; }
.cartbar[hidden] { display: block; transform: translateY(110%); pointer-events: none; }
.cartbar-meter { height: 2px; background: var(--line); }
.cartbar-meter span { display: block; height: 2px; width: 0; background: var(--ink); transition: width 400ms ease; }
.cartbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--pad); max-width: 1440px; margin: 0 auto; }
.cartbar-text { display: flex; flex-direction: column; line-height: 1.35; font-size: 15px; }
.cartbar-text b { font-weight: 400; }
.cartbar-text .muted { font-size: 13px; }
.bar-btn { background: var(--ink); color: #FFFFFF; padding: 13px 26px; font-size: 15px; font-weight: 400; white-space: nowrap; transition: background 160ms ease; }
.bar-btn:hover { background: #000; }
body.has-cart .footer { padding-bottom: 110px; }
#cartSum { color: var(--muted); }

/* Afronding */
.keep { font-size: 14px; margin-top: 8px; }
.keep[hidden] { display: none; }
.done { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.done[hidden] { display: none; }
.done h4 { font-size: 20px; }
.done #clearCart { align-self: flex-start; border-bottom-color: var(--line); font-size: 13px; }

/* Muur */
.wall { padding-top: var(--sec); display: flex; flex-direction: column; }
.wall-img { width: 100%; aspect-ratio: 21 / 9; min-height: 320px; object-fit: cover; background: var(--ph); }
.split { padding-top: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 64px; }
.split h2 { flex: 1 1 480px; }
.split-side { flex: 0 1 420px; display: flex; flex-direction: column; gap: 24px; }

/* Citaat */
.quote { padding-top: clamp(72px, 9vw, 144px); padding-bottom: clamp(72px, 9vw, 144px); }
.quote blockquote { margin: 0 auto; max-width: 760px; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.4; letter-spacing: 0.01em; text-align: center; }

/* Over */
.about { padding-bottom: var(--sec); }
.about-row { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.about-row .label { flex: 1 1 200px; font-size: 14px; }
.about-text { flex: 3 1 480px; display: flex; flex-direction: column; gap: 24px; max-width: 820px; }

/* Footer */
.footer { padding-bottom: 28px; display: flex; flex-direction: column; gap: 56px; }
.footer-row { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-mail { flex: 2 1 320px; line-height: 1.4; overflow-wrap: anywhere; }
.footer .col { flex: 1 1 150px; display: flex; flex-direction: column; font-size: 14px; }
.footer .col a { padding: 10px 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; font-size: 12px; color: var(--muted); }

/* Kaart-detail */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(255, 255, 255, .97); display: grid; place-items: center; padding: 56px var(--pad) 32px; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-in { width: min(1100px, 100%); }
.modal img { width: 100%; max-height: 72vh; object-fit: contain; background: var(--bg); }
.detail-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-top: 20px; }
.detail-meta h3 { font-size: 20px; }
.detail-meta .muted { font-size: 14px; }
.detail-ctl { display: flex; align-items: center; gap: 24px; }
.close { position: absolute; top: 18px; right: var(--pad); padding: 8px; margin: -8px; }
.close:hover { color: var(--hover); }

/* Aantal */
.qty { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; }
.qty button { width: 34px; height: 34px; font-size: 18px; color: var(--soft); }
.qty button:hover { color: var(--ink); }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }

/* Bestelling */
.drawer-bg { position: fixed; inset: 0; background: rgba(42, 42, 42, .18); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg); z-index: 61; transform: translateX(100%); visibility: hidden; transition: transform 380ms cubic-bezier(.4,0,.2,1), visibility 0s linear 380ms; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform 380ms cubic-bezier(.4,0,.2,1); }
body.drawer-open, body.modal-open { overflow: hidden; }
.drawer-head { position: relative; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-head .close { top: 26px; right: 28px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 28px 40px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.line img { width: 76px; height: 50px; object-fit: cover; background: var(--ph); }
.line-meta span { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.line-right { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.line .qty button { width: 28px; height: 28px; }
.empty { color: var(--muted); padding: 32px 0 8px; }
.totals { padding: 20px 0 4px; }
.total-row { display: flex; justify-content: space-between; font-size: 17px; font-variant-numeric: tabular-nums; }
.meter { height: 1px; background: var(--line); margin: 14px 0 10px; }
.meter span { display: block; height: 1px; width: 0; background: var(--ink); transition: width 400ms ease; }
form { margin-top: 32px; }
form h4 { font-size: 17px; margin-bottom: 14px; }
form label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
form label span { display: block; margin-bottom: 4px; }
form input, form textarea { width: 100%; font: 300 16px Jost, system-ui, sans-serif; color: var(--ink); background: var(--bg); padding: 10px 0; border: 0; border-bottom: 1px solid var(--ul); border-radius: 0; }
form input:focus, form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }
form .small { margin: 6px 0 22px; line-height: 1.5; }
.submit { width: 100%; padding: 16px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 400; letter-spacing: .02em; transition: background 160ms ease; }
.submit:hover { background: #000; }

/* Toast */
.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -6px); background: var(--ink); color: #FFFFFF; padding: 10px 18px; font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity 220ms ease, transform 220ms ease; z-index: 80; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header { gap: 0 24px; }
  .nav { order: 3; width: 100%; gap: 0 22px; }
  .header-right { gap: 18px; }
  .hero-img { min-height: 0; aspect-ratio: 4 / 3; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .tile .tag { top: 8px; left: 8px; font-size: 11px; padding: 2px 7px; }
  .card-bar { padding: 8px 0 0; font-size: 13px; }
  .card-bar .add { font-size: 12px; }
  .card-bar .qty button { width: 22px; height: 22px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .type-pick { grid-template-columns: 1fr; gap: 10px; }
  .type-card { grid-template-columns: 96px 1fr auto; gap: 14px; padding: 10px 14px 10px 10px; }
  .type-card img { width: 96px; }
  .type-info h3 { font-size: 19px; }
  .card-bar .name small { font-size: 10px; }
  .cartbar-in { padding: 12px 16px; gap: 12px; }
  .bar-btn { padding: 12px 16px; font-size: 14px; }
  #cartSum { display: none; }
  .wall-img { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
