/* ============================================================
   Drijver's TC — jubilee website layout + components.
   Tokens come from tokens.css; this file is layout, page chrome
   and the reusable component styles (button, tag, card, field).
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--sand { background: var(--surface-sunken); }
.section--ink { background: var(--surface-inverse); color: var(--text-on-dark); }
.section--red { background: var(--surface-brand); color: var(--text-on-brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: var(--text-sm); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--red-600);
}
.section--ink .eyebrow, .section--red .eyebrow { color: var(--gold-300); }

.h-display { font-family: var(--font-display); font-weight: 900; line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.serif { font-family: var(--font-serif); }
.muted { color: var(--text-muted); }
.section--ink .muted, .section--red .muted { color: rgba(255,255,255,0.82); }
.lead { font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--text-muted); max-width: 60ch; }

/* subtle diamond accent (75 jaar = diamant) — used sparingly */
.diamond { width: 0.6em; height: 0.6em; flex: none; transform: rotate(45deg); display: inline-block;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }

/* lucide icon wrapper */
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic svg { width: 1em; height: 1em; }

/* ---------- top nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--border); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 0.7rem; flex: none; font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: var(--tracking-tight); font-size: 1.05rem; cursor: pointer; }
.nav__brand img { width: 40px; height: 40px; }
.nav__brand span { white-space: nowrap; }
.nav__brand small { display:block; font-family: var(--font-serif); font-weight: 500; font-style: italic;
  text-transform: none; letter-spacing: 0; font-size: 0.7rem; color: var(--text-subtle); margin-top: -2px; }
.nav__menu { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav__links { display: flex; gap: 0.35rem; }
.nav__link { padding: 0.5rem 0.85rem; border-radius: var(--radius-md); font-weight: var(--fw-semibold);
  font-size: var(--text-sm); color: var(--text-muted); cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.nav__link:hover { background: var(--red-50); color: var(--text); }
.nav__link.is-active { color: var(--primary); background: var(--red-50); }
.nav__burger { display: none; margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--text); padding: 0.4rem; border-radius: var(--radius-md); }
.nav__burger:hover { background: var(--red-50); }
.nav__burger svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem;
    position: absolute; left: 0; right: 0; top: 72px; margin: 0;
    background: var(--cream); border-bottom: 1.5px solid var(--border);
    padding: 0.75rem var(--gutter) 1.25rem; box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links { flex-direction: column; gap: 0.25rem; }
  .nav.is-open .nav__link { padding: 0.7rem 0.85rem; font-size: var(--text-base); }
  .nav.is-open .nav__cta .dtc-btn { width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__count { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill); font-weight: var(--fw-bold); font-size: var(--text-sm); }
.hero__big { font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 125;
  font-size: var(--display); line-height: 0.82; letter-spacing: -0.02em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; font-weight: var(--fw-semibold); }
.hero__meta-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta-item svg { width: 1.1em; height: 1.1em; }

/* seam motif background (masked) */
.hero__seam { position: absolute; inset: 0; pointer-events: none; opacity: 0.12; background: #fff;
  -webkit-mask-image: url(assets/logo/dtc-seam.svg); mask-image: url(assets/logo/dtc-seam.svg);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 150%; mask-size: 150%;
  -webkit-mask-position: center; mask-position: center; }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px){ .grid--3,.grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid--2,.grid--3,.grid--4 { grid-template-columns: 1fr; } }

/* responsive: klap inline tweekoloms-secties in op mobiel */
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr !important; }
  .split .unstick, .unstick { position: static !important; top: auto !important; }
}

.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.section-head h2 { font-size: var(--text-4xl); font-weight: 800; }

/* ---------- program list ---------- */
.prog { display: flex; flex-direction: column; }
.prog__row { display: grid; grid-template-columns: 132px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1.5px solid var(--border); }
.prog__row:last-child { border-bottom: 1.5px solid var(--border); }
.prog__time { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--primary); }
.prog__time span { display:block; font-size: 0.8rem; color: var(--text-subtle); font-weight: var(--fw-semibold); }
.prog__body { display: flex; flex-direction: column; gap: 0.5rem; }
.prog__title { display:flex; align-items:center; gap: 0.7rem; }
.prog__title h3 { font-size: 1.4rem; font-weight: 800; }
.prog__ic { width: 38px; height: 38px; flex:none; display:grid; place-items:center; border-radius: var(--radius-md);
  background: var(--red-50); color: var(--primary); }
