/* Custom styles for Maria's Tienda y Taqueria */

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

/* Floating animation for hero card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobileMenu {
  transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

/* Mobile link transitions */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#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; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(253, 252, 250, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(15, 43, 76, 0.08);
}

/* Intersection observer fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7cd1b5;
}

/* Selection color */
::selection {
  background: #a8e6cf;
  color: #0f2b4c;
}

/* Form focus states */
input:focus,
textarea:focus {
  border-color: #a8e6cf !important;
  box-shadow: 0 0 0 3px rgba(168, 230, 207, 0.3) !important;
}

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

/* Subtle hover lift for cards */
.group:hover {
  transform: translateY(-2px);
}

.group {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
