/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --cor-texto: #0a0a0a;
    --cor-fundo: #ffffff;
    
    /* Cores da Logo Guanabara */
    --logo-red: #d90429;
    --logo-blue: #00509d;
    --logo-green: #2a9d8f;
    --logo-yellow: #f4a261;
    --logo-purple: #7b2cbf;

    /* NOVA IDENTIDADE HEYJACK STUDIOS */
    --heyjack-teal: #2396a0;
    --heyjack-black: #0a0a0a;
    --heyjack-dark: #141414;
}

/* RESET ESTRUTURAL */
html {
    height: 100%;
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--cor-texto);
    font-weight: 600;
    min-height: 100vh;
    background-color: transparent; 
    position: relative;
    overflow-x: hidden;
}

/* --- SOLUÇÃO DE ENGENHARIA ANTI-PISCAR (LAYER PROMOTION) --- */
body::after {
    content: "";
    position: fixed; 
    top: 0; left: 0; width: 100vw; height: 100vh; 
    z-index: -9999; 
    pointer-events: none;
    
    /* AQUARELA VIBRANTE */
    background: 
        radial-gradient(circle at 0% 0%, rgba(217, 4, 41, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(0, 80, 157, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(123, 44, 191, 0.20) 0%, transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(244, 162, 97, 0.30) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(42, 157, 143, 0.25) 0%, transparent 50%);
        
    background-color: #ffffff; 
    transform: translateZ(0);
    will-change: transform; 
}

body::before, .ambient-shape { display: none !important; }

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4, h5, .navbar-brand { font-weight: 900; letter-spacing: -0.5px; color: #000; }
.font-handwritten { font-family: 'Pacifico', cursive; color: var(--logo-purple) !important; }
.text-gradient {
    background: linear-gradient(45deg, var(--logo-blue), var(--logo-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}

/* --- CARDS E ELEMENTOS --- */
.cat-card, .glass-card, .card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08); 
    border-radius: 24px; 
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    transform: translateZ(0);
}
.cat-card:hover, .hover-up:hover {
    transform: translateY(-5px); 
    border-color: var(--logo-purple);
    box-shadow: 0 10px 25px rgba(123, 44, 191, 0.2); 
}

/* ==========================================================================
   --- CONFIGURAÇÃO INTELIGENTE DAS IMAGENS ---
   ========================================================================== */

/* 1. REGRA PADRÃO (Tintas, Pincéis, etc) */
.cat-card img, .card-img-top { 
    width: 100%;
    height: 300px;         /* Altura padrão do site */
    object-fit: cover;     
    object-position: center;
    border-radius: 20px;
    background-color: #f8f9fa;
    padding: 0;
    transition: transform 0.3s ease;
}

/* 2. REGRA DE EXCEÇÃO (Papéis/Canson) - CENTRALIZADO PERFEITO SEM BORDAS BRANCAS */
/* Controla o CARD container - remove espaços e bordas brancas */
.cat-card:has(img[src*="papeis"]),
.cat-card:has(img[src*="Canson"]) {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Container div da imagem - Centralização vertical perfeita com flexbox */
.cat-card:has(img[src*="papeis"]) > div:first-child,
.cat-card:has(img[src*="Canson"]) > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 600px !important;
    width: 430px !important;
    max-width: 100% !important;
    /* Remove qualquer fundo branco - sobrescreve estilos inline */
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    /* Remove bordas e espaçamentos */
    border: none !important;
    border-radius: 0 !important;
}

/* Imagem de papéis - Centralizada perfeitamente, sem bordas brancas */
.cat-card img[src*="papeis"], .card-img-top[src*="papeis"],
.cat-card img[src*="Canson"], .card-img-top[src*="Canson"] {
    /* Dimensões - adapta-se ao container */
    height: 100% !important;
    width: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    
    /* Garante que o bloco apareça inteiro e centralizado */
    object-fit: contain !important;
    object-position: center center !important;
    
    /* Remove bordas brancas - fundo transparente */
    background-color: transparent !important;
    background: none !important;
    
    /* Remove espaçamentos que criam bordas */
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    
    /* Alinhamento no flexbox */
    align-self: center !important;
    flex-shrink: 0 !important;
}

/* Botões Guanabara */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--logo-red) 0%, var(--logo-purple) 100%);
    color: white !important; border: none; font-weight: 700; border-radius: 50px; 
    transition: transform 0.2s;
}
.btn-primary-gradient:hover {
    background: linear-gradient(135deg, var(--logo-purple) 0%, var(--logo-blue) 100%);
    transform: scale(1.02);
}

