/* Sinterklus & Bouwpiet — landingspagina Wijckmans */

@font-face { font-family: "GilroySK"; font-weight: 400; font-display: swap; src: url(/assets/site/fonts/Gilroy-Regular.ttf) format("truetype"); }
@font-face { font-family: "GilroySK"; font-weight: 600; font-display: swap; src: url(/assets/site/fonts/Gilroy-SemiBold.ttf) format("truetype"); }
@font-face { font-family: "GilroySK"; font-weight: 700; font-display: swap; src: url(/assets/site/fonts/Gilroy-Bold.ttf) format("truetype"); }
@font-face { font-family: "GilroySK"; font-weight: 800; font-display: swap; src: url(/assets/site/fonts/Gilroy-Heavy.ttf) format("truetype"); }

:root {
  --blue: #0083BE;
  --blue-deep: #00618D;
  --ice: #EBF4FA;
  --ice-strong: #D6EAF5;
  --line: #B9CCD6;
  --ink: #000;
  --muted: #5B7380;
  --hint: #7D97A4;
  --tag: #B8DEEC;
  --error: #C2261B;
  --white: #fff;

  --gutter: 16px;
  --radius: 6px;
  --font: "GilroySK", "Gilroy", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue); color: var(--white); }
.topbar__inner { max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter) 16px; }
.brand { display: inline-flex; flex-direction: column; gap: 8px; text-decoration: none; }
.brand img { width: 168px; height: auto; }
.brand__tag { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-areas: "media" "intro"; }
.hero__media { grid-area: media; position: relative; aspect-ratio: 596 / 720; overflow: hidden; background: #6FB5E6; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero__title {
  grid-area: media; align-self: start; z-index: 1;
  margin: 0; padding: clamp(28px, 9vw, 64px) var(--gutter) 0;
  font-weight: 700; line-height: .98; letter-spacing: -.02em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--sint { font-size: clamp(40px, 11.6vw, 72px); }
.hero__line--sint small { font-size: .5em; font-weight: 400; letter-spacing: 0; }
.hero__line--piet { font-size: clamp(40px, 11.6vw, 72px); color: var(--blue); }
.hero__line--sub { margin-top: .22em; font-size: clamp(22px, 6vw, 38px); font-weight: 400; letter-spacing: -.01em; }

.hero__intro { grid-area: intro; padding: 36px var(--gutter) 8px; max-width: 720px; }
.intro__title { margin: 0 0 18px; font-size: clamp(30px, 7.4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; }
.intro__title span { display: block; color: var(--blue); }
.hero__intro p { max-width: 60ch; }
.hero__jump { display: none; }

/* ---------- Letter (verlanglijstje + formulier) ---------- */
.letter-wrap { padding: 20px var(--gutter) 56px; scroll-margin-top: 12px; }
.letter { max-width: 720px; }
.letter__title { margin: 22px 0 28px; font-size: clamp(30px, 7.4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; }
.letter__salute { margin-bottom: 1.4em; }
.letter__sign { margin-top: 28px; }

.gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.gift { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.gift {
  min-height: 64px; padding: 10px 10px 10px 12px;
  background: var(--ice); border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: clamp(14.5px, 3.9vw, 17px); font-weight: 700; line-height: 1.15;
  transition: background-color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.gift input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gift__box {
  flex: none; position: relative; width: 26px; height: 26px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 4px;
  transition: background-color .15s, border-color .15s;
}
.gift__box::after {
  content: ""; position: absolute; left: 7.5px; top: 3px; width: 7px; height: 13px;
  border: solid var(--white); border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0); transform-origin: 60% 60%;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.gift__name { min-width: 0; overflow-wrap: break-word; }
input:checked + .gift__box { background: var(--blue); border-color: var(--blue); }
input:checked + .gift__box::after { transform: rotate(45deg) scale(1); }
.gift:has(input:checked) { background: var(--ice-strong); border-color: var(--blue); }
.gift:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) {
  .gift:hover { border-color: var(--blue); }
}

.fields { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
.field label, .address legend { display: block; margin-bottom: 10px; font-weight: 700; line-height: 1.3; }
.field input {
  width: 100%; height: 56px; padding: 0 20px;
  font: 400 16px/1 var(--font); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.field input::placeholder { color: var(--hint); opacity: 1; }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 131, 190, .22); }
.field input[type=number] { -moz-appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field__error { margin: 8px 0 0; color: var(--error); font-size: 15px; font-weight: 600; }
.is-invalid input { border-color: var(--error); }
.gifts.is-invalid .gift { border-color: var(--error); }

.address { margin: 0; padding: 0; border: 0; min-width: 0; }
.address legend { padding: 0; }
.address__grid { display: grid; grid-template-columns: 8em minmax(0, 1fr) 8em; gap: 12px; }
.address__street { grid-column: 1 / 3; }
.address__city { grid-column: 2 / 4; }
.question { margin-top: 40px; padding-top: 32px; border-top: 1.5px solid var(--line); }
.question__title { margin: 0 0 14px; font-size: clamp(24px, 5.6vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.question .field { margin-top: 22px; max-width: 420px; }


.form__status { margin: 24px 0 0; padding: 14px 16px; border-left: 4px solid var(--error); background: #FBEDEC; font-weight: 600; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px;
  margin-top: 28px; padding: 0 24px;
  font: 700 19px/1.2 var(--font); color: var(--white); text-decoration: none;
  background: var(--blue); border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--blue-deep); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn--ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn--ghost:hover { background: var(--ice); }
.recaptcha-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.recaptcha-note a { color: inherit; }
.grecaptcha-badge { visibility: hidden; }

.thanks:focus { outline: none; }
.thanks__label { margin-top: 1.4em; font-weight: 700; }
.thanks__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.thanks__list li { padding: 8px 14px; background: var(--ice-strong); border: 1.5px solid var(--blue); border-radius: var(--radius); font-weight: 700; }

.foot { padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); background: var(--ice); color: var(--muted); font-size: 14px; }
.foot p { max-width: 1240px; margin: 0 auto; }

/* Wedstrijdvoorwaarden */
.terms-wrap { padding-top: 32px; }
.terms__back { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; text-decoration: none; }
.terms__back::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.terms__back:hover { text-decoration: underline; }
.terms h2 { margin: 2em 0 .6em; font-size: clamp(20px, 4.8vw, 24px); line-height: 1.2; font-weight: 700; color: var(--blue); }
.terms__list { margin: 0; padding: 0; list-style: none; }
.terms__list li { position: relative; padding-left: 2.6em; margin-bottom: .7em; }
.terms__list span { position: absolute; left: 0; font-weight: 700; }
.terms a:not(.terms__back) { overflow-wrap: anywhere; }
.consent { margin-top: 32px; }
.consent__label { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.consent__label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__label a { color: var(--blue); font-weight: 700; }
.consent__label:has(input:focus-visible) .gift__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent.is-invalid .gift__box { border-color: var(--error); }

/* ---------- Kleine telefoons ---------- */
@media (max-width: 359px) {
  .gifts { grid-template-columns: 1fr; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 40px; }
  .brand img { width: 190px; }
  .hero__media { aspect-ratio: 5 / 4; }
  .hero__media img { object-position: 60% 6%; }
  .hero__intro { padding-top: 56px; }
  .letter-wrap { padding-top: 24px; padding-bottom: 80px; }
  .gifts { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gift { min-height: 70px; padding: 12px 14px; gap: 14px; }
  .gift__box { width: 30px; height: 30px; }
  .gift__box::after { left: 9px; top: 4px; width: 8px; height: 15px; }
  .fields { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .field--wide { grid-column: 1 / -1; }
  .btn { width: auto; min-width: 340px; }
}

/* ---------- Desktop: hero splitst, brief wordt een vel ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 56px; }
  body { font-size: 18px; }
  .topbar__inner { padding-top: 22px; padding-bottom: 20px; }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "title media" "intro media";
    min-height: min(calc(100vh - 96px), 900px);
    background: linear-gradient(180deg, #CFE6F5 0%, var(--white) 62%);
  }
  .hero__media { aspect-ratio: auto; min-height: 640px; }
  .hero__media img { position: absolute; inset: 0; object-position: 58% 62%; }
  .hero__title { grid-area: title; align-self: end; padding: 72px var(--gutter) 0 max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
  .hero__line--sint, .hero__line--piet { font-size: clamp(60px, 5.6vw, 96px); }
  .hero__line--sub { font-size: clamp(34px, 3.2vw, 52px); }
  .hero__intro { align-self: start; max-width: none; padding: 44px var(--gutter) 64px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
  .hero__intro > * { max-width: 560px; }
  .intro__title { font-size: 36px; }
  .hero__jump {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
    font-weight: 700; color: var(--blue); text-decoration: none;
    border-bottom: 2px solid currentColor; padding-bottom: 2px;
  }
  .hero__jump::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }

  .letter-wrap { background: var(--ice); padding: 96px var(--gutter) 120px; }
  .letter {
    max-width: 920px; margin: 0 auto; padding: 72px 88px 80px;
    background: var(--white); border: 1.5px solid var(--line); border-radius: 4px;
  }
  .letter__title { margin-top: 0; font-size: 52px; }
  .letter__salute { font-size: 21px; }
  .terms-wrap { padding-top: 64px; }
  .terms .letter__title { margin-top: 24px; }
}

@media (min-width: 1280px) {
  .hero { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
}

@media (min-width: 1400px) {
  .hero__intro .intro__title { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
