/* First Coast Rehabilitation South Clinic — Custom Styles */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* Selection */
::selection { background: rgba(232, 100, 90, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0d14; }
::-webkit-scrollbar-thumb { background: #222238; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e8645a; }

/* Navbar scroll state */
nav.scrolled {
  background: rgba(13, 13, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-logo svg path { stroke: #e8645a; }

/* Service cards */
.service-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(20, 20, 31, 0.5) 100%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}
.service-card:hover {
  box-shadow: 0 20px 60px rgba(232, 100, 90, 0.1);
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Gold shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }

/* Pulse ring */
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Mobile menu transitions */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Image hover zoom */
img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Button ripple effect */
button, a {
  position: relative;
  overflow: hidden;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 100, 90, 0.1);
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.5s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img.loaded {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  html { scroll-padding-top: 73px; }
}
