/* =========================================
   ANIMAÇÕES & HERO
   ========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseBtn {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(198, 123, 92, 0.4);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero h1 {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.hero p, 
.hero .hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

#btn-hero-whatsapp {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards, 
               pulseBtn 2s ease-in-out 1.8s infinite; 
}

/* =========================================
   SCROLL REVEAL (Animação ao rolar)
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease;
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   INTERATIVIDADE & HOVER (Pós-animação)
   ========================================= */

.reason-item.active:hover {
    transform: translateY(-9px);
    transition: all 0.3s ease;
}

.card.active:hover {
    transform: translateY(-10px);
    border-top-color: var(--color-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.psychologist-card.active:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* =========================================
   GALERIA (Cascata)
   ========================================= */

.gallery-grid img.reveal:nth-child(1) { transition-delay: 0.2s; }
.gallery-grid img.reveal:nth-child(2) { transition-delay: 0.4s; }
.gallery-grid img.reveal:nth-child(3) { transition-delay: 0.6s; }
.gallery-grid img.reveal:nth-child(4) { transition-delay: 0.8s; }
.gallery-grid img.reveal:nth-child(5) { transition-delay: 1.0s; }
.gallery-grid img.reveal:nth-child(6) { transition-delay: 1.2s; }

.gallery-grid img.active:hover {
    transition-delay: 0s; 
    transform: scale(1.03); 
    box-shadow: var(--shadow-md);
    filter: sepia(0%);
}

/* =========================================
   DEPOIMENTOS
   ========================================= */

.testimonials-grid .testimonial.reveal:nth-child(1) { transition-delay: 0.2s; }
.testimonials-grid .testimonial.reveal:nth-child(2) { transition-delay: 0.4s; }
.testimonials-grid .testimonial.reveal:nth-child(3) { transition-delay: 0.6s; }

.testimonial.active:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(198, 123, 92, 0.15);
    transition-delay: 0s;
    border-bottom: 4px solid var(--color-accent);
}

.testimonial.active:hover::before {
    color: var(--color-accent);
    opacity: 0.4;
    transform: scale(1.2) rotate(-10deg);
    transition: all 0.4s ease;
}