/* ============================================================================
  CTA FOOTER STYLESHEET
  Purpose: Footer CTA enhancements only
  ============================================================================ */

.footer-contact {
  position: relative;
  overflow: visible !important;
}

.btn-footer-emphasized {
  position: relative;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.26),
              0 0 20px rgba(138, 43, 226, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(186, 129, 236, 0.54);
  overflow: hidden;
  animation: nav-border-pulse 3s ease-in-out infinite;
  padding-right: 40px !important;
}

.btn-footer-emphasized:hover,
.btn-footer-emphasized:focus-visible {
  box-shadow: 0 0 16px rgba(138, 43, 226, 0.34),
              0 0 28px rgba(138, 43, 226, 0.18),
              0 4px 12px rgba(0, 0, 0, 0.24);
  border-color: rgba(206, 168, 243, 0.72);
  outline: 2px solid rgba(206, 168, 243, 0.48);
  outline-offset: 2px;
}

.btn-footer-emphasized::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid rgba(138, 43, 226, 0.8);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0;
  animation: nav-outline-glow 2s ease-in-out infinite;
}

.footer-contact a.btn-footer-emphasized {
  position: relative;
  overflow: hidden;
}

.btn-footer-emphasized::after {
  content: '←' !important;
  position: absolute;
  font-size: 1.4rem;
  color: #ffffff !important;
  opacity: 1 !important;
  pointer-events: none;
  z-index: 2;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: hand-point 1.85s ease-in-out infinite;
  display: block !important;
  visibility: visible !important;
  white-space: nowrap;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.footer-contact::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-light);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255, 77, 141, 0.8);
  top: -8px;
  left: 15px;
  animation: glow-dot-1 2.5s ease-in-out infinite;
}

.footer-contact::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-light);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255, 77, 141, 0.8);
  bottom: -8px;
  right: 15px;
  animation: glow-dot-2 2.5s ease-in-out infinite;
  animation-delay: 1.25s;
}

.btn-footer-emphasized.cta-schedule-box {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}

.footer-contact a.btn-footer-emphasized.cta-schedule-box {
  overflow: visible !important;
}

.footer-contact .btn-footer-emphasized.cta-schedule-box::before,
.footer-contact .btn-footer-emphasized.cta-schedule-box::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

@keyframes nav-border-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.26),
                0 0 20px rgba(138, 43, 226, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: rgba(186, 129, 236, 0.54);
  }
  50% {
    box-shadow: 0 0 16px rgba(138, 43, 226, 0.34),
                0 0 28px rgba(138, 43, 226, 0.18),
                0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(206, 168, 243, 0.72);
  }
}

@keyframes nav-outline-glow {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes hand-point {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50%) translateX(5px);
    opacity: 1;
  }
}

@keyframes glow-dot-1 {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
  60% {
    opacity: 0.6;
    transform: translateY(-12px) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0);
  }
}

@keyframes glow-dot-2 {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  30% {
    opacity: 1;
    transform: translateY(8px) scale(1);
  }
  60% {
    opacity: 0.6;
    transform: translateY(12px) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateY(16px) scale(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-footer-emphasized,
  .btn-footer-emphasized::before,
  .btn-footer-emphasized::after,
  .footer-contact::before,
  .footer-contact::after,
  .btn-footer-emphasized.cta-schedule-box::before,
  .btn-footer-emphasized.cta-schedule-box::after {
    animation: none !important;
  }
}
