/* ==========================================================================
   M2 NET TELECOM - DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */

/* Importação de fontes modernas e elegantes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Variáveis de design (Tokens de Cor, Tipografia e Efeitos) */
:root {
    --primary-color: #0f2c59;       /* Azul Navy (Marinho Escuro) */
    --primary-hover: #0a1f3f;       /* Azul Navy Hover */
    --secondary-color: #00ff66;     /* Verde Neon (Alta Conversão) */
    --secondary-hover: #00dd55;     /* Verde Neon Hover */
    --accent-color: #00ff66;        /* Verde Neon (WhatsApp/Ativo) */
    
    /* Cores de Fundo e Containers */
    --bg-dark: #0a192f;             /* Azul Navy Escuro Profundo (Fundo Dark) */
    --bg-light: #f8fafc;            /* Cinza Ultra Claro (Fundo Geral) */
    --card-light: #ffffff;          /* Branco Puro */
    --card-dark: #112240;           /* Azul Slate Marinho (Cards Escuros) */
    
    /* Textos */
    --text-main: #0a192f;           /* Navy Escuro para Texto Principal */
    --text-muted: #475569;          /* Cinza Slate */
    --text-white: #ffffff;          /* Branco */
    
    /* Bordas e Sombras */
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(0, 255, 102, 0.3);
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fontes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset básico e configurações padrão */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--bg-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container Responsivo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Botões Modernos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 6px rgba(15, 44, 89, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 44, 89, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #0a192f; /* Contraste escuro contra verde neon */
    box-shadow: 0 4px 6px rgba(0, 255, 102, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: #0a192f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 255, 102, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-whatsapp {
    background-color: var(--accent-color);
    color: #0a192f;
    box-shadow: 0 4px 6px rgba(0, 255, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--secondary-hover);
    color: #0a192f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 255, 102, 0.3);
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-color);
    color: var(--text-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

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

/* ==========================================================================
   HEADER / NAVEGAÇÃO (Com efeito Glassmorphism)
   ========================================================================== */
.header {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 255, 102, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--secondary-color);
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    position: relative;
    padding: 0.4rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION (Banner Principal)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 100%);
    color: var(--text-white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Card Flutuante de Destaque no Hero */
.hero-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-card-speed {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
    line-height: 1;
}

.hero-card-price {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.hero-card-price strong {
    font-size: 2.2rem;
    color: var(--text-white);
}

/* ==========================================================================
   SEÇÕES DE CONTEÚDO (Planos, Diferenciais, Cobertura)
   ========================================================================== */
.section {
    padding: 5rem 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.section-dark h2, .section-dark h3 {
    color: var(--text-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-subtitle {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Grid de Planos */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Card de Planos */
.plan-card {
    background-color: var(--card-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.plan-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.plan-popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: var(--text-white);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-speed {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.plan-price-wrapper {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.plan-price {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.plan-price strong {
    font-size: 2.5rem;
    color: var(--bg-dark);
}

.plan-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.plan-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.plan-benefits li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-color);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Diferenciais */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Área de Cobertura */
.coverage-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.coverage-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.coverage-item {
    background-color: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coverage-city {
    font-weight: 600;
    font-size: 0.95rem;
}

.coverage-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-disponivel {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-color);
}

.badge-brevemente {
    background-color: rgba(255, 107, 0, 0.15);
    color: var(--secondary-color);
}

.viabilidade-form {
    background-color: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ==========================================================================
   PÁGINA DE DOCUMENTOS
   ========================================================================== */
.docs-search-bar {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.docs-search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    font-size: 1.05rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    outline: none;
    transition: var(--transition);
}

.docs-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.docs-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.docs-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--card-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.doc-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    gap: 1.5rem;
}

.doc-row:last-child {
    border-bottom: none;
}

.doc-row:hover {
    background-color: rgba(37,99,235,0.02);
}

.doc-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doc-title {
    font-weight: 600;
    color: var(--bg-dark);
}

.doc-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

.doc-tag {
    background-color: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO (cPanel Friendly Admin)
   ========================================================================== */
.admin-login-body {
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background-color: var(--card-light);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Alertas de Feedback no Painel */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Layout Administrativo */
.admin-header {
    background-color: var(--bg-dark);
    color: var(--text-white);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.admin-header h1 {
    color: var(--text-white);
    font-size: 1.3rem;
}

.admin-nav {
    display: flex;
    gap: 1.5rem;
}

.admin-nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-nav-link:hover {
    color: var(--text-white);
}

.admin-content {
    padding: 3rem 0;
}

.admin-card {
    background-color: var(--card-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Estilos de Tabelas Administrativas */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-muted);
    background-color: #f8fafc;
}

.admin-table tr:hover {
    background-color: #f8fafc;
}

.admin-action-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-edit {
    background-color: rgba(37,99,235,0.15);
    color: var(--primary-color);
}

.btn-edit:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-delete {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-delete:hover {
    background-color: #ef4444;
    color: var(--text-white);
}

/* ==========================================================================
   FOOTER (Rodapé do Site)
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column-title {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link:hover {
    color: var(--text-white);
    transform: translateX(3px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
}

.footer-contact-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVIDADE (Media Queries)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .coverage-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--card-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }
    
    .nav.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .doc-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .doc-row .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