.prog__ic svg { width: 20px; height: 20px; }
@media (max-width: 560px){ .prog__row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ---------- timeline ---------- */
.timeline { position: relative; display:flex; flex-direction: column; gap: 0; }
.timeline__row { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; padding: 1.3rem 0; position: relative; }
.timeline__year { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--primary); text-align: right; padding-right: 1.15rem; }
.timeline__dot { position:absolute; left: 96px; top: 1.7rem; width: 14px; height: 14px; transform: translateX(-50%);
  border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--cream); }
.timeline__line { position:absolute; left: 96px; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--border-strong); }
.timeline__body { padding-left: 1.5rem; }
.timeline__body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.25rem; }
.timeline__row--ph .timeline__year, .timeline__row--ph .timeline__dot { opacity: 0.4; }

/* ---------- footer ---------- */
.footer { background: var(--surface-inverse); color: var(--text-on-dark); padding-block: clamp(2.5rem,5vw,4rem); }
.footer a { cursor: pointer; }
.footer a:hover { color: var(--gold-300); }
.footer__top { display:flex; flex-wrap:wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer__brand { display:flex; align-items:center; gap: 0.8rem; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; }
.footer__brand img { width: 52px; height: 52px; }
.footer__cols { display:flex; gap: 3rem; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--font-sans); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--gold-300); margin: 0 0 0.7rem; }
.footer__col a, .footer__col p { display:block; color: rgba(255,255,255,0.8); font-size: var(--text-sm); padding: 0.2rem 0; }
.footer__bar { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: var(--text-sm); color: rgba(255,255,255,0.6); display:flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- sponsors ---------- */
.sponsor { aspect-ratio: 3/2; border-radius: var(--radius-lg); border: 1.5px solid var(--border); background: var(--surface);
  display:grid; place-items:center; color: var(--text-subtle); font-weight: var(--fw-bold); letter-spacing: 0.02em;
  text-align:center; padding: 1rem; font-size: var(--text-sm); }

/* ---------- memory tiles ---------- */
.memwall { columns: 4; column-gap: 1rem; }
@media (max-width: 1080px){ .memwall { columns: 3; } }
@media (max-width: 860px){ .memwall { columns: 2; } }
.memtile { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius-lg); overflow: hidden;
  border: 1.5px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs); }
.memtile img { width: 100%; display: block; cursor: zoom-in; }
.memtile figcaption { padding: 0.7rem 0.9rem; font-size: var(--text-sm); color: var(--text-muted); font-style: italic; font-family: var(--font-serif); }

/* Memory Lane op telefoon: één grote full-bleed foto per rij, bijschrift eroverheen */
@media (max-width: 768px){
  .memwall { columns: 1; column-gap: 0; margin-inline: calc(var(--gutter) * -1); }
  .memtile { position: relative; margin-bottom: 0.6rem; border: none; border-radius: 0; box-shadow: none; background: #000; }
  .memtile img { width: 100%; }
  .memtile figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
    padding: 2.6rem 1.15rem 1rem; color: #fff; font-style: italic;
    font-size: 1rem; line-height: 1.4; text-shadow: 0 1px 12px rgba(0,0,0,0.5);
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%); }
}

/* ---------- lightbox (klikbare foto's) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(33,26,24,0.92); padding: 4vw; cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); cursor: default; }
.lightbox__cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: #fff;
  font-size: var(--text-sm); font-family: var(--font-serif); font-style: italic; padding: 0 1.5rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1.2rem; color: #fff; background: rgba(255,255,255,0.14);
  border: none; cursor: pointer; padding: 0.5rem; border-radius: var(--radius-pill); display: inline-flex; }
.lightbox__close svg { width: 24px; height: 24px; }

.cover { width:100%; height:100%; object-fit: cover; }
.ratio { position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.ratio--wide { aspect-ratio: 16/10; }
.ratio--sq { aspect-ratio: 1/1; }

.band { display:inline-flex; align-items:center; gap:0.5rem; font-weight: var(--fw-semibold); }
.band__chip { width: 26px; height: 26px; border-radius: 50%; }

/* upload dropzone (Memory Lane) */
.dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.5rem;
  padding:1.6rem; border-radius: var(--radius-lg); border:2px dashed var(--border-strong); cursor:pointer;
  color: var(--text-muted); background: var(--surface-sunken); text-align:center; }
