/* ============================================================
   WebOké footer (taak 373, handoff ~/docs/design/weboke-footer-handoff.zip, 26 nov 2026)
   Leunt op de variabelen uit header.css; elke var heeft een fallback.
   Alles is gescoped onder .wok-footer.
   Breekpunten: mobiel < 768px · tablet 768–1099px · desktop >= 1100px
   ============================================================ */

/* Variabel Roboto (alle gewichten), zoals de nieuwe pagina's: de gewone site-Roboto heeft geen vette varianten. */
@font-face { font-family: 'Roboto VF'; src: url('fonts/roboto-vf-wght.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

.wok-footer {
  /* Footer-eigen waarden (niet in tokens.css): tekst en lijnen op navy */
  --wf-navy: var(--grad-start, #152a80);
  --wf-text-2: rgba(255, 255, 255, .82);   /* links, tagline · 8,9:1 op navy */
  --wf-text-3: rgba(255, 255, 255, .62);   /* juridisch, copyright · 5,7:1 op navy */
  --wf-line: rgba(255, 255, 255, .14);
  --wf-ghost-bg: rgba(255, 255, 255, .08);
  --wf-ghost-border: rgba(255, 255, 255, .3);
  --wf-accent: var(--accent-yellow, #ffd166);
  --wf-mono: var(--font-mono, 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace);
  --wf-ease: var(--ease-standard, cubic-bezier(.4, 0, .2, 1));

  color: #fff;
  font-family: 'Roboto VF', var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif);
  font-size: var(--fs-body, 15px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wok-footer *, .wok-footer *::before, .wok-footer *::after { box-sizing: border-box; }
.wok-footer h2, .wok-footer h3, .wok-footer p, .wok-footer ul { margin: 0; padding: 0; }
.wok-footer ul { list-style: none; }
.wok-footer a { text-decoration: none; }
.wok-footer img { display: block; flex: none; }
.wok-footer svg { flex: none; }
.wok-footer a:focus-visible,
.wok-footer button:focus-visible { outline: 2px solid var(--wf-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Golfrand ---------- */
/* Afwijking van de handoff: de golf hangt als overlay óver de onderrand van de sectie erboven (zoals de oude
   footer), zodat de golfdalen de echte sectiekleur tonen en niet de witte body (de 'witte balk'). */
.wok-footer { position: relative; }
.wok-footer__wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 72px; overflow: hidden; pointer-events: none; }
/* dunne navy strook onderaan: voorkomt een lichte naad tijdens het deinen */
.wok-footer__wave::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--wf-navy); }
.wok-footer__wave-swell { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 100%; animation: wok-footer-swell 12s ease-in-out infinite alternate; }
.wok-footer__wave-layer { position: absolute; left: 0; top: 0; height: 100%; max-width: none; animation: wok-footer-drift 36s linear infinite; will-change: transform; }
/* elk SVG bevat twee identieke periodes: -50% verschuiven = naadloze lus */
.wok-footer__wave-layer--back { width: 260%; animation-duration: 54s; animation-direction: reverse; }
.wok-footer__wave-layer--front { width: 200%; }
@keyframes wok-footer-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wok-footer-swell { from { transform: scaleY(1); } to { transform: scaleY(1.06); } }

/* ---------- Basis ---------- */
.wok-footer__body { background: var(--wf-navy); }
.wok-footer__inner { max-width: var(--container-max, 1288px); margin: 0 auto; padding: 16px var(--container-pad, 24px) 28px; display: flex; flex-direction: column; gap: 40px; }

/* ---------- Knoppen ---------- */
.wok-footer__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm, 8px); font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: transform var(--dur-fast, .15s) var(--wf-ease); }
.wok-footer__btn:hover { transform: translateY(-1px); text-decoration: none; }
.wok-footer__btn--white { background: #fff; color: var(--wf-navy); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.wok-footer__btn--ghost { background: var(--wf-ghost-bg); border: 1px solid var(--wf-ghost-border); color: #fff; }
.wok-footer__btn--sm { padding: 0 16px; font-size: 14px; }
.wok-footer__btn-icon { width: 20px; height: 20px; }

/* ---------- 1. Contactblok ---------- */
.wok-footer__help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 24px; border-radius: var(--radius-lg, 18px); background: linear-gradient(135deg, var(--grad-start, #152a80), var(--grad-end, #1d65af)); border: 1px solid rgba(255, 255, 255, .2); }
.wok-footer__help-text { flex: 1 1 320px; min-width: 0; }
.wok-footer__help-title { font-size: var(--fs-h4, 18px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
.wok-footer__help-sub { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.wok-footer__help-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 2. Merkblok + navigatie ---------- */
.wok-footer__main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.wok-footer__brand { flex: 1 1 300px; max-width: 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wok-footer__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.wok-footer__logo-text { font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.wok-footer__logo-text span { color: var(--wf-accent); }
.wok-footer__tagline { font-size: 15px; line-height: 1.55; color: var(--wf-text-2); }
.wok-footer__rating { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; font-size: var(--fs-caption, 13px); line-height: 1.4; color: var(--wf-text-2); }
.wok-footer__rating:hover { color: #fff; text-decoration: underline; }
.wok-footer__rating strong { font-weight: 700; color: #fff; }
.wok-footer__stars { font-size: 15px; letter-spacing: 1px; color: var(--wf-accent); }
.wok-footer__apps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wok-footer__apps a { display: block; border-radius: 6px; transition: transform var(--dur-fast, .15s) var(--wf-ease); }
.wok-footer__apps a:hover { transform: translateY(-1px); }
.wok-footer__apps img { height: 40px; width: auto; max-width: none; }
.wok-footer__apps-mobile { display: none; }

.wok-footer__nav { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.wok-footer__heading { margin-bottom: 14px; font-size: inherit; font-weight: inherit; }
/* De kolomkop is een <button>: op desktop uitgeschakeld (oogt en gedraagt zich als kop), op mobiel de accordeonknop. */
.wok-footer__toggle { appearance: none; width: 100%; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border: 0; text-align: left; cursor: default;
  font-family: var(--wf-mono); font-size: var(--fs-eyebrow, 12px); font-weight: 600; line-height: 1.5; letter-spacing: 1.6px; text-transform: uppercase; color: var(--wf-accent); }
.wok-footer__toggle:disabled { color: var(--wf-accent); opacity: 1; }
.wok-footer__toggle-icon { display: none; width: 18px; height: 18px; color: var(--wf-text-2); transition: transform var(--dur-base, .25s) var(--wf-ease); }
.wok-footer__links a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.4; color: var(--wf-text-2); }
.wok-footer__links a:hover { color: #fff; text-decoration: underline; }

/* ---------- 3. Keurmerken + juridisch ---------- */
.wok-footer__end { display: flex; flex-direction: column; gap: 24px; }
.wok-footer__badges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.wok-footer__badges li { display: flex; min-width: 0; }
.wok-footer__badge { flex: 1; min-width: 0; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: var(--radius-md, 12px); background: var(--surface, #fff); color: var(--gray-darker, #17191c); text-align: center; transition: transform var(--dur-fast, .15s) var(--wf-ease), box-shadow var(--dur-fast, .15s) var(--wf-ease); }
.wok-footer__badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); text-decoration: none; }
.wok-footer__badge--seal { flex-direction: row; gap: 10px; text-align: left; }
.wok-footer__badge-img { height: 60px; width: auto; max-width: none; }
.wok-footer__badge-img--square { height: 56px; }
.wok-footer__badge-img--logo { height: 40px; max-width: 100%; }
.wok-footer__badge-img--wide { height: 30px; }
.wok-footer__badge-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wok-footer__badge-title { font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.wok-footer__badge-caption { font-family: var(--wf-mono); font-size: 10px; font-weight: 600; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; overflow-wrap: anywhere; color: var(--gray-base, #5e636e); }

.wok-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--wf-line); font-size: var(--fs-caption, 13px); line-height: 1.5; }
.wok-footer__copy { color: var(--wf-text-3); }
.wok-footer__legal { display: flex; flex-wrap: wrap; gap: 0 16px; }
.wok-footer__legal a { display: block; padding: 4px 0; color: var(--wf-text-3); }
.wok-footer__legal a:hover { color: #fff; text-decoration: underline; }

/* Keurmerken: zes op een rij past pas vanaf 1240px (anders loopt de tekst naast de zegels de tegel uit) */
@media (max-width: 1239.98px) {
  .wok-footer__badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   Tablet: 768–1099px
   Merkblok over de volle breedte (tekst links, login + apps rechts),
   navigatie blijft 4 kolommen, keurmerken 3 × 2.
   ============================================================ */
@media (max-width: 1099.98px) {
  .wok-footer__brand { flex: 1 1 100%; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 10px; align-items: center; }
  .wok-footer__logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .wok-footer__tagline { grid-column: 1; grid-row: 2; }
  .wok-footer__rating { grid-column: 1; grid-row: 3; justify-self: start; }
  .wok-footer__login { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; }
  .wok-footer__apps--brand { grid-column: 2; grid-row: 3; justify-self: end; }
  .wok-footer__nav { flex-basis: 100%; gap: 24px; }
}

/* ============================================================
   Mobiel: < 768px
   Alles onder elkaar, navigatie als accordeon, keurmerken 3 × 2.
   ============================================================ */
@media (max-width: 767.98px) {
  .wok-footer__wave { height: 44px; }
  .wok-footer__wave-layer--back { width: 480%; }
  .wok-footer__wave-layer--front { width: 360%; }

  .wok-footer__inner { padding: 24px 20px 24px; gap: 24px; }

  .wok-footer__help { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 16px; padding: 20px; }
  .wok-footer__help-text { flex: none; }
  .wok-footer__help-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wok-footer__help-actions .wok-footer__btn { min-height: 48px; padding: 0 10px; font-size: 14px; }
  .wok-footer__help-actions .wok-footer__btn--white { grid-column: 1 / -1; padding: 0 16px; font-size: 15px; }

  .wok-footer__main { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 24px; }
  .wok-footer__brand { display: flex; flex-direction: column; align-items: flex-start; flex: none; gap: 14px; }
  .wok-footer__rating { min-height: 44px; }
  .wok-footer__login { align-self: stretch; min-height: 48px; font-size: 15px; }
  .wok-footer__apps--brand { display: none; }

  /* Accordeon. Zonder JavaScript blijven alle groepen open. */
  .wok-footer__nav { flex: none; display: block; border-bottom: 1px solid var(--wf-line); }
  .wok-footer__group { border-top: 1px solid var(--wf-line); }
  .wok-footer__heading { margin-bottom: 0; }
  .wok-footer__toggle { min-height: 56px; }
  .wok-footer__links { padding-bottom: 8px; }
  .wok-footer__links a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .wok-footer--js .wok-footer__toggle { cursor: pointer; }
  .wok-footer--js .wok-footer__toggle-icon { display: block; }
  .wok-footer--js .wok-footer__group:not(.is-open) .wok-footer__links { display: none; }
  .wok-footer--js .wok-footer__group.is-open .wok-footer__toggle-icon { transform: rotate(45deg); }

  .wok-footer__badges { gap: 8px; }
  .wok-footer__badge { min-height: 96px; gap: 4px; padding: 8px 6px; }
  .wok-footer__badge--seal { flex-direction: column; gap: 4px; text-align: center; }
  .wok-footer__badge-img { height: 44px; }
  .wok-footer__badge-img--square { height: 44px; }
  .wok-footer__badge-img--logo { height: 28px; }
  .wok-footer__badge-img--wide { height: 20px; }
  /* zegel-tegels: titel en bijschrift worden samen één bijschrift in mono */
  .wok-footer__badge-text { display: block; font-size: 10px; line-height: 1.3; }
  .wok-footer__badge-title { display: block; font-family: var(--wf-mono); font-size: 10px; font-weight: 600; line-height: 1.3; letter-spacing: .4px; text-transform: uppercase; color: var(--gray-base, #5e636e); }
  .wok-footer__badge--flow .wok-footer__badge-title { display: inline; }
  .wok-footer__badge-caption { letter-spacing: .4px; overflow-wrap: normal; }
  .wok-footer__hide-mobile { display: none; }

  .wok-footer__apps-mobile { display: flex; flex-direction: column; gap: 10px; }
  .wok-footer__apps-label { font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; }
  .wok-footer__apps-mobile .wok-footer__apps { gap: 10px; }
  .wok-footer__apps-mobile .wok-footer__apps img { height: 44px; }

  .wok-footer__bottom { flex-direction: column-reverse; align-items: stretch; flex-wrap: nowrap; gap: 12px; padding-top: 0; border-top: 0; }
  .wok-footer__legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .wok-footer__legal a { display: flex; align-items: center; min-height: 44px; padding: 0; line-height: 1.4; }
}

/* Heel smalle telefoons: de twee secundaire knoppen passen niet meer naast elkaar */
@media (max-width: 359.98px) {
  .wok-footer__help-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  .wok-footer__wave-swell, .wok-footer__wave-layer { animation: none; }
  .wok-footer__btn, .wok-footer__apps a, .wok-footer__badge, .wok-footer__toggle-icon { transition: none; }
  .wok-footer__btn:hover, .wok-footer__apps a:hover, .wok-footer__badge:hover { transform: none; }
}

/* ---------- Aanvullingen voor weboke.nl ---------- */
/* Echt logo (wit, per taal/landsite) i.p.v. het vereenvoudigde logo uit de handoff. */
.wok-footer__logo img { height: 30px; width: auto; }
/* WhatsApp-icoon uit de eigen sprite (#i-wa). */
.wok-footer__btn-icon { color: #25d366; }
/* Cookie-instellingen is een knop (opent de cookiebanner), maar oogt als de andere juridische links. */
.wok-footer__legal button { display: block; padding: 4px 0; background: none; border: 0; font: inherit; color: var(--wf-text-3); cursor: pointer; text-align: left; }
.wok-footer__legal button:hover { color: #fff; text-decoration: underline; }
.wok-footer__copy a { color: inherit; }
.wok-footer__copy a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 767.98px) {
  .wok-footer__legal button { display: flex; align-items: center; min-height: 44px; padding: 0; line-height: 1.4; }
}
/* Google Play-badges met witruimte boven en onder (646×250): hoger tekenen en de rand wegwerken, zodat ze even hoog
   ogen als de App Store-badge. De badges van 646×192 hebben die rand niet en blijven zoals ze zijn. */
.wok-footer__apps img.wok-footer__play { height: 52px; margin: -6px 0; }
@media (max-width: 767.98px) { .wok-footer__apps-mobile .wok-footer__apps img.wok-footer__play { height: 57px; margin: -6.5px 0; } }
/* Lange vertalingen (bv. Duits "Schreiben Sie uns per WhatsApp") passen op smalle telefoons niet op één regel: op mobiel mag de knoptekst afbreken. */
@media (max-width: 767.98px) { .wok-footer__help-actions .wok-footer__btn { white-space: normal; text-align: center; padding-top: 6px; padding-bottom: 6px; } }
