/* ==========================================================================
   floating-buttons.css - Floating Contact Buttons + Scroll-to-Top
   ========================================================================== */

/* ------------------------------------------------------------------
   Floating Contact Buttons (right side vertical stack)
   ------------------------------------------------------------------ */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: var(--z-fixed);
}

.floating-contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  color: var(--color-white);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.floating-contact__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Email — dark blue */
.floating-contact__btn--email {
  background-color: #1a1a1a;
  color: #fff;
}

.floating-contact__btn--email:hover {
  background-color: #333;
}

/* WhatsApp — green */
.floating-contact__btn--whatsapp {
  background-color: #25D366;
  color: #fff;
}

.floating-contact__btn--whatsapp:hover {
  background-color: #128C7E;
}

/* Skype — blue */
.floating-contact__btn--skype {
  background-color: #00AFF0;
  color: #fff;
}

.floating-contact__btn--skype:hover {
  background-color: #0078D4;
}

/* Phone — gold/orange */
.floating-contact__btn--phone {
  background-color: #f39c12;
  color: #111;
}

.floating-contact__btn--phone:hover {
  background-color: #e67e22;
}

/* Tooltip on hover */
.floating-contact__btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background-color: #111;
  color: #fff;
  font-size: var(--text-xs);
  font-family: var(--font-primary);
  white-space: nowrap;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
}

.floating-contact__btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ------------------------------------------------------------------
   Scroll-to-Top Button
   ------------------------------------------------------------------ */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 40px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  background-color: #1a1a1a;
  color: #fff;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: #f39c12;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.scroll-top--visible:hover {
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .floating-contact {
    right: 12px;
    bottom: 80px;
    gap: var(--space-2);
  }

  .floating-contact__btn {
    width: 42px;
    height: 42px;
    font-size: var(--text-base);
  }

  .floating-contact__btn::after {
    display: none;
  }

  .scroll-top {
    right: 12px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
}
