:root {
    --black: #080808;
    --gray-dark: #121212;
    --gray-medium: #1a1a1a;
    --accent: #4caf50; 
    --white: #ffffff;
    --text-muted: #a0a0a0;
    --border: #252525;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--black); color: var(--white); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { 
    background: rgba(8, 8, 8, 0.95); 
    backdrop-filter: blur(10px); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid var(--border); 
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo img { height: 40px; display: block; }

/* Menu de Navegação */
.nav-links { display: flex; gap: 30px; list-style: none; }

/* Centralização Desktop */
@media (min-width: 1025px) {
    .nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
}

.nav-links a { text-decoration: none; color: var(--white); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Ações e Toggle */
.nav-actions { display: flex; align-items: center; gap: 20px; }
.btn-contact-nav { 
    background: transparent; color: var(--accent); border: 1px solid var(--accent); 
    padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: 0.3s; 
}
.btn-contact-nav:hover { background: var(--accent); color: #000; }

/* Botão Hamburguer */
.menu-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 28px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 1001;
}
.menu-toggle span { width: 100%; height: 3px; background: var(--accent); border-radius: 10px; transition: 0.3s; }

/* HERO SECTION */
.hero, .section-with-bg-services, .section-with-bg-contact {
    position: relative; background-size: cover; background-position: center; background-attachment: fixed;
}
.hero { padding: 180px 0 140px; text-align: center; background-image: url('background-hero.jpg'); }
.section-with-bg-services { background-image: url('background-servicos.jpg'); }
.section-with-bg-contact { background-image: url('background-contato.jpg'); }

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); z-index: 1; }
.hero-content, .section-content, .contact-content { position: relative; z-index: 2; width: 100%; }

.hero h1 { font-size: clamp(2.2rem, 8vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.highlight { color: var(--accent); }
.tag { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 15px; display: block; text-transform: uppercase; }

/* SPECS BAR */
.specs-bar { background: var(--gray-medium); padding: 25px 0; border-bottom: 1px solid var(--border); }
.grid-specs { display: flex; justify-content: center; gap: 20px; font-weight: 700; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; text-align: center;}
.separator { color: var(--accent); }

/* SEÇÕES GERAIS */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; }

/* CARDS E GRIDS */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: rgba(8, 8, 8, 0.9); padding: 40px; border-radius: 12px; border: 1px solid var(--border); transition: 0.4s; backdrop-filter: blur(5px); }
.service-card:hover { border-color: var(--accent); transform: translateY(-10px); }
.service-icon { color: var(--accent); font-weight: 900; font-size: 1.5rem; margin-bottom: 20px; }

/* CLIENTES 3x3 FIXO */
.partners-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.partner-box { background: var(--gray-dark); height: 160px; display: flex; align-items: center; justify-content: center; padding: 30px; border-radius: 12px; border: 1px solid var(--border); transition: 0.4s; }
.partner-box img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.partner-box:hover { border-color: var(--accent); transform: scale(1.02); }
.partner-box:hover img { filter: grayscale(0%); opacity: 1; }

/* CONTATO */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: rgba(8, 8, 8, 0.9); padding: 50px; border-radius: 20px; border: 1px solid var(--border); }
input, textarea { width: 100%; padding: 18px; background: #000; border: 1px solid var(--border); color: #fff; border-radius: 8px; margin-bottom: 20px; font-family: inherit; }
.map-container { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); min-height: 400px; position: relative; }
.map-info { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.85); padding: 15px; text-align: center; font-size: 0.8rem; }

/* BOTÕES */
.btn-primary { background: var(--accent); color: #000; padding: 18px 35px; border-radius: 8px; font-weight: 800; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-outline { border: 1px solid var(--white); color: #fff; padding: 18px 35px; border-radius: 8px; text-decoration: none; font-weight: 600; display: inline-block; }
.full-width { width: 100%; }

/* --- FOOTER PREMIUM --- */
.footer {
    padding: 80px 0 0; /* Mais respiro no topo */
    background: #050505;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* Colunas com pesos diferentes */
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    position: relative;
}

/* Linha decorativa embaixo do título da coluna */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-logo {
    height: 45px;
    margin-bottom: 25px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Links de Navegação */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.footer-col ul li a::before {
    content: '→';
    color: var(--accent);
    margin-right: 10px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Itens de Contato */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item .icon {
    font-size: 1.2rem;
    color: var(--accent);
    background: rgba(76, 175, 80, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Rodapé Final */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    background: #030303;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom .cnpj {
    font-family: monospace;
}

/* Responsividade do Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li a {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- RESPONSIVIDADE (O PONTO CHAVE) --- */
@media (max-width: 1024px) {
    .menu-toggle { display: flex; } /* Mostra o ícone hambúrguer */
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
        background: var(--gray-dark); flex-direction: column; align-items: center;
        justify-content: center; gap: 40px; transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 1000;
    }

    .nav-links.active { right: 0; } /* Desliza para dentro */
    
    /* Animação do X */
    .menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .hero, .section-with-bg-services, .section-with-bg-contact { background-attachment: scroll; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .partners-gallery { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .partners-gallery { grid-template-columns: 1fr; }
    .logo img { height: 32px; }
    .contact-card { padding: 30px 20px; }
}