/* Paleta de Cores Flexa */
:root {
    --primary-color: #D32027; /* Vermelho Flexa */
    --primary-dark: #A5171D;
    --dark-bg: #111111;       /* Fundo principal escuro */
    --text-dark: #333333;
    --text-light: #7A7A7A;
    --white: #FFFFFF;
    --bg-light: #F9F9F9;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: var(--dark-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

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

/* =========================================
   ESTILOS DA LOGO NO CABEÇALHO
   ========================================= */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaço entre o símbolo e o texto */
    text-decoration: none;
}

.logo-header {
    height: 90px; /* Logo maior para dar bastante destaque */
    width: auto;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.header-phone {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 40px; /* Cria a barreira invisível afastando do menu */
}

.header-phone .icon {
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 90px; /* Compensa o header fixo */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 700px;
}

.hero-tag {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #E0E0E0;
    margin-bottom: 40px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: 0.3s;
}

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

/* Quem Somos */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.4;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

.about-text strong {
    color: var(--text-dark);
}

.about-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-placeholder {
    width: 100%;
    height: 300px;
    border: 2px dashed #E0E0E0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px; /* Dá um respiro para a logo não encostar na linha tracejada */
}

.logo-destaque {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Faz a logo preencher o espaço mantendo a proporção */
}

/* O Que Fazemos (Grid de Imagens) */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-title {
    margin-bottom: 50px;
}

.accent-line {
    display: inline-block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 15px;
}

.tag-title {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

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

.service-card {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    cursor: pointer;
}

/* =========================================
   IMAGENS DE FUNDO DOS CARDS DE SERVIÇO
   (Adicionado para corrigir o bug do degradê cinza)
   ========================================= */
.card-infra {
    background-image: url('img/infra.png');
}

.card-dev {
    background-image: url('img/dev.png');
}

.card-gestao {
    background-image: url('img/gestaoti.png');
}

.card-remoto {
    background-image: url('img/Trabalho.png');
}

.card-migracao {
    background-image: url('img/Dados.png');
}

.card-eventos {
    background-image: url('img/eventos.png');
}
/* ========================================= */

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.2) 100%);
    transition: 0.3s;
}

.service-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(211,32,39,0.9) 0%, rgba(17,17,17,0.4) 100%);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.card-content h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: 0.3s;
}

.service-card:hover .card-icon {
    color: var(--white);
}

/* Seção de Clientes */
.clients-section {
    padding: 80px 0;
    background-color: var(--white);
}

.clients-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.clients-logos img {
    max-width: 140px;
    height: auto;
    /* Efeito corporativo: Logos cinzas que ficam coloridas no hover */
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
    cursor: pointer;
}

.clients-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Ajuste mobile para as logos */
@media (max-width: 768px) {
    .clients-logos {
        justify-content: center;
        gap: 30px;
    }
    
    .clients-logos img {
        max-width: 120px;
    }
}

/* Contato Layout Split */
.contact-section {
    position: relative;
    padding: 80px 0;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.contact-bg {
    position: absolute;
    top: 0; right: 0; width: 60%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-box {
    background-color: var(--dark-bg);
    width: 45%;
    padding: 60px 50px;
    color: var(--white);
    box-shadow: 20px 20px 50px rgba(0,0,0,0.3);
}
.contact-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.info-item .icon {
    font-size: 1.2rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background-color: #F0F0F0;
    border: none;
    padding: 15px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
}

.privacy-policy {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #AAA;
    margin-bottom: 25px;
    line-height: 1.4;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: #0A0A0A;
    color: #666;
    text-align: center;
    padding: 30px 0;
    font-size: 0.85rem;
}

/* Responsividade Mobile (Regras Básicas Antigas - Serão complementadas no final) */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-box { width: 60%; }
}

@media (max-width: 768px) {
    .nav-container { padding: 0 20px; }
    
    #nav-menu {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 20px 0;
    }
    
    #nav-menu.active {
        display: flex;
    }

    #nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid #222;
    }

    .header-phone { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-content h2 { font-size: 3rem; }
    
    .about-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    
    .contact-bg { display: none; }
    .contact-box { width: 100%; padding: 40px 20px; }
}

/* =========================================
   PÁGINAS INTERNAS (Ex: Infraestrutura)
   ========================================= */

/* Banner Hero Subpágina */
.subpage-hero {
    margin-top: 90px;
    background-color: var(--primary-color);
    padding: 60px 0;
    color: var(--white);
}

.subpage-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.subpage-hero h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

