:root {
    --verde-semear: #2e7d32;
    --verde-escuro: #1b5e20;
    --cinza-claro: #f4f4f4;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* NAVBAR COM LOGO EM DESTAQUE */
.navbar {
    background: #fff;
    border-bottom: 3px solid var(--verde-semear);
    padding: 10px 0;
}

.logo-nav-container {
    text-align: center;
    padding: 10px;
}

.logo-nav {
    max-height: 150px; /* Logo em destaque */
    width: auto;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Correção para não encavalar em telas estreitas */
    gap: 10px; /* Espaço entre os itens */
    list-style: none;
    background: var(--verde-semear);
    margin: 0;
    padding: 15px 10px;
}

.nav-links li {
    min-width: fit-content;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    white-space: nowrap; /* Impede quebra de texto dentro do link */
    display: block;
    transition: 0.3s;
}

.nav-links a:hover {
    background: var(--verde-escuro);
}

/* HERO / BANNER */
.hero {
    background: var(--verde-escuro);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }

.cta-button {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
}

/* SEÇÕES */
section { padding: 40px 20px; max-width: 1100px; margin: auto; }

.about-section { display: flex; align-items: center; gap: 30px; }
.about-image { max-width: 400px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }

/* CARDS DE SERVIÇOS - GRID MAIS COMPACTO */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: var(--cinza-claro);
    padding: 40px;
}

.service-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
    transition: 0.3s;
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-top: 10px;
}

.service-card h2 { font-size: 1.2rem; color: var(--verde-semear); }

/* CONTATO */
.contact-section { background: #fff; border-top: 1px solid #eee; }
.contact-info { display: flex; gap: 40px; align-items: center; }
.contact-image { max-width: 300px; }

.whatsapp-button {
    display: inline-block;
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .about-section, .contact-info { flex-direction: column; text-align: center; }
    
    .nav-links {
        padding: 10px 5px;
    }

    .nav-links li {
        width: 45%; /* Organiza em grade no celular para não ficar amontoado */
        text-align: center;
    }

    .nav-links a {
        font-size: 12px;
        padding: 10px 5px;
    }
}

@media (max-width: 400px) {
    .nav-links li {
        width: 100%; /* Em telas muito estreitas, um item por linha */
    }
}

/* Configuração do comportamento de rolagem suave */
html {
    scroll-behavior: smooth;
}

/* Estilo do Botão Flutuante */
#backToTop {
    display: none; /* Escondido por padrão (telas largas) */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--verde-semear);
    color: white;
    text-align: center;
    line-height: 45px; /* Alinha a seta verticalmente */
    text-decoration: none;
    font-size: 24px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: background 0.3s, transform 0.3s;
}

#backToTop:hover {
    background-color: var(--verde-escuro);
    transform: scale(1.1);
}

/* Exibir botão apenas em telas estreitas (max-width: 768px) */
@media (max-width: 768px) {
    #backToTop {
        display: block;
    }
}