/* --- 1. VARIÁVEIS E RESET --- */
:root {
    --vermelho: #ce1212;
    --cinza-texto: rgb(68, 68, 68);
    --branco: #ffffff;
    --preto: #000000;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--cinza-texto);
    line-height: 1.6;
    background-color: var(--branco);
}

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

/* --- 2. NAVBAR --- */
.header-fixo {
    position: fixed;
    top: 0; width: 100%; height: 90px;
    background: var(--branco);
    display: flex; align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-flex {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

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

.nav-menu ul { display: flex; list-style: none; gap: 25px; }

.nav-menu ul li a {
    text-decoration: none;
    color: var(--cinza-texto);
    font-family: 'Raleway', sans-serif;
    font-weight: 500; font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-menu ul li a:hover { color: var(--vermelho); }

/* --- 3. HERO SECTION --- */
#hero {
    height: 100vh;
    /* Nome corrigido conforme solicitado */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('assets/img/bg_desktop.webp') no-repeat center center;
    background-size: cover; 
    background-attachment: fixed;
    display: flex; 
    align-items: center; 
    color: #ffffff;
    padding-top: 90px;
}

.hero-content h1 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    font-weight: 800; 
    text-transform: uppercase; 
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Estilo para os parágrafos do Hero restaurados */
.hero-content p {
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.grid-maquinarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas no desktop */
    gap: 20px;
    margin-top: 30px;
}

.card-maquina {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4 / 3; /* Garante que todas as fotos tenham o mesmo tamanho */
}

.card-maquina img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a foto preencher o espaço sem distorcer */
    transition: transform 0.3s ease;
}

.card-maquina:hover img {
    transform: scale(1.1);
}

/* Responsividade para Celulares */
@media (max-width: 768px) {
    .grid-maquinarios {
        grid-template-columns: 1fr; /* 1 coluna no celular */
    }
}

/* --- 4. SEÇÃO SERVIÇOS --- */
.section-servicos { padding: 80px 0 0 0; text-align: center; }

.title-servicos { font-family: 'Raleway', sans-serif; font-size: 2.2rem; margin-bottom: 60px; }
.title-servicos span { color: var(--vermelho); font-weight: 800; }

.grid-servicos {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; text-align: left; padding-bottom: 60px;
}

.item-servico { display: flex; gap: 20px; }
.item-servico i { color: var(--vermelho); font-size: 1.8rem; }
.item-servico h3 {
    font-family: 'Raleway', sans-serif; font-size: 24px;
    font-weight: 500; text-transform: uppercase;
}

.faixa-vermelha { height: 45px; background: var(--vermelho); width: 100%; }

/* --- 5. SEÇÃO MAQUINÁRIOS --- */
.section-maquinarios {
    padding: 40px 0 80px 0; 
    background-color: var(--vermelho);
    text-align: center; 
    color: var(--branco); 
    margin-top: -1px;
}

.title-maquinarios { font-family: 'Raleway', sans-serif; font-size: 2.2rem; margin-bottom: 40px; font-weight: 400; }
.title-maquinarios strong { font-weight: 800; }

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

.card-maquina { 
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 3 / 2; 
    cursor: pointer; 
    border: 1px solid rgba(255,255,255,0.2); 
    aspect-ratio: 4 / 3; /* Reserva o espaço antes da foto carregar */
    background: #f0f0f0; /* Fundo cinza enquanto a imagem não vem */
}

.card-maquina img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

/* REMOVEMOS A NÉVOA PADRÃO */
.card-maquina .overlay {
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0); /* Totalmente transparente por padrão */
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: 0.4s ease; /* Transição suave para a névoa aparecer */
}

/* A NÉVOA SÓ APARECE NO HOVER */
.card-maquina:hover .overlay {
    background: rgba(0,0,0,0.4); /* Aqui a névoa aparece só quando o mouse está em cima */
}

