/* ---- Floating Action Buttons (WhatsApp & Phone) ---- */
.fab-container {
  position: fixed;
  bottom: 88px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 998;
}

.fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.fab:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  color: #fff;
}

/* WhatsApp */
.fab-whatsapp {
  background: #25D366;
  animation: waPulse 2.5s ease-in-out infinite;
}

.fab-whatsapp:hover {
  background: #1ebe5d;
  animation-play-state: paused;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* Phone */
.fab-phone {
  background: #1a73e8;
  animation: phonePulse 2.5s ease-in-out infinite;
  animation-delay: 0.5s; /* Staggered pulse */
}

.fab-phone:hover {
  background: #1558b0;
  animation-play-state: paused;
}

@keyframes phonePulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(26, 115, 232, 0.4); }
  50%       { box-shadow: 0 4px 28px rgba(26, 115, 232, 0.75), 0 0 0 8px rgba(26, 115, 232, 0.12); }
}

/* Tooltips */
.fab-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-50%) translateX(6px);
}

.fab:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 51, 153, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}
