/* Reset básico e configurações globais */
:root {
    --primary-color: #2E7D32; /* Verde escuro para um toque ambiental e sério */
    --secondary-color: #66BB6A; /* Verde mais claro para destaques */
    --accent-color: #FFC107; /* Amarelo/Laranja para CTAs e pontos de atenção */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white-color: #fff;
    --dark-gray: #555;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1100px;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem; /* Ajustar em media queries */
}

h2 {
    font-size: 2rem; /* Ajustar em media queries */
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.4rem;
    color: var(--dark-gray);
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Cabeçalho */
.site-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-weight: 400;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Escondido em telas maiores */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

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

.hamburger::after {
    bottom: -8px;
}

/* Estilo do menu hamburguer ativo (X) */
.menu-toggle.active .hamburger {
    background-color: transparent;
}
.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/* Hero Section */
.hero-section {
    background-color: var(--secondary-color); /* Uma cor suave para o fundo */
    background: linear-gradient(to bottom, rgba(46, 125, 50, 0.8), rgba(102, 187, 106, 0.7)), url('https://images.unsplash.com/photo-1476231682828-37e571bc172f?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover; /* Imagem de fundo sutil e temática */
    color: var(--white-color);
    padding: 120px 0 80px; /* Espaço para o header fixo */
    text-align: center;
    min-height: 80vh; /* Para ocupar boa parte da tela inicial */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #FFCA28; /* Amarelo um pouco mais escuro no hover */
    color: var(--text-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}


/* Seções de Conteúdo */
.content-section {
    padding: 70px 0;
}

.content-section.bg-light {
    background-color: var(--light-gray);
}

/* Serviços Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-item {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

/* Contato */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.address p, .contact-form-trigger p {
    margin-bottom: 0.5em;
}

.address strong {
    color: var(--primary-color);
}

/* Rodapé */
.site-footer-bottom {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Modal do Formulário de Contato */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white-color);
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #aaa;
    float: right; /* Mantido para fácil clique, mas o posicionamento absoluto é melhor para controle */
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--text-color);
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 1.2em;
    text-align: center;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

#formStatus {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Responsividade */
@media (min-width: 768px) {
    h1 {
        font-size: 3.2rem;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section p {
        font-size: 1.3rem;
    }
    .contact-info {
        grid-template-columns: 1fr 1fr; /* Duas colunas para endereço e trigger do form */
        align-items: flex-start;
    }
    .contact-form-trigger {
        text-align: left;
    }
}


@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .main-nav ul {
        display: none; /* Escondido por padrão em mobile */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-top: 1px solid var(--light-gray);
    }

    .main-nav.active ul {
        display: flex; /* Exibido quando o menu está ativo */
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
    }
    .main-nav ul li a::after {
        display: none; /* Remover sublinhado do hover em mobile */
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block; /* Exibir botão hambúrguer */
    }

    .hero-section {
        padding-top: calc(var(--header-height) + 40px); /* Espaço para o header fixo */
        min-height: 60vh;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 50px 0;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* Adições ao arquivo styles.css existente */

/* Logo responsiva */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 3000px;
}

/* Botão WhatsApp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: var(--white-color);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer com redes sociais */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--white-color);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsividade para logo */
@media (max-width: 767px) {
    .logo-img {
        height: 40px;
        max-width: 150px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-whatsapp {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .whatsapp-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 90px;
        max-width: 200px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
}
