/* ==========================================================================
   1. VARIÁVEIS DE TEMA E CONFIGURAÇÕES GERAIS
   ========================================================================== */
:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg-body: #0d0d0d;
    --bg-section-alt: #111111;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --bg-navbar: rgba(13, 13, 13, 0.65);
    --bg-footer: #060606;
    --bg-marquee: #090909;
    --text-main: #e2e2e2;
    --text-title: #ffffff;
    --text-dim: #9e9e9e;
    --red-blood: #a11f1f;
    --red-hover: #b82222;
    --red-accent: #e50914;
    --grad-line: linear-gradient(90deg, transparent 0%, #e50914 50%, transparent 100%);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Tema Claro (Light Mode) */
[data-theme="light"] {
    --bg-body: #f4f5f8;
    --bg-section-alt: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-card-border: rgba(0, 0, 0, 0.08);
    --bg-navbar: rgba(255, 255, 255, 0.75);
    --bg-footer: #e9ecef;
    --bg-marquee: #ebeff3;
    --text-main: #2b2d42;
    --text-title: #0f172a;
    --text-dim: #555555;
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-loaded { 
    opacity: 1; 
}

:focus-visible {
    outline: 2px solid var(--red-accent) !important;
    outline-offset: 4px !important;
    border-radius: 4px;
}

/* Utilitários */
.text-center { text-align: center; }
.mb-25 { margin-bottom: 25px; }
.mt-25 { margin-top: 25px; }

.container { 
    max-width: 1150px; 
    margin: auto; 
    padding: 0 20px; 
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    letter-spacing: -0.02em;
}

.section-title, .service-card-clean h3, .cta-section h2, .video-carousel-title {
    color: var(--text-title);
    background: linear-gradient(180deg, var(--text-title) 0%, var(--text-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle, .service-card-clean p, .cta-section p {
    color: var(--text-dim);
}

.section-title-divider {
    width: 100%;
    max-width: 600px;
    height: 3px;
    margin: 10px auto 0 auto;
    background: var(--grad-line);
    border-radius: 2px;
}

/* Barra de Rolagem */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; border: 2px solid var(--bg-body); }
::-webkit-scrollbar-thumb:hover { background: var(--red-blood); }


/* ==========================================================================
   2. NAVBAR & CABEÇALHO
   ========================================================================== */
.navbar { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0;
    background: var(--bg-navbar); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0; 
    border-bottom: 1px solid var(--bg-card-border); 
    z-index: 1000; 
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 40px; width: auto; display: block; }

.navbar-logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.navbar-logo.show {
    opacity: 1;
    visibility: visible;
}

.navbar ul.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center; 
    gap: 24px; 
    margin: 0;
    padding: 0;
}

.navbar ul.nav-links li a { 
    position: relative;
    text-decoration: none; 
    color: var(--text-dim); 
    font-size: 0.95rem; 
    font-weight: 500; 
    padding: 6px 0;
    transition: color 0.3s ease;
}

.navbar ul.nav-links li a:hover,
.navbar ul.nav-links li a.active-page { color: var(--text-title); font-weight: 600; }

.navbar ul.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--red-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar ul.nav-links li a:hover::after,
.navbar ul.nav-links li a.active-page::after { width: 100%; }

.nav-btn-wrapper { display: flex; align-items: center; gap: 14px; }

.nav-btn-wrapper .nav-cta { 
    background: var(--red-blood); 
    color: #fff; 
    padding: 10px 22px; 
    border-radius: 4px; 
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.nav-btn-wrapper .nav-cta:hover { 
    background: var(--red-hover); 
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.theme-toggle-btn:hover {
    border-color: var(--red-accent);
}

.menu-toggle { 
    display: none; 
    background: transparent;
    border: none;
    font-size: 1.6rem; 
    color: var(--text-title); 
    cursor: pointer; 
}

/* BARRA DE PESQUISA (DESATIVADA TEMPORARIAMENTE) */
.search-form-container {
    display: none !important;
}


/* ==========================================================================
   3. BANNER HERO (COM ANIMAÇÃO KEN BURNS E FADE IN)
   ========================================================================== */
.page-home header.hero {
    position: relative; 
    width: 100%; 
    height: 65vh; 
    min-height: 450px; 
    padding: 0; 
    overflow: hidden; 
    background: #0d0d0d;
}

@keyframes kenBurns {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.06);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.page-home header.hero .hero-video {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    min-width: 100%; 
    min-height: 100%; 
    width: auto; 
    height: auto; 
    object-fit: cover; 
    z-index: 0;
    animation: kenBurns 25s ease-in-out infinite;
}

/* Overlay Padrão do Hero (Modo Escuro) */
.hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.35) 0%, rgba(13, 13, 13, 0.75) 60%, var(--bg-body) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

/* Overlay Dinâmico para o Modo Claro (Global) */
[data-theme="light"] .hero .hero-overlay {
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.5) 1%, 
        rgba(0, 0, 0, 0.15) 98%, 
        var(--bg-body) 100%
    );
}

.page-home .hero-container {
    position: relative; 
    z-index: 2;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    height: 100%; 
    padding-top: 60px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-home .hero-logo-img { 
    max-height: 95px; 
    width: auto; 
    margin-bottom: 20px; 
    object-fit: contain; 
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-home .hero-text-wrapper { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

.page-home .hero-title { 
    font-size: 2.2rem; 
    line-height: 1.25; 
    margin-bottom: 12px; 
    color: #ffffff; 
    font-weight: 800; 
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.page-home .hero-desc { 
    font-size: 0.95rem; 
    line-height: 1.5; 
    color: #e0e0e0; 
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}


/* ==========================================================================
   4. ESTATÍSTICAS / KPIS
   ========================================================================== */
.stats-section { padding: 60px 20px; background: var(--bg-body); }
.page-home .stats-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

.page-home .stat-card { 
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border); 
    box-shadow: var(--shadow-glass);
    border-radius: 12px; 
    padding: 30px 20px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease; 
}

.page-home .stat-card:hover { 
    transform: translateY(-6px); 
    border-color: rgba(229, 9, 20, 0.4); 
    background: var(--bg-card-hover);
}

.page-home .stat-number { display: block; font-size: 2.4rem; font-weight: 800; color: var(--red-accent); margin-bottom: 6px; }
.page-home .stat-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; }


/* ==========================================================================
   5. SERVIÇOS & PLAYERS
   ========================================================================== */
.services-section { padding: 75px 20px; background: var(--bg-section-alt); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 65px; }

.service-card-clean {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border);
    box-shadow: var(--shadow-glass);
    border-radius: 12px;
    padding: 32px 24px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.service-card-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--red-accent);
    transition: height 0.35s ease;
}

.service-card-clean:hover { 
    transform: translateY(-8px); 
    border-color: rgba(229, 9, 20, 0.6); 
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.15), var(--shadow-glass);
    background: var(--bg-card-hover);
}

.service-card-clean:hover::before { height: 100%; }
.service-card-clean .card-icon { color: var(--red-accent); font-size: 2rem; margin-bottom: 18px; transition: transform 0.3s ease; }
.service-card-clean:hover .card-icon { transform: scale(1.1); }
.service-card-clean .card-link { color: var(--red-accent); text-decoration: none; font-weight: 700; transition: color 0.3s ease; }
.service-card-clean .card-link:hover { color: var(--text-title); }

.video-main-container { 
    max-width: 850px; 
    margin: 0 auto 60px auto; 
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
    padding: 12px; 
    border-radius: 14px; 
    border: 1px solid var(--bg-card-border); 
    box-shadow: var(--shadow-glass);
}

.video-iframe-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-iframe-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-carousel-section { max-width: 1000px; margin: 0 auto 65px auto; text-align: center; }
.video-carousel-wrapper { display: flex; align-items: center; gap: 15px; position: relative; width: 100%; }
.video-carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding: 10px 5px; width: 100%; }
.video-carousel-track::-webkit-scrollbar { display: none; }

