/* ==========================================================================
   CONFIGURAÇÕES GERAIS E RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* Faz a página rolar suavemente ao clicar no menu ou no botão topo */
}

body {
    background-color: #f4f6f9;
    color: #333333;
    line-height: 1.6;
}

/* ==========================================================================
   PASSO 1: CABEÇALHO MODERNO E FIXO
   ========================================================================== */
.header-fixo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra elegante embaixo do menu */
    z-index: 1000; /* Garante que o menu fica sempre por cima de tudo */
    padding: 10px 0;
}

.topo {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-texto h1 {
    font-size: 20px;
    color: #111111;
    letter-spacing: 1px;
}

.logo-texto p {
    font-size: 11px;
    color: #777777;
}

/* Links de Navegação */
nav a {
    text-decoration: none;
    color: #444444;
    font-weight: 600;
    margin: 0 15px;
    font-size: 15px;
    transition: color 0.3s ease; /* Transição suave de cor */
}

nav a:hover {
    color: #25D366; /* Muda para o verde do WhatsApp ao passar o rato */
}

/* Espaçador para o conteúdo não sumir atrás do menu fixo */
.espacador-header {
    height: 85px; 
}

/* ==========================================================================
   BANNER / HERO
   ========================================================================== */
.banner {
    background: linear-gradient(135px, #111111 0%, #222222 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner p {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 30px;
}

.botao-banner {
    display: inline-block;
    background-color: #25D366;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.botao-banner:hover {
    background-color: #1ebd59;
    transform: scale(1.05);
}

/* ==========================================================================
   PASSO 2: SEÇÃO DE PRODUTOS E CARTÕES COM EFEITOS
   ========================================================================== */
#produtos {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.titulo {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
}

.titulo::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #25D366;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Estilo Base dos Cartões */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid #eef2f5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    
    /* MÁGICA DO PASSO 2: Ativa as transições suaves */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito Hover: Quando passa o rato em cima do cartão */
.card:hover {
    transform: translateY(-8px); /* O cartão sobe suavemente 8px */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); /* Sombra projeta-se para a frente */
}

.card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 6px;
}

.card h3 {
    font-size: 18px;
    color: #222222;
    margin-bottom: 10px;
}

.card p {
    font-size: 13px;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card span {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #111111;
    margin-bottom: 20px;
}

/* Botão de Comprar Interno do Cartão */
.card a {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    background-color: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.card a:hover {
    background-color: #1ebd59; /* Verde ligeiramente mais escuro */
    transform: scale(1.03); /* Leve efeito de clique expansivo */
}

/* ==========================================================================
   SEÇÃO SOBRE
   ========================================================================== */
.sobre {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #eef2f5;
}

.sobre h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.sobre p {
    max-width: 800px;
    margin: 0 auto 15px auto;
    color: #555555;
    font-size: 16px;
}

/* ==========================================================================
   RODAPÉ E MAPA (GOOGLE MAPS)
   ========================================================================== */
footer {
    background-color: #111111;
    color: #ffffff;
    padding: 50px 20px 20px 20px;
}

.rodape-conteudo {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.bloco-rodape h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #25D366;
}

.bloco-rodape p {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 10px;
}

/* Layout específico para o bloco do mapa */
.mapa iframe {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.direitos {
    text-align: center;
    font-size: 13px;
    color: #666666;
    border-top: 1px solid #222222;
    padding-top: 20px;
    margin-top: 20px;
}

/* ==========================================================================
   PASSO 4: ESTILO DO BOTÃO "VOLTAR AO TOPO"
   ========================================================================== */
.voltar-topo {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Torna o botão perfeitamente redondo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Fica logo abaixo do menu, mas acima do conteúdo */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.voltar-topo:hover {
    background-color: #25D366; /* Fica verde clássico ao passar o mouse */
    transform: translateY(-5px); /* Dá um pequeno pulinho para cima */
}

/* ==========================================================================
   PASSO 3: RESPONSIVIDADE (OTIMIZAÇÃO PARA TELEMÓVEL)
   ========================================================================== */
@media (max-width: 768px) {
    .topo {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        margin: 0 8px;
        font-size: 14px;
    }

    .espacador-header {
        height: 130px; 
    }

    .banner {
        padding: 50px 15px;
    }

    .banner h2 {
        font-size: 26px;
    }

    .banner p {
        font-size: 15px;
    }

    .produtos {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .card {
        padding: 15px;
    }

    .rodape-conteudo {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .mapa iframe {
        height: 250px;
    }

    /* Ajusta o tamanho do botão topo para telas de celular */
    .voltar-topo {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}