.breadcrumbs {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs span { opacity: 0.5; }

/* Intro da Subpágina */
.service-intro {
    padding: 80px 0 40px;
    background-color: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.intro-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-image img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Acordeão (Estilo Global TI) */
.accordion-section {
    margin-bottom: 80px;
}

.accordion-item {
    margin-bottom: 10px;
}
.accordion-header {
    width: 100%;
    background-color: #383F48; /* Cinza escuro/azulado corporativo */
    color: var(--white);
    padding: 20px 30px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover, .accordion-header.active {
    background-color: #2C3138;
}

.accordion-content {
    background-color: #F8F9FA;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.content-inner {
    padding: 40px 30px;
}

.content-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

.content-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    border-top: 1px solid #E0E0E0;
    padding-top: 30px;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.detail-list li::first-letter {
    color: var(--primary-color);
    font-weight: bold;
}

/* Banner CTA Azul/Escuro da Subpágina */
.service-cta {
    background-color: var(--dark-bg);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: #AAA;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-outline-light {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* Passo a Passo */
.process-section {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.process-intro {
    max-width: 800px;
    margin: 0 auto 80px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.step-line {
    position: absolute;
    top: 40px; /* Metade do círculo */
    left: 15%;
    right: 15%;
    height: 1px;
    background-color: #E0E0E0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background-color: var(--white);
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-bg);
}

.step h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsivo para Subpágina */
@media (max-width: 992px) {
    .intro-grid { grid-template-columns: 1fr; }
    .content-details { grid-template-columns: 1fr; border-top: none; padding-top: 0; }
    .process-steps { grid-template-columns: 1fr; gap: 60px; }
    .step-line { display: none; }
}

/* =========================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: #FFF; /* Cor do ícone em branco */
}

/* Efeito ao passar o mouse (Hover) */
.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1); /* Dá um leve zoom */
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================
   LAYOUT MOBILE (Telas Pequenas)
   ========================================= */

@media (max-width: 768px) {
    /* Ajuste WhatsApp Mobile */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }

    /* 1. Ajusta o tamanho da barra no celular */
    .header {
        height: 80px;
        padding: 0;
    }

    /* 2. Coloca a logo e o botão nas pontas opostas */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
        height: 100%;
    }

    /* 3. Reduz a logo para não "estourar" a barra fina */
    .logo-header {
        height: 45px;
    }

    /* 4. Oculta o número de telefone no celular */
    .header-phone {
        display: none !important;
    }

    /* 5. Estiliza o botão de 3 listras (Hambúrguer) */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        cursor: pointer;
        z-index: 1000;
    }

    .mobile-menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #FFF;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    /* 6. Formata o menu que desliza */
    #nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #111;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0px 5px 15px rgba(0,0,0,0.5);
    }

    /* Classe que o JS ativa */
    #nav-menu.active {
        display: flex !important;
    }

    #nav-menu a {
        padding: 18px 0;
        text-align: center;
        width: 100%;
        font-size: 16px;
        border-bottom: 1px solid #222;
    }

    #nav-menu a:last-child {
        border-bottom: none;
    }
}
/* =========================================
   AJUSTE DO TAMANHO PARA CELULARES (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* =========================================
   LAYOUT MOBILE DEFINITIVO (Celulares e Tablets)
   ========================================= */

/* Oculta o botão hambúrguer no PC (telas grandes) */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 992px) {
    /* 1. Corrige a altura do cabeçalho para remover a faixa branca */
    .header {
        height: 90px !important;
        padding: 0 !important;
    }

    /* 2. Alinha a logo à esquerda e o menu à direita */
    .nav-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 25px !important;
        width: 100% !important;
    }

    /* 3. Aumenta a logo para ficar legível e proporcional */
    .logo-header {
        height: 55px !important; /* Ajustado para o tamanho ideal */
        width: auto !important;
        margin: 0 !important;
    }

    /* 4. Esconde o telefone para não amontoar a tela */
    .header-phone {
        display: none !important;
    }

    /* 5. Força as 3 listras (Hambúrguer) a aparecerem corretamente */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 32px !important;
        height: 24px !important;
        cursor: pointer;
        z-index: 9999 !important;
        background: transparent !important;
        border: none !important;
    }

    .mobile-menu-btn span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #FFFFFF !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
    }

    /* 6. Formata o menu preto que desce ao clicar */
    #nav-menu {
        display: none; 
        position: absolute;
        top: 90px; /* Exatamente abaixo da barra preta */
        left: 0;
        width: 100%;
        background-color: var(--dark-bg); 
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0px 5px 15px rgba(0,0,0,0.5);
    }

    #nav-menu.active {
        display: flex !important;
    }

    #nav-menu a {
        padding: 18px 20px !important;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid #222; 
    }

    #nav-menu a:last-child {
        border-bottom: none;
    }

    /* 7. Ajustes gerais de espaçamento no celular */
    .hero-content h2 { 
        font-size: 3rem !important; 
    }
    
    .about-grid, .services-grid, .process-steps { 
        grid-template-columns: 1fr !important; 
    }
    
    .contact-bg, .step-line { 
        display: none !important; 
    }
    
    .contact-box { 
        width: 100% !important; 
        padding: 40px 20px !important; 
    }
}

/* =========================================
   AJUSTE DO BOTÃO WHATSAPP NO CELULAR
   ========================================= */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px !important;
        height: 55px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    .whatsapp-icon {
        width: 30px !important;
        height: 30px !important;
    }
}