/* =============================================
   LOVE PET LAVANDERIA - Custom Styles
   ============================================= */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #117a8b;
}

/* =============================================
   Animation Classes
   ============================================= */

/* Elements that animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.animate-on-scroll:nth-child(1) {
  transition-delay: 0ms;
}

.animate-on-scroll:nth-child(2) {
  transition-delay: 100ms;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 200ms;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 300ms;
}

.animate-on-scroll:nth-child(5) {
  transition-delay: 400ms;
}

.animate-on-scroll:nth-child(6) {
  transition-delay: 500ms;
}

/* =============================================
   Testimonials Carousel
   ============================================= */

.testimonial {
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.testimonial.hidden {
  display: none;
}

.testimonial.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}

.testimonial.fade-in {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   FAQ Accordion
   ============================================= */

.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #17A2B8;
}

.faq-item.active {
  border-color: #17A2B8;
  background-color: #f8fffe;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.show {
  max-height: 500px;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* =============================================
   Mobile Menu
   ============================================= */

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.show {
  max-height: 400px;
}

/* =============================================
   WhatsApp Float Button
   ============================================= */

#whatsapp-float {
  animation: float-pulse 2s infinite;
}

@keyframes float-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/* =============================================
   Service Cards Hover Effect
   ============================================= */

.group:hover .group-hover\:bg-teal-500 {
  background-color: #17A2B8;
}

.group:hover .group-hover\:text-white {
  color: white;
}

/* =============================================
   Image Loading Effect
   ============================================= */

img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* =============================================
   Custom Focus States
   ============================================= */

a:focus,
button:focus {
  outline: 2px solid #17A2B8;
  outline-offset: 2px;
}

/* =============================================
   Gold Color for Stars
   ============================================= */

.text-gold {
  color: #D4AF37;
}

.fill-current.text-gold {
  fill: #D4AF37;
}

.bg-gold {
  background-color: #D4AF37;
}

.bg-gold-light {
  background-color: #F4E7B3;
}

.shadow-gold\/20 {
  box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.2);
}

/* =============================================
   Fade In Section Animation
   ============================================= */

/* Sections that animate on scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered animation for children */
.fade-in-section.visible .fade-child {
  animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in-section.visible .fade-child:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in-section.visible .fade-child:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-section.visible .fade-child:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in-section.visible .fade-child:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-child {
  opacity: 0;
}

.fade-in-section.visible .fade-child {
  opacity: 1;
}

/* =============================================
   Responsive Adjustments
   ============================================= */

@media (max-width: 768px) {
  .animate-on-scroll {
    transition-delay: 0ms !important;
  }

  /* Reduce motion for mobile */
  @media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
}

/* =============================================
   Print Styles
   ============================================= */

@media print {

  nav,
  #whatsapp-float,
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  #mobile-menu {
    display: none !important;
  }
}

/* =============================================
   Franchise Banner
   ============================================= */

.franchise-banner {
  background: linear-gradient(90deg, #17A2B8, #4dc3d1, #17A2B8);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* =============================================
   Mercado Livre Pulsing Button
   ============================================= */

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 230, 0, 0.5), 0 0 20px rgba(255, 230, 0, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 230, 0, 0.8), 0 0 40px rgba(255, 230, 0, 0.5);
    transform: scale(1.05);
  }
}

.blink-badge {
  animation: blink-badge 1.5s ease-in-out infinite;
}

@keyframes blink-badge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}