/* --- RESET BÁSICO E VARIÁVEIS DE COR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

:root {
    --cor-fundo: #2c2c2c;      /* Cinza escuro principal */
    --cor-texto-claro: #FFFFFF;
    --cor-texto-escuro: #333;
    --cor-fundo-claro: #f4f4f4;
    --cor-destaque: #0052D4;   /* Azul vibrante */
}

.secao {
    padding: 60px 20px;
}

.conteudo-secao {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--cor-texto-escuro);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* --- CABEÇALHO --- */
header {
    background-color: var(--cor-fundo);
    color: var(--cor-texto-claro);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1000;
    position: relative;
    border-bottom: 1px solid #444;
}

#logo {
    height: 150px; 
    width: auto;
    position: absolute; 
    right: 40px;  /* Mudei de 'left' para 'right' para mover para a direita */
    top: 15px;  
    z-index: 1001; 
}

}

nav {
    width: 100%;
    text-align: right;
    padding-right: 20px;
}

nav a {
    color: var(--cor-texto-claro);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--cor-destaque);
}

.menu-hamburguer {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
}

/* --- SEÇÃO INÍCIO --- */
#inicio {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("imagens/fundo-fabrica.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--cor-texto-claro);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

#inicio h2 {
    font-size: 3rem;
    color: var(--cor-texto-claro);
}

#inicio p {
    font-size: 1.3rem;
    color: var(--cor-texto-claro);
}

/* --- SOBRE NÓS --- */
#sobre {
    background-color: var(--cor-fundo-claro);
}

.destaques-container {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
}

.destaque-item {
    width: 30%;
    min-width: 250px;
    margin: 10px;
}

.destaque-item h3 {
    font-size: 2rem;
    color: var(--cor-destaque);
}

/* --- ESTRUTURA (SOLUÇÕES) --- */
#solucoes {
    background-color: var(--cor-fundo);
    color: var(--cor-texto-claro);
}

#solucoes .conteudo-secao h2 {
    color: var(--cor-texto-claro);
}

.solucoes-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.solucao-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    width: 32%;
    min-width: 280px;
    flex-grow: 1;
    text-align: left;
    color: var(--cor-texto-claro);
}

.solucao-item h3 {
    color: var(--cor-texto-claro);
    margin-bottom: 15px;
    margin-top: 20px;
}

.solucao-imagem {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* --- CERTIFICAÇÕES --- */
#certificacoes {
    background-color: var(--cor-fundo-claro);
}

.certificacoes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.certificacoes-container img {
    max-height: 250px;
    width: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.certificacoes-container img:hover {
    transform: scale(1.1);
}

/* --- MONTADORAS --- */
#montadoras {
    background-color: var(--cor-fundo);
    color: var(--cor-texto-claro);
}

#montadoras h2 {
    color: var(--cor-texto-claro);
}

.montadoras-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.montadoras-container img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.montadoras-container img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- CONTATO --- */
#contato {
    background-color: var(--cor-fundo-claro);
}

.contato-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contato-info, .contato-formulario {
    width: 48%;
    min-width: 300px;
}

.contato-info p {
    margin-bottom: 10px;
}

.contato-formulario input,
.contato-formulario textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.contato-formulario button {
    background-color: var(--cor-destaque);
    color: var(--cor-texto-claro);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contato-formulario button:hover {
    background-color: #003a9e;
}

.contato-mapa {
    width: 100%;
    margin-top: 40px;
}

/* --- TRABALHE CONOSCO E OUVIDORIA --- */
#trabalhe, #ouvidoria {
    padding: 80px 20px;
    text-align: center;
}

#trabalhe {
    background-color: var(--cor-fundo);
    color: var(--cor-texto-claro);
}

#trabalhe h2, #trabalhe p {
    color: var(--cor-texto-claro);
}

#ouvidoria {
    background-color: var(--cor-fundo-claro);
}

.botao-cta {
    display: inline-block;
    background-color: var(--cor-destaque);
    color: var(--cor-texto-claro);
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.botao-cta:hover {
    background-color: #003a9e;
}

/* --- RODAPÉ --- */
footer {
    background-color: #1e1e1e;
    color: #aaa;
    text-align: center;
    padding: 20px;
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 850px) {
    header {
        padding: 15px 20px;
        min-height: 95px;
    }
    #logo {
        height: 120px;
        top: 10px;
        left: 20px;
    }
    nav {
        display: none;
        position: absolute;
        top: 95px;
        left: 0;
        width: 100%;
        background-color: var(--cor-fundo);
        flex-direction: column;
        text-align: center;
    }
    nav.ativo {
        display: flex;
    }
    nav a {
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .menu-hamburguer {
        display: block;
    }
    .destaques-container,
    .solucoes-container,
    .contato-container {
        flex-direction: column;
        align-items: center;
    }
    .solucao-item,
    .contato-info,
    .contato-formulario {
        width: 90%;
    }
}

/* --- ÍCONES PERSONALIZADOS ACIMA DOS DESTAQUES --- */
.icone-destaque {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* --- ÍCONES DE CONTATO --- */
.contato-info p i {
    margin-right: 8px;
    color: var(--cor-destaque);
    font-size: 1.1rem;
}

.contato-info a {
    color: inherit;
    text-decoration: none;
}

.contato-info a:hover {
    text-decoration: underline;
    color: var(--cor-destaque);
}
/* --- ESTILO DO CARROSSEL DE PRODUTOS (AJUSTADO PARA 8 ITENS) --- */
.carrossel-produtos {
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a; 
    padding: 20px 0;
    border-bottom: 2px solid var(--cor-destaque);
}

.carrossel-track {
    display: flex;
    /* Largura total: 250px por item * 16 itens (8 originais + 8 repetidos) */
    width: calc(250px * 16); 
    animation: scrollProducts 40s linear infinite;
}

.produto-item img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* Mantém o produto inteiro */
    background-color: transparent; /* Remove o fundo branco */
    border-radius: 0; /* Remove o arredondamento que não é mais necessário */
    box-shadow: none; /* Remove a sombra para a imagem parecer "solta" */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); /* Adiciona uma sombra suave apenas ao redor do produto, não do quadrado */
}
/* --- MOTOR DA ANIMAÇÃO E ESTILO DO CARROSSEL --- */
.carrossel-produtos {
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a; 
    padding: 30px 0;
    border-bottom: 2px solid var(--cor-destaque);
}

.carrossel-track {
    display: flex;
    width: calc(250px * 16); 
    animation: scrollProducts 30s linear infinite;
}

.produto-item {
    width: 250px;
    padding: 0 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produto-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: transparent;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}

.produto-item img:hover {
    transform: scale(1.1);
}

/* ESTE É O BLOCO QUE FAZ O MOVIMENTO - NÃO PODE FALTAR */
@keyframes scrollProducts {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 8));
    }
}
