/* ==========================================================================
   NGW Systems - Identidade Visual High-Tech Dark Mode
   ========================================================================== */

/* --- Variáveis Globais de Cores (Extraídas do Logo) --- */
:root {
    --azul-cftv: #00a2ff;        /* Neon Blue das câmeras e 'NGW' */
    --laranja-solar: #ff7700;    /* Neon Orange do Sol e 'Energia Solar' */
    --bg-dark: #0b0f19;          /* Fundo principal escuro */
    --bg-card: #151d2a;          /* Fundo dos cartões e caixas de diálogo */
    --bg-header: #070a10;        /* Fundo do cabeçalho e rodapé */
    --texto-principal: #f0f4f8;  /* Texto claro de alta legibilidade */
    --texto-mutado: #94a3b8;     /* Texto secundário e legendas */
    --borda-glow: rgba(0, 162, 255, 0.25);
    --sombra-laranja: rgba(255, 119, 0, 0.35);
}

/* --- Reset e Configurações Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--texto-principal);
    line-height: 1.6;
}

/* --- Cabeçalho e Navegação --- */
header {
    background-color: var(--bg-header);
    border-bottom: 2px solid var(--azul-cftv);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 162, 255, 0.15);
}

/* --- Logo Ampliada --- */
.logo img {
    height: 85px; /* Aumentado para maior destaque */
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 162, 255, 0.3)); /* Brilho neon leve */
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--texto-principal);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--azul-cftv);
}

/* --- Botões de Destaque (CTA) --- */
.btn-cta {
    background: linear-gradient(135deg, var(--laranja-solar), #e65c00);
    color: #ffffff !important;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--sombra-laranja);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.55);
}

/* --- Seções e Tipografia --- */
section {
    padding: 60px 5%;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--azul-cftv);
    display: inline-block;
    padding-bottom: 5px;
    color: var(--texto-principal);
}

h3 {
    color: var(--laranja-solar);
}

/* --- Hero Section (Home) --- */
#hero {
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.75) 0%, var(--bg-dark) 100%), url('banner_home.jpg') center/cover no-repeat;
    padding: 110px 5% 80px;
    text-align: center;
}

#hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--texto-principal);
}

/* --- Cards de Serviços --- */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--borda-glow);
    border-radius: 12px;
    padding: 30px;
    width: 30%;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--azul-cftv);
}

.card p {
    color: var(--texto-mutado);
    margin-top: 10px;
}

/* --- Formulário de Contato --- */
.form-container input, 
.form-container select, 
.form-container textarea {
    background-color: var(--bg-card);
    color: var(--texto-principal);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
}

.form-container input:focus, 
.form-container select:focus, 
.form-container textarea:focus {
    outline: none;
    border-color: var(--azul-cftv);
    box-shadow: 0 0 8px var(--borda-glow);
}

/* --- Galeria e Lightbox --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--borda-glow);
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--laranja-solar);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 16, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    display: block;
    max-height: 85vh;
    max-width: 90vw;
    margin: auto;
    border-radius: 8px;
    border: 1px solid var(--azul-cftv);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--texto-principal);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--laranja-solar);
}

/* --- Botões Flutuantes --- */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-buttons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-size: 1.6em;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}

.floating-buttons a[href*="wa.me"] {
    background-color: #25d366;
}

.floating-buttons a[href*="instagram"] {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* --- Rodapé --- */
footer {
    background-color: var(--bg-header);
    color: var(--texto-mutado);
    text-align: center;
    padding: 35px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
    color: var(--azul-cftv);
}

.social-links a {
    color: var(--laranja-solar);
    font-size: 1.5em;
    margin: 0 10px;
    text-decoration: none;
}

/* --- Responsividade --- */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 100% !important;
    }

    .grid-layout, .conteudo-cftv, .conteudo-alarmes, #contato-info {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 65px; /* Tamanho proporcional para celular */
    }

    #hero h1 {
        font-size: 1.8em;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        font-size: 0.9em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}