/* Custom styles for Edward L Holt Medical Practice */

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  .scroll-reveal:not(.revealed) {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1B4332;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
  position: relative;
  padding-left: 0;
}

/* Hero scroll indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* Pulse animation for status dot */
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #2D6A4F;
}

/* Selection color */
::selection {
  background: #B7E4C7;
  color: #0E261C;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #2D6A4F;
  outline-offset: 2px;
}

/* Button hover lift effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #D8F3DC 0%, #B7E4C7 100%);
}

/* Subtle pattern overlay for cream sections */
.bg-cream-50::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(27, 67, 50, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Service card hover gradient overlay */
.group:hover .group-hover\:bg-forest-600 {
  background-color: #1B4332;
}

/* Form 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='%231B4332' 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;
  padding-right: 2.5rem;
}

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

/* Print styles */
@media print {
  header, footer, #contactForm, #formSuccess {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
  }
}
