/* ==========================================================================
   SCROLL TO TOP BUTTON
   Floating button to scroll back to navigation
   ========================================================================== */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary);
  color: var(--color-bg-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--color-primary-20);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top:hover {
  background: var(--color-primary-90);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--color-primary-30);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top--visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
  }
}
