/* Custom styles for Pardee Pain Center */

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

/* Scroll reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.revealed {
    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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Navbar scroll effect */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
  background: #1a2744;
}

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

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

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c8a961 !important;
  box-shadow: 0 0 0 1px #c8a961;
}

/* Button hover effects */
button[type="submit"]:hover {
  box-shadow: 0 8px 25px rgba(26, 39, 68, 0.3) !important;
}

/* Service card hover - ensure text readability */
.group:hover .group-hover\:text-white {
  color: #ffffff;
}

.group:hover .group-hover\:text-navy-200 {
  color: #d9e0ef;
}

/* Ensure all text has proper contrast */
.font-display,
.font-body,
.font-accent {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Image loading placeholder */
img {
  background-color: #d9e0ef;
}

/* Selection color */
::selection {
  background-color: #c8a961;
  color: #1a2744;
}

/* Print styles */
@media print {
  nav,
  #contact-form,
  .reveal {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
