/* ==========================================================================
   EXCLUSIVE STUDIO HAIR — animations.css (CAMADA DE MOVIMENTO)

   DIVISÃO DE RESPONSABILIDADE ENTRE OS DOIS CSS
   ---------------------------------------------------------------------------
   styles.css      → aparência em repouso e layout: reset, variáveis (:root),
                     tipografia, cores, grid/flex, espaçamentos, bordas,
                     estados :hover/:focus e media queries de responsividade.

   animations.css  → SOMENTE efeitos de movimento e decoração:
                     @keyframes reutilizáveis, declarações `animation:`,
                     classes utilitárias de animação (.float-animation,
                     .pulse-glow, .reveal-text, .scroll-reveal…), os
                     pseudo-elementos que existem apenas para produzir um
                     efeito (.footer::before, .btn-gold::before, .spotlight)
                     e o bloco `prefers-reduced-motion` que desliga tudo.

   REGRA: uma mesma propriedade nunca é declarada nos dois arquivos.
   Ao criar um estilo novo, pergunte "isso existe se eu desligar todas as
   animações?" — se sim, vai para styles.css; se não, vai para animations.css.

   Nota: propriedades estruturais mínimas exigidas por um efeito
   (`position: relative` em .footer/.btn-gold, `overflow: hidden`) ficam
   declaradas junto do componente em styles.css, com um comentário apontando
   para o efeito correspondente aqui.
   ========================================================================== */

/* ===== SCROLL PROGRESS BAR (topo da página) ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(212, 175, 55, 0.4);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ===== SHIMMER BUTTON EFFECT =====
   .btn-gold / .btn-whatsapp-xl recebem position:relative + overflow:hidden
   em styles.css; aqui fica só o brilho que atravessa o botão. */
.btn-gold::before,
.btn-whatsapp-xl::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* ===== TEXT REVEAL ANIMATION ===== */
.reveal-text {
    opacity: 0;
    transform: translateY(24px);
    animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-text-delay-3 { animation-delay: 0.6s; }
.reveal-text-delay-4 { animation-delay: 0.8s; }
.reveal-text-delay-5 { animation-delay: 1.0s; }

@keyframes revealUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal-delay-4 { transition-delay: 0.4s; }

/* ===== CARD SPOTLIGHT EFFECT ===== */
.servico-card,
.destaque-card,
.produto-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

/* Spotlight radial no hover */
.servico-card .spotlight,
.destaque-card .spotlight,
.produto-card .spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(212, 175, 55, 0.1) 0%,
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.servico-card:hover .spotlight,
.destaque-card:hover .spotlight,
.produto-card:hover .spotlight {
    opacity: 1;
}

/* Border glow */
.servico-card::before,
.destaque-card::before,
.produto-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(212, 175, 55, 0.3) 50%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.servico-card:hover::before,
.destaque-card:hover::before,
.produto-card:hover::before {
    opacity: 1;
}

.servico-card:hover,
.destaque-card:hover,
.produto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(212, 175, 55, 0.08);
}

/* ===== COUNTER ANIMATION ===== */
.stat-num {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLOWING BORDER PULSE (badges) =====
   Estilo base de .produto-badge (posição, cor, tipografia) fica em styles.css. */
.produto-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(212, 175, 55, 0); }
}

/* ===== FOOTER GLOW ACCENT =====
   .footer recebe position:relative em styles.css. */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.4) 30%, rgba(212, 175, 55, 0.8) 50%, rgba(212, 175, 55, 0.4) 70%, transparent 100%);
}

/* ===== PARALLAX BACKGROUNDS ===== */
.parallax-slow {
    will-change: transform;
}

/* ===== PULSE GLOW (elementos de destaque) ===== */
.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.15); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.3); }
}

/* ===== FLOAT ANIMATION (ícones) ===== */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== SHINE EFFECT (sobre imagem) ===== */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    animation: shineSweep 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shineSweep {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ===== CONFETTI CANVAS ===== */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

/* ===== RESPONSIVE: reduzir animações ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-circle,
    .hero-img,
    .btn-gold::before,
    .produto-badge,
    .reveal-text,
    .scroll-reveal,
    .stat-num,
    .float-animation,
    .pulse-glow,
    .shine-effect::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal-text,
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    .cursor-glow { display: none; }
}

@media (max-width: 768px) {
    .cursor-glow { display: none; }
}
