/* ============================================================================
  CTA END-OF-PAGE STYLESHEET
  Purpose: Gold-standard body/end-of-page pulsating CTA effects
  ============================================================================ */

/* ============================================================================
  TABLE OF CONTENTS
  ----------------------------------------------------------------------------
  [01] GOLD STANDARD — ALL BODY PULSATING CTA (EXCLUDES HEADER/FOOTER)
  [02] HERO / SCHEDULE BUTTON EMPHASIS
  [03] SHARED ARROW INDICATORS
  [04] HEADER / NAV CTA EFFECT SYSTEM
  [05] FOOTER CTA BUTTON SYSTEM
  [06] MOBILE / RESPONSIVE ADJUSTMENTS
  [07] FOOTER CTA ORBIT LEGACY / EXPERIMENTAL BLOCK
  ============================================================================ */

/* CTA Section Button - same as hero button */
/* ============================================================================
  [01] GOLD STANDARD — ALL BODY PULSATING CTA (EXCLUDES HEADER/FOOTER)
  ============================================================================ */
.cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-content .btn-cta-emphasized {
  position: relative;
  animation: button-pulse-soft 2.8s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.46),
              0 0 40px rgba(138, 43, 226, 0.23),
              0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 77, 141, 0.56);
}

.cta-content .btn-cta-emphasized::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #8a2be2, #ff4d8d, #8a2be2);
  filter: brightness(1.05);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.6;
  transition: opacity 180ms ease;
  animation: border-glow-soft 2.8s ease-in-out infinite;
}

.cta-content .btn-cta-emphasized:hover,
.cta-content .btn-cta-emphasized:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.506),
              0 0 40px rgba(138, 43, 226, 0.253),
              0 4px 15px rgba(0, 0, 0, 0.33);
}

.cta-content .btn-cta-emphasized:hover::before,
.cta-content .btn-cta-emphasized:focus-visible::before {
  opacity: 0.66;
}

/* Optional softer variant for pages that need gentler CTA pulse */
.cta-content .btn-cta-emphasized.btn-cta-soft {
  position: relative;
  animation: button-pulse-soft 2.8s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.46),
              0 0 40px rgba(138, 43, 226, 0.23),
              0 4px 15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 77, 141, 0.56);
}

.cta-content .btn-cta-emphasized.btn-cta-soft::before {
  background: linear-gradient(135deg, #8a2be2, #ff4d8d, #8a2be2);
  filter: brightness(1.05);
  opacity: 0.6;
  transition: opacity 180ms ease;
  animation: border-glow-soft 2.8s ease-in-out infinite;
}

.cta-content .btn-cta-emphasized.btn-cta-soft:hover,
.cta-content .btn-cta-emphasized.btn-cta-soft:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.506),
              0 0 40px rgba(138, 43, 226, 0.253),
              0 4px 15px rgba(0, 0, 0, 0.33);
}

.cta-content .btn-cta-emphasized.btn-cta-soft:hover::before,
.cta-content .btn-cta-emphasized.btn-cta-soft:focus-visible::before {
  opacity: 0.66;
}

/* Wrap CTA button with arrows like hero button */
.cta-content a.btn-cta-emphasized {
  display: inline-block;
}
.cta-button-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.cta-button-wrapper .arrow-indicator {
  color: var(--color-accent-light);
  opacity: 0.8;
}

.cta-button-wrapper .arrow-left {
  animation: arrow-bounce-left 1.5s ease-in-out infinite;
  animation-delay: 0s;
}

.cta-button-wrapper .arrow-right {
  animation: arrow-bounce-right 1.5s ease-in-out infinite;
  animation-delay: 0.75s;
}

.cta-button-wrapper .arrow-right svg {
  transform: rotate(180deg);
}

/* Schedule Button Emphasis */
/* ============================================================================
  [02] HERO / SCHEDULE BUTTON EMPHASIS
  ============================================================================ */
.schedule-button-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-schedule-emphasized {
  position: relative;
  animation: button-pulse-soft 2.8s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.46),
              0 0 40px rgba(138, 43, 226, 0.23),
              0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 77, 141, 0.56);
}

.btn-schedule-emphasized::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #8a2be2, #ff4d8d, #8a2be2);
  filter: brightness(1.05);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.6;
  transition: opacity 180ms ease;
  animation: border-glow-soft 2.8s ease-in-out infinite;
}

.btn-schedule-emphasized:hover,
.btn-schedule-emphasized:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.506),
              0 0 40px rgba(138, 43, 226, 0.253),
              0 4px 15px rgba(0, 0, 0, 0.33);
}

.btn-schedule-emphasized:hover::before,
.btn-schedule-emphasized:focus-visible::before {
  opacity: 0.66;
}

/* Home hero variant: softer pulse for "Choose Your Path" */
.btn-schedule-emphasized.btn-schedule-soft {
  animation: button-pulse-soft 2.8s ease-in-out infinite;
}

.btn-schedule-emphasized.btn-schedule-soft::before {
  animation: border-glow-soft 2.8s ease-in-out infinite;
}

@keyframes button-pulse-soft {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.46),
                0 0 40px rgba(138, 43, 226, 0.23),
                0 4px 15px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 14px rgba(138, 43, 226, 0.31),
                0 0 24px rgba(138, 43, 226, 0.14),
                0 4px 15px rgba(0, 0, 0, 0.3);
  }
}

