/* ==========================================================================
   eLav Lavanderia - Estilos Personalizados, Animações & Sanfona FAQ
   ========================================================================== */

/* 1. Suavização e Configurações Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 2. Barra de Progresso de Leitura Superior */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #aaf779, #25D366, #128C7E);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* 3. Ícones Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1;
}

/* 4. Efeitos de Sombra e Elevação */
.shadow-soft {
  box-shadow: 0 2px 8px rgba(22, 27, 64, 0.04), 0 8px 24px rgba(22, 27, 64, 0.06);
}

.shadow-lift {
  box-shadow: 0 12px 36px rgba(22, 27, 64, 0.09), 0 4px 12px rgba(22, 27, 64, 0.04);
}

/* 5. Botão Real Oficial do WhatsApp & Pulso de Atenção */
.btn-whatsapp-real {
  background-color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.25s ease;
}

.btn-whatsapp-real:hover {
  background-color: #1ebe5d;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  transform: scale(1.08) translateY(-2px);
}

.btn-whatsapp-real:active {
  transform: scale(0.95);
}

.shadow-whatsapp-real {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse-whatsapp-real 2.4s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-whatsapp-real {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Notificação flutuante com badge online */
.whatsapp-badge-pulse {
  animation: badge-bounce 2s infinite ease-in-out;
}

@keyframes badge-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* 6. Animações de Scroll Reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate="fade-in"] {
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-24px);
}

[data-animate="fade-right"] {
  transform: translateX(24px);
}

[data-animate="scale-up"] {
  transform: scale(0.95) translateY(12px);
}

[data-animate].is-revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delays escalonados para grids */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }
.stagger-7 { transition-delay: 0.56s; }

/* 7. Flutuação e Brilho no Hero */
@keyframes subtle-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

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

/* 8. Transições de Cards e Botões */
.interactive-card {
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.3s ease;
}

.interactive-card:hover {
  transform: translateY(-4px);
}

.btn-hover-shine {
  position: relative;
  overflow: hidden;
}

.btn-hover-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.btn-hover-shine:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* 9. Menu Mobile Drawer */
#mobile-menu-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-drawer.is-open {
  transform: translateX(0);
}

/* 10. Sanfona no FAQ (Accordion Suave & Fluido) */
.faq-sanfona-item {
  border: 1.5px solid rgba(199, 197, 207, 0.4);
  background-color: #ffffff;
  border-radius: 1rem;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s ease;
}

.faq-sanfona-item:hover {
  border-color: rgba(47, 108, 0, 0.5);
}

.faq-sanfona-item.is-open {
  border-color: #2f6c00;
  background-color: #eff4ff;
  box-shadow: 0 6px 20px rgba(22, 27, 64, 0.08);
}

.faq-header {
  cursor: pointer;
  user-select: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
}

.faq-header:focus-visible {
  outline: 2px solid #2f6c00;
  outline-offset: -2px;
  border-radius: 1rem;
}

.faq-icon-wrapper {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: rgba(170, 247, 121, 0.25);
  color: #2f6c00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease;
}

.faq-sanfona-item.is-open .faq-icon-wrapper {
  transform: rotate(180deg);
  background-color: #2f6c00;
  color: #ffffff;
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content > div {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-sanfona-item.is-open .faq-content {
  grid-template-rows: 1fr;
}

.faq-sanfona-item.is-open .faq-content > div {
  opacity: 1;
  transform: translateY(0);
}

/* 11. Imagens com efeito suave */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover img {
  transform: scale(1.04);
}
