/* ═══════════════════════════════════════════════════════════ */
/* ANIMATIONS & DYNAMIC EFFECTS - Lis Matos Landing Page */
/* ═══════════════════════════════════════════════════════════ */

/* ── KEYFRAME ANIMATIONS ──────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInCards {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(34, 163, 102, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 163, 102, 0.6);
  }
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ── SCROLL REVEAL ELEMENTS ───────────────────────────── */

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ── HEADER ANIMATIONS ────────────────────────────────── */

header {
  animation: fadeInDown 0.6s ease-out;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header img {
  transition: transform 0.3s ease;
}

header:hover img {
  transform: scale(1.05);
}

/* ── HERO SECTION ANIMATIONS ──────────────────────────── */

.hero-content {
  animation: fadeInLeft 0.8s ease-out;
}

.hero-img {
  animation: fadeInRight 0.8s ease-out;
  overflow: hidden;
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out 0.2s both;
  transition: all 0.3s ease;
}

.hero h1:hover {
  color: var(--green-cta);
  text-shadow: 0 0 20px rgba(34, 163, 102, 0.1);
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-eyebrow {
  animation: fadeInUp 0.8s ease-out 0.15s both;
  transition: all 0.3s ease;
}

.hero-eyebrow:hover {
  letter-spacing: 0.2em;
  color: var(--green-cta);
}

.hero-quotes {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-quotes p {
  transition: all 0.3s ease;
}

.hero-quotes p:hover {
  color: var(--green-cta);
  padding-left: 10px;
}

.hero-trust {
  animation: fadeInUp 0.8s ease-out 0.5s both;
  transition: all 0.3s ease;
}

.hero-trust:hover {
  gap: 12px;
}

/* ── BUTTON ANIMATIONS ────────────────────────────────── */

.btn-whatsapp {
  animation: fadeInUp 0.8s ease-out 0.5s both;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
  z-index: 1;
}

.btn-whatsapp:hover::before {
  left: 100%;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(34, 163, 102, 0.4);
}

.btn-whatsapp:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(34, 163, 102, 0.3);
}

.btn-whatsapp svg {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-whatsapp:hover svg {
  transform: scale(1.15) rotate(-5deg);
}

/* ── RIPPLE EFFECT ────────────────────────────────── */

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
  z-index: 2;
}

/* ── SECTION ANIMATIONS ───────────────────────────────── */

.section {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-of-type(2) { animation-delay: 0.2s; }
.section:nth-of-type(3) { animation-delay: 0.3s; }
.section:nth-of-type(4) { animation-delay: 0.4s; }
.section:nth-of-type(5) { animation-delay: 0.5s; }

.section-tag {
  animation: fadeInUp 0.6s ease-out backwards;
  transition: all 0.3s ease;
}

.section-tag:hover {
  letter-spacing: 0.2em;
  color: var(--green-cta);
}

/* ── CARD ANIMATIONS ──────────────────────────────────── */

.symptom-card {
  animation: slideInCards 0.6s ease-out backwards;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.symptom-card:nth-child(1) { animation-delay: 0.1s; }
.symptom-card:nth-child(2) { animation-delay: 0.2s; }
.symptom-card:nth-child(3) { animation-delay: 0.3s; }
.symptom-card:nth-child(4) { animation-delay: 0.4s; }

.symptom-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.symptom-card:hover::after {
  left: 100%;
}

.symptom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--green-cta);
}

.symptom-card h3 {
  transition: all 0.3s ease;
}

.symptom-card:hover h3 {
  color: var(--green-cta);
}

/* ── BENEFIT ITEMS ANIMATIONS ────────────────────────── */

.benefit-item {
  animation: fadeInUp 0.6s ease-out backwards;
  transition: all 0.3s ease;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }
.benefit-item:nth-child(5) { animation-delay: 0.5s; }
.benefit-item:nth-child(6) { animation-delay: 0.6s; }

.benefit-item:hover {
  padding-left: 10px;
}

.benefit-icon {
  animation: popIn 0.6s ease-out backwards;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.15) rotate(10deg);
  background: var(--green-cta);
  color: #fff;
  box-shadow: 0 5px 15px rgba(34, 163, 102, 0.3);
}

.benefit-item h4 {
  transition: all 0.3s ease;
}

.benefit-item:hover h4 {
  color: var(--green-cta);
  transform: translateX(5px);
}

/* ── TESTIMONIAL CARDS ANIMATIONS ────────────────────── */

.testimonial-card {
  animation: scaleIn 0.6s ease-out backwards;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--green-cta);
}

