/* Contactpagina (/contact/). De HTML komt uit build/contact.py, de teksten uit contact/contact.json. */

@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/shop/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

.ct {
  --ink: #f4f1e8;
  --muted: #bdb8aa;
  --surface: #1f1e1a;
  --surface-2: #282722;
  --surface-3: #312f29;
  --line: rgba(244, 241, 232, .09);
  --line-2: rgba(244, 241, 232, .16);
  --yellow: #f9fb00;
  --amber: #fcc400;
  --dark: #12120f;
  --error: #ff7a59;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) 0 72px;
  color: var(--ink);
  font-weight: 400;
}
.ct :where(h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend) { margin: 0; padding: 0; }
.ct :where(ul, ol) { list-style: none; }
.ct fieldset { border: 0; min-width: 0; }
.ct a { text-decoration: none; color: inherit; }
.ct :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.ct ::selection { background: var(--yellow); color: var(--dark); }
.ct-ico { width: 1em; height: 1em; flex: none; }
.ct :is(p, li, dd) { font-weight: 400; }
.ct-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ct .ct-h2 {
  font: 700 clamp(2rem, 1.4rem + 2.2vw, 3rem)/.98 var(--display);
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.ct .ct-h3 { font: 700 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--yellow); }
.ct .ct-text { font-size: 1.04rem; line-height: 1.6; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.ct-sec { margin-top: clamp(64px, 8vw, 104px); }
.ct-sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }

/* ---------- bovenaan: intro links, formulier rechts ---------- */
.ct-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.ct-intro { display: grid; gap: 24px; padding-top: 8px; }
.ct .ct-lead {
  font-size: clamp(1.15rem, 1.02rem + .5vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}
.ct .ct-reply { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 40ch; }
.ct-reply .ct-ico { width: 20px; height: 20px; margin-top: 2px; color: var(--yellow); }

.ct-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ct-mail__label { flex-basis: 100%; font-size: .9rem; color: var(--muted); }
.ct .ct-mail__addr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ct-mail__addr span { border-bottom: 1px solid var(--line-2); transition: border-color 160ms ease; }
.ct-mail__addr .ct-ico { width: 20px; height: 20px; color: var(--yellow); }
.ct .ct-mail__copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--ink);
  font: 600 .88rem/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.ct .ct-mail__copy[hidden] { display: none; }
.ct-mail__copy:active { transform: scale(.96); }
.ct-mail__copy .ct-ico { width: 16px; height: 16px; }
.ct-mail__copy .ct-ico:nth-of-type(2), .ct-mail__copy.is-done .ct-ico:first-of-type { display: none; }
.ct-mail__copy.is-done .ct-ico:nth-of-type(2) { display: block; }
.ct .ct-mail__copy.is-done { background: var(--yellow); color: var(--dark); }

.ct-team { display: grid; gap: 10px; max-width: 340px; }
.ct-team img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 16px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8);
}
.ct-team figcaption { font-size: .9rem; color: var(--muted); }

/* ---------- formulier ---------- */
.ct-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.6vw, 44px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--line);
}
.ct-form .ct-h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.ct-topics { display: grid; gap: 12px; }
.ct-topics legend { margin-bottom: 12px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.ct-topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-topic { position: relative; cursor: pointer; }
.ct-topic input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ct-topic span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--dark);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
  font-size: .97rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.ct-topic input:checked + span { background: var(--yellow); color: var(--dark); box-shadow: none; font-weight: 600; }
.ct-topic input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.ct-topic:active span { transform: scale(.97); }

