/* =========================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================= */
:root {
    /* Paleta de Cores baseada na Logo MBS */
    --primary-blue: #0088ff;       /* Azul brilhante */
    --primary-dark: #004480;       /* Azul escuro */
    
    --bg-body: #050505;            /* Preto fundo */
    --bg-card: #101010;            /* Cinza escuro cards */
    
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-silver: #e0e0e0;      /* Detalhes prateados */
    
    --whatsapp-green: #25D366;     /* Verde WhatsApp */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; }
ul { list-style: none; }

/* =========================================
   2. HEADER / MENU
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 2px solid var(--primary-dark);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px; 
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 136, 255, 0.5));
}

.nav-desktop ul {
    display: flex;
    gap: 25px;
}

.nav-desktop a {
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-desktop a:hover {
    color: var(--primary-blue);
}

.btn-small {
    background: transparent;
    border: 1px solid var(--whatsapp-green);
    color: var(--whatsapp-green);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

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

/* Menu Mobile */
.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
    border-bottom: 2px solid var(--primary-blue);
    text-align: center;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav a {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px;
    border-bottom: 1px solid #222;
}

/* =========================================
   3. HERO SECTION (CAPA)
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    /* Imagem de fundo: Câmeras e Segurança */
    background: url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.badge {
    background: rgba(0, 136, 255, 0.15);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--primary-blue);
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero h1 .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-blue);
    text-shadow: 0 0 20px rgba(0, 136, 255, 0.3);
}

.hero p {
    font-size: 1.1rem;
    color: var(--accent-silver);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-blue));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.4);
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 136, 255, 0.7);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* =========================================
   4. SEÇÃO GERAL & TÍTULOS
   ========================================= */
.section { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p { color: var(--text-gray); }

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

/* =========================================
   5. SERVIÇOS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid #222;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #0f1820;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 1px solid #333;
}

.service-card:hover .icon-box {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: color 0.3s;
}

.service-card:hover .icon-box i { color: white; }

/* =========================================
   6. KITS DE CÂMERAS (4 COLUNAS)
   ========================================= */
.dark-bg { background-color: #020202; }

.kits-grid {
    display: grid;
    /* Tenta encaixar as colunas, mínimo de 220px */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: flex-start;
}

.kit-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kit-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.15);
}

/* Destaque (Hikvision) */
.featured {
    border: 1px solid var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.2);
    transform: scale(1.03);
    z-index: 2;
}

.tag-destaque {
    background: var(--whatsapp-green);
    color: white;
    text-align: center;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px;
    text-transform: uppercase;
}

.kit-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, #151515, var(--bg-card));
    border-bottom: 1px solid #222;
}

.kit-header h4 {
    color: var(--primary-blue);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.kit-header h3 {
    font-size: 1.2rem;
    color: white;
}

.kit-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz o corpo esticar para alinhar botões */
    justify-content: space-between;
}

.kit-body ul { margin-bottom: 20px; }

.kit-body ul li {
    margin-bottom: 10px;
    color: var(--accent-silver);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

.kit-body ul li i { color: var(--whatsapp-green); font-size: 0.8rem; }

.btn-kit {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background: transparent;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-kit:hover {
    background: #333;
    border-color: white;
}

.btn-destaque {
    background: var(--whatsapp-green);
    border: none;
    color: white;
}

.btn-destaque:hover {
    background: #1ebe57;
}

/* =========================================
   7. ALARMES E CERCA (ESTILO DIFERENCIADO)
   ========================================= */
.alarms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.alarm-card {
    background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
    border: 1px solid #333;
    border-left: 4px solid var(--primary-blue); /* Detalhe lateral */
    border-radius: 10px;
    padding: 30px;
    transition: 0.3s;
}

.alarm-card:hover {
    transform: translateX(5px);
    background: #151515;
}

.alarm-content h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.alarm-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* DESTAQUE CERCA ELÉTRICA */
.cerca-highlight {
    background: linear-gradient(45deg, #050505, #111);
    border: 1px solid var(--primary-blue);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 136, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho de fundo na cerca */
.cerca-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,136,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cerca-highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.cerca-highlight i { color: var(--primary-blue); }

.cerca-highlight p {
    color: var(--accent-silver);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* =========================================
   8. CTA FINAL & FOOTER
   ========================================= */
.cta-final {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1590161439733-14631fa3796d?q=80&w=1932&auto=format&fit=crop'); 
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid #222;
}

.cta-final h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: white;
}

.cta-final p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--accent-silver);
}

.btn-whatsapp-large {
    background: var(--whatsapp-green);
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp-large:hover {
    transform: scale(1.05);
    background: #1ebe57;
}

footer {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid #111;
    text-align: center;
}

.footer-logo h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.footer-links p {
    margin-top: 15px;
    color: #444;
    font-size: 0.85rem;
}

/* =========================================
   9. WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover { transform: scale(1.1); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    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); }
}

/* =========================================
   10. RESPONSIVIDADE (CELULAR)
   ========================================= */
@media (max-width: 992px) {
    .nav-desktop, .cta-header { display: none; }
    .mobile-menu-icon { display: block; }
    .hero h1 { font-size: 2rem; }
    .featured { transform: scale(1); }
    
    /* No tablet/celular, kits ficam 2 por linha ou 1 por linha */
    .kits-grid {
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .hero { text-align: center; justify-content: center; }
    .hero-content { padding-top: 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
    .section-title h2 { font-size: 1.6rem; }
    
    .cerca-highlight { padding: 30px 20px; }
    .cerca-highlight h3 { font-size: 1.4rem; }
}
