/* ================= Floating WhatsApp pill (same design as the AJU landing page, a touch smaller) ================= */
.wa-ico { --wa: #25d366; display: block; overflow: visible; }
.wa-ico__disc { fill: var(--wa); }
.wa-ico__ring { fill: none; stroke: #fff; stroke-width: 2.4; }
.wa-ico__phone { fill: #fff; }
.wa-ico__stroke { fill: var(--wa); fill-opacity: 0; stroke: var(--wa); stroke-width: 2.6; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.wa-ico__dot { fill: var(--wa); opacity: 0; transform-box: fill-box; transform-origin: center; }
/* 8s loop: logo pops out → outline redraws itself → fills → logo springs back */
.wa-ico__logo { transform-box: fill-box; transform-origin: center; animation: waLogo 8s cubic-bezier(.3, .7, .3, 1) infinite; }
.wa-ico__draw { animation: waDrawLayer 8s linear infinite; }
.wa-ico__draw .wa-ico__stroke { animation: waStroke 8s ease-in-out infinite; }
.wa-ico__draw .wa-ico__dot { animation: waDot 8s ease-in-out infinite; }
@keyframes waLogo { 0%, 55% { opacity: 1; transform: scale(1); } 57%, 75% { opacity: 0; transform: scale(.6); } 82% { opacity: 1; transform: scale(1.12); } 88%, 100% { opacity: 1; transform: scale(1); } }
@keyframes waDrawLayer { 0%, 55% { opacity: 0; } 56%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes waStroke { 0%, 56% { stroke-dashoffset: 100; fill-opacity: 0; } 68% { stroke-dashoffset: 0; fill-opacity: 0; } 72% { fill-opacity: 0; } 76%, 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes waDot { 0%, 66% { opacity: 0; transform: scale(0); } 69% { opacity: 1; transform: scale(1.3); } 72% { opacity: 1; transform: scale(1); } 74%, 100% { opacity: 0; } }

.wa-float {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 5px 5px 16px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(100deg, #ffffff 0%, #f4fdf7 45%, #d9f7e3 100%);
  border: 1.5px solid #9fe2b6; color: #10261a;
  font: 700 14px/1 var(--body);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0,0,0,.25), 0 0 28px rgba(37, 211, 102, .18);
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .35s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { color: #10261a; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0,0,0,.25), 0 0 34px rgba(37, 211, 102, .3); }
.wa-float:active { transform: scale(.97); }
.wa-float:focus-visible { outline: 2px solid #25d366; outline-offset: 3px; }
.wa-float__icon { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.wa-float__icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(37, 211, 102, .35); animation: waHalo 1.8s ease-out infinite; }
.wa-ico--lg { position: relative; width: 36px; height: 36px; }
@keyframes waHalo { 0% { transform: scale(.85); opacity: .9; } 70% { transform: scale(1.25); opacity: 0; } 100% { transform: scale(1.25); opacity: 0; } }

@media (min-width: 1024px) {
  /* right edge lines up with the header and the video card (page padding), not the window edge */
  .wa-float { right: var(--pad); bottom: 22px; gap: 11px; padding: 6px 6px 6px 20px; font-size: 15px; }
  .wa-float:hover { transform: translateY(-2px); }
  .wa-float__icon { width: 44px; height: 44px; }
  .wa-ico--lg { width: 40px; height: 40px; }
}

/* never during the intro or over the open phone menu */
body.intro-on .wa-float, .nav.is-open ~ .wa-float { opacity: 0 !important; pointer-events: none !important; }

@media (prefers-reduced-motion: reduce) {
  .wa-ico__logo { animation: none !important; opacity: 1 !important; transform: none !important; }
  .wa-ico__draw { display: none; }
  .wa-float__icon::before { animation: none; }
}
