/* --- CONFIGURAÇÕES BÁSICAS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    overflow-x: hidden;
    padding-top: 80px; /* Mantém o conteúdo abaixo da navbar fixa */
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* --- ESTILIZAÇÃO DA NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f4f4;
    height: 80px;
    /* Padding reduzido na esquerda (0.5%) para a logo colar no canto */
    padding: 0 5% 0 0.5%; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;   
    top: 0;            
    width: 100%;       
    z-index: 2000; 
}

/* AJUSTE DA LOGO (IMAGEM) */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 130px; /* Seu tamanho personalizado */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-left: -5px; /* Puxa a logo ainda mais para a borda */
}

.logo img:hover {
    transform: scale(1.05);
}

/* Menu para PC */
.nav-links {
    display: flex;
}

.nav-links li {
    padding: 0 20px;
}

.nav-links a {
    font-weight: 600;
}

.nav-links a:hover {
    color: #007bff;
}

/* Estilo do botão de Contato */
.btn-contato {
    background-color: #000;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: 0.3s;
}

.btn-contato:hover {
    background-color: #333;
}

/* Menu Hambúrguer */
.mobile-menu {
    display: none;
    cursor: pointer;
    z-index: 2100; /* Garante que fique acima da logo para ser clicável */
}

.mobile-menu div {
    width: 32px;
    height: 3px;
    background-color: #333;
    margin: 8px;
    transition: 0.3s;
}

/* --- RESPONSIVIDADE (CELULAR) - MENU CLEAN INTEGRADO --- */
@media screen and (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .logo img {
        height: 85px; /* Reduz um pouco no mobile para não ocupar a tela toda */
    }

.nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%; 
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start; 
        padding-top: 80px;
        transform: translateX(100%); 
        transition: transform 0.5s ease-in-out;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 2050;

        /* --- ADICIONE ESTAS DUAS LINHAS ABAIXO --- */
        overflow-y: auto; /* Permite rolar para baixo se o menu for maior que a tela */
        padding-bottom: 50px; /* Garante um respiro no final para o botão de contato não colar na borda */
    }

    /* ESSENCIAL: Faz o menu aparecer ao clicar */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    /* Itens "colados" com linha separadora */
    .nav-links li {
        opacity: 1 !important; 
        border-bottom: 1px solid #eeeeee; /* Linha sutil separando as opções */
    }

    .nav-links li a {
        display: block;
        padding: 25px 30px; /* Aumenta a área de clique */
        font-weight: 600;
        font-size: 1.1rem;
        transition: background 0.3s;
    }

    /* Efeito ao tocar no botão */
    .nav-links li a:active {
        background-color: #f8f9fa;
        color: #007bff;
    }

    /* Ajuste para o botão de contato no final da lista mobile */
    .nav-links li:last-child {
        border-bottom: none;
        padding: 20px;
        margin-top: 10px;
    }

    .nav-links li .btn-contato {
        background-color: #000;
        text-align: center;
        border-radius: 8px; /* Box mais quadrada no mobile para combinar */
        display: block;
        width: 100%;
    }

    .mobile-menu {
        display: block;
    }
}



/* Container Principal */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px; /* Altura para PC */
    overflow: hidden;
    background-color: #333;
}

/* Trilho onde os slides ficam lado a lado */
.slider-wrapper {
    display: flex;
    width: 300%; /* 3 slides = 300% */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta a imagem sem distorcer */
    filter: brightness(0.7); /* Escurece a imagem para o texto brilhar */
}

/* Conteúdo do Texto */
.slide-content {
    position: absolute;
    bottom: 15%;
    left: 8%;
    color: #fff;
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

.slide-content h2 { font-size: 2.5rem; margin-bottom: 10px; }
.slide-content p { font-size: 1.1rem; }

/* Setas Minimalistas */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
    z-index: 10;
}

.arrow:hover { background: rgba(255, 255, 255, 0.3); }
.next { right: 0; }
.prev { left: 0; }

