/* ============================================================
    1. CONFIGURAÇÕES GERAIS E BASE
    ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { background: #f8f9fa; color: #333; overflow-x: hidden; }

/* AJUSTE: Ocupando toda a largura da tela com margem de segurança */
.container { 
    width: 95%; 
    max-width: 1800px; /* Limite apenas para telas ultra-wide não ficarem distantes demais */
    margin: auto; 
    padding: 0 20px; 
}

/* ============================================================
    2. HEADER E NAVEGAÇÃO
    ============================================================ */
header {
    background: #001f3f;
    color: white;
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo { font-size: 1.8rem; font-weight: bold; flex-shrink: 0; line-height: 1; }
.logo span { color: #2ecc71; }

nav ul { display: flex; list-style: none; align-items: center; }
nav ul li a { color: white; text-decoration: none; margin-left: 20px; font-weight: 500; transition: 0.3s; }
nav ul li a:hover { color: #2ecc71; }

.btn-cliente {
    background: #2ecc71;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}
.btn-cliente:hover { background: #27ae60; }

/* ============================================================
    3. HERO (DESTAQUE PRINCIPAL)
    ============================================================ */
.hero {
    background: linear-gradient(rgba(0,31,63,0.85), rgba(0,31,63,0.85)),
                url('https://images.unsplash.com/photo-1551703599-6b3e8379aa8b') no-repeat center center/cover;
    height: 50vh;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; width: 100%; }

.btn-cta {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-cta:hover { background: #27ae60; }

/* ============================================================
    4. SEÇÕES DE CONTEÚDO (PADRÃO)
    ============================================================ */
.section-title { text-align: center; margin: 40px 0; font-size: 2rem; color: #001f3f; }

/* ============================================================
    5. GRID DE PLANOS RESIDENCIAIS
    ============================================================ */
.planos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 50px 0;
    overflow-x: hidden;
}

.plano-card {
    background: #ffffff;
    width: 245px;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 31, 63, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    flex-shrink: 0;
}

.plano-card:hover { transform: translateY(-15px); box-shadow: 0 25px 50px rgba(0, 31, 63, 0.18); }
.plano-card.destaque { border: 2px solid #2ecc71; transform: scale(1.05); position: relative; z-index: 5; }

.badge-flutuante {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: #2ecc71; color: white; padding: 6px 18px; border-radius: 50px; font-size: 0.75rem; font-weight: bold;
}

.plano-header { text-transform: uppercase; font-size: 0.75rem; font-weight: bold; color: #888; letter-spacing: 1.5px; }
.plano-card h3 { font-size: 1.7rem; color: #001f3f; margin: 15px 0; }
.price { font-size: 2.2rem; font-weight: 800; color: #001f3f; }
.price span { font-size: 0.9rem; color: #999; }
.uso { font-size: 0.9rem; color: #666; margin: 20px 0; }

.btn-contratar {
    background: #001f3f;
    color: white;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: block;
}
.plano-card.destaque .btn-contratar { background: #2ecc71; }

/* ============================================================
    6. EMPRESARIAL E INTERATIVIDADE
    ============================================================ */
.empresa-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.empresa-texto { flex: 1; max-width: 450px; }
.tag-premium { color: #2ecc71; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; }
.empresa-texto h2 { color: #001f3f; font-size: 2.2rem; line-height: 1.2; margin: 15px 0; }
.alerta-estabilidade { background: #eef2f7; padding: 20px; border-left: 4px solid #001f3f; border-radius: 8px; display: flex; gap: 15px; align-items: center; }

.planos-grid-empresa { display: flex; gap: 20px; flex: 1; justify-content: center; }

.lista-empresa { list-style: none; text-align: left; margin: 20px 0; }
.lista-empresa li { font-size: 0.85rem; color: #444; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

.interatividade-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.interatividade-item { flex: 1; min-width: 220px; padding: 20px; text-align: center; }
.icon-circle { width: 80px; height: 80px; background: #eef2f7; color: #001f3f; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; }

/* ============================================================
    7. SEÇÃO WHATSAPP CTA
    ============================================================ */
.secao-cta-whatsapp { background: #001f3f; color: white; padding: 80px 0; text-align: center; }
.whatsapp-icon-main { font-size: 4rem; color: #2ecc71; margin-bottom: 20px; animation: pulse 2s infinite; }
.btn-whatsapp-grande { display: inline-flex; align-items: center; gap: 15px; background: #2ecc71; color: white; text-decoration: none; padding: 18px 40px; border-radius: 50px; font-size: 1.3rem; font-weight: bold; transition: 0.3s; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

.whatsapp-float { position: fixed; bottom: 20px; right: 20px; background: #25d366; color: white; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; display: flex; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 2000; }
.whatsapp-float i { font-size: 24px; margin-right: 10px; }

/* ============================================================
    8. VIABILIDADE (MAPA E FORM)
    ============================================================ */
.viabilidade-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.form-viabilidade { display: flex; flex-direction: column; gap: 15px; }
.form-viabilidade input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; }
.btn-enviar-viabilidade { background: #0056b3; color: white; padding: 15px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
#map { width: 100%; height: 400px; border-radius: 15px; border: 2px solid #eee; z-index: 1; }

/* ============================================================
    9. SEÇÃO HISTÓRIA E SLIDER
    ============================================================ */
.historia-slider { width: 100%; overflow: hidden; background: #ffffff; padding: 80px 0; margin-top: 50px; }
.slide-container { display: flex; width: 100%; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.slide-item { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; gap: 50px; padding: 0 10%; }
.slide-img { flex: 1; max-width: 550px; }
.slide-img img { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.slide-content { flex: 1; max-width: 500px; }

/* ============================================================
    10. FAQ (ACORDEÃO)
    ============================================================ */
#faq { background: #f9f9f9; padding: 80px 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 15px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.faq-question { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: bold; color: #001f3f; transition: background 0.3s; }
.faq-question:hover { background: #f0f7ff; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; color: #555; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 250px; padding: 20px; border-top: 1px solid #eee; }
.faq-question i { transition: transform 0.3s; color: #2ecc71; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* ============================================================
    11. FOOTER (RODAPÉ FINAL)
    ============================================================ */
.footer-final { background: #001226; color: #e0e0e0; padding: 60px 0 0 0; border-top: 3px solid #2ecc71; margin-top: 50px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 50px; padding-bottom: 40px; }
.footer-info { flex: 1.5; }
.footer-info h3 { color: #fff; margin: 10px 0; font-size: 1.4rem; }
.footer-links, .footer-contato { flex: 1; padding-top: 55px; }
.footer-links h4, .footer-contato h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; text-transform: uppercase; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #e0e0e0; text-decoration: none; transition: 0.3s; }
.footer-links ul li a:hover { color: #2ecc71; }
.contato-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contato-item i { color: #2ecc71; margin-top: 4px; }

.copyright-bar {
    background: #000a14;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
    12. RESPONSIVIDADE (MOBILE OTIMIZADA)
    ============================================================ */
@media (max-width: 992px) {
    .slide-item { flex-direction: column; text-align: center; gap: 20px; }
    .slide-img, .slide-content { max-width: 100%; }
    .missao-visao { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    header { height: auto; min-height: 70px; padding: 15px 0; position: sticky; }
    nav { flex-direction: column; gap: 15px; }
    nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; gap: 8px; }
    nav ul li a { margin-left: 0; font-size: 0.8rem; padding: 5px 10px; background: rgba(255,255,255,0.05); border-radius: 4px; }
    .btn-cliente { display: inline-block; width: 90%; max-width: 250px; margin: 5px auto; text-align: center; font-size: 0.8rem; }
    .hero h1 { font-size: 1.8rem; padding: 0 15px; }
    .hero { min-height: 40vh; }
    .planos-grid, .planos-grid-empresa { flex-direction: column; align-items: center; padding: 30px 0; }
    .plano-card { width: 100%; max-width: 300px; min-height: auto; margin-bottom: 20px; transform: none !important; }
    .footer-grid { flex-direction: column; text-align: center; gap: 30px; align-items: center; }
    .footer-links, .footer-contato { padding-top: 0; width: 100%; }
}

/* ============================================================
    13. ESTILOS ESPECÍFICOS - PÁGINA EMPRESA
    ============================================================ */
.intro-section { padding: 80px 0; background: #fff; }

.grid-servicos-detalhado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-servico {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #0056b3;
    transition: 0.3s;
}

.card-servico:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-servico i { font-size: 2.5rem; color: #0056b3; margin-bottom: 20px; }

.stats-bar { background: #0056b3; color: white; padding: 50px 0; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-item h3 { font-size: 2.5rem; margin-bottom: 5px; }

.text-content { line-height: 1.8; color: #444; font-size: 1.1rem; }

.missao-visao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

/* ============================================================
    14. ESTILO DASHBOARD - GRÁFICOS SERROTE & JITTER
    ============================================================ */
.hist-container {
    background: rgba(0, 31, 63, 0.03);
    border-radius: 8px;
    padding: 8px;
    margin-top: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.status-line-svg {
    width: 100%;
    height: 60px;
    display: block;
    filter: drop-shadow(0px 3px 2px rgba(0,0,0,0.15));
}

.line-path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.5s ease;
}

.line-ok { stroke: #2ecc71; }
.line-warning { stroke: #f39c12; }
.line-alert { stroke: #e74c3c; }

.status-label {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.status-ok { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.status-warning { background: rgba(243, 156, 18, 0.1); color: #f39c12; }
.status-alert { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

/* ============================================================
    15. NOVO: GRID DO DASHBOARD (5 COLUNAS)
    ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colunas fixas */
    gap: 15px;
    margin: 30px 0;
    width: 100%;
}

/* Ajuste dos itens dentro da grid de 5 colunas */
.dashboard-grid .service-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsividade do Dashboard */
@media (max-width: 1400px) {
    .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* ============================================================
    16. REFINAMENTO DO JITTER
    ============================================================ */
.jitter-val {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-left: 6px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.status-ok .jitter-val { color: #1b5e20; background: rgba(46, 204, 113, 0.2); }
.status-warning .jitter-val { color: #a04000; background: rgba(243, 156, 18, 0.2); }
.status-alert .jitter-val { color: #7b241c; background: rgba(231, 76, 60, 0.2); }

circle:hover {
    fill: rgba(255, 255, 255, 0.3); /* Mostra um leve brilho onde o mouse está */
    cursor: crosshair;
}


/* ============================================================
    17. DOWNDETECTOR LITE - REPORTES DE USUÁRIOS
   ============================================================ */
.report-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 31, 63, 0.1);
    text-align: left;
}

.report-title {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.btn-group-report {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-report {
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-report:hover {
    background: #eef2f7;
    border-color: #2ecc71; /* Verde Impactus no hover */
    color: #001f3f;
    transform: translateY(-1px);
}

/* Esconde a seção com suavidade após o clique */
.user-already-reported {
    display: none !important;
}

/* Ajuste no cursor para os pontos do gráfico que você já tem */
circle {
    cursor: pointer;
}
