/* ===== MICRO ANIMAÇÕES E EFEITOS ESPECIAIS ===== */

/* Animação de fade-in para elementos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplicar fade-in nos elementos principais */
.header {
    animation: fadeInDown 0.8s ease-out;
}

.hero {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text {
    animation: fadeInLeft 1s ease-out 0.4s both;
}

.hero-visual {
    animation: fadeInRight 1s ease-out 0.6s both;
}

.footer {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Animações de hover nos botões */
.btn-phone:hover {
    animation: buttonBounce 0.6s ease;
}

.btn-whatsapp:hover {
    animation: buttonBounce 0.6s ease;
}

.btn-cta-whatsapp:hover {
    animation: buttonPulse 0.6s ease;
}

@keyframes buttonBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-8px);
    }
    70% {
        transform: translateY(-4px);
    }
    90% {
        transform: translateY(-2px);
    }
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animações nos emojis do header */
.logo-text {
    position: relative;
}

.logo-text::before {
    content: '❄️';
    position: absolute;
    top: -5px;
    left: -25px;
    animation: emojiFloat 2s ease-in-out infinite;
    font-size: 1.2rem;
}

.logo-text::after {
    content: '🛠️';
    position: absolute;
    top: -5px;
    right: -30px;
    animation: emojiFloat 2s ease-in-out infinite reverse;
    font-size: 1.2rem;
}

@keyframes emojiFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(5deg);
    }
    50% {
        transform: translateY(-6px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-5deg);
    }
}

/* Micro-animações nos botões do header */
.nav-buttons .btn-phone::before {
    animation: shimmer 3s ease-in-out infinite;
}

.nav-buttons .btn-whatsapp::before {
    animation: shimmer 3s ease-in-out infinite 1.5s;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Animação do placeholder do hero */
.hero-placeholder {
    animation: gentleGlow 4s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
    from {
        box-shadow: 0 0 20px rgba(255,255,255,0.1);
    }
    to {
        box-shadow: 0 0 40px rgba(255,255,255,0.3), 0 0 60px rgba(255,255,255,0.1);
    }
}

/* Animação dos emojis no hero */
.hero-emoji {
    animation: multiFloat 6s ease-in-out infinite;
}

@keyframes multiFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(2deg) scale(1.05);
    }
    50% {
        transform: translateY(-20px) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg) scale(1.05);
    }
}

/* Animação do gradiente rotativo no hero */
.hero-gradient {
    animation: slowRotate 20s linear infinite;
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Efeitos de hover nos links do footer */
.footer a {
    transition: all 0.3s ease;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.footer a:hover::after {
    width: 100%;
}

/* Animação do botão WhatsApp flutuante */
.whatsapp-link {
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.whatsapp-link:hover {
    animation: none;
}

/* Micro-animação do ícone do WhatsApp */
.whatsapp-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Animações para o mapa do site */
.sitemap-section {
    animation: slideInUp 0.8s ease-out both;
}

.sitemap-section:nth-child(1) { animation-delay: 0.1s; }
.sitemap-section:nth-child(2) { animation-delay: 0.2s; }
.sitemap-section:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects nos links do sitemap */
.sitemap-list a {
    transition: all 0.3s ease;
    position: relative;
}

.sitemap-list a::before {
    content: '📍';
    position: absolute;
    left: -25px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.sitemap-list a:hover::before {
    opacity: 1;
    left: -20px;
}

.sitemap-list a:hover {
    padding-left: 15px;
}

/* Animação das cards de informação */
.info-card {
    animation: cardSlideIn 0.6s ease-out both;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efeitos de loading suaves */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Animação sutil no body para carregamento */
body {
    animation: bodyLoad 0.5s ease-out;
}

@keyframes bodyLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Micro-animações nos títulos */
h1, h2, h3 {
    position: relative;
}

h1::after, h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

h1:hover::after, h2:hover::after, h3:hover::after {
    width: 100px;
}

/* Efeito de brilho nos botões principais */
.btn-cta-whatsapp {
    position: relative;
    overflow: hidden;
}

.btn-cta-whatsapp::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-cta-whatsapp:hover::after {
    opacity: 1;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Animação de respiração nos elementos de destaque */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hero-emoji {
    animation: multiFloat 6s ease-in-out infinite, breathe 4s ease-in-out infinite 2s;
}

.whatsapp-float {
    animation: gentleFloat 3s ease-in-out infinite, breathe 5s ease-in-out infinite 1s;
}

/* Animações responsivas */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

