/* Importação da fonte do Google Fonts para um visual mais limpo */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* --- Variáveis de Cores --- */
:root {
    --cor-primaria: #228B22; /* Verde */
    --cor-secundaria: #E67E22; /* Laranja */
    --cor-fundo-claro: #f4f4f4;
    --cor-fundo-escuro: #222;
    --cor-texto-claro: #f4f4f4;
    --cor-texto-escuro: #333;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--cor-fundo-claro);
    color: var(--cor-texto-escuro);
}

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

/* --- Estilos do Cabeçalho --- */
.cabecalho-principal {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.cabecalho-principal .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabecalho-principal .logo img {
    height: 50px;
}

.navegacao-principal ul {
    list-style: none;
    display: flex;
}

.navegacao-principal ul li {
    margin-left: 20px;
}

.navegacao-principal ul li a {
    text-decoration: none;
    color: var(--cor-texto-escuro);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Efeito de linha ao passar o mouse */
.navegacao-principal ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--cor-primaria);
    transition: width 0.3s ease-out, background-color 0.3s ease;
}

.navegacao-principal ul li a:hover {
    color: var(--cor-primaria);
}

.navegacao-principal ul li a:hover::after {
    width: 70%;
}

/* --- Estilos do Banner Principal (Hero) --- */
#hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--cor-texto-claro);
    overflow: hidden;
}

#hero .conteudo-principal {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-cta {
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: #D35400;
}

/* Estilos para a Imagem de Fundo */
.imagem-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/imagens/banner-principal.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.imagem-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* --- Estilos da Seção de Produtos em Destaque e Galeria de Produtos --- */
#produtos-destaque, .galeria-produtos {
    padding: 60px 0;
    text-align: center;
}

#produtos-destaque h2, .categoria-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--cor-primaria);
}

.categoria-titulo {
    margin-top: 60px;
}

.grade-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    justify-content: center;
}