/* Pontinhos */
.dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active { background: #fff; transform: scale(1.2); }

/* Ajuste Celular */
@media (max-width: 768px) {
    .slider-container { height: 350px; }
    .slide-content h2 { font-size: 1.6rem; }
    .slide-content p { font-size: 0.9rem; }
    .arrow { padding: 15px 10px; font-size: 18px; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}







/* --- SEÇÃO SOBRE (EPS SISTEMAS) --- */
.sobre {
    padding: 80px 2%; 
    background-color: #f9f9f9;
}

.sobre-container {
    max-width: 95%; 
    margin: 0 auto;
}

.sobre-row {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    gap: 50px; 
    margin-bottom: 80px;
}

/* Estilo das Imagens */
.sobre-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Estilo dos Textos */
.sobre-text {
    padding: 0 10px;
}

.sobre-text h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.divisor {
    width: 50px;
    height: 3px;
    background-color: #007bff; 
    margin-bottom: 30px;
}

.sobre-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.btn-saiba-mais {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50px;
    transition: 0.3s;
    text-decoration: none;
}

.btn-saiba-mais:hover {
    background-color: #007bff;
}

/* --- AJUSTE MOBILE (FOCO EM NÃO QUEBRAR LINHA E MANTER PROPORÇÃO) --- */
@media (max-width: 768px) {
    .sobre {
        padding: 20px 1%; /* Reduz padding para ganhar área útil */
    }

    .sobre-row {
        grid-template-columns: 1fr 1fr; /* Mantém as 2 colunas rígidas */
        gap: 10px; /* Espaço mínimo entre texto e imagem */
        margin-bottom: 30px;
    }

    /* Redução agressiva da fonte para o texto caber sem empilhar linhas */
    .sobre-text h2 {
        font-size: 0.85rem; 
        margin-bottom: 5px;
        white-space: nowrap; /* Impede o título de quebrar linha se for curto */
    }

    .sobre-text p {
        font-size: 0.65rem; /* Fonte pequena para manter o "corpo" do parágrafo curto */
        line-height: 1.3;
    }

    .divisor {
        width: 20px;
        height: 2px;
        margin-bottom: 10px;
    }

    .sobre-img img {
        height: 180px; /* Altura fixa menor para casar com o bloco de texto pequeno */
    }

    .btn-saiba-mais {
        padding: 5px 10px;
        font-size: 0.6rem;
        margin-top: 10px;
    }
}
















/* --- SEÇÃO ORÇAMENTO (FULL-WIDTH) --- */
.cta-orcamento {
    background-color: #111; /* Preto profundo */
    width: 100%;
    padding: 60px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-content {
    max-width: 1200px; /* Alinha o conteúdo interno com o restante do site */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-text h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-text p {
    color: #bbb;
    font-size: 1.1rem;
}

/* Botão de Destaque */
.btn-orcamento {
    display: inline-block;
    padding: 18px 35px;
    background-color: #007bff; /* Azul EPS */
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Impede o botão de quebrar linha */
}

.btn-orcamento:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .cta-content {
        flex-direction: column; /* No celular o texto fica em cima e o botão embaixo */
        text-align: center;
    }

    .cta-text h2 {
        font-size: 1.5rem;
    }

    .cta-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .btn-orcamento {
        width: 100%; /* Botão ocupa a largura toda no celular para facilitar o clique */
        padding: 15px;
    }
}














.galeria-section {
    padding: 60px 2%;
    background: #fff;
    text-align: center;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas no PC */
    gap: 15px;
    max-width: 1200px;
    margin: 40px auto;
}

.galeria-item {
    aspect-ratio: 1 / 1; /* Mantém as fotos e vídeos quadradinhos */
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: #000; /* Fundo preto para vídeos que não preencherem tudo antes do load */
}

/* Aplica o estilo tanto para imagem quanto para vídeo na grade */
.galeria-item img, 
.galeria-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo/foto preencher o quadrado sem distorcer */
    transition: transform 0.3s ease;
    display: block;
}

/* Efeito de zoom em ambos */
.galeria-item:hover img,
.galeria-item:hover video {
    transform: scale(1.1);
}

/* Modal (Tela Cheia) */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Ajuste para a mídia dentro do modal */
.modal-conteudo {
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    outline: none; /* Remove borda de foco em vídeos */
}

.fechar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px;
    }
}












.titulo-secao {
    text-align: center; /* Centraliza o texto horizontalmente */
    margin: 0 auto;     /* Garante que o bloco do título esteja centralizado */
    width: 100%;        /* Faz o título ocupar a largura total da linha */
    
    /* Mantendo o padrão de estilo que usamos anteriormente */
    font-size: 2.5rem;
    color: #1a1a1a;
    padding-bottom: 10px;
}

/* Caso você esteja usando o divisor azul abaixo dele */
.divisor-central {
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 0 auto 30px auto; /* O "0 auto" é o que centraliza o traço */
}


/* --- SEÇÃO PARCEIROS (RODA 3D ADAPTÁVEL) --- */
.parceiros-section {
    padding: 100px 0;
    background-color: #fdfdfd;
    overflow: hidden; /* Esconde logos que saem da tela no 3D */
}

.carrossel-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Define o tamanho do raio do círculo (R) */
    --raio: 300px; 
    perspective: 1000px;
}

.roda {
    position: relative;
    width: 200px;
    height: 120px;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.15); /* Efeito elástico */
}

.logo-item {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    /* O cálculo abaixo posiciona cada item baseado na variável --i do HTML */
    transform: rotateY(calc((var(--i) - 1) * 45deg)) translateZ(var(--raio));
    backface-visibility: hidden;
}

.logo-item img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    /* Removido o grayscale para manter cores originais */
}

