/* =========================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================= */
:root {
    /* Cores Agronômicas Modernas */
    --primary: #006030;
    --primary-gradient: linear-gradient(135deg, #117a3a 0%, #9cc837 100%);
    --primary-dark: #004d26;
    --secondary: #f0f7f4; 
    
    /* Cores Neutras */
    --text: #212529;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

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

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--text); 
    background-color: var(--white);
    padding-top: 100px; /* CORREÇÃO: Ajustado para 100px para casar com a altura do menu */
    overflow-x: hidden;
    width: 100%;
    font-size: 1.125rem;
    line-height: 1.6;
}

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

a { 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

/* --- GRID RESPONSIVO PARA OS 5 PILARES --- */
.grid-cinco-colunas {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card-pilar-clicavel {
    background: var(--white);
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card-pilar-clicavel:hover {
    transform: translateY(-5px);
    border-color: #117a3a;
    box-shadow: 0 10px 25px rgba(17, 122, 58, 0.1);
}
.pilar-icone {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}
.card-pilar-clicavel h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

/* --- ESTILO DO CARROSSEL DE SERVIÇOS --- */
.splide-servicos { padding: 0 50px; }
.splide-servicos .splide__arrow {
    background: var(--primary-gradient);
    opacity: 1; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    width: 3.5rem; height: 3.5rem; border-radius: 50%;
}
.splide-servicos .splide__arrow svg { fill: white; width: 18px; height: 18px; }
.splide-servicos .splide__arrow:hover { filter: brightness(1.1); transform: scale(1.05) translateY(-50%); }

/* =========================================
   2. CABEÇALHO (LOGO AMPLIADA)
   ========================================= */
.main-header {
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    height: 100px; 
}

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

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 300px; /* CORREÇÃO: Corrigido de 300px para 75px para não estourar o layout */
    width: auto;  
    display: block;
    object-fit: contain;
}

.desktop-menu ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.desktop-menu a { 
    color: var(--text); 
    font-weight: 600; 
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #117a3a;
    transition: width 0.3s ease;
}

.desktop-menu a:hover { color: #117a3a; }
.desktop-menu a:hover::after { width: 100%; }

.menu-icon { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 2.2rem; 
    cursor: pointer; 
    color: #117a3a; 
}

/* =========================================
   3. SEÇÃO HERO (LAYOUT VERTICAL CENTRALIZADO)
   ========================================= */
.hero {
    min-height: 85vh; 
    background: url('../img/DJI_T40.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex; 
    align-items: center; 
    color: var(--white);
    padding: 100px 0 40px 0; 
}

.overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 19, 14, 0.5) 0%, rgba(11, 19, 14, 0.2) 60%, rgba(11, 19, 14, 0.7) 100%);
    z-index: 1;
}

.hero-container { position: relative; z-index: 2; width: 100%; }

.hero-content {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;     
    gap: 40px;              
}

.hero-text { 
    max-width: 750px; 
    width: 100%;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p { 
    font-size: 1.2rem; 
    color: #e9ecef; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-image { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
}

.hero-banner-img {
    max-width: 320px; 
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.6));
}

/* =========================================
   4. BOTÕES E UTILITÁRIOS GERAIS
   ========================================= */
.btn-primary { 
    background: var(--primary-gradient); 
    color: var(--white); 
    padding: 14px 30px; 
    border-radius: 8px;
    font-weight: bold; 
    border: none;
    display: inline-block;
    cursor: pointer;
}
.btn-primary:hover { 
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.section-padding { padding: 80px 0; }
.section-bg { background-color: var(--secondary); }

.section-title { 
    text-align: center; 
    font-size: 2.2rem; 
    margin-bottom: 40px; 
    color: var(--primary); 
    font-weight: 800;
}
.section-title::after {
    content: ''; 
    display: block; 
    width: 60px; height: 5px; 
    background: var(--primary-gradient); 
    margin: 15px auto 0;
    border-radius: 10px;
}

/* =========================================
   5. CARDS DE SERVIÇOS (ALTURA IGUALADA)
   ========================================= */
.splide__slide {
    display: flex;
    height: auto !important; 
}

.card-curso {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; 
    height: 100%; 
}
.card-curso:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-img-top {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0; 
}
.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body { 
    padding: 25px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}
.card-body h3 { 
    color: var(--text); 
    font-size: 1.3rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.card-body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px; 
    flex-grow: 1; 
}

.btn-link { 
    color: #117a3a; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px;
    margin-top: auto; 
    display: inline-block;
}
.btn-link:hover { color: var(--primary-dark); }

/* =========================================
   6. CONTATO E BOTÃO FLUTUANTE (CARD ÚNICO INTEGRADO)
   ========================================= */
.card-contato-unico {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    max-width: 650px; 
    margin: 0 auto;   
    text-align: center;
}

.contato-img-container {
    width: 100%;
    height: auto; 
    max-height: 380px; 
    overflow: hidden;
    display: flex;
    align-items: center;
}

.contato-img-container img {
    width: 100%;
    height: auto;
    object-fit: contain; 
}

.contato-corpo-unificado {
    padding: 40px;
}

.contato-corpo-unificado h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contato-corpo-unificado p {
    font-size: 1.05rem;
    color: #495057;
    margin-bottom: 10px;
}

.contato-nome {
    font-weight: 700;
    color: var(--text) !important;
}

.email-link, .tel-link {
    font-weight: 700;    
    color: var(--text); 
}
.email-link:hover, .tel-link:hover { color: #117a3a; }

.divisor-sutil {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 30px auto;
    width: 80%;
}

.contato-corpo-unificado h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}
.social-icons img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s;
}
.social-icons img:hover { transform: scale(1.15); }

