/*
 * Dop & Kreef concept — how controls answer a finger, shared by / and /multi/: the press state and ripple
 * (ripple.js), 44px hit areas on small text links, and the contact icons (WhatsApp's own glyph, a handset, an
 * envelope). Looks unchanged at rest (Waldo, 5 Oct 2026).
 */

/* press: the control answers the finger where it is, never a move or a scale, so the tapped control stays exactly
   where it was ("Nothing hops"; Waldo, 5 Oct 2026). The ripple is a wash of the label's own colour. Release eases
   back in 180ms. */
.press { position: relative; -webkit-tap-highlight-color: transparent; }
.press, .lang button, .contact a, .card, .item-card { transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, filter 180ms ease; }
/* the instant a finger lands (ripple.js adds it on pointerdown, so it shows on iPhone too) the control pushes out: it
   brightens and a soft ring swells 4px from its edge in 90ms, green on the green buttons; on release it settles back.
   Its size never changes, so nothing moves (5 Oct rule: no scale on press; Waldo, 7 Oct 2026). */
:is(.press, .lang button, .contact a):is(:active, .is-pressing) { filter: brightness(1.08); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cream) 16%, transparent); transition-duration: 90ms; }
.cta.wa:is(:active, .is-pressing) { box-shadow: 0 0 0 4px rgba(37,211,102,.32); }
:is(.filter-chip, .lang button):is(:active, .is-pressing) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
.ripple-layer { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0); animation: ripple-out 420ms cubic-bezier(.2,.7,.3,1); pointer-events: none; }
@keyframes ripple-out {
  from { transform: scale(0); opacity: .22; }
  to { transform: scale(1); opacity: 0; }
}

/* the top nav's links: an amber underline under the word itself, drawn in from the left under a mouse and kept on the
   current page. Each link keeps the width of its longer word (AF or EN) so nothing shifts; the line sits on the word's
   own span, so it is as wide as the word, not the reserved space (Waldo, 5 Oct 2026). ::after on the link is the 44px
   hit area below. */
nav ul a { transition: color 180ms ease; }
nav ul a:not(.cta):not(.wa-round) > .af, nav ul a:not(.cta):not(.wa-round) > .en { justify-self: center; position: relative; }
nav ul a:not(.cta):not(.wa-round) > span::before { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; pointer-events: none; }
nav ul a:not(.cta):not(.wa-round)[aria-current="page"] > span::before { transform: scaleX(1); }

/* only with a real mouse; colour changes only, nothing lifts or moves (Waldo, 7 Oct 2026) */
@media (hover: hover) {
  nav ul a:not(.cta):not(.wa-round):hover > span::before { transform: scaleX(1); transform-origin: left; }
  .lang button[aria-pressed="false"]:hover { background: color-mix(in srgb, var(--cream) 10%, transparent); }
  .item-card:hover { border-color: var(--line-2); }
}

@media (prefers-reduced-motion: reduce) {
  .press, .lang button, .contact a, .card, .item-card, nav ul a, nav ul a:not(.cta):not(.wa-round) > span::before { transition: none; }
  .ripple { display: none; }
}

/* a 44px-tall hit area around a small text link, without moving anything around it */
.tap { padding-block: 14px; margin-block: -14px; }

/* WhatsApp's own glyph in its own green (#25D366), never recoloured and nothing added to it (Meta's brand guidelines).
   In a text link it sits bare before the words; beside a green button it sits just outside it on the dark page, since
   on the button's green it would vanish (Waldo, 5 Oct 2026). The link always keeps the word "WhatsApp" as visible or
   screen-reader text. */
.wa-badge { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; flex: none; vertical-align: middle; margin-right: .4em; }
.wa-badge > .wa-glyph { width: 100%; height: 100%; }
.wa-pair { display: inline-flex; align-items: center; gap: 10px; }
.wa-pair > .cta { margin: 0; }
/* a pair sits in a row of buttons like a button: tops aligned (its first item is the glyph, which has no text
   baseline, so baseline alignment lifted the green button 9px above its neighbours) and the same margins */
.wa-pair { vertical-align: top; margin: 0 10px 10px 0; }
.cta { vertical-align: top; }
/* the round WhatsApp button beside a green button, as on siterevivesa.com: Meta's glyph, unaltered, on the page's own
   dark surface. Its border greens under a mouse and it shades when pressed like every button (Waldo, 5 and 7 Oct 2026). */
.wa-round { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); }
.wa-round > .wa-glyph { width: 24px; height: 24px; }
@media (hover: hover) {
  .wa-round:hover, .wa-float:hover { border-color: rgba(37,211,102,.5); }
}

/* Facebook's own primary logo, unaltered and at least 16px, a quarter of its width clear around it, and never the word
   "Facebook" written beside it (Meta's Facebook logo rules, sources/meta-facebook-logo-guidelines-2026-10-05.html) */
.fb-logo { width: 24px; height: 24px; flex: none; margin-right: 8px; vertical-align: middle; }

/* handset and envelope: drawn in the link's own colour, before the words */
.text-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.2em; margin-right: .4em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the nav's Bespreek pill was 42px tall; 2px more makes the 44px hit area */
nav .cta.small { min-height: 44px; }

/* the top nav's text links: an invisible 44px hit area around each, so the underline and spacing stay as they are */
nav ul a:not(.cta):not(.wa-round) { position: relative; }
nav ul a:not(.cta):not(.wa-round)::after { content: ""; position: absolute; inset: -9px -8px; }

/* a link with the WhatsApp glyph or an icon stays on one line, so the glyph never parts from its words */
.tap { white-space: nowrap; }