/* --- BOTÕES DE NAVEGAÇÃO --- */
.nav-galeria {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    z-index: 10;
}

.btn-roda {
    background: #111;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.btn-roda:hover {
    background: #007bff;
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .carrossel-container {
        /* Diminui o círculo para caber no celular */
        --raio: 150px; 
        height: 250px;
    }

    .roda {
        width: 120px;
        height: 80px;
    }

    .nav-galeria {
        padding: 0 5%;
        bottom: -20px; /* Joga os botões para baixo no mobile */
    }
}








/* --- FOOTER (ESTILO PRETO PREMIUM - SEM QUEBRA NO MOBILE) --- */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 2% 20px 2%;
    font-family: sans-serif;
}

.footer-container {
    max-width: 95%;
    margin: 0 auto;
    display: grid;
    /* Mantém 3 colunas em qualquer tamanho de tela */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.footer-col h3 {
    font-size: 1.3rem; /* Reduzi levemente para ganhar espaço */
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-divisor {
    width: 30px;
    height: 3px;
    background-color: #003cff; 
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-col ul li a {
    color: #ccc;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #003cff;
}

/* Ícones de Contato */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #ccc;
    line-height: 1.4;
    font-size: 0.85rem; /* Ajustado para caber no mobile */
}

.contact-info i {
    color: #003cff;
    margin-top: 3px;
}

/* Redes Sociais */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.9rem;
    transition: 0.3s;
}

.instagram i { color: #E1306C; font-size: 1.2rem; }
.linkedin i { color: #0077b5; font-size: 1.2rem; }

/* --- RESPONSIVIDADE (FOCO EM MANTER O FORMATO DO PC) --- */
@media (max-width: 768px) {
    .footer {
        padding: 40px 1% 20px 1%;
    }

    .footer-container {
        /* Garante que o grid NÃO mude para 1 coluna */
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px; /* Reduz o espaço entre as colunas ao mínimo */
    }

    .footer-col h3 {
        font-size: 0.75rem; /* Títulos menores para caber lado a lado */
    }

    .footer-col ul li a, 
    .contact-info li, 
    .social-links a {
        font-size: 0.6rem; /* Fontes compactas para não quebrar linha */
    }

    .footer-divisor {
        width: 15px; /* Divisor menor proporcional */
    }

    .instagram i, .linkedin i {
        font-size: 0.9rem; /* Ícones menores no celular */
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.7rem;
    color: #666;
}





/* --- BOTÕES FLUTUANTES (FIXO E CENTRALIZADO) --- */
.social-floating {
    position: fixed;
    bottom: 3%;
    right: 3%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.float-btn {
    width: clamp(35px, 4vw, 55px); 
    height: clamp(35px, 4vw, 55px);
    border-radius: 50%;
    
    /* Centralização Robusta */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    
    /* A transição afeta apenas a escala, evitando bugs de posição */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    
    /* Remove qualquer contorno de clique que possa deslocar o ícone */
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* ESTA PARTE TRAVA O ÍCONE NO CENTRO */
.float-btn i {
    color: #ffffff !important;
    font-size: clamp(18px, 2vw, 26px);
    
    /* Garante que o ícone não herde transformações de movimento */
    display: inline-block;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none; /* O clique passa pelo ícone e vai direto para o botão */
}

/* Animação apenas de escala para não "tremer" o alinhamento */
.float-btn:hover, .float-btn:focus, .float-btn:active {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Cores de Fundo (Mantidas) */
.float-btn.whatsapp { background-color: #25d366; }
.float-btn.linkedin { background-color: #0077b5; }
.float-btn.instagram { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); 
}









/* --- Empresas.html -------------------------------------------------------------------------------------------------------------------- */


/* --- ESTILO PÁGINA EMPRESA - REVISADO --- */

/* --- HERO SECTION COM ESTILO ELÉTRICO MODERNO --- */
/* --- CONTAINER QUE DIVIDE A TELA --- */
.container-flex {
    display: flex !important;
    flex-direction: row !important; /* Força lado a lado */
    align-items: center;            /* Alinha o texto verticalmente com o centro da imagem */
    justify-content: space-between;
    width: 100%;
    max-width: 100%;                /* Ocupa a largura total disponível */
    padding: 0;                     /* Remove paddings laterais se quiser encostar nas bordas */
    gap: 0;                         /* Se quiser exatamente metade, gap zero. Se quiser um respiro, use 20px */
}

/* Coluna de Texto (50%) */
.texto-col {
    flex: 1;                        /* Distribuição igual */
    width: 50%;
    padding: 40px 5%;               /* Espaçamento interno para o texto não colar na borda */
    box-sizing: border-box;
}

/* Coluna de Imagem (50%) */
.img-col {
    flex: 1;                        /* Distribuição igual */
    width: 50%;
    height: 100%;                   /* Faz a coluna ter a altura do texto */
    overflow: hidden;               /* Garante que a imagem não escape da metade */
}

.img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;              /* O SEGREDO: faz a imagem preencher a metade sem achatar */
    display: block;
    transition: transform 0.5s ease;
}

/* --- AJUSTE DE CONTRASTE E TEXTO --- */
.texto-col p {
    color: #1a1a1a;                 /* Preto sólido para leitura clara */
    font-size: clamp(0.8rem, 1.6vw, 1.2rem); /* Fonte que escala com o tamanho da tela */
    line-height: 1.8;
    text-align: justify;            /* Deixa o bloco de texto bem quadrado e elegante */
    margin-bottom: 20px;
}


@media (max-width: 768px) {
    .texto-col {
        padding: 15px; /* Reduz o espaçamento interno para sobrar mais espaço para as letras */
    }
    
    .texto-col p {
        font-size: 0.7rem; /* Diminui a fonte para caber na metade da telinha */
        line-height: 1.4;
    }
}

/* --- HERO SECTION COM ESTILO MINIMALISTA ELEGANTE --- */
.empresa-hero {
    height: 65vh;
    min-height: 550px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #212529;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Linhas geométricas sutis melhoradas */
.empresa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 94%, rgba(33, 37, 41, 0.04) 94%, rgba(33, 37, 41, 0.04) 96%, transparent 96%),
        linear-gradient(0deg, transparent 94%, rgba(33, 37, 41, 0.04) 94%, rgba(33, 37, 41, 0.04) 96%, transparent 96%);
    background-size: 80px 80px;
    opacity: 0.6;
    pointer-events: none;
}

.empresa-hero::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    right: -100%;
    bottom: -100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(248, 249, 250, 0.4) 0%, transparent 50%);
    animation: subtleFloat 20s ease-in-out infinite alternate;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 40px;
}

.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 300;
    margin-bottom: 1.8rem;
    letter-spacing: -1.5px;
    color: #212529;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    font-family: 'Georgia', serif;
    line-height: 1.1;
}

.hero-content h1 strong {
    font-weight: 600;
    color: #343a40;
    position: relative;
    display: inline-block;
}

.hero-content h1 strong::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #343a40, transparent);
    opacity: 0.4;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    margin-top: 2.2rem;
    color: #495057;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    letter-spacing: 0.2px;
}

.divisor-central {
    width: 120px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #adb5bd, transparent);
    margin: 2.5rem auto;
    animation: expandWidth 1.4s ease-out 0.5s both;
    position: relative;
}

.divisor-central::before,
.divisor-central::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #adb5bd;
    border-radius: 50%;
    opacity: 0.6;
}

.divisor-central::before {
    left: 0;
}

.divisor-central::after {
    right: 0;
}

/* --- ANIMAÇÕES MELHORADAS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 1;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

@keyframes subtleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-2%, 2%) rotate(0.5deg);
    }
    66% {
        transform: translate(2%, -1%) rotate(-0.5deg);
    }
    100% {
        transform: translate(-1%, -2%) rotate(0.3deg);
    }
}

/* --- RESPONSIVIDADE HERO SECTION --- */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 992px) {
    .empresa-hero {
        height: 60vh;
        min-height: 480px;
    }
    
    .hero-content h1 {
        font-size: 3.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .empresa-hero {
        height: 55vh;
        min-height: 420px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
        margin-top: 1.8rem;
    }
    
    .divisor-central {
        margin: 2rem auto;
    }
}

@media (max-width: 576px) {
    .empresa-hero {
        height: 50vh;
        min-height: 380px;
    }
    
    .hero-content {
        padding: 0 25px;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}




/* --- SEÇÃO VALORES - CARDS AZUIS COM ANIMAÇÃO --- */
.valores-section {
    padding: 120px 5%;
    background: linear-gradient(135deg, #0a1950 0%, #1a2a6c 100%);
    position: relative;
    overflow: hidden;
}

/* Linhas de circuito decorativas no fundo */
.valores-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 95%, rgba(0, 162, 255, 0.1) 95%),
        linear-gradient(0deg, transparent 95%, rgba(0, 162, 255, 0.1) 95%);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

/* Efeito de brilho energético */
.valores-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(0, 140, 255, 0.15) 0%,
        transparent 70%
    );
    animation: pulseEnergy 8s ease-in-out infinite;
}