.testimonial-card::before {
  transition: all 0.3s ease;
}

.testimonial-card:hover::before {
  opacity: 0.3;
  transform: scale(1.2);
}

.author-avatar {
  animation: popIn 0.6s ease-out backwards;
  transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
  background: var(--green-cta);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(34, 163, 102, 0.3);
}

.author-name {
  transition: all 0.3s ease;
}

.testimonial-card:hover .author-name {
  color: var(--green-cta);
}

/* ── ABOUT SECTION ANIMATIONS ─────────────────────────── */

.about-photo {
  animation: fadeInLeft 0.8s ease-out;
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}

.about-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(47, 79, 70, 0.2);
}

.about-photo img {
  transition: all 0.3s ease;
}

.about-photo:hover img {
  transform: scale(1.08);
}

.about-content {
  animation: fadeInRight 0.8s ease-out;
}

.credential-item {
  animation: fadeInUp 0.6s ease-out backwards;
  transition: all 0.3s ease;
}

.credential-item:nth-child(1) { animation-delay: 0.1s; }
.credential-item:nth-child(2) { animation-delay: 0.2s; }
.credential-item:nth-child(3) { animation-delay: 0.3s; }
.credential-item:nth-child(4) { animation-delay: 0.4s; }

.credential-item:hover {
  padding-left: 10px;
  color: var(--green-cta);
}

.credential-item svg {
  transition: all 0.3s ease;
}

.credential-item:hover svg {
  transform: scale(1.2) rotate(10deg);
}

/* ── FAQ ANIMATIONS ───────────────────────────────────── */

.faq-item {
  animation: fadeInUp 0.6s ease-out backwards;
  transition: all 0.3s ease;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(6) { animation-delay: 0.3s; }

.faq-question {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.faq-question:hover {
  color: var(--green-cta);
  background: rgba(34, 163, 102, 0.05);
  padding-left: 32px;
}

.faq-question::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--green-cta);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.faq-question:hover::before {
  transform: scaleY(1);
}

.faq-question svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  animation: slideUp 0.3s ease-out;
}

/* ── SESSIONS CARDS ANIMATIONS ────────────────────────── */

.sessions-card {
  animation: popIn 0.6s ease-out backwards;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.sessions-card:nth-child(1) { animation-delay: 0.1s; }
.sessions-card:nth-child(2) { animation-delay: 0.2s; }
.sessions-card:nth-child(3) { animation-delay: 0.3s; }
.sessions-card:nth-child(4) { animation-delay: 0.4s; }

.sessions-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(34, 163, 102, 0.2);
  border-color: var(--green-cta);
}