.dropzone svg { width: 28px; height: 28px; color: var(--primary); }

/* inschrijven — onderdeel toggles */
.onderdeel { display:flex; align-items:flex-start; gap:0.8rem; padding:0.9rem 1rem; cursor:pointer;
  border:1.5px solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius-md); transition: all var(--dur-fast) var(--ease-out); }
.onderdeel input { position:absolute; opacity:0; width:0; height:0; }
.onderdeel__box { width:22px; height:22px; flex:none; border-radius:6px; margin-top:1px;
  border:2px solid var(--stone-400); background:transparent; display:grid; place-items:center; color:#fff;
  transition: all var(--dur-fast) var(--ease-out); }
.onderdeel__box svg { width: 14px; height: 14px; opacity: 0; }
.onderdeel__title { font-weight:700; display:inline-flex; align-items:center; gap:0.45rem; }
.onderdeel__title svg { color: var(--primary); width: 16px; height: 16px; }
.onderdeel input:checked ~ * .onderdeel__noop { } /* placeholder */
.onderdeel:has(input:checked) { border-color: var(--primary); background: var(--red-50); }
.onderdeel:has(input:checked) .onderdeel__box { border-color: var(--primary); background: var(--primary); }
.onderdeel:has(input:checked) .onderdeel__box svg { opacity: 1; }

/* ============================================================
   COMPONENTS (ported from the design-system primitives)
   ============================================================ */

/* ---- Button ---- */
.dtc-btn{
  --_bg: var(--primary); --_fg: var(--on-primary); --_bd: transparent;
  display:inline-flex; align-items:center; justify-content:center; gap:0.5em;
  font-family:var(--font-sans); font-weight:var(--fw-bold);
  line-height:1; letter-spacing:0.01em; text-decoration:none; white-space:nowrap;
  border:var(--border-width) solid var(--_bd); border-radius:var(--radius-md);
  background:var(--_bg); color:var(--_fg); cursor:pointer;
  transition:transform var(--dur-fast) var(--ease-out),
             background var(--dur-fast) var(--ease-out),
             box-shadow var(--dur-fast) var(--ease-out),
             border-color var(--dur-fast) var(--ease-out);
}
.dtc-btn:focus-visible{ outline:none; box-shadow:var(--ring-focus); }
.dtc-btn:active{ transform:scale(0.97); }
.dtc-btn:disabled{ opacity:0.45; cursor:not-allowed; transform:none; box-shadow:none; }
.dtc-btn--sm{ font-size:var(--text-sm); padding:0.5rem 0.85rem; }
.dtc-btn--md{ font-size:var(--text-base); padding:0.7rem 1.2rem; }
.dtc-btn--lg{ font-size:var(--text-lg); padding:0.9rem 1.6rem; }
.dtc-btn--pill{ border-radius:var(--radius-pill); }
.dtc-btn--block{ display:flex; width:100%; }
.dtc-btn--primary{ --_bg:var(--primary); --_fg:var(--on-primary); box-shadow:var(--shadow-red); }
.dtc-btn--primary:hover:not(:disabled){ --_bg:var(--primary-hover); transform:translateY(-1px); }
.dtc-btn--primary:active:not(:disabled){ --_bg:var(--primary-active); transform:scale(0.97); }
.dtc-btn--secondary{ --_bg:var(--surface); --_fg:var(--primary); --_bd:var(--primary); box-shadow:var(--shadow-xs); }
.dtc-btn--secondary:hover:not(:disabled){ --_bg:var(--red-50); }
.dtc-btn--ghost{ --_bg:transparent; --_fg:var(--primary); --_bd:transparent; }
.dtc-btn--ghost:hover:not(:disabled){ --_bg:var(--red-50); }
.dtc-btn--dark{ --_bg:var(--ink); --_fg:var(--text-on-dark); }
.dtc-btn--dark:hover:not(:disabled){ --_bg:var(--stone-800); transform:translateY(-1px); }
.dtc-btn__i{ display:inline-flex; align-items:center; }
.dtc-btn__i svg{ width:1.15em; height:1.15em; }