/* HEADER CENTRALIZADO */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
    padding: 0 15px;
}

/* GRID DE CARDS */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* CARD ELÉTRICO MODERNO */
.valor-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(0, 162, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Borda superior luminosa */
.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        #00a2ff, 
        #0066ff,
        #00a2ff,
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

/* Brilho interno */
.valor-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(0, 162, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* HOVER EFFECTS */
.valor-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(0, 162, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 100, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.valor-card:hover::before {
    transform: translateX(100%);
}

.valor-card:hover::after {
    opacity: 1;
}

/* ÍCONE */
.valor-card-icon {
    font-size: 3.5rem;
    color: #00a2ff;
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Efeito de brilho no ícone */
.valor-card-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 162, 255, 0.15);
    border-radius: 50%;
    z-index: -1;
    animation: pulseIcon 3s infinite;
}

.valor-card:hover .valor-card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #00ccff;
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

/* TÍTULO */
.valor-card h3 {
    font-size: 1.9rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* DESCRIÇÃO */
.valor-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

/* NÚMERO DO CARD (OPCIONAL) */
.valor-card-number {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    font-family: 'Arial', sans-serif;
    z-index: 1;
}

.valor-card:hover .valor-card-number {
    color: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

/* ANIMAÇÕES ESPECÍFICAS */
@keyframes pulseEnergy {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

@keyframes glowBorder {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 162, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 162, 255, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* Animações de entrada em cascata */
.valor-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.6s ease-out forwards;
}

.valor-card:nth-child(1) { animation-delay: 0.1s; }
.valor-card:nth-child(2) { animation-delay: 0.2s; }
.valor-card:nth-child(3) { animation-delay: 0.3s; }
.valor-card:nth-child(4) { animation-delay: 0.4s; }
.valor-card:nth-child(5) { animation-delay: 0.5s; }
.valor-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVIDADE */
@media (max-width: 1200px) {
    .valores-grid {
        padding: 0 30px;
        gap: 35px;
    }
    
    .valor-card {
        padding: 50px 35px;
    }
}

@media (max-width: 992px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 2.6rem;
    }
    
    .section-header p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .valores-section {
        padding: 80px 5%;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .valor-card {
        padding: 50px 35px;
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 576px) {
    .valores-section {
        padding: 60px 5%;
    }
    
    .valor-card {
        padding: 40px 25px;
    }
    
    .valor-card-icon {
        font-size: 3rem;
    }
    
    .valor-card h3 {
        font-size: 1.7rem;
    }
    
    .valor-card p {
        font-size: 1.05rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}


















/* --- CSS DO MODAL --- */
.modal {
    display: none; /* Começa escondido */
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo escuro */
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    margin: 10vh auto;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    animation: abrirSuave 0.3s ease-out;
}

/* O 50/50 dentro do modal */
.modal .container-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
}

.img-col-modal {
    flex: 1;
    background: #f8faff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.img-col-modal img { max-width: 100%; height: auto; }

.texto-col-modal {
    flex: 1;
    padding: 40px;
    color: #333;
}

.close-btn {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 30px;
    cursor: pointer;
    z-index: 100;
}

@keyframes abrirSuave {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.container-logos {
    display: flex;
    flex-wrap: wrap; /* Permite pular linha */
    justify-content: center; /* Centraliza os itens da última linha */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo-box {
    /* Cálculo para 3 colunas descontando o gap */
    width: calc(33.333% - 40px); 
    min-width: 280px; /* Impede de ficarem pequenas demais */
    height: 180px;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.logo-box:hover {
    border-color: #003cff;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 60, 255, 0.1);
}

.logo-box img {
    max-width: 65%;
    max-height: 60%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsividade: No celular fica 50/50 ou 100% mas centralizado */
@media (max-width: 768px) {
    .logo-box {
        width: calc(50% - 20px);
        min-width: 150px;
        height: 120px;
    }
}






/* --- CONFIGURAÇÕES DE LAYOUT DE SERVIÇOS --- */

/* ============================================
   PÁGINA DE SERVIÇOS - LAYOUT PROFISSIONAL
   EPS Sistemas de Painéis Elétricos
   ============================================ */

/* --- VARIÁVEIS DE CORES --- */
:root {
    --eps-blue: #0066cc;
    --eps-blue-dark: #0052a3;
    --eps-blue-light: #e6f0ff;
    --eps-gray-dark: #333333;
    --eps-gray: #666666;
    --eps-gray-light: #f8f9fa;
    --eps-white: #ffffff;
    --eps-green: #0a1950;
    --eps-yellow: #16b0ed;
    --eps-border: rgba(0, 102, 204, 0.1);
    --eps-shadow: rgba(0, 0, 0, 0.08);
    --eps-shadow-dark: rgba(0, 0, 0, 0.15);
}

/* --- RESET E CONFIGURAÇÕES GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    background-color: var(--eps-white);
    color: var(--eps-gray-dark);
    line-height: 1.6;
}

/* --- HERO SECTION SERVIÇOS --- */
.services-hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 82, 163, 0.95) 100%), 
                url('../assets/img/hero-servicos.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--eps-white);
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--eps-yellow), 
        transparent
    );
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- SEÇÃO DE SERVIÇOS (Z-PATTERN) --- */
.s-section {
    padding: 100px 5%;
    background-color: var(--eps-white);
    position: relative;
    overflow: hidden;
}

.s-section.s-bg-alt {
    background-color: var(--eps-gray-light);
}

.s-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
}

/* Container invertido para Z-Pattern */
.reverse .s-container {
    flex-direction: row-reverse;
}

.s-content {
    flex: 1;
    position: relative;
    padding: 40px 0;
}

/* Número de fundo (marca d'água) */
.s-num {
    position: absolute;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(0, 102, 204, 0.05);
    top: -40px;
    left: -20px;
    z-index: 0;
    line-height: 1;
    user-select: none;
}

.reverse .s-num {
    left: auto;
    right: -20px;
}

/* Título do serviço */
.s-title {
    font-size: 2.8rem;
    color: var(--eps-blue-dark);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 15px;
}

.s-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--eps-blue), var(--eps-green));
    border-radius: 2px;
}

.reverse .s-title::after {
    left: auto;
    right: 0;
}

/* Descrição */
.s-desc {
    font-size: 1.25rem;
    color: var(--eps-gray);
    margin-bottom: 35px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Lista de serviços */
.s-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.s-list span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    color: var(--eps-gray-dark);
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--eps-border);
}

.s-list span:last-child {
    border-bottom: none;
}

.s-list i {
    color: var(--eps-green);
    font-size: 1.1rem;
    min-width: 24px;
}

/* Metodologia (box especial) */
.s-method {
    background: var(--eps-white);
    border-left: 4px solid var(--eps-blue);
    padding: 25px 30px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 20px var(--eps-shadow);
}

.s-method p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--eps-gray);
}

.s-method p:last-child {
    margin-bottom: 0;
}

.s-method strong {
    color: var(--eps-blue-dark);
    font-weight: 600;
}

/* Container da imagem */
.s-img-wrapper {
    flex: 1;
    position: relative;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px var(--eps-shadow-dark),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Base sólida da imagem (sombra estruturada) */
.s-img-wrapper::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    right: -15px;
    height: 60px;
    background: linear-gradient(135deg, var(--eps-blue) 0%, var(--eps-blue-dark) 100%);
    border-radius: 12px;
    z-index: -1;
    transform: rotate(-1deg);
}

.s-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.s-img-wrapper:hover img {
    transform: scale(1.05);
}

/* --- SEÇÃO DE DIFERENCIAIS --- */
.differentials {
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--eps-gray-light) 0%, var(--eps-white) 100%);
    text-align: center;
    position: relative;
}