.card-maquina .overlay span {
    font-family: 'Open Sans', sans-serif; 
    font-size: 13px; 
    font-weight: 600;
    border: 1px solid white; 
    padding: 5px 15px; 
    text-transform: uppercase; 
    color: white;
    opacity: 0; /* Esconde o texto por padrão */
    transition: 0.4s;
    transform: translateY(10px); /* Leve animação de subida */
}

.card-maquina:hover .overlay span {
    opacity: 1; /* Mostra o texto no hover */
    transform: translateY(0);
}

.card-maquina:hover img { transform: scale(1.1); }
/* --- 6. LIGHTBOX / MODAL --- */
.modal-lightbox {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); 
    align-items: center; 
    justify-content: center;
}

/* Container da Imagem para garantir que ela não cubra as setas */
.modal-conteudo {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-conteudo img {
    max-width: 100%;
    max-height: 85vh;
    border: 4px solid white;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* --- SETAS GRANDES E DISTANTES --- */
.seta {
    position: fixed; /* Fixas nas extremidades da tela */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1); /* Fundo sutil */
    color: white;
    font-size: 60px; /* Bem grandes */
    padding: 20px 30px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: 0.3s;
    z-index: 100000;
    text-decoration: none; /* Caso use tag <a> */
    display: flex;
    align-items: center;
    justify-content: center;
}

.seta:hover {
    background: var(--vermelho);
    color: white;
    scale: 1.1;
}

/* Posicionamento nas bordas da tela */
.anterior { left: 40px; }
.proxima { right: 40px; }

.btn-fechar {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100001;
}

/* Responsividade para Celular */
@media (max-width: 768px) {
    .seta {
        font-size: 40px;
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.5); /* Mais visível no mobile */
    }
    .anterior { left: 10px; }
    .proxima { right: 10px; }
    .modal-conteudo { max-width: 95%; }
}

/* --- SEÇÃO CALL TO ACTION --- */
.section-cta {
    background-color: var(--vermelho); /* Mantém o fundo integrado */
    padding-bottom: 80px;
}

.cta-box {
    background-color: var(--branco);
    border-radius: 10px;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-top: 50px;
}

.cta-texto h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 32px;
    color: #222;
    font-weight: 800;
    margin-bottom: 5px;
}

.cta-texto p {
    font-size: 18px;
    color: var(--cinza-texto);
    margin-bottom: 25px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--vermelho);
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    margin-top: ;
}

.btn-cta:hover {
    background-color: #a10e0e;
    transform: translateY(-3px);
}

.cta-icone {
    font-size: 60px;
    color: var(--vermelho);
    opacity: 0.8;
}

/* Responsividade para Celular */
@media (max-width: 768px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .cta-icone {
        display: none; /* Esconde o ícone no mobile para focar no botão */
    }

    .cta-texto h2 {
        font-size: 24px;
    }
    
    .btn-cta {
        width: 100%;
    }
    }


    /* --- SEÇÃO QUEM SOMOS --- */
.section-quem-somos {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden; /* Corta o que sobrar da imagem para fora da tela */
}

.container-quem-somos {
    display: flex;
    justify-content: flex-end; /* Empurra o conteúdo de texto para a direita */
    align-items: center;
    min-height: 500px;
    position: relative;
}

/* --- CONTROLE DA IMAGEM --- */
.bloco-imagem-somos {
    position: absolute;
    left: -120px; /* PUXA A IMAGEM PARA FORA DO CONTAINER ATÉ ENCOSTAR */
    top: 50%;
    transform: translateY(-50%);
    width: 50%; /* Ocupa metade da seção */
}

.bloco-imagem-somos img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
}

/* --- CONTROLE DO TEXTO --- */
.bloco-texto-somos {
    width: 45%; /* Garante que o texto fique apenas na metade direita */
    z-index: 2;
}

