/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   ========================================================================== */
:root {
    --main-color: #780fda;
    --accent-color: #a259ff;
    --black: #13131a;
    --bg: #010103;
    --border: 0.1rem solid rgba(255, 255, 255, 0.3);
    --font-size-base: 10px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    scroll-padding-top: 9rem; /* Garante que o header não cubra o título da seção */
}

body {
    background-color: var(--bg);
    color: #fff;
}

section {
    padding: 3rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

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

/* ==========================================================================
   2. COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
.btn {
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.7rem;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
    border-radius: 0.5rem;
    transition: background var(--transition-speed) linear;
    text-transform: capitalize;
}

.btn:hover {
    background: var(--main-color);
}

.title {
    color: var(--accent-color);
    font-size: 4rem;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

.title span {
    color: #fff;
}

/* ==========================================================================
   3. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: var(--border);
    background-color: var(--bg);
}

.header section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar a {
    margin: 0 1rem;
    font-size: 1.8rem;
    color: #fff;
    position: relative;
    transition: color var(--transition-speed) linear;
    text-transform: capitalize;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width var(--transition-speed) linear;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.icons #menu-btn {
    display: none; /* Escondido por padrão em telas grandes */
    cursor: pointer;
    background: none;
    color: #fff;
}

/* ==========================================================================
   4. SEÇÕES ESPECÍFICAS
   ========================================================================== */

/* Seção Home */
.home-container {
    background: url("../imagens/fundo01.jpg") center/cover no-repeat;
    margin-top: 9rem;
}

.home-container section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 9rem);
}

.home-container .content {
    max-width: 60rem;
}

.home-container .content h3 {
    color: #fff;
    font-size: 6rem;
    text-transform: capitalize;
}

.home-container .content p {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.8;
    padding: 1rem 0;
}

/* Seção About */
.about .row {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about .row .content-mission,
.about .row .container-image {
    flex: 1 1 40rem; /* Flex-grow, flex-shrink, flex-basis */
}

.about .content-mission h3 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 1rem;
}

.about .content-mission h4 {
    font-size: 1.8rem;
    color: #ccc;
    margin-bottom: 2rem;
    font-weight: 400;
}