.differentials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--eps-blue), 
        var(--eps-green),
        transparent
    );
}

.differentials .container {
    max-width: 1200px;
    margin: 0 auto;
}

.differentials h3 {
    font-size: 2.5rem;
    color: var(--eps-blue-dark);
    margin-bottom: 60px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.differentials h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--eps-blue), var(--eps-green));
    border-radius: 2px;
}

/* Grid de diferenciais */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.diff-item {
    background: var(--eps-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--eps-shadow);
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.diff-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--eps-blue), var(--eps-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.diff-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--eps-shadow-dark);
    border-color: var(--eps-border);
}

.diff-item:hover::before {
    transform: scaleX(1);
}

.diff-item i {
    font-size: 3rem;
    color: var(--eps-blue);
    margin-bottom: 25px;
    display: block;
}

.diff-item h4 {
    font-size: 1.8rem;
    color: var(--eps-blue-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.diff-item p {
    font-size: 1.1rem;
    color: var(--eps-gray);
    line-height: 1.6;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--eps-blue) 0%, var(--eps-blue-dark) 100%);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: pulse 6s ease-in-out infinite;
}

.btn-orcamento {
    display: inline-block;
    background: var(--eps-white);
    color: var(--eps-blue-dark);
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-orcamento:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: var(--eps-yellow);
    color: var(--eps-blue-dark);
}

