/* Custom styles for Natural Comfort Footwear */

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

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

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

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Navbar scrolled state */
nav.scrolled {
  background: rgba(253, 242, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(157, 23, 77, 0.1);
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* Form styles */
input:focus, textarea:focus {
  outline: none;
  border-color: #9d174d;
  box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.15);
}

/* Success message */
.success-message {
  animation: fadeInUp 0.5s ease;
}

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