.video-card { 
    min-width: 260px; 
    max-width: 260px; 
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
    border-radius: 12px; 
    border: 1px solid var(--bg-card-border); 
    padding: 10px; 
    cursor: pointer; 
    flex-shrink: 0; 
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.video-card:hover { transform: translateY(-4px); }
.video-card.active { border-color: var(--red-accent); }

.carousel-nav-btn { 
    width: 42px; height: 42px; min-width: 42px; border-radius: 50%; 
    background: var(--bg-card); backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border); color: var(--text-main); 
    display: flex; align-items: center; justify-content: center; cursor: pointer; 
    transition: background 0.3s, border-color 0.3s;
}

.carousel-nav-btn:hover { border-color: var(--red-accent); color: var(--red-accent); }


/* ==========================================================================
   6. CARROSSEL MARQUEE CLIENTES (LOOP INFINITO PERFEITO)
   ========================================================================== */
.marquee-section { 
    padding: 55px 0; 
    background: var(--bg-marquee); 
    border-top: 1px solid var(--bg-card-border); 
    overflow: hidden; 
}

.marquee-title { 
    color: var(--text-dim); 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 600; 
    margin-bottom: 40px; 
    text-align: center; 
}

.marquee-container { 
    width: 100%; 
    overflow: hidden; 
    position: relative; 
}