/* --- ANIMAÇÕES --- */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Animação de entrada para seções */
.s-section, .differentials {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.s-section:nth-child(1) { animation-delay: 0.1s; }
.s-section:nth-child(2) { animation-delay: 0.3s; }
.s-section:nth-child(3) { animation-delay: 0.5s; }
.differentials { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1200px) {
    .s-container {
        gap: 60px;
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .s-title {
        font-size: 2.5rem;
    }
    
    .s-num {
        font-size: 10rem;
    }
}

@media (max-width: 992px) {
    .services-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .s-container {
        flex-direction: column !important;
        gap: 50px;
        padding: 0 20px;
    }
    
    .s-content {
        padding: 0;
        text-align: center;
    }
    
    .s-title::after {
        left: 50% !important;
        transform: translateX(-50%);
    }
    
    .s-num {
        position: relative;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        font-size: 8rem;
        margin-bottom: -20px;
    }
    
    .s-img-wrapper {
        min-height: 350px;
        width: 100%;
    }
    
    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .services-hero {
        height: 45vh;
        min-height: 350px;
        margin-top: 70px;
    }
    
    .s-section {
        padding: 70px 5%;
    }
    
    .s-title {
        font-size: 2.2rem;
    }
    
    .s-desc {
        font-size: 1.15rem;
    }
    
    .s-list span {
        font-size: 1.05rem;
    }
    
    .diff-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 50px;
    }
    
    .differentials h3 {
        font-size: 2rem;
    }
    
    .btn-orcamento {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .services-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .s-title {
        font-size: 1.9rem;
    }
    
    .s-num {
        font-size: 6rem;
    }
    
    .s-img-wrapper::before {
        bottom: -10px;
        left: -10px;
        right: -10px;
        height: 40px;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
    
    .btn-orcamento {
        padding: 16px 30px;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }
    
    .s-method {
        padding: 20px;
        text-align: left;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 400px) {
    .s-title {
        font-size: 1.7rem;
    }
    
    .diff-item {
        padding: 30px 20px;
    }
    
    .diff-item i {
        font-size: 2.5rem;
    }
    
    .diff-item h4 {
        font-size: 1.5rem;
    }
}



/* --- HERO COM VÍDEO E GLASSMORPHISM --- */

.contact-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.contact-overlay {
    background: linear-gradient(135deg, rgba(10, 25, 80, 0.8), rgba(10, 25, 80, 0.3));
    width: 100%;
    height: 100%;
    padding: 80px 5%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Card de Vidro Transparente */
.contact-card {
    background: rgba(255, 255, 255, 0.15); /* Transparência Branca */
    backdrop-filter: blur(15px); /* Efeito de borrão no vídeo atrás */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

/* Estilo dos Botões de Contato */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.4s;
}

.whatsapp {
    background-color: #25d366;
    color: white;
}

.email {
    background-color: #fff;
    color: #143093;
}

.btn-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

/* Blocos Informativos (Destaque sem ser botão) */
.info-tag {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.info-tag i {
    font-size: 1.4rem;
    color: #007bff; /* Azul EPS para destacar os ícones */
}

.info-tag small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    letter-spacing: 1px;
    font-weight: 800;
}

.info-tag p {
    font-size: 0.95rem;
    margin: 0;
}

/* Responsividade Celular */
@media screen and (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .info-tag {
        text-align: left;
    }
}



/* Subtítulo pequeno acima do H1 */
.upper-title {
    display: block;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Título principal com quebra e cor de destaque */
.contact-welcome h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Tamanho imponente */
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.highlight-blue {
    color: #007bff; /* Ou a cor exata da sua logo */
}

/* Box de descrição com borda lateral para destacar o texto */
.description-box {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    max-width: 500px;
}

.description-box p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.description-box strong {
    color: #ffffff;
    font-weight: 700;
    border-bottom: 2px solid rgba(0, 123, 255, 0.5); /* Sublinhado sutil nas palavras-chave */
}

/* Ajuste de responsividade para o texto não ocupar a tela toda */
@media screen and (max-width: 992px) {
    .description-box {
        margin: 0 auto;
        border-left: none;
        border-top: 4px solid #007bff;
        padding-left: 0;
        padding-top: 20px;
    }
}


/* Classe para ocultar títulos apenas visualmente (SEO Amigável) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Container Principal */
.ee-hero-section {
    position: relative;
    width: 100%;
    height: 85vh; /* Altura imponente */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Vídeo de Fundo */
.ee-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* Mantém a proporção do vídeo */
    z-index: 1;
}

/* Camada de Contraste (Overlay) */
.ee-video-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

/* Conteúdo de Texto */
.ee-container-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.ee-main-title {
    font-size: clamp(2rem, 5vw, 4rem); /* Responsivo: diminui em telas menores */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.ee-highlight {
    color: #0052a3; /* Amarelo Elétrico/Dourado */
    text-transform: uppercase;
}

.ee-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Botão de Chamada para Ação */
.ee-btn-cta {
    display: inline-block;
    padding: 16px 40px;
    background-color: #0052a3;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 231, 246, 0.3);
}

.ee-btn-cta:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
    .ee-hero-section {
        height: 70vh;
    }
}

/* Container Principal */
.ee-hero-section {
    position: relative;
    width: 100%;
    height: 85vh; /* Altura imponente */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Vídeo de Fundo */
.ee-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* Mantém a proporção do vídeo */
    z-index: 1;
}

/* Camada de Contraste (Overlay) */
.ee-video-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

/* Conteúdo de Texto */
.ee-container-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.ee-main-title {
    font-size: clamp(2rem, 5vw, 4rem); /* Responsivo: diminui em telas menores */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.ee-highlight {
    color: #1fc0cb; /* Amarelo Elétrico/Dourado */
    text-transform: uppercase;
}

.ee-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Botão de Chamada para Ação */
.ee-btn-cta {
    display: inline-block;
    padding: 16px 40px;
    background-color: #1fc0cb;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 118, 187, 0.3);
}

.ee-btn-cta:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
    .ee-hero-section {
        height: 70vh;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

.services-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #ffffff; /* Letras totalmente brancas */
}

/* Vídeo ajustado para preencher a tela */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Overlay que escurece o vídeo (ajuda a ler as letras claras sem precisar de sombra nelas) */
.services-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,43,91,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

/* Badge com efeito transparente moderno */
.services-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #007bff; /* Amarelo vivo para destaque */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Título limpo, sem sombras escuras */
.hero-title {
    font-size: clamp(2rem, 7vw, 4rem); 
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: #007bff; /* Azul puro */
}

.services-divider {
    width: 70px;
    height: 5px;
    background: #007bff;
    margin: 25px auto;
    border-radius: 5px;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95); /* Branco quase puro */
}

/* Botões com design sólido */
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline {
    padding: 16px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-primary { 
    background: #007bff; 
    color: #fff; 
    border: none;
}
.btn-primary:hover { 
    background: #0056b3; 
    transform: translateY(-2px); 
}

.btn-outline { 
    border: 2px solid #fff; 
    color: #fff; 
    background: transparent;
}
.btn-outline:hover { 
    background: #fff; 
    color: #000; 
    transform: translateY(-2px); 
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .services-hero { height: 100vh; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; max-width: 280px; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}




/* --- CORREÇÃO E COMPATIBILIDADE --- */

/* Garante que o corpo da página aceite o scroll do menu mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- ESTILOS EXCLUSIVOS PÁGINA CCM --- */
.ccm-hero {
    height: 400px;
    /* DICA: Verifique se a pasta assets está no root. Use caminhos relativos fixos */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/img/ccm-centro-controle-motores.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 0; /* Reset para não brigar com o padding do body */
}

.ccm-hero-content h1 { font-size: 2.8rem; margin-bottom: 10px; font-family: sans-serif; }

.ccm-detalhe-tecnico { padding: 80px 5%; background-color: #fff; }

.ccm-container { max-width: 1200px; margin: 0 auto; }

.ccm-grid-main {
    display: flex; /* Mudado de Grid para Flex para maior compatibilidade de browsers antigos */
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.ccm-text-block { flex: 1; min-width: 300px; }
.ccm-image-block { flex: 1; min-width: 300px; }

.ccm-tag {
    color: #007bff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.ccm-divisor-azul {
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 20px 0;
}

.ccm-list { margin: 25px 0; list-style: none; padding: 0; }
.ccm-list li { margin-bottom: 12px; font-weight: 500; color: #333; display: flex; align-items: center; }
.ccm-list i { color: #28a745; margin-right: 10px; }

.ccm-image-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.ccm-btn-orcamento {
    display: inline-block;
    padding: 15px 35px;
    background-color: #000;
    color: #fff !important;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
}

.ccm-btn-orcamento:hover { background-color: #007bff; transform: translateY(-3px); }

/* --- ESTILOS EXCLUSIVOS PÁGINA QGBT --- */
.qgbt-hero {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/img/qgbt-quadro-geral-baixa-tensao.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.qgbt-hero-content h1 { font-size: 2.8rem; margin-bottom: 10px; }

.qgbt-detalhe-tecnico { padding: 80px 5%; background-color: #fcfcfc; }

.qgbt-container { max-width: 1200px; margin: 0 auto; }

.qgbt-grid-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.qgbt-text-block { flex: 1.1; min-width: 300px; }
.qgbt-image-block { flex: 0.9; min-width: 300px; }

.qgbt-tag {
    color: #007bff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.qgbt-divisor-azul {
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 20px 0;
}

.qgbt-list { margin: 25px 0; list-style: none; padding: 0; }
.qgbt-list li { margin-bottom: 15px; font-weight: 500; color: #333; display: flex; align-items: center; }
.qgbt-list i { color: #007bff; margin-right: 12px; font-size: 1.2rem; }

.qgbt-image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.qgbt-btn-orcamento {
    display: inline-block;
    padding: 16px 40px;
    background-color: #1a1a1a;
    color: #fff !important;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s ease;
}

.qgbt-btn-orcamento:hover { background-color: #007bff; transform: translateY(-2px); }

/* --- RESPONSIVIDADE UNIFICADA --- */
@media (max-width: 768px) {
    /* CCM Mobile */
    .ccm-grid-main, .qgbt-grid-main { 
        flex-direction: column;
        text-align: center;
    }
    .qgbt-image-block { order: 2; }
    .qgbt-text-block { order: 1; }
    
    .ccm-hero-content h1, .qgbt-hero-content h1 { font-size: 1.8rem; }
    .ccm-divisor-azul, .qgbt-divisor-azul { margin: 20px auto; }
    
    .ccm-list li, .qgbt-list li { justify-content: center; text-align: left; }

    /* Correção do Botão Mobile */
    .ccm-btn-orcamento, .qgbt-btn-orcamento {
        width: 100%;
        display: block;
    }
}