/* ================================= */
/* VARIÁVEIS GLOBAIS */
/* ================================= */

:root {
    --cor-preto: #000000;
    --cor-cinza-escuro: #1f1f1f;
    --cor-vermelho: #bc3731;
    --cor-vermelho-hover: #a52a22;
    --cor-branco: #ffffff;
    --cor-branco-gelo: #f5f5f5;
    --cor-branco-fantasma: #f8f8ff;

    /* Usadas no body e nav — defina aqui para centralizar */
    --light: #ffffff;
    --color-menu-text: #1f1f1f;
}

/* ================================= */
/* RESET */
/* ================================= */

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

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: var(--light);
    color: #333;
}

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

/* ================================= */
/* HEADER — todas as páginas */
/* ================================= */

.header {
    position: sticky;
    top: 0;
    background: var(--cor-branco-fantasma);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cor-branco-gelo);
    z-index: 999;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
}

/* MENU */

.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-menu a,
.nav-menu .nav-link {
    color: var(--color-menu-text);
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu .nav-link:hover {
    color: var(--cor-vermelho);
    border-bottom: 2px solid var(--cor-vermelho);
    font-weight: 600;
}

/* ================================= */
/* MEGA MENU — todas as páginas */
/* ================================= */

.nav-item {
    position: relative;
}

/* MEGA MENU DESKTOP */

.mega-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    top: 60px;
    background: var(--cor-branco-gelo);
    width: 900px;
    max-width: 95vw;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.2);
    z-index: 100;
}

/* DESKTOP: abre no hover */

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* MOBILE: abre no clique */

.nav-item.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* COLUNAS */

.mega-column {
    display: flex;
    flex-direction: column;
}

.mega-column h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #000000;
    font-weight: 600;
}

