/* Camada de animação e polimento visual — carregada após assets/css/home.css */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pain-grid .reveal:nth-child(2),
.assets-grid .reveal:nth-child(2),
.plans .reveal:nth-child(2),
.testimonials .reveal:nth-child(2) { transition-delay: .08s; }
.pain-grid .reveal:nth-child(3),
.assets-grid .reveal:nth-child(3),
.plans .reveal:nth-child(3),
.testimonials .reveal:nth-child(3) { transition-delay: .16s; }
.pain-grid .reveal:nth-child(4),
.assets-grid .reveal:nth-child(4),
.testimonials .reveal:nth-child(4) { transition-delay: .24s; }
.pain-grid .reveal:nth-child(5),
.assets-grid .reveal:nth-child(5) { transition-delay: .32s; }

.hero.dark .hero-copy,
.hero.dark .hero-visual {
  opacity: 0;
  animation: hero-in .8s ease .1s forwards;
}
.hero.dark .hero-visual { animation-delay: .25s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.button {
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:active { transform: translateY(0); }
.button:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.pain-card,
.asset,
.plan,
.testimonial,
.meeting-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.pain-card:hover,
.asset:hover,
.testimonial:hover,
.meeting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 31, 61, .12);
}
.plan:hover {
  transform: translateY(-6px);
}
.plan.recommended:hover {
  transform: translateY(-8px);
}

.sticky-cta {
  transition: transform .3s ease, opacity .3s ease;
}

.gallery button img {
  transition: transform .35s ease;
}
.gallery button:hover img {
  transform: scale(1.04);
}

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 80px 0;
}
.not-found h1 {
  font-family: var(--title);
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero.dark .hero-copy,
  .hero.dark .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
