/* ==========================================================================
   VARIÁVEIS DE CORES E FONTES
   ========================================================================== */
:root {
    /* Paleta Dark Theme e Red Security */
    --bg-dark: #0a0a0a;
    --bg-surface: #141414;
    --bg-surface-light: #1f1f1f;
    --primary-red: #d11124; /* Vermelho inspirado na águia */
    --primary-red-hover: #a10c1b;
    --text-light: #f4f4f4;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --wpp-green: #25D366;
    --wpp-green-hover: #128C7E;
    
    /* Fontes */
    --font-main: 'Montserrat', sans-serif;
    
    /* Transições */
    --transition-fast: 0.3s ease;
}

/* ==========================================================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Corta qualquer vazamento lateral pela raiz */
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   TIPOGRAFIA E UTILITÁRIOS
   ========================================================================== */
h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 800;
}

.highlight-red {
    color: var(--primary-red);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title.center {
    text-align: center;
}

section {
    padding: 80px 0;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(209, 17, 36, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 17, 36, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   CABEÇALHO (HEADER) E NAVEGAÇÃO
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition-fast);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px; /* Ajuste conforme a proporção da sua imagem */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--primary-red);
}

.btn-nav-wpp {
    background-color: var(--wpp-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-wpp:hover {
    background-color: var(--wpp-green-hover);
    color: #fff;
}

/* Menu Hambúrguer (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
    border-radius: 3px;
}

/* ==========================================================================
   SEÇÃO HERO (INÍCIO)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #2a2a2a 0%, #0a0a0a 100%);
    padding-top: 80px; /* Compensa o header fixo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); /* Textura sutil */
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   SEÇÃO SOBRE NÓS
   ========================================================================== */
.about-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.about-benefits li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-benefits i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.about-image-badge {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-icon-large {
    font-size: 15rem;
    color: var(--bg-surface-light);
    text-shadow: 0 0 50px rgba(209, 17, 36, 0.2);
    animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   SEÇÃO SERVIÇOS
   ========================================================================== */
.services-section {
    background-color: var(--bg-dark);
}

.services-section .section-header p {
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transition: var(--transition-fast);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #444;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.services-cta {
    text-align: center;
    background-color: var(--bg-surface-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ==========================================================================
   SEÇÃO DEPOIMENTOS
   ========================================================================== */
.testimonials-section {
    background-color: var(--bg-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.testimonial-card h4 {
    font-size: 1rem;
    color: var(--text-light);
}

/* ==========================================================================
   SEÇÃO CONTATO
   ========================================================================== */
.contact-section {
    background: linear-gradient(135deg, var(--bg-surface) 0%, #1a0508 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 3rem;
    color: var(--wpp-green);
}

.contact-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-item strong {
    font-size: 1.5rem;
    color: #fff;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
footer {
    background-color: #050505;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.credits {
    margin-top: 10px;
}

.credits a {
    color: var(--primary-red);
    font-weight: bold;
}

/* ==========================================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ========================================================================== */
.float-wpp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--wpp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-wpp 2s infinite;
}

.float-wpp:hover {
    background-color: var(--wpp-green-hover);
    color: #fff;
}

/* ==========================================================================
   ANIMAÇÕES (KEYFRAMES)
   ========================================================================== */
@keyframes pulse-wpp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.pulse-effect {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(209, 17, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(209, 17, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(209, 17, 36, 0); }
}

.wobble-effect:hover {
    animation: wobble 1s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: translateX(0%); }
    15% { transform: translateX(-5px) rotate(-5deg); }
    30% { transform: translateX(4px) rotate(3deg); }
    45% { transform: translateX(-3px) rotate(-3deg); }
    60% { transform: translateX(2px) rotate(2deg); }
    75% { transform: translateX(-1px) rotate(-1deg); }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE PARA MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .about-grid, .contact-flex { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .about-benefits li { justify-content: center; }
    .contact-item { justify-content: center; }
    .shield-icon-large { display: none; /* Esconde o ícone gigante no mobile para poupar espaço */ }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    /* FIX 1: Impede que a logomarca estique e empurre o menu hambúrguer */
    .logo-img { max-width: 60vw; } 

    /* FIX 2: Cria um "limite" para o menu invisível não vazar */
    .navbar { position: relative; }

    .nav-list {
        position: absolute;
        top: 100%;
        left: -100vw; /* Joga o menu totalmente para fora da tela */
        flex-direction: column;
        background-color: var(--bg-surface);
        width: 100%;
        text-align: center;
        transition: left 0.4s ease-in-out;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        gap: 15px;
        z-index: 999;
    }

    .nav-list.active { left: 0; }

    /* FIX 3: Força os cards a ficarem em 1 coluna em telas pequenas */
    .services-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .section-title { font-size: 2rem; }

    /* FIX 4: Ajustes da Seção de Contato para não quebrar a tela */
    .contact-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .contact-item {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .contact-action {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-large {
        width: 100%; 
        padding: 15px 20px; 
        font-size: 1rem; 
        white-space: normal; 
        text-align: center;
    }
}