/* Custom Styles for Pollo Punto la 22 */
/* Extracted from landing.html (lines 36-42) */

/* Script Font Utility */
.script-font {
  font-family: 'Dancing Script', cursive;
}

/* Background Pattern */
.bg-pattern {
  background-image: radial-gradient(circle at 2px 2px, rgba(245, 166, 35, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

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

/* Image Loading States for Lazy Loading */
img[loading='lazy'] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img[loading='lazy'].loaded {
  opacity: 1;
}

/* Performance: GPU Acceleration for Animations */
.hover-lift {
  will-change: transform;
  transition: transform 0.2s ease-out;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Accessibility: Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #f5a623;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
  top: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float svg {
  fill: white;
}

/* WhatsApp Pulse Animation */
@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.05);
  }
}

/* Navigation Hidden State (for auto-hide on scroll) */
.nav-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

/* Hero Carousel */
#hero-slides {
  will-change: transform;
  touch-action: pan-y;
}

/* Modal Styles */
#order-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#order-modal.show {
  opacity: 1;
  pointer-events: auto;
}

#menu-modal {
  display: none;
  align-items: center;
  justify-content: center;
}

#menu-modal.show {
  display: flex;
}

/* Testimonials Carousel */
.testimonials-container {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.testimonials-container > article {
  scroll-snap-align: start;
}

/* Share button animation */
#share-button:active {
  transform: scale(0.95);
}

/* Smooth transitions for carousel dots */
#testimonials-dots button {
  transition: all 0.3s ease;
}

#testimonials-dots button.active {
  background-color: #f5a623;
  transform: scale(1.2);
}

/* Mobile viewport adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Prevent layout shift on modal open */
body.modal-open {
  overflow: hidden;
}

/* Smooth scrolling with reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .whatsapp-float {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