.title-quem-somos { font-size: 38px; margin-bottom: 30px; }
.title-quem-somos span { color: #d32f2f; }

.item-historia {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.item-historia i { font-size: 32px; color: #d32f2f; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .container-quem-somos {
        flex-direction: column;
        justify-content: center;
    }
    .bloco-imagem-somos {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
    }
    .bloco-texto-somos {
        width: 100%;
        text-align: center;
    }
    .item-historia { flex-direction: column; align-items: center; }
}


/* --- SEÇÃO CONTATO --- */
.section-contato {
    padding: 80px 0;
    background-color: #f3f3f3;
}

.contato-header {
    text-align: center;
    margin-bottom: 50px;
}

.contato-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 32px;
    color: #2c4964;
    font-weight: 700;
}

.linha-decorativa {
    width: 50px;
    height: 3px;
    background-color: var(--vermelho);
    margin: 10px auto;
}

.grid-contato {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* Cards de Informação */
.card-info {
    background: #fff;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border-radius: 4px;
}

.card-info i {
    font-size: 24px;
    color: var(--vermelho);
    margin-bottom: 15px;
}

.card-info h3 {
    font-size: 20px;
    color: #444;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-info p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.redes-sociais-contato {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.redes-sociais-contato a {
    color: #3b5998; /* Azul padrão ou use var(--vermelho) */
    font-size: 22px;
    transition: 0.3s;
}

.redes-sociais-contato a:hover {
    color: var(--vermelho);
}

/* Formulário */
.contato-form-container {
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-contato input, 
.form-contato textarea {
    color: #000000 !important; 
    border: 1px solid #767676; /* Borda mais visível */
    background-color: #ffffff;
    padding: 12px;
}

/* Contraste máximo para acessibilidade */
.form-contato input::placeholder, 
.form-contato textarea::placeholder {
    color: #545454 !important; /* Cinza escuro para leitura clara */
    opacity: 1;
}

/* Realce quando o usuário clica no campo */
.form-contato input:focus, 
.form-contato textarea:focus {
    border-color: #2171c1 !important;
    outline: 2px solid #2171c1;
}

/* Ajuste de contraste para textos informativos no rodapé ou quem somos */
p {
    color: #212121; /* Evita cinza muito claro sobre fundo branco */
}

::placeholder { color: #545454 !important; opacity: 1; }

.btn-enviar {
    background: #2072c4; /* Azul do botão da sua imagem */
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin: 20px auto 0;
}

.btn-enviar:hover {
    background: #1a5ca1;
}

/* ReCaptcha Placeholder */
.recaptcha-placeholder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #d3d3d3;
    background: #f9f9f9;
    padding: 10px 15px;
    width: 300px;
    border-radius: 3px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

/* Responsividade */
@media (max-width: 992px) {
    .grid-contato {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- MAPA --- */
.section-mapa {
    line-height: 0; /* Remove espaço extra abaixo do iframe */
}

/* --- FOOTER --- */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px 0;
}

.grid-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--vermelho);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.logo-footer {
    height: 50px;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 12px;
    color: #777;
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .grid-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- BOTÃO WHATSAPP FIXO (MAIOR E EM BAIXO) --- */
.whatsapp-fixo {
    position: fixed;
    bottom: 30px; /* Distância do chão */
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10000;
    transition: 0.3s;
}

/* --- BOTÃO VOLTAR AO TOPO (MENOR E ACIMA DO WHATSAPP) --- */
.topo-fixo {
    position: fixed;
    bottom: 105px; /* Aumentamos aqui para ele ficar "em cima" do WhatsApp */
    right: 37px;   /* Ajustado para alinhar pelo centro com o de baixo */
    background-color: var(--vermelho);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: 0.3s;
    text-decoration: none;
}

/* Efeito Hover para ambos */
.whatsapp-fixo:hover, .topo-fixo:hover {
    transform: translateY(-5px); /* Efeito de flutuar ao passar o mouse */
    color: #fff;
}

/* --- LOGO DO RODAPÉ (Técnica de cor Branca) --- */
.footer-logo {
    filter: brightness(0) invert(1);
    height: 60px;
    width: auto;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .whatsapp-fixo {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    .topo-fixo {
        bottom: 85px;
        right: 25px;
    }
}