/* Tip en bestelnummer alleen bij het gekozen onderwerp (zonder JS, via :has) */
.ct-hints:empty { display: none; }
.ct .ct-hint, .ct-order { display: none; }
.ct .ct-hint {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.55;
  text-wrap: pretty;
  animation: ct-in 260ms var(--ease-out);
}
.ct-hint a { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 600; white-space: nowrap; }
.ct-form:has(#ct-t-bestelling:checked) :is(.ct-hint[data-for="bestelling"], .ct-order[data-for="bestelling"]),
.ct-form:has(#ct-t-spel:checked) .ct-hint[data-for="spel"],
.ct-form:has(#ct-t-samenwerken:checked) .ct-hint[data-for="samenwerken"],
.ct-form:has(#ct-t-montage:checked) .ct-hint[data-for="montage"] { display: block; }
@keyframes ct-in { from { opacity: 0; transform: translateY(-4px); } }

.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-field { display: grid; gap: 8px; }
.ct-field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.ct-field label span { font-weight: 400; color: var(--muted); }
.ct .ct-field :is(input, textarea) {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--dark);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  font-family: inherit;
  box-shadow: inset 0 0 0 1px var(--line-2);
  outline: none;
  caret-color: var(--yellow);
  transition: box-shadow 160ms ease;
}
.ct .ct-field input::placeholder { color: #8d887b; }
.ct .ct-field textarea { resize: vertical; min-height: 170px; }
.ct .ct-field :is(input, textarea):focus { box-shadow: inset 0 0 0 2px var(--yellow); }
.ct .ct-field :is(input, textarea):user-invalid { box-shadow: inset 0 0 0 2px var(--error); }

.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.ct .ct-send button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--dark);
  font: 700 1.2rem/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.ct .ct-send button:active { transform: scale(.97); }
.ct-send .ct-ico { transition: transform 200ms var(--ease-out); }
.ct .ct-privacy { flex: 1 1 220px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.ct-privacy a { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- snelkoppelingen ---------- */
.ct-shorts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: 28px; border-top: 1px solid var(--line); }
.ct-short {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.ct-short__title { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.ct-short__text { grid-column: 1; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.ct-short .ct-ico { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--yellow); transition: transform 200ms var(--ease-out); }

/* ---------- socials ---------- */
.ct-chans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.ct-chan {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.ct-chan__logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; }
.ct-chan__logo svg { width: 26px; height: 26px; }
.ct-chan__body { display: grid; gap: 6px; }
.ct-chan__name { font: 700 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.ct-chan__text { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.ct-chan__go { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 600; }
.ct-chan__go .ct-ico { transition: transform 200ms var(--ease-out); }

/* ---------- bedrijfsgegevens ---------- */
.ct-company { display: grid; gap: 18px; padding-top: 32px; border-top: 1px solid var(--line); }
.ct-company dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; }
.ct-company dt { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.ct-company dd { font-size: .98rem; line-height: 1.5; color: var(--ink); font-variant-numeric: tabular-nums; }
.ct-company dd a, .ct-company__note a { text-decoration: underline !important; text-underline-offset: 3px; }
.ct .ct-company__note { font-size: .93rem; line-height: 1.55; color: var(--muted); }

/* ---------- hover alleen met muis ---------- */
@media (hover: hover) and (pointer: fine) {
  .ct .ct-send button:hover { background: var(--amber); }
  .ct .ct-send button:hover .ct-ico, .ct-short:hover .ct-ico, .ct-chan:hover .ct-chan__go .ct-ico, .ct-hint a:hover .ct-ico { transform: translateX(3px); }
  .ct-topic:hover input:not(:checked) + span { background: var(--surface-3); }
  .ct-short:hover { background: var(--surface); }
  .ct-chan:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
  .ct-mail__addr:hover span { border-color: var(--yellow); }
  .ct .ct-mail__copy:not(.is-done):hover { background: var(--surface-2); color: var(--yellow); }
}

/* ---------- tablet en mobiel ---------- */
@media (max-width: 960px) {
  .ct-top { grid-template-columns: minmax(0, 1fr); }
  .ct-intro { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .ct-intro > :not(.ct-team) { grid-column: 1; }
  .ct-team { grid-column: 2; grid-row: 1 / span 3; width: 220px; }
  .ct-chans { grid-template-columns: minmax(0, 1fr); }
  .ct-chan { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; align-items: center; padding: 18px; }
  .ct-chan__go { grid-column: 2; }
}
@media (max-width: 760px) {
  .ct { padding-top: 12px; }
  .ct-intro { grid-template-columns: minmax(0, 1fr); }
  .ct-team { display: none; }
  .ct-form { margin-inline: -4px; padding: 24px 18px; }
  .ct-row, .ct-shorts { grid-template-columns: minmax(0, 1fr); }
  .ct-mail__copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ct *, .ct *::before, .ct *::after { transition-duration: 1ms !important; animation: none !important; }
}
