/* ─── Custom Styles for South Coast Spine and Pain Center ─── */

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

/* ─── Hero Gradient ─── */
.hero-gradient {
  background: linear-gradient(135deg, #fff5f3 0%, #fce8d6 25%, #e8dff5 50%, #c7dfe8 75%, #d4f0e7 100%);
}

/* ─── Floating Blobs ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ─── Navbar ─── */
#nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

#nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ─── Service Cards ─── */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ─── Visit Cards ─── */
.visit-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ─── Mobile Menu ─── */
#mobileMenu {
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── No-underline utility ─── */
.no-underline {
  text-decoration: none;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* ─── Mobile menu active state ─── */
.mobile-link.active {
  color: #ff6b44;
}
