/* Custom styles for Cedar Valley Oral Surgery */

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

/* Navbar scroll effect */
nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(80, 38, 67, 0.08);
}

nav.scrolled .text-plum-800 {
  color: #5e2b4e !important;
}

nav.scrolled a:not(.bg-plum-700):hover {
  color: #8b3f73 !important;
}

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

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

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

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

/* Selection color */
::selection {
  background: #d9a9d0;
  color: #2c1426;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(139, 63, 115, 0.15);
}

/* Service card hover lift */
.group:hover {
  transform: translateY(-4px);
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.2s ease-out;
}

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

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