/* 
========================================================================
   NEW PILATES PRO - STYLING & DESIGN SYSTEM (DARK/PREMIUM)
   Senior Front-End Developer & CRO Expert Implementation
========================================================================
*/

/* --- Importação de Fontes Premium --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* --- Configurações Base do Tema --- */
:root {
    --color-bg-pure: #000000;
    --color-bg-charcoal: #080808;
    --color-bg-card: #121212;
    --color-silver-light: #F3F4F6;
    --color-silver-metal: #D1D5DB;
    --color-silver-dark: #6B7280;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Reset e Comportamento Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg-pure);
    color: var(--color-silver-metal);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

/* --- Custom Scrollbar (Premium Dark Style) --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-pure);
}
::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 4px;
    border: 2px solid var(--color-bg-pure);
}
::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* ========================================================================
   Componentes Premium & Efeitos Visuais
   ======================================================================== */

/* --- Logo Placeholder (Silver Gradient Circular Borda) --- */
.logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #161616 0%, #080808 100%);
    border: 2px solid transparent;
    background-image: linear-gradient(#080808, #080808), linear-gradient(135deg, #FFFFFF, #4B5563, #FFFFFF);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}
.logo-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine-silver 6s infinite linear;
}
.logo-placeholder:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.12);
}

/* --- Gradiente Metálico de Título --- */
.text-gradient-silver {
    background: linear-gradient(135deg, #FFFFFF 30%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Glassmorphism Cards (Diferenciais e Provas Sociais) --- */
.glass-card {
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#FFF 0 0) content-box, linear-gradient(#FFF 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.03);
}

/* --- Botão Principal do WhatsApp com Efeito de Pulso e Glow --- */
.btn-whatsapp {
    background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-whatsapp-dark) 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3), 
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animação de Pulso contínuo (Aura verde expandindo para o CTA) */
.btn-pulse-glow {
    animation: cta-pulse 2s infinite ease-in-out;
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-25deg);
    transition: none;
}

.btn-whatsapp:hover::after {
    left: 150%;
    transition: all 0.75s ease-in-out;
}

.btn-whatsapp:hover {
    transform: scale(1.025);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5), 
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.btn-whatsapp:active {
    transform: scale(0.98);
}

/* --- Botão Flutuante Persistente do WhatsApp --- */
.whatsapp-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
}
.whatsapp-floating:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
/* Tooltip flutuante do WhatsApp */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #111111;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.whatsapp-floating:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --- Fundo Estilizado com Efeito de Luz Difusa (Aura Ambiental) --- */
.bg-ambient-glow {
    position: relative;
}
.bg-ambient-glow::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    pointer-events: none;
    z-index: 0;
}
.bg-ambient-glow::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    bottom: 20%;
    right: -10%;
    pointer-events: none;
    z-index: 0;
}

/* --- Carrossel de Depoimentos Otimizado --- */
.carousel-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 8px;
}
@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 33.333%;
        width: 33.333%;
    }
}

/* --- Efeito de Indicadores do Carrossel --- */
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333333;
    transition: all 0.3s ease;
    cursor: pointer;
}
.carousel-dot.active {
    width: 24px;
    background: var(--color-silver-metal);
    border-radius: 4px;
}

/* --- Animação de Scroll (High-Performance Fade-in Up) --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================================
   Definição de Keyframes e Animações
   ======================================================================== */

@keyframes cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4), 
                    0 8px 24px rgba(37, 211, 102, 0.3);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 
                    0 8px 24px rgba(37, 211, 102, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 
                    0 8px 24px rgba(37, 211, 102, 0.3);
    }
}

@keyframes shine-silver {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(45deg);
    }
}

/* --- Indicador de Escassez Estilizado --- */
.badge-urgency {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #FCA5A5;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: soft-pulse 2s infinite ease-in-out;
}

@keyframes soft-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}
