/* Custom styles for La Changes */

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

/* Selection color */
::selection {
  background-color: #0d9488;
  color: white;
}

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

/* Only apply hidden state when JS adds the class */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* Nav scroll state */
nav.scrolled {
  box-shadow: 0 1px 20px rgba(13, 148, 136, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
  background: #99f6e4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

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

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

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

/* Button hover lift effect */
a[href], button[type="submit"] {
  -webkit-tap-highlight-color: transparent;
}

/* Product card image zoom wrapper */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Hero image parallax-like subtle effect */
@media (prefers-reduced-motion: no-preference) {
  #hero img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

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

/* Print styles */
@media print {
  nav, #contact-form, button, .reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .font-serif {
    color: #000 !important;
  }
}