/* ---- Tag ---- */
.dtc-tag{
  --_bg: var(--red-500); --_fg: var(--white); --_bd: transparent;
  display:inline-flex; align-items:center; gap:0.4em; align-self:flex-start;
  font-family:var(--font-sans); font-weight:var(--fw-bold);
  letter-spacing:var(--tracking-wide); text-transform:uppercase;
  border:var(--border-width) solid var(--_bd); border-radius:var(--radius-pill);
  background:var(--_bg); color:var(--_fg); white-space:nowrap; line-height:1;
  font-size:0.75rem; padding:0.4rem 0.8rem;
}
.dtc-tag--sm{ font-size:0.6875rem; padding:0.3rem 0.6rem; }
.dtc-tag--red{    --_bg:var(--red-500);  --_fg:var(--white); }
.dtc-tag--gold{   --_bg:var(--gold-100); --_fg:var(--gold-700); }
.dtc-tag--ink{    --_bg:var(--ink);      --_fg:var(--cream); }
.dtc-tag--outline{--_bg:transparent;     --_fg:var(--text-muted); --_bd:var(--stone-300); }
.dtc-tag--soft{   --_bg:var(--red-50);   --_fg:var(--red-700); }
.dtc-tag__dot{ width:0.5em; height:0.5em; border-radius:var(--radius-pill); background:currentColor; }
.dtc-tag svg{ width:1.05em; height:1.05em; }

/* ---- Card ---- */
.dtc-card{
  display:flex; flex-direction:column;
  background:var(--surface); color:var(--text);
  border:var(--border-width) solid var(--border);
  border-radius:var(--radius-card); box-shadow:var(--shadow-sm);
  overflow:hidden;
  transition:transform var(--dur-normal) var(--ease-out),
             box-shadow var(--dur-normal) var(--ease-out);
}
.dtc-card--interactive{ cursor:pointer; }
.dtc-card--interactive:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.dtc-card--interactive:active{ transform:translateY(-1px); }
.dtc-card--flat{ box-shadow:none; }
.dtc-card__media{ position:relative; width:100%; aspect-ratio:16/10; background:var(--sand); overflow:hidden; }
.dtc-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.dtc-card__media-tag{ position:absolute; top:0.75rem; left:0.75rem; }
.dtc-card__body{ display:flex; flex-direction:column; gap:0.5rem; }
.dtc-card__body--sm{ padding:1rem; }
.dtc-card__body--md{ padding:1.5rem; }
.dtc-card__body--lg{ padding:2rem; }

/* ---- extra personen (repeater op aanmeldformulier) ---- */
.persoon-row { display:flex; gap:0.6rem; align-items:center; flex-wrap:wrap; }
.persoon-row input { flex:1 1 150px; }
.persoon-row select { flex:0 1 160px; }
.persoon-row__del { flex:none; padding:0.55rem; }
.persoon-row__del svg { width:18px; height:18px; }

/* ---- Field ---- */
.dtc-field{ display:flex; flex-direction:column; gap:0.4rem; font-family:var(--font-sans); }
.dtc-field__label{ font-size:var(--text-sm); font-weight:var(--fw-semibold); color:var(--text); }
.dtc-field__req{ color:var(--primary); margin-left:0.15em; }
.dtc-field__control{
  font-family:var(--font-sans); font-size:var(--text-base); color:var(--text);
  background:var(--surface); border:var(--border-width) solid var(--border-strong);
  border-radius:var(--radius-md); padding:0.65rem 0.85rem; width:100%;
  transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.dtc-field__control::placeholder{ color:var(--text-subtle); }
.dtc-field__control:hover{ border-color:var(--stone-400); }
.dtc-field__control:focus{ outline:none; border-color:var(--primary); box-shadow:var(--ring-focus); }
.dtc-field__control:disabled{ background:var(--sand); color:var(--text-subtle); cursor:not-allowed; }
textarea.dtc-field__control{ min-height:6rem; resize:vertical; }
select.dtc-field__control{ appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2361564D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 0.85rem center; padding-right:2.2rem; }
.dtc-field__hint{ font-size:var(--text-sm); color:var(--text-subtle); }
.dtc-field--error .dtc-field__control{ border-color:var(--danger); }
.dtc-field--error .dtc-field__hint{ color:var(--danger); }

/* ---- SeamDivider ---- */
.dtc-seam-divider{ width:100%; line-height:0; }
.dtc-seam-divider svg{ display:block; width:100%; }
