/* Horseshoe Camps - Bold Athletic Styles */

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: #D64309;
  color: white;
}

:focus-visible {
  outline: 3px solid #D64309;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Hero Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll indicator animation */
@keyframes scroll-down {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.5;
  }
}

.animate-scroll-down {
  animation: scroll-down 1.5s ease-in-out infinite;
}

/* FAQ accordion */
.faq-item .faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
  max-height: 500px;
}

/* Day tabs */
.day-tab.active {
  background-color: #0033A0;
  color: white;
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 500px;
}

/* Transition nav shape when mobile menu opens */
header nav {
  transition: border-radius 10ms ease;
}

/* When mobile menu is visible (not hidden), change nav to rounded-3xl */
header nav:has(#mobile-menu:not(.hidden)) {
  border-radius: 1.5rem !important;
}

/* Card hover lift effect */
.transform-gpu {
  will-change: transform;
}

/* Staggered card animation on scroll */
@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Minimum tap targets */
button,
a {
  min-height: 44px;
  min-width: 44px;
}

p a,
span a,
nav a:not(.inline-flex) {
  min-height: auto;
  min-width: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-fade-in-up {
    opacity: 1;
  }
}

/* Print styles */
@media print {
  nav,
  .skip-link {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* Large background text styling */
.font-display {
  -webkit-text-stroke: 0;
}

/* Smooth image transitions */
img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button hover states with smooth easing */
a, button {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom underline animation for links */
.underline-animate {
  position: relative;
}

.underline-animate::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.underline-animate:hover::after {
  width: 100%;
}
