/* Importação da fonte Google Fonts - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Estilos Globais e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #222;
}

p {
    margin-bottom: 10px;
}

/* Botões */
.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0056b3;
    text-decoration: none;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9em;
}

.btn-whatsapp {
    background: #25D366; /* Cor do WhatsApp */
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    display: inline-flex; /* Para alinhar o ícone e o texto */
    align-items: center;
    gap: 8px; /* Espaçamento entre ícone e texto */
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1DA851; /* Cor mais escura ao passar o mouse */
    text-decoration: none;
}


/* Header */
header {
    background: #fff;
    color: #333;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Para responsividade */
}

/* Estilos para a Logo e Nome da Empresa */
header .logo {
    display: flex; /* Permite que a imagem e o span fiquem lado a lado */
    align-items: center; /* Alinha verticalmente no centro */
    gap: 15px; /* Espaço entre a logo e o texto */
}

header .logo img {
    max-height: 80px; /* TAMANHO MAIOR DA LOGO - Ajuste este valor conforme desejar */
    width: auto;
}

header .logo span {
    font-size: 1.8em; /* TAMANHO DO NOME DA EMPRESA - Ajuste conforme desejar */
    font-weight: 700; /* Negrito para destaque */
    color: #007bff; /* Cor do nome da empresa */
    margin: 0; /* Garante que não há margens extras */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.7)), url('../img/hero-background.jpg') no-repeat center center/cover; /* Altere a imagem de fundo se quiser */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #fff;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#hero .btn {
    background: #fff;
    color: #007bff;
    font-weight: 600;
}

#hero .btn:hover {
    background: #eee;
    color: #0056b3;
}

/* Sobre Nós Section */
#sobre {
    background: #fff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

#sobre h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

#sobre p {
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-size: 1.1em;
}

/* Produtos em Destaque Section (index.html) */
#produtos-destaque {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
}

#produtos-destaque h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.produto-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.produto-item img {
    max-width: 100%;
    height: 180px; /* Altura fixa para as miniaturas */
    object-fit: cover; /* Recorta a imagem para preencher */
    border-radius: 5px;
    margin-bottom: 15px;
}

.produto-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #007bff;
}

.produto-item p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.ver-mais {
    text-align: center;
}

/* Todos os Produtos Section (produtos.html) */
#todos-produtos {
    padding: 60px 0;
    background-color: #fff;
}

#todos-produtos h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.produtos-grid-completo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.produto-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.produto-card img {
    max-width: 100%;
    height: 250px; /* Altura fixa para as imagens de produto completo */
    object-fit: contain; /* Ajusta a imagem dentro do contêiner sem cortar */
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #eee; /* Fundo para imagens transparentes */
    padding: 10px; /* Espaçamento interno para a imagem */
}

.produto-card h3 {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: #007bff;
}

.produto-card .descricao {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    min-height: 80px; /* Garante altura mínima para a descrição */
}


/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

footer .social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2em;
}

footer .social-links a:hover {
    color: #007bff;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    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: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1DA851;
    transform: scale(1.05);
    text-decoration: none;
}

.whatsapp-float i {
    color: #FFF;
}

/* Scroll-to-top button styles */
.scroll-to-top {
    position: fixed;
    bottom: 100px; /* Acima do botão do WhatsApp */
    right: 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 99;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        flex-direction: column; /* Em telas menores, logo e nome podem ficar um em cima do outro */
        gap: 5px;
        margin-bottom: 15px; /* Espaçamento abaixo da logo/nome */
    }
    header .logo img {
        max-height: 70px; /* Um pouco menor em mobile */
    }
    header .logo span {
        font-size: 1.5em; /* Nome da empresa menor em mobile */
    }

    header nav ul {
        flex-direction: column;
        margin-top: 15px;
    }

    header nav ul li {
        margin: 5px 0;
    }

    #hero h2 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1em;
    }

    .produtos-grid, .produtos-grid-completo {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    .produto-item, .produto-card {
        margin: 0 auto; /* Centraliza os itens */
        max-width: 350px; /* Limita a largura para mobile */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .scroll-to-top {
        bottom: 80px; /* Ajuste para telas menores */
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 60px 15px;
    }
    #hero h2 {
        font-size: 2em;
    }
    .container {
        width: 95%;
    }
}