.marquee-track { 
    display: flex; 
    gap: 60px; 
    width: max-content; 
    animation: scrollMarquee 120s linear infinite; 
}

.marquee-track:hover { 
    animation-play-state: paused; 
}

@keyframes scrollMarquee { 
    0% { 
        transform: translateX(0); 
    } 
    100% { 
        transform: translateX(calc(-50% - 30px)); 
    } 
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 50px; /* Cria um respiro de 50px de distância entre uma logo e outra */
    flex-shrink: 0;     /* Garante que o item não diminua de tamanho */
}
.cliente-logo { 
    max-height: 45px; 
    max-width: 140px; 
    object-fit: contain; 
    filter: grayscale(100%) opacity(0.5); 
    transition: filter 0.35s ease; 
}

.cliente-logo:hover { 
    filter: grayscale(0%) opacity(1); 
}


/* ==========================================================================
   7. BOTÕES E COMPONENTES
   ========================================================================== */
.view-all-link {
    color: var(--red-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--text-title);
}

.btn-cta {
    background: var(--red-blood);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(161, 31, 31, 0.4);
}

.btn-cta:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.footer-btn {
    background: var(--red-blood);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.footer-btn:hover {
    background: var(--red-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}


/* ==========================================================================
   8. RODAPÉ E BOTÃO FLUTUANTE
   ========================================================================== */
.site-footer { 
    background-color: var(--bg-footer); 
    border-top: 1px solid var(--bg-card-border); 
    padding: 60px 0 25px 0; 
    color: var(--text-dim); 
    font-size: 0.9rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr; 
    gap: 40px; 
    margin-bottom: 45px; 
    align-items: start; 
}

.footer-col { display: flex; flex-direction: column; }
.footer-logo { height: 40px !important; width: auto !important; max-width: 100%; object-fit: contain; margin-bottom: 18px; margin-left: 0 !important; display: block; }
.footer-about { align-items: flex-start !important; text-align: left !important; }
.footer-heading { color: var(--red-accent); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.footer-info-block { margin-top: 15px; }
.footer-info-block .footer-heading { margin-bottom: 4px; font-size: 0.95rem; }
.footer-info-block p a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
.footer-info-block p a:hover { color: var(--red-accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--red-accent); }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a { 
    width: 38px; height: 38px; border-radius: 50%; 
    background: var(--bg-card); backdrop-filter: blur(8px); 
    border: 1px solid var(--bg-card-border); color: var(--text-title); 
    display: flex; align-items: center; justify-content: center; 
    text-decoration: none; transition: border-color 0.3s; 
}
.footer-socials a:hover { border-color: var(--red-accent); color: var(--red-accent); }

.footer-bottom { 
    border-top: 1px solid var(--bg-card-border); 
    padding-top: 25px; 
    text-align: center; 
    font-size: 0.85rem; 
}

.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #25d366; 
    color: white; 
    width: 60px; 
    height: 60px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    z-index: 1000; 
    font-size: 2rem; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.6); 
    text-decoration: none; 
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover { 
    transform: scale(1.1); 
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5); 
}


/* ==========================================================================
   9. RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .navbar ul.nav-links {
        position: fixed; 
        top: 70px; 
        left: -100%; 
        width: 100%; 
        height: calc(100vh - 70px);
        background: var(--bg-body); 
        flex-direction: column; 
        justify-content: center; 
        gap: 30px;
        transition: left 0.3s ease; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .navbar ul.nav-links.active { left: 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

/* Classe para ajustar logos escuras em fundos escuros */
.cliente-logo.logo-light {
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.cliente-logo.logo-light:hover {
    opacity: 1;
}