@keyframes border-glow-soft {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.02);
  }
}

/* Arrow Indicators - pointing TOWARDS the button */
/* ============================================================================
  [03] SHARED ARROW INDICATORS
  ============================================================================ */
.arrow-indicator {
  color: var(--color-accent-light);
  opacity: 0.8;
}

.arrow-left {
  animation: arrow-bounce-left 1.5s ease-in-out infinite;
  animation-delay: 0s;
}

.arrow-right {
  animation: arrow-bounce-right 1.5s ease-in-out infinite;
  animation-delay: 0.75s;
}

@keyframes arrow-bounce-left {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.8;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

@keyframes arrow-bounce-right {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-8px);
    opacity: 1;
  }
}

/* Left arrow points RIGHT (toward button) - no rotation needed */

/* Right arrow points LEFT (toward button) */
.arrow-right svg {
  transform: rotate(180deg);
}

/* Navigation CTA Button Emphasis - Orbit Dot + Box Outlining */
/* ============================================================================
  [04] HEADER / NAV CTA EFFECT SYSTEM
  ============================================================================ */
.nav-item.cta {
  position: relative;
  overflow: visible !important;
  --nav-cta-orbit-dot-size: 4px;
  --nav-cta-orbit-dot-offset: calc(var(--nav-cta-orbit-dot-size) / 2);
  --nav-cta-orbit-outset: 2px;
}

.nav-item.cta a {
  position: relative;
  padding: calc(var(--space-xs) + 3px) var(--space-md);
  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;
}

.nav-item.cta a:hover,
.nav-item.cta a: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;
}

.nav-item.cta a::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;
}

.nav-item.cta a::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: nav-shimmer 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.nav-item.cta::before {
  content: none !important;
  animation: none !important;
}

.nav-item.cta::after {
  content: "";
  position: absolute;
  width: var(--nav-cta-orbit-dot-size);
  height: var(--nav-cta-orbit-dot-size);
  border-radius: 50%;
  top: calc(-1 * (var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset)));
  left: calc(-1 * (var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset)));
  right: auto;
  bottom: auto;
  background: radial-gradient(circle, rgba(236, 198, 255, 0.82) 0%, rgba(196, 129, 245, 0.72) 56%, rgba(166, 97, 226, 0.16) 80%, rgba(166, 97, 226, 0) 100%);
  box-shadow: 0 0 7px rgba(214, 161, 248, 0.7), 0 0 11px rgba(181, 108, 236, 0.43);
  opacity: 0.86 !important;
  display: block;
  visibility: visible;
  pointer-events: none;
  z-index: 4;
  animation: nav-cta-orbit-dot 8.3s linear infinite;
}

.nav-item.cta:hover::after,
.nav-item.cta:focus-within::after {
  opacity: 0.92 !important;
  filter: brightness(1.08);
  box-shadow: 0 0 9px rgba(214, 161, 248, 0.78), 0 0 13px rgba(181, 108, 236, 0.5);
}

.header {
  overflow-x: visible;
}

.header-content {
  overflow-x: visible;
}

.nav-list {
  overflow-x: visible;
}

.nav-item.cta {
  overflow: visible !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 nav-shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes hand-point {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50%) translateX(5px);
    opacity: 1;
  }
}

@keyframes nav-cta-orbit-dot {
  0% {
    top: calc(-1 * (var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset)));
    left: calc(-1 * (var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset)));
  }
  25% {
    top: calc(100% - var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset));
    left: calc(-1 * (var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset)));
  }
  50% {
    top: calc(100% - var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset));
    left: calc(100% - var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset));
  }
  75% {
    top: calc(-1 * (var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset)));
    left: calc(100% - var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset));
  }
  100% {
    top: calc(-1 * (var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset)));
    left: calc(-1 * (var(--nav-cta-orbit-dot-offset) + var(--nav-cta-orbit-outset)));
  }
}

@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);
  }
}

/* Footer Button Emphasis - same as header navigation button */
/* ============================================================================
  [05] FOOTER CTA BUTTON SYSTEM
  ============================================================================ */
.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;
}

@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);
  }
}

/* Responsive adjustments */
/* ============================================================================
  [06] MOBILE / RESPONSIVE ADJUSTMENTS
  ============================================================================ */
@media (max-width: 767px) {
  .arrow-indicator {
    display: none;
  }

  .schedule-button-wrapper {
    gap: 0;
    width: 100%;
  }

  .schedule-button-wrapper .btn-schedule-emphasized {
    width: 100%;
  }

  .hero-cta .btn-secondary {
    width: 100%;
  }

  .nav-item.cta a::after {
    display: none;
  }

  .nav-item.cta::before {
    display: none;
  }

  .nav-item.cta::after {
    display: none;
  }
}

/* Footer CTA schedule box: stronger orbit dot (about.html test) */
/* ============================================================================
  [07] FOOTER CTA ORBIT LEGACY / EXPERIMENTAL BLOCK
  ============================================================================ */
.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;
}

@media (prefers-reduced-motion: reduce) {
  .btn-schedule-emphasized,
  .cta-content .btn-cta-emphasized {
    animation: none !important;
  }

  .btn-schedule-emphasized::before,
  .cta-content .btn-cta-emphasized::before {
    animation: none !important;
  }

  .btn-footer-emphasized.cta-schedule-box::before,
  .btn-footer-emphasized.cta-schedule-box::after {
    animation: none !important;
  }
}

