/* Attuned Ventures — shared back-to-top button */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--bg-card, #141414);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.07));
  border-radius: 10px;
  color: var(--text-secondary, #A0A0A0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
              border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  z-index: 100;
  font-family: inherit;
  padding: 0;
}

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

.back-to-top:hover {
  border-color: var(--primary-color, #D72720);
  color: var(--primary-color, #D72720);
}

.back-to-top:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(215, 39, 32, 0.35);
}

.back-to-top .material-icons-round {
  font-size: 22px;
}

/* Nudge above mobile sticky CTA if both are present */
@media (max-width: 768px) {
  body:has(.mobile-sticky-cta.visible) .back-to-top.visible {
    bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.01ms, visibility 0.01ms;
    transform: none;
  }
  .back-to-top.visible {
    transform: none;
  }
}
