/* =========================================================================
   FOSCOXTREME - ESTILOS GERAIS (VERSÃO PREMIUM UNIFICADA)
   Arquivo: styles.css
   ========================================================================= */

:root {
    --primary-red: #ef4444;
    --primary-red-hover: #dc2626;
    --primary-green: #25D366; /* Verde Oficial WhatsApp */
    --primary-green-hover: #1da851;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
}

/* --- BLOQUEIO DE ROLAGEM LATERAL --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- 1. BOTÕES PREMIUM (EFEITOS DE BRILHO E HOVER) --- */

.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    padding: 18px 40px;
    border-radius: 9999px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: auto;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho (Shine Animation) */
.btn-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-custom:hover::after {
    left: 100%;
}

.btn-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

.btn-custom:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-red { background: var(--primary-red); color: white; }
.btn-red:hover { background: var(--primary-red-hover); }

.btn-green { background: var(--primary-green); color: white; }
.btn-green:hover { background: var(--primary-green-hover); }

.btn-red-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-red-gradient:hover {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

/* Botão Fixo Mobile (Sticky CTA) */
#sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    width: 90%;
    max-width: 400px;
    font-size: 1rem;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
    padding: 18px 24px;
}

@media (max-width: 768px) {
    .btn-custom {
        width: 100%;
        padding: 18px 20px;
        font-size: 1rem;
    }
}

/* --- 2. SLIDER ANTES/DEPOIS (VISUAL E TOUCH) --- */
#beforeAfterContainer {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: pan-y;
    min-height: 400px;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
}


#sliderHandle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    left: 50%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); /* Brilho vermelho seguindo a marca */

}

#sliderHandle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background-color: white;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444' stroke-width='2.5'%3E%3Cpath d='M15 19l-7-7 7-7' /%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444' stroke-width='2.5'%3E%3Cpath d='M9 5l7 7-7 7' /%3E%3C/svg%3E");
    background-position: 5px center, 27px center;
    background-size: 24px;
    background-repeat: no-repeat;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 3px solid #f9fafb;
}

/* --- 3. HERO (IMAGEM E IMPACTO) --- */
#hero {
    padding-bottom: 40px;
    height: auto;
    min-height: 100vh;
    background-color: black;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantém a logo inteira */
    object-position: center; /* Centraliza perfeitamente */
    opacity: 0.5 !important; /* Opacidade baixa para permitir a leitura do texto */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Coloca a imagem atrás de tudo */
}

@media (max-width: 768px) {
    .hero-bg-img {
        object-fit: contain !important;
        object-position: center !important;
        max-height: 50vh; /* Ajusta a altura no mobile para não empurrar o texto */
    }
}

/* --- 4. ANIMAÇÕES DE IMERSÃO (REVEAL NO SCROLL) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-down-icon { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* --- 5. COMPONENTES E GALERIA --- */
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; flex-shrink: 0; padding: 0 10px; box-sizing: border-box; }
@media (min-width: 768px) { .carousel-slide { min-width: 33.333%; } }

.carousel-dot { transition: all 0.3s ease; }
.faq-content { transition: max-height 0.3s ease-out, padding 0.3s ease; }
.benefit-icon svg { width: 50%; height: 50%; }

#portfolioModalContent {
    max-height: 95vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
}

.gallery-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 60vh;
    width: auto; height: auto; object-fit: contain; display: block;
}
@media (min-width: 768px) { .gallery-image-container img { max-height: 75vh; } }

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}
.gallery-nav-btn:hover { background: #ef4444; border-color: #ef4444; }
.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

.gallery-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 10;
    border-left: 4px solid #ef4444;
}
.animate-fade-in { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- 6. CORREÇÃO WHATSAPP VS COOKIE BANNER --- */
#floatingWhatsApp {
    z-index: 40; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    bottom: 25px;
    right: 25px;
    position: fixed;
    animation: pulse-green 2s infinite;
}

@media (max-width: 767px) {
    #floatingWhatsApp {
        width: 60px;
        height: 60px;
        display: flex !important; /* Força aparição no mobile */
    }
    
    /* Se o aviso de cookies estiver na tela, o WhatsApp sobe para não cobrir o botão 'Aceitar' */
    body.cookie-active #floatingWhatsApp {
        bottom: 140px; 
    }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

#cookieBanner {
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(17, 24, 39, 0.98);
}

/* --- 7. VISIBILIDADE E COMPACTAÇÃO MOBILE --- */
@media (max-width: 767px) {
    .desktop-only-btn { display: none !important; }
    #sticky-cta { display: inline-flex !important; }
    
    #hero a[href="#before-after"] {
        position: relative; margin-top: 20px; display: flex; flex-direction: column; align-items: center;
    }

    /* Aproxima os elementos para uma leitura mais assertiva no celular */
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (min-width: 768px) {
    .desktop-only-btn { display: inline-flex !important; }
    #sticky-cta { display: none !important; }
    
    #hero a[href="#before-after"] {
        position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    }
    #hero { height: 100vh; padding-bottom: 0; }
}

/* Controle do Sticky Button */
#sticky-cta.hidden-sticky { 
    transform: translate(-50%, 150%); 
    opacity: 0; 
    pointer-events: none; 
}
/* Estados Iniciais para Animação */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

/* Estado Ativo (quando visível no scroll) */
.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Efeito de flutuação suave para ícones e selos */
.floating-soft {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Hover imersivo nos cards do portfólio */
.portfolio-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.portfolio-card:hover {
    transform: scale(1.05) rotate(1deg);
    z-index: 10;
}