/* ── Container ─────────────────────────────────── */
.whatsapp-fab {
  display: flex;
  flex-direction: row;  /* locations on the left, FAB on the right */
  align-items: center;
  gap: 10px;
  z-index: 9999;  /* above contact section overlay */
}

/* ── Main FAB Button ───────────────────────────── */
.whatsapp-fab__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  z-index: 1;
}

@media (min-width: 768px) {
  .whatsapp-fab__button {
    width: 56px;
    height: 56px;
  }
}

.whatsapp-fab__button:hover {
  background: #20BD5A;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── WhatsApp Icon ─────────────────────────────── */
.whatsapp-fab__icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .whatsapp-fab__icon {
    width: 32px;
    height: 32px;
  }
}

/* ── Pulse Ring ────────────────────────────────── */
.whatsapp-fab__pulse {
  position: absolute;
  inset: 0;
  background: #25D366;
  border-radius: 50%;
  animation: whatsapp-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.2;
  z-index: -1;
}

@keyframes whatsapp-ping {
  75%, 100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ── Location Buttons Container ────────────────── */
.whatsapp-fab__locations {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;        /* Non-interactive when collapsed */
  overflow: hidden;
}

/* Expanded — locations become interactive */
.whatsapp-fab.is-expanded .whatsapp-fab__locations {
  pointer-events: auto;
}

/* ── Individual Location Button ────────────────── */
.whatsapp-fab__location {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #25D366;
  color: white;
  border-radius: 24px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  /* Hidden state — slides in from the right (FAB side) */
  opacity: 0;
  transform: translateX(20px) scale(0.8);
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.2s ease;

  /* Staggered delay using CSS custom property */
  transition-delay: calc(var(--location-index, 0) * 80ms);
}

.whatsapp-fab__location:hover {
  background: #20BD5A;
}

/* Expanded — locations slide into view */
.whatsapp-fab.is-expanded .whatsapp-fab__location {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ── Collapse transitions (faster, no stagger) ── */
.whatsapp-fab:not(.is-expanded) .whatsapp-fab__location {
  transition-duration: 0.2s;
  transition-delay: 0ms;
}