/* --- NAVBAR OTIMIZADA --- */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
    padding: 5px 0 !important;
    backdrop-filter: none !important;
    min-height: 80px;
}
.nav-link {
    font-family: 'Nunito', sans-serif; font-size: 1.15rem !important; font-weight: 800 !important;
    color: #222 !important; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 10px 20px !important; transition: color 0.2s; position: relative;
}
.nav-link:hover { color: var(--logo-purple) !important; }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: 5px; left: 50%;
    background: linear-gradient(90deg, var(--logo-red), var(--logo-purple));
    transition: all 0.3s ease; transform: translateX(-50%); border-radius: 2px;
}
.nav-link:hover::after { width: 80%; }

/* --- RODAPÉ --- */
footer {
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--cor-texto);
    position: relative;
    z-index: 10; 
}
footer h5 { color: var(--logo-blue); font-weight: 800; }
footer .text-muted { color: #666 !important; }

/* --- ÍCONES COLORIDOS --- */
.icon-badge {
    width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    border-radius: 24px; margin: 0 auto 15px; font-size: 2rem; color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.bg-icon-1 { background: var(--logo-red); }
.bg-icon-2 { background: var(--logo-blue); }
.bg-icon-3 { background: var(--logo-green); }

/* ==========================================================================
   --- TEMA HEYJACK STUDIOS (LASER) ---
   ========================================================================== */

/* 1. MODO DARK NA PÁGINA LASER */
body.laser-page::after {
    background: var(--heyjack-black) !important;
}
body.laser-page {
    color: #ffffff !important;
}

/* Header HeyJack (Igual ao Fundo) */
.bg-heyjack-header {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
}

/* Navbar na Laser (Branca) */
body.laser-page .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
body.laser-page .nav-link { color: #222 !important; }
body.laser-page .nav-link:hover { color: var(--heyjack-teal) !important; }
body.laser-page .nav-link::after { background: var(--heyjack-teal); }

/* Footer na Laser (Branco) */
body.laser-page footer {
    background-color: #ffffff !important;
    color: #0a0a0a !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
body.laser-page footer h5, 
body.laser-page footer h3, 
body.laser-page footer p {
    color: #0a0a0a !important;
}
body.laser-page footer .btn-outline-dark {
    color: #222; border-color: #222;
}
body.laser-page footer .btn-outline-dark:hover {
    background: #222; color: white;
}

/* Componentes HeyJack */
.text-heyjack { color: var(--heyjack-teal) !important; }
.bg-heyjack { background-color: var(--heyjack-teal) !important; color: white; }

.btn-heyjack {
    background-color: var(--heyjack-teal); color: white !important;
    border: none; font-weight: 700; border-radius: 50px; transition: transform 0.2s;
}
.btn-heyjack:hover {
    background-color: #176c74; transform: scale(1.02);
}

/* Seção Laser (Cards internos - PRETO PURO) */
.laser-section, body.laser-page .glass-card, body.laser-page .card {
    background: #000000 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    backdrop-filter: none !important;
}
.laser-section h2, .laser-section h5, .laser-section p, .laser-section i,
body.laser-page h1, body.laser-page h2, body.laser-page h3, body.laser-page p {
    color: white; 
}
body.laser-page .glass-card:hover, body.laser-page .card:hover {
    border-color: var(--heyjack-teal);
}

/* Utils */
.rounded-4 { border-radius: 24px !important; }
.ls-2 { letter-spacing: 2px; }
.carousel-img-custom { height: 500px; object-fit: cover; border-radius: 20px; }
@media (max-width: 768px) {
    .carousel-img-custom { height: 300px; }
    .navbar-brand img { height: 100px; }
}

.logo-no-hover {
    background: transparent !important; transform: none !important; box-shadow: none !important; cursor: default;
}
body.laser-page .glass-card:hover .logo-no-hover, .hover-up:hover .logo-no-hover {
    background: transparent !important; transform: none !important; box-shadow: none !important;
}

/* --- CARROSSEL INFINITO (CORRIGIDO: CAIXAS PADRONIZADAS) --- */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.marquee-track {
    display: flex; /* Alinha logos */
    align-items: center;
    animation: scrollBrands 20s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0); 
}

/* Estilo da Caixa (Pill) - Padronizado */
.brand-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Dimensões Fixas para Uniformidade */
    min-width: 200px;  
    height: 120px;     
    
    background-color: #ffffff;
    margin: 0 20px;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

/* Controle da Imagem dentro da Caixa */
.brand-pill img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain; /* Garante que a logo caiba sem cortar */
}

.brand-pill:hover {
    transform: scale(1.05);
    border-color: var(--logo-purple);
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.15);
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}