.about .content-mission p {
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Container de Cards (Soluções) */
.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.box {
    background-color: var(--black);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 0.8rem;
    border: var(--border);
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.box img {
    margin: 0 auto 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.box:hover {
    background-color: var(--main-color);
    transform: translateY(-5px);
}

.box:hover img {
    transform: scale(1.1);
}

/* Seção Contato */
.contact-section {
    background-color: #1a1a1a;
    border-radius: 0.8rem;
}

.contact-wrapper {
    display: flex;
    align-items: stretch;
}

.contact-details,
.mapa {
    flex: 1;
}

.mapa iframe {
    width: 100%;
    height: 100%;
}


.contact-info p,
.contact-info a {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
}

.contact-form label {
    margin-top: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.4rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    font-size: 1.6rem;
    margin-top: 0.5rem;
    border: 1px solid var(--main-color);
    border-radius: 0.4rem;
    background-color: #2a2a2a;
    color: #fff;
    width: 100%;
}

.contact-form button {
    margin-top: 2rem;
    align-self: flex-start;
}



/* ==========================================================================
   5. MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */
@media (max-width: 991px) {
    html {
        font-size: 9.5px;
    }
    .header {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .icons #menu-btn {
        display: inline-block; /* Mostra o botão do menu hambúrguer */
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: -100%; /* Começa fora da tela */
        background: var(--bg);
        width: 30rem;
        height: calc(100vh - 9rem);
        transition: right 0.4s ease;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }

    .navbar.active {
        right: 0; /* Move para dentro da tela */
    }

    .navbar a {
        display: block;
        margin: 1.5rem;
        padding: 0.5rem;
        font-size: 2rem;
        text-align: center;
    }

    .home-container .content h3 {
        font-size: 4.5rem;
    }
}


.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* A coluna do mapa acompanha a altura do formulário */
.mapa {
    min-height: 100%;
}

.mapa iframe {
    width: 100%;
    height: 900px; /* pode ajustar para 400, 500 etc */
    
}

/* Espaço automático quando clicar no menu */
section {
    scroll-margin-top: 120px; /* ajuste o valor conforme altura do header */
}



@media (max-width: 480px) {
    html {
        font-size: 8.5px;
    }
    .title {
        font-size: 3rem;
    }
}




/* ========================================================================
   PÁGINA: TOPOLOGIAS DE REDE
   ======================================================================== */

.topo-hero {
    padding: 12rem 2rem 3rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.topo-hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    margin-bottom: 1.2rem;
}

.topo-hero p {
    color: #b8b8c7;
    max-width: 80rem;
    margin: 0 auto 2rem;
    font-size: 1.6rem;
}

.topo-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: var(--accent-color);
}

.topo-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.topo-subnav a {
    font-size: 1.4rem;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    color: #e9e9f1;
    text-decoration: none;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topo-subnav a:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    transform: translateY(-1px);
}

/* Conteúdo */

.topo-wrap {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem 2rem;
}

.topo-grid {
    display: grid;
    /* padrão: 1 ou 2 colunas em telas menores */
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2.4rem;
}

.topo-card {
    background: var(--black);
    border-radius: 1.6rem;
    border: 0.1rem solid rgba(255,255,255,0.12);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.topo-card h3 {
    margin: 0.4rem 0 0.2rem;
    font-size: 2rem;
}

.topo-mini {
    font-size: 1.4rem;
    color: #b8b8c7;
    margin-top: -0.2rem;
}

.topo-diagram {
    background: #0f0f17;
    border: 0.1rem dashed rgba(255,255,255,0.25);
    border-radius: 1.2rem;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
}

/* Badges */

.topo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.topo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 0.1rem solid rgba(255,255,255,0.2);
    color: #b8b8c7;
}

/* Lista e helpers */

.topo-card ul {
    margin: 0;
    padding-left: 1.8rem;
    font-size: 1.4rem;
}

.topo-card li {
    margin: 0.6rem 0;
}

.topo-ok {
    color: #10b981; /* verde */
    font-weight: bold;
    margin-right: 0.4rem;
}

.topo-warn {
    color: #f59e0b; /* amarelo */
    font-weight: bold;
    margin-right: 0.4rem;
}

.topo-bad {
    color: #ef4444; /* vermelho */
    font-weight: bold;
    margin-right: 0.4rem;
}

/* Legenda */

.topo-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1.3rem;
    color: #b8b8c7;
    margin: 2.8rem 0 1rem;
}

.topo-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.topo-line {
    width: 2.4rem;
    height: 0.2rem;
    display: inline-block;
    background: var(--main-color);
}

.topo-line.topo-sec {
    background: var(--accent-color);
}

/* Tabelas */

.topo-card-full {
    margin-top: 1.6rem;
}

.topo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
    margin-top: 1.2rem;
}

.topo-table th,
.topo-table td {
    border: 0.1rem solid rgba(255,255,255,0.15);
    padding: 0.8rem 1rem;
    text-align: left;
}

.topo-table th {
    background: rgba(120,15,218,0.25);
}

/* Responsivo */

@media (max-width: 768px) {
    .topo-hero {
        padding-top: 11rem;
    }

    .topo-wrap {
        padding: 0 1.4rem 2rem;
    }

    .topo-legend {
        justify-content: center;
        text-align: center;
    }
}


.card {
    padding-top: 3rem; /* aumenta o espaço superior interno */
}
.card h3 {
    margin-top: 1.6rem; /* ajuste aqui */
}


main.wrap {
    margin-top: 40px;   /* ajuste o valor como quiser */
}

/* a partir de ~desktop, fixa em 3 colunas */
@media (min-width: 992px) {
    .topo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* HERO da página de Topologias */
.topo-hero {
    max-width: 1200px;
    margin: 0 auto;
    /* esse padding-top é o que empurra o título para longe do header */
    padding: 15rem 1.5rem 3rem;  /* cima | laterais | baixo */
    text-align: center;
}

.topo-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.topo-hero p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Fundo branco apenas para a tabela comparativa */
.topo-card-full .topo-table {
    background: #ffffff;
    color: #000000; 
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

/* Células */
.topo-card-full .topo-table th,
.topo-card-full .topo-table td {
    background: #ffffff !important;
    color: #000 !important;
    border: 1px solid #ccc;
    padding: 12px 15px;
}

/* Cabeçalho */
.topo-card-full .topo-table th {
    background: #f0f0f0 !important;
    font-weight: bold;
}

/* Zebra lines (linhas alternadas) */
.topo-card-full .topo-table tbody tr:nth-child(even) {
    background: #fafafa !important;
}

