/* Custom styles for Mismo Dermatology and Wound Care */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Service card hover effects */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navbar scroll effect */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .logo-text {
  color: #111827 !important;
}

.nav-scrolled .logo-sub {
  color: #6b7280 !important;
}

.nav-scrolled nav a:not(.bg-coral-500) {
  color: #374151 !important;
}

.nav-scrolled nav a:not(.bg-coral-500):hover {
  color: #FF6B4A !important;
}

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

.floating-card {
  animation: float 3s ease-in-out infinite;
}

.floating-card-delayed {
  animation: float 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Fade in animations for below-fold content */
.fade-in-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .floating-card,
  .floating-card-delayed {
    animation: none;
  }
  
  .fade-in-section {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #FF6B4A;
  outline-offset: 2px;
  border-radius: 4px;
}

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