/* ==========================================================
   Hailz — Floating quick actions (WhatsApp + YouTube)
   Include after hailz.css. Markup: .fab-stack appended before </body>.
   ========================================================== */

.fab-stack{
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom, 0px));
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  z-index:1100;
}

.fab{
  position:relative;
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:50%;
  color:#fff;
  box-shadow:0 6px 24px rgba(10,30,80,.22), 0 2px 6px rgba(10,30,80,.12);
  transition:transform .18s ease, box-shadow .18s ease;
  animation:fab-in .4s ease both;
}
.fab:hover,
.fab:focus-visible{
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 12px 32px rgba(10,30,80,.28);
}
.fab:focus-visible{outline:3px solid var(--blue-500,#1e88e5);outline-offset:3px}
.fab svg{width:28px;height:28px}

/* WhatsApp — primary action */
.fab-wa{background:#25d366}
.fab-wa::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  box-shadow:0 0 0 0 rgba(37,211,102,.45);
  animation:fab-pulse 2.4s ease-out infinite;
  pointer-events:none;
}

/* YouTube — secondary action, slightly smaller */
.fab-yt{background:#ff0033;width:48px;height:48px;animation-delay:.08s}
.fab-yt svg{width:24px;height:24px}

/* Hover label — dark pill to the left of the button */
.fab .fab-label{
  position:absolute;
  right:calc(100% + 12px);
  top:50%;
  transform:translateY(-50%) translateX(6px);
  background:var(--navy-900,#06122a);
  color:#fff;
  font-size:13px;
  font-weight:600;
  line-height:1;
  padding:9px 13px;
  border-radius:8px;
  white-space:nowrap;
  box-shadow:0 4px 14px rgba(10,30,80,.25);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.fab:hover .fab-label,
.fab:focus-visible .fab-label{
  opacity:1;
  transform:translateY(-50%) translateX(0);
}

/* Keep the stack out of the way when the mobile menu overlay is open */
.mobile-menu.open ~ .fab-stack{opacity:0;pointer-events:none;transition:opacity .15s ease}

@keyframes fab-pulse{
  0%{box-shadow:0 0 0 0 rgba(37,211,102,.45)}
  70%{box-shadow:0 0 0 16px rgba(37,211,102,0)}
  100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}
}
@keyframes fab-in{
  from{opacity:0;transform:translateY(14px) scale(.85)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

@media (max-width:640px){
  .fab-stack{right:14px;bottom:calc(14px + env(safe-area-inset-bottom, 0px));gap:10px}
  .fab{width:52px;height:52px}
  .fab svg{width:26px;height:26px}
  .fab-yt{width:44px;height:44px}
  .fab-yt svg{width:22px;height:22px}
  .fab .fab-label{display:none} /* labels are hover-only — no hover on touch */
}

@media (prefers-reduced-motion:reduce){
  .fab,.fab-wa::after{animation:none}
  .fab,.fab .fab-label{transition:none}
}