.social-icons a[href*="wa.me"] img {
    width: 53px;  /* Aumentamos de 45px para 53px para compensar a margem interna */
    height: 53px;
    margin-top: -4px; /* Ajuste milimétrico para manter o alinhamento centralizado na linha */
}

/* =========================================
   7. RODAPÉ (FOOTER ESTILIZADO)
   ========================================= */
footer { 
    background: #0b130e; /* Tom grafite esverdeado bem escuro e profissional */
    color: #abc0b5;      /* Letras em um tom cinza-claro suave que não cansa os olhos */
    padding: 30px 0;     /* Espaçamento interno em cima e embaixo para dar respiro */
    text-align: center; 
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 100%;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra interna sutil */
}

footer p {
    margin: 0;
    padding: 0;
}

/* =========================================
   8. MODAL DE EXIBIÇÃO
   ========================================= */
.modal-container {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); z-index: 9999;
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-container.active { display: flex; opacity: 1; }

.modal-content {
    background: white; padding: 40px; border-radius: 15px;
    width: 90%; max-width: 550px; position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); text-align: center;
    transform: translateY(-20px); transition: transform 0.3s ease;
}
.modal-container.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 30px; font-weight: bold; color: #aaa; cursor: pointer;
}
.close-modal:hover { color: var(--text); }

#modal-titulo { color: var(--primary); margin-bottom: 15px; font-size: 1.6rem; }
#modal-descricao { margin-bottom: 25px; color: #495057; text-align: justify; font-size: 1rem; }

#modal-whatsapp-btn {
    display: inline-flex; align-items: center;
    padding: 14px 30px; border-radius: 50px;
    background: var(--primary-gradient); color: white;
    font-weight: 700; font-size: 0.95rem;
}

/* --- BOTÃO FLUTUANTE DO WHATSAPP (CORRIGIDO) --- */
.whatsapp-container { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 5000; 
}

.whatsapp-float {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: pulse 3s infinite;
}

/* O SEGREDO ESTÁ AQUI: Força a imagem a caber dentro do círculo de 60px */
.whatsapp-img { 
    width: 32px !important; 
    height: 32px !important;
    object-fit: contain;
    display: block;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   9. RESPONSIVIDADE (MOBILE COM MENU RETRÁTIL)
   ========================================= */
@media (max-width: 768px) {
    .menu-icon { 
        display: block; 
    }

    .desktop-menu ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100px; 
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 20px 0;
        gap: 0;
    }

    .desktop-menu ul.active {
        display: flex;
    }

    .desktop-menu li {
        width: 100%;
        text-align: center;
    }

    .desktop-menu a {
        display: block;
        padding: 15px 0;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .desktop-menu a::after { display: none; } 

    /* Outros ajustes de grid mobile */
    .grid-cinco-colunas {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .grid-cinco-colunas .card-pilar-clicavel:last-child {
        grid-column: span 2;
    }

    /* CORREÇÃO: Removido o seletor antigo .contato-grid que estava sobrando aqui */

    .hero-content { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    
    .hero-banner-img {
        max-height: none;    
        max-width: 75%;      
        width: auto;
        margin: 10px auto 0; 
        display: block;
    }
    .splide-servicos { padding: 0; }
    .section-padding { padding: 45px 0; }
}