.card-produto {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.card-produto:hover {
    transform: translateY(-10px);
}

.card-produto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-produto h3 {
    font-size: 1.5rem;
    margin: 15px 20px;
    color: var(--cor-texto-escuro);
}

.card-produto .btn-secundario {
    display: inline-block;
    background: var(--cor-primaria);
    color: var(--cor-texto-claro);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 20px 20px 20px;
    transition: background-color 0.3s ease;
}

.card-produto .btn-secundario:hover {
    background-color: #1a6f1a;
}

/* Estilos para a descrição detalhada do produto */
.descricao-detalhada {
    display: none; /* Oculta a descrição por padrão */
    padding: 20px;
    background-color: #f9f9f9;
    color: #666;
    text-align: left;
    border-top: 1px solid #eee;
}

/* Exibe a descrição quando o botão é clicado */
.card-produto.ativo .descricao-detalhada {
    display: block;
}

/* --- Estilos do Rodapé --- */
.rodape-principal {
    background-color: var(--cor-fundo-escuro);
    color: var(--cor-texto-claro);
    padding: 40px 0;
}

.rodape-principal .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.info-rodape {
    max-width: 400px;
    margin-bottom: 20px;
}

.info-rodape h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.info-rodape p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.links-uteis {
    margin-bottom: 20px;
}

.links-uteis h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.links-uteis ul {
    list-style: none;
}

.links-uteis ul li {
    margin-bottom: 8px;
}

.links-uteis ul li a {
    text-decoration: none;
    color: var(--cor-texto-claro);
    font-weight: 400;
    transition: color 0.3s ease;
}

.links-uteis ul li a:hover {
    color: var(--cor-primaria);
}

/* --- Estilos da Página 'Quem Somos' --- */
.pagina-cabecalho {
    background-color: var(--cor-fundo-claro);
    padding: 40px 0 20px 0;
    text-align: center;
}

.pagina-cabecalho h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.pagina-cabecalho p {
    font-size: 1.2rem;
    color: var(--cor-texto-escuro);
}

/* Estilos da Seção "Nossa História" */
.nossa-historia {
    padding: 40px 0;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.nossa-historia .historia-conteudo {
    flex: 1;
}

.nossa-historia .historia-conteudo h2 {
    font-size: 2rem;
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

.nossa-historia .historia-conteudo p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.nossa-historia .historia-imagem {
    flex: 1;
    max-width: 50%;
    margin: 0 auto;
    display: block;
}

.nossa-historia .historia-imagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Estilos da Seção "Missão, Visão e Valores" */
.missao-valores {
    padding: 60px 0;
    text-align: center;
    background-color: var(--cor-fundo-claro);
}

.missao-valores h2 {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin-bottom: 40px;
}

.cards-valores {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.card-valor {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-valor i {
    font-size: 3rem;
    color: var(--cor-secundaria);
    margin-bottom: 20px;
}

.card-valor h3 {
    font-size: 1.5rem;
    color: var(--cor-texto-escuro);
    margin-bottom: 15px;
}

.card-valor p, .card-valor ul {
    font-size: 1rem;
    color: #666;
    text-align: center;
}

.card-valor ul {
    list-style: none;
    padding: 0;
}

.card-valor ul li {
    margin-bottom: 5px;
}

/* Estilos da Seção "O Que Nos Diferencia" */
.diferenciais {
    padding: 60px 0;
    text-align: center;
}

.diferenciais h2 {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin-bottom: 40px;
}

.diferenciais ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    margin: 0 auto;
    max-width: 900px;
    padding: 0;
}

.diferenciais ul li {
    display: flex;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.diferenciais ul li i {
    font-size: 2rem;
    color: var(--cor-secundaria);
    margin-right: 20px;
    flex-shrink: 0;
}

.diferenciais ul li h3 {
    font-size: 1.5rem;
    color: var(--cor-texto-escuro);
    margin-bottom: 5px;
}

.diferenciais ul li p {
    font-size: 1rem;
    color: #666;
}

/* --- Botão Flutuante do WhatsApp --- */
.whatsapp-flutuante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--cor-texto-claro);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1);
}

.whatsapp-flutuante img {
    width: 35px;
    height: 35px;
}

/* Esconde o texto para não aparecer */
.whatsapp-flutuante span {
    display: none;
}

/* --- Botão Voltar ao Topo --- */
.voltar-topo {
    position: fixed;
    bottom: 40px;
    right: 110px;
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 90;
}

/* Exibe o botão quando a classe 'ativo' é adicionada pelo JS */
.voltar-topo.ativo {
    opacity: 1;
    visibility: visible;
}

/* --- Estilos da Página de Contato --- */
.conteudo-contato {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.informacoes-contato,
.formulario-contato {
    flex: 1;
}

.informacoes-contato h3,
.formulario-contato h3 {
    font-size: 2rem;
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

.informacoes-contato ul {
    list-style: none;
    padding: 0;
}

.informacoes-contato ul li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.informacoes-contato ul li i {
    font-size: 1.5rem;
    color: var(--cor-secundaria);
    margin-right: 15px;
}

.informacoes-contato ul li p {
    font-size: 1rem;
    color: var(--cor-texto-escuro);
}

.mapa-localizacao {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.form-grupo label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--cor-texto-escuro);
}

.form-grupo input,
.form-grupo textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-grupo textarea {
    resize: vertical;
}

.btn-enviar {
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-claro);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #D35400;
}

/* --- Estilos da Galeria de Produtos --- */
.galeria-produtos {
    padding: 60px 0;
    text-align: center;
}

.categoria-titulo {
    font-size: 2rem;
    color: var(--cor-primaria);
    margin: 40px 0 20px;
}

.grade-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    justify-content: center;
}

.card-produto {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.card-produto:hover {
    transform: translateY(-10px);
}

.card-produto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-produto h3 {
    font-size: 1.5rem;
    margin: 15px 20px;
    color: var(--cor-texto-escuro);
}

.card-produto .btn-secundario {
    display: inline-block;
    background: var(--cor-primaria);
    color: var(--cor-texto-claro);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 20px 20px 20px;
    transition: background-color 0.3s ease;
}

.card-produto .btn-secundario:hover {
    background-color: #1a6f1a;
}

/* Estilos para a descrição detalhada do produto */
.descricao-detalhada {
    display: none; /* Oculta a descrição por padrão */
    padding: 20px;
    background-color: #f9f9f9;
    color: #666;
    text-align: left;
    border-top: 1px solid #eee;
}

/* Exibe a descrição quando o botão é clicado */
.card-produto.ativo .descricao-detalhada {
    display: block;
}

/* --- Media Queries (Responsividade) --- */
@media (max-width: 768px) {
    /* Estilos do Menu Hamburguer */
    .navegacao-principal {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #faebeb;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 9;
    }
    .navegacao-principal.ativo {
        display: flex;
    }
    .navegacao-principal ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .navegacao-principal ul li {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }
    .navegacao-principal ul li a {
        padding: 10px 0;
        display: block;
        color: var(--cor-texto-escuro);
    }
    .navegacao-principal ul li a:hover {
        background-color: var(--cor-fundo-claro);
    }
  /* --- Botão do Menu Hamburguer (para mobile) --- */
    .menu-alternador {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    /* Garante que o ícone do hamburguer tenha a cor correta */
.hamburguer,
.hamburguer::before,
.hamburguer::after {
    background: var(--cor-texto-escuro);
}

.hamburguer {
    display: block;
    width: 25px;
    height: 3px;
    position: relative;
    transition: transform 0.3s ease;
}

.hamburguer::before,
.hamburguer::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburguer::before {
    top: -8px;
}

.hamburguer::after {
    top: 8px;
}

.menu-alternador.ativo .hamburguer {
    transform: rotate(45deg);
}

.menu-alternador.ativo .hamburguer::before {
    transform: rotate(-90deg) translate(-8px, 0);
    top: 0;
}

.menu-alternador.ativo .hamburguer::after {
    opacity: 0;
}
/* --- Menu Hamburguer (para mobile) --- */
    /* Estilos da Home Page */
    #hero {
        height: 60vh;
    }
    #hero h1 {
        font-size: 2rem;
    }
    #hero p {
        font-size: 1rem;
    }
    .btn-cta {
        padding: 12px 24px;
    }
    .grade-produtos {
        grid-template-columns: 1fr;
    }
    .card-produto {
        max-width: 90%;
        margin: 0 auto;
    }

    /* Estilos do Rodapé */
    .rodape-principal .container {
        flex-direction: column;
        text-align: center;
    }
    .info-rodape, .links-uteis {
        margin-bottom: 30px;
    }

    /* Estilos dos Botões Flutuantes */
    .whatsapp-flutuante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-flutuante img {
        width: 30px;
        height: 30px;
    }
    .voltar-topo {
        right: 80px;
        width: 40px;
        height: 40px;
    }

    /* Estilos da Página 'Quem Somos' */
    .pagina-cabecalho {
        padding: 40px 0 15px 0;
    }
    .pagina-cabecalho h1 {
        font-size: 2.5rem;
    }
    .pagina-cabecalho p {
        font-size: 1rem;
    }
    .nossa-historia {
        flex-direction: column;
        text-align: center;
    }
    .nossa-historia .historia-imagem {
        max-width: 80%;
        margin-top: 30px;
    }
    .missao-valores .cards-valores {
        flex-direction: column;
    }
    .missao-valores .card-valor {
        margin-bottom: 20px;
    }
    .diferenciais ul li {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .diferenciais ul li i {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Estilos da Página de Contato */
    .conteudo-contato {
        flex-direction: column;
    }
    .conteudo-contato .informacoes-contato {
        margin-bottom: 30px;
    }
}
/* --- Estilos das Redes Sociais no Rodapé (Adicionado) --- */
.redes-sociais h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.redes-sociais .icones a {
    text-decoration: none;
    color: var(--cor-texto-claro);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre o ícone e o texto */
    transition: color 0.3s ease;
}

.redes-sociais .icones a i {
    font-size: 1.5rem; /* Ícone um pouco maior que o texto */
}

.redes-sociais .icones a:hover {
    color: var(--cor-primaria);
}

/* Ajuste para mobile (Media Query existente) */
@media (max-width: 768px) {
    .redes-sociais {
        margin-bottom: 30px; /* Espaçamento igual aos outros blocos no mobile */
    }
}

/* --- Estilos do Modal (Lightbox de Imagens) --- */

/* A imagem dentro do card agora parecerá clicável */
.card-produto img {
    cursor: pointer;
    transition: 0.3s;
}

.card-produto img:hover {
    opacity: 0.8;
}

/* O Fundo Escuro (Overlay) */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed; 
    z-index: 1000; /* Fica em cima de tudo */
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); /* Preto com transparência */
}

/* A Imagem dentro do Modal */
.modal-conteudo {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* O Botão de Fechar (X) */
.fechar-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.fechar-modal:hover,
.fechar-modal:focus {
    color: var(--cor-primaria);
    text-decoration: none;
    cursor: pointer;
}

/* Legenda da imagem (opcional) */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Animação de Zoom */
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Responsividade para celulares */
@media only screen and (max-width: 700px){
    .modal-conteudo {
        width: 100%;
    }
}

/* --- Estilos do Filtro de Produtos --- */
.filtros-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 10px;
}

.btn-filtro {
    background-color: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filtro:hover {
    background-color: var(--cor-primaria);
    color: #fff;
}

/* Botão Ativo (selecionado) */
.btn-filtro.ativo {
    background-color: var(--cor-primaria);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .filtros-container {
        gap: 10px;
    }
    .btn-filtro {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

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