/* FES · floating WhatsApp link (home, /privacidade, 404).
   Secondary to the list: shared/fes-wa.js sends it away only while the hero, the form
   card or the footer is on screen; elsewhere it stays, over whatever scrolls past.
   On phones it is the glyph alone, with the text kept as its accessible name.
   Glyph: simple-icons "whatsapp" (CC0). */
.wa-float {
  position: fixed; z-index: 70;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 15px;
  border-radius: 0 16px 0 0; background: #14312A; color: #F1EFE8; text-decoration: none;
  font: 600 14px/1 "Albert Sans", system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(241 239 232 / 0.22), 0 10px 28px -14px rgb(12 31 26 / 0.65);
  transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1), transform 220ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease;
}
.wa-float img { display: block; width: 20px; height: 20px; flex: none; }
.wa-float:focus-visible { outline: 2px solid #C9A227; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { background: #0C1F1A; } }
/* away: invisible and untouchable, but still reachable by keyboard and screen reader */
.wa-float.is-away {
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.wa-float.is-away:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 860px) {
  .wa-float { width: 52px; min-height: 52px; padding: 0; justify-content: center; }
  .wa-float img { width: 24px; height: 24px; }
  .wa-float__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float.is-away { transform: none; transition: none; }
}
