/* Summerville Pilates - Modern Studio Website Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #9333ea;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7e22ce;
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fade-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
  50% { box-shadow: 0 0 20px 10px rgba(20, 184, 166, 0.1); }
}

.animate-fade-in { animation: fade-in 0.8s ease-out forwards; }
.animate-fade-in-up { animation: fade-in-up 0.8s ease-out forwards; }
.animate-fade-in-down { animation: fade-in-down 0.8s ease-out forwards; }
.animate-fade-in-left { animation: fade-in-left 0.8s ease-out forwards; }
.animate-fade-in-right { animation: fade-in-right 0.8s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

.animation-delay-200 { animation-delay: 0.2s; opacity: 0; }
.animation-delay-400 { animation-delay: 0.4s; opacity: 0; }
.animation-delay-600 { animation-delay: 0.6s; opacity: 0; }
.animation-delay-800 { animation-delay: 0.8s; opacity: 0; }

/* Navbar transitions */
.navbar-scrolled {
  background-color: rgba(88, 28, 135, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(to bottom,
    rgba(88, 28, 135, 0.3) 0%,
    rgba(88, 28, 135, 0.1) 40%,
    rgba(88, 28, 135, 0.4) 100%);
}

/* Swiper customization */
.swiper {
  padding-bottom: 50px !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #9333ea !important;
  background: white;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #9333ea;
  color: white !important;
}

.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #cbd5e1 !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: #9333ea !important;
  width: 30px !important;
  border-radius: 6px !important;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

input[type="radio"] {
  accent-color: #9333ea;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox styles */
#lightbox {
  transition: opacity 0.3s ease;
}

#lightbox.hidden {
  opacity: 0;
  pointer-events: none;
}

#lightbox:not(.hidden) {
  display: flex;
  opacity: 1;
}

/* Image hover effects */
.gallery-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Button hover states */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.btn-teal {
  transition: all 0.3s ease;
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3);
}

/* Card hover effects */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Service card with gradient border */
.service-card {
  position: relative;
  transition: all 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #9333ea, #14b8a6);
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonial card */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.faq-arrow {
  transition: transform 0.3s ease;
}

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

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

#mobile-menu:not(.hidden) {
  max-height: 800px;
}

/* Parallax scroll effect helper */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Instructor card */
.instructor-card .instructor-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instructor-card:hover .instructor-overlay {
  opacity: 1;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #9333ea 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divider with icon */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #d8b4fe, transparent);
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
}

/* Print styles */
@media print {
  nav, footer, #back-to-top, .swiper-button-next, .swiper-button-prev {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-pilates-600 { background-color: #6b21a8 !important; }
  .text-pilates-200 { color: #ffffff !important; }
}

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

/* Selection styling */
::selection {
  background-color: #9333ea;
  color: white;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #9333ea;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Blog post content styles */
.blog-content h2 { font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.blog-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.blog-content p { margin-bottom: 1rem; line-height: 1.75; }
.blog-content ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1rem; }
.blog-content ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 1rem; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content img { border-radius: 0.5rem; margin: 1.5rem 0; }
.blog-content a { color: #9333ea; text-decoration: underline; }
.blog-content blockquote {
  border-left: 4px solid #9333ea;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
}