.mega-column a {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--cor-cinza-escuro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mega-column a:hover {
    color: var(--cor-vermelho);
}

/* ================================= */
/* BOTÃO HAMBURGER */
/* ================================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--cor-vermelho);
    display: block;
}

/* ================================= */
/* BOTÃO PRIMÁRIO — todas as páginas */
/* ================================= */

.btn-primary {
    background-color: var(--cor-vermelho);
    color: white;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.btn-primary:hover {
    background-color: var(--cor-vermelho-hover);
}

/* ================================= */
/* PAGE HERO — about, services, contact */
/* ================================= */

.page-hero {
    background-color: var(--cor-vermelho);
    color: var(--cor-branco);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-hero p {
    color: var(--cor-branco-gelo);
    font-size: 18px;
}

/* ================================= */
/* INDEX — home */
/* ================================= */

/* HOME ABOUT */

.home-about {
    padding: 80px 0;
    text-align: center;
}

.home-about h2 {
    margin-bottom: 15px;
}

/* HOME SERVIÇOS */

.home-services {
    background: #f8fafc;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* HOME WHY */

.home-why {
    padding: 80px 0;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.why-card {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* HOME CONTACT (CTA da home) */

.home-contact {
    background: #020617;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.home-contact p {
    margin: 20px 0;
}

/* ================================= */
/* HERO IMAGE — about */
/* ================================= */

.hero-image {
    padding: 60px 0px;
    text-align: center;
}

.hero-image img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.03);
}

/* ================================= */
/* ABOUT — about.php */
/* ================================= */

.about-section {
    padding: 80px 0;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.about-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #475569;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pillar {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pillar h3 {
    margin-bottom: 10px;
}

/* MISSÃO VISÃO VALORES */

.mvv-section {
    background: #f8fafc;
    padding: 80px 0;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mvv-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.mvv-card ul {
    padding-left: 20px;
}

/* ================================= */
/* SERVICES — services.php */
/* ================================= */

.services-page {
    padding: 80px 0;
    background: #f8fafc;
}

.service-category {
    margin-top: 60px;
    margin-bottom: 30px;
    font-size: 28px;
    color: #0f172a;
}

.service-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Área do ícone */

.service-image {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
}

.service-image svg {
    width: 72px;
    height: 72px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image svg {
    transform: scale(1.08);
}

/* Cores temáticas por serviço */

.service-image--cloud         { background: #eff6ff; color: #2563eb; }
.service-image--infra         { background: #f0fdf4; color: #16a34a; }
.service-image--network       { background: #fdf4ff; color: #9333ea; }
.service-image--router        { background: #fff7ed; color: #ea580c; }
.service-image--firewall      { background: #fef2f2; color: #dc2626; }
.service-image--storage       { background: #f0f9ff; color: #0284c7; }
.service-image--wlan          { background: #ecfdf5; color: #059669; }
.service-image--soc           { background: #fefce8; color: #ca8a04; }
.service-image--siem          { background: #eff6ff; color: #2563eb; }
.service-image--firewall-corp { background: #fef2f2; color: #dc2626; }
.service-image--edr           { background: #fdf4ff; color: #9333ea; }
.service-image--lgpd          { background: #f0fdf4; color: #16a34a; }
.service-image--iso           { background: #fff7ed; color: #ea580c; }
.service-image--audit         { background: #f0f9ff; color: #0284c7; }
.service-image--risk          { background: #fefce8; color: #ca8a04; }

/* Divisor vertical entre ícone e conteúdo */

.service-image::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: currentColor;
    opacity: 0.15;
}

/* Corpo do card */

.service-body {
    flex: 1;
    padding: 28px 30px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #0f172a;
}

.service-card p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.service-cta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-weight: 500;
    color: #334155;
}

.service-cta a {
    margin-left: 5px;
    color: #2563eb;
    text-decoration: none;
}

.service-cta a:hover {
    text-decoration: underline;
}

/* ================================= */
/* CONTACT — contact.php */
/* ================================= */

.contact-section {
    padding: 80px 0;
}

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

/* ALERTAS */

.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 14px;
    animation: fadeIn 0.4s ease;
}

.alert-success {
    background: #e6fffa;
    color: #065f46;
    border-left: 5px solid #10b981;
}

.alert-error {
    background: #ffe4e6;
    color: #7f1d1d;
    border-left: 5px solid #ef4444;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
}

.alert-close:hover {
    opacity: 0.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Informações de contato */

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-item {
    margin-top: 25px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
}

/* Formulário */

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* ================================= */
/* CLIENTES — clientes.php */
/* ================================= */

.clientes {
    padding: 60px 20px;
}

/* TABS */

.tabs ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.tabs li {
    padding: 10px 15px;
    margin: 5px;
    background: #eee;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.tabs li.active {
    background: #000;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.grid-clientes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cliente-item {
    width: 140px;
    text-align: center;
}

.cliente-item img {
    width: 100%;
    max-width: 120px;
    transition: 0.3s;
}

.cliente-item img:hover {
    transform: scale(1.05);
}

.cliente-item p {
    margin-top: 10px;
    font-size: 14px;
}

/* ================================= */
/* FOOTER — todas as páginas */
/* ================================= */

.footer {
    background-color: var(--cor-branco-fantasma);
    color: #475569;
    padding: 40px 0 20px 0;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info,
.footer-contact {
    flex: 1;
}

.footer-info h3,
.footer-contact h4 {
    color: #000000;
    margin-bottom: 10px;
}

.footer p {
    line-height: 1.5;
    margin-bottom: 10px;
}

/* MAPA */

.footer-map {
    width: 100%;
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.footer-map iframe {
    width: 100%;
    max-width: 1200px;
    height: 220px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.fullwidth {
    max-width: 1400px;
    margin: auto;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    font-size: 13px;
    color: #94a3b8;
}

/* ================================= */
/* BOTÃO WHATSAPP — todas as páginas */
/* ================================= */

.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-button svg {
    width: 30px;
    height: 30px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ================================= */
/* BOTÃO VOLTAR AO TOPO — todas as páginas */
/* ================================= */

#backToTop {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    background-color: var(--cor-vermelho);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: all .3s ease;
    z-index: 9999;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    background: #b91c1c;
}

/* ================================= */
/* ANIMAÇÕES DE SCROLL — animations.css */
/* Mantido aqui caso animations.css não
   esteja sendo carregado em todas as páginas */
/* ================================= */

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}