/* Custom styles for Hawkinsville Medical & Health */

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

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Service card hover effects */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 99, 74, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: inherit;
}

.service-card:hover::before {
  opacity: 1;
}

/* Mobile menu animations */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobileMenu.open .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobileMenu.open .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 1.5rem;
}

/* Mobile link animations */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  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; }

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .font-serif {
  color: #1a1a1f !important;
}

.navbar-scrolled .text-charcoal-400 {
  color: #6e6e7c !important;
}

.navbar-scrolled .menu-line {
  background: #33333b !important;
}

/* Selection color */
::selection {
  background: rgba(232, 99, 74, 0.2);
  color: #1a1a1f;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #9797a3;
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