.sessions-card-icon {
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.sessions-card:hover .sessions-card-icon {
  animation: none;
  transform: scale(1.2) rotate(360deg);
  background: var(--green-cta);
  color: #fff;
}

.sessions-card h4 {
  transition: all 0.3s ease;
}

.sessions-card:hover h4 {
  color: var(--green-cta);
}

.sessions-card p {
  transition: all 0.3s ease;
}

.sessions-card:hover p {
  transform: scale(1.1);
}

/* ── SCARCITY BANNER ANIMATIONS ──────────────────────── */

.scarcity-banner {
  animation: fadeInDown 0.8s ease-out 0.7s both;
  transition: all 0.3s ease;
}

.scarcity-banner:hover {
  background: rgba(232, 148, 58, 0.1);
  border-color: #e8943a;
}

.scarcity-dot {
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px rgba(232, 148, 58, 0.5);
}

/* ── FINAL CTA ANIMATIONS ─────────────────────────────── */

.final-cta h2 {
  animation: fadeInUp 0.8s ease-out;
  transition: all 0.3s ease;
}

.final-cta h2:hover {
  color: var(--green-cta);
}

.final-cta p {
  animation: fadeInUp 0.8s ease-out 0.1s both;
  transition: all 0.3s ease;
}

.final-cta p:hover {
  color: var(--green-cta);
}

.final-cta-trust {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.final-cta-trust span {
  transition: all 0.3s ease;
  cursor: default;
}

.final-cta-trust span:hover {
  transform: translateY(-3px);
  color: var(--green-cta);
}

.final-cta-trust svg {
  transition: all 0.3s ease;
}

.final-cta-trust span:hover svg {
  transform: scale(1.2);
}

/* ── FOOTER ANIMATIONS ────────────────────────────────── */

footer {
  animation: fadeInUp 0.8s ease-out;
  transition: all 0.3s ease;
}

footer p {
  transition: all 0.3s ease;
}

footer p:hover {
  color: var(--green-cta);
}

/* ── HEADING ANIMATIONS ───────────────────────────────── */

h2, h3, h4 {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

h2:hover, h3:hover {
  color: var(--green-cta);
  transform: translateX(5px);
}

/* ── GENERAL LINK & TEXT ANIMATIONS ───────────────────── */

a {
  transition: all 0.3s ease;
}

p {
  transition: all 0.3s ease;
}

/* ── LOADING STATE ────────────────────────────────────── */

body.loaded {
  animation: fadeInUp 0.8s ease-out;
}

/* ── MOBILE OPTIMIZATIONS ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── MOBILE OPTIMIZATIONS ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile - Reduzir animações e ajustar layout */
@media (max-width: 768px) {
  /* Desabilitar animações de entrada que causam desalinhamento */
  header {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero h1,
  .hero-subtitle,
  .hero-eyebrow,
  .hero-quotes {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation-delay: 0 !important;
  }

  .btn-whatsapp {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation-delay: 0 !important;
  }

  .section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation-delay: 0 !important;
  }

  .section:nth-of-type(2),
  .section:nth-of-type(3),
  .section:nth-of-type(4),
  .section:nth-of-type(5) {
    animation-delay: 0 !important;
  }

  /* Simplificar animações de cards */
  .symptom-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.2s ease;
  }

  .symptom-card:nth-child(1),
  .symptom-card:nth-child(2),
  .symptom-card:nth-child(3),
  .symptom-card:nth-child(4) {
    animation-delay: 0 !important;
  }

  .symptom-card:hover {
    transform: translateY(-4px);
  }

  .benefit-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation-delay: 0 !important;
  }

  .benefit-item:nth-child(1),
  .benefit-item:nth-child(2),
  .benefit-item:nth-child(3),
  .benefit-item:nth-child(4),
  .benefit-item:nth-child(5),
  .benefit-item:nth-child(6) {
    animation-delay: 0 !important;
  }

  .benefit-icon {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .testimonial-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.2s ease;
    animation-delay: 0 !important;
  }

  .testimonial-card:nth-child(1),
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(3) {
    animation-delay: 0 !important;
  }

  .testimonial-card:hover {
    transform: translateY(-4px);
  }

  .author-avatar {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .about-photo {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .about-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .credential-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation-delay: 0 !important;
  }

  .credential-item:nth-child(1),
  .credential-item:nth-child(2),
  .credential-item:nth-child(3),
  .credential-item:nth-child(4) {
    animation-delay: 0 !important;
  }

  .faq-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation-delay: 0 !important;
  }

  .faq-item:nth-child(1),
  .faq-item:nth-child(2),
  .faq-item:nth-child(3),
  .faq-item:nth-child(4),
  .faq-item:nth-child(5),
  .faq-item:nth-child(6) {
    animation-delay: 0 !important;
  }

  .sessions-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.2s ease;
    animation-delay: 0 !important;
  }

  .sessions-card:nth-child(1),
  .sessions-card:nth-child(2),
  .sessions-card:nth-child(3),
  .sessions-card:nth-child(4) {
    animation-delay: 0 !important;
  }

  .sessions-card:hover {
    transform: translateY(-6px);
  }

  .sessions-card-icon {
    animation: none !important;
  }

  .sessions-card:hover .sessions-card-icon {
    animation: none !important;
    transform: scale(1.15) !important;
  }

  .scarcity-banner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scarcity-dot {
    animation: pulse 2s infinite;
  }

  .final-cta h2,
  .final-cta p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .final-cta-trust {
    animation: none !important;
  }

  footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Scroll reveal com animação desabilitada em mobile */
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-reveal.active {
    animation: none !important;
  }
}

/* Tablets - Animações reduzidas mas presentes */
@media (max-width: 900px) and (min-width: 769px) {
  /* Remover delays cascata em tablets */
  .btn-whatsapp {
    animation-delay: 0 !important;
  }

  .symptom-card {
    animation-delay: 0 !important;
  }

  .benefit-item {
    animation-delay: 0 !important;
  }

  .testimonial-card {
    animation-delay: 0 !important;
  }

  .faq-item {
    animation-delay: 0 !important;
  }

  .sessions-card {
    animation-delay: 0 !important;
  }

  /* Manter hover effects */
  .symptom-card:hover {
    transform: translateY(-4px);
  }

  .testimonial-card:hover {
    transform: translateY(-6px);
  }

  .sessions-card:hover {
    transform: translateY(-8px);
  }
}
