/* Custom styles for Kanawha Urology Associates */

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

/* Navigation active state */
.nav-link.active {
  color: #0d9488;
  background-color: #f0fdfa;
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Button hover effects */
button:hover,
a:hover {
  transition: all 0.2s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: none;
  }

  @keyframes slideDown {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
  }

  #mobile-menu {
    animation: none;
  }
}

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

  body {
    color: #000;
    background: #fff;
  }
}
