/* ==========================================================
   VARIÁVEIS DE COR E ESTILO (IDENTIDADE J3)
   ========================================================== */
:root {
    --primary-color: #134e2a; 
    --secondary-color: #c1272d; 
    --action-color: #3bae5a; 
    --action-hover: #2e8b47;
    --text-dark: #0b1b3d;
    --text-light: #ffffff;
    --bg-light: #f4f6f8;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* CABEÇALHO */
.main-header { background-color: #fff; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.header-logo-img { max-height: 80px; }
.header-contact-wrapper { display: flex; align-items: center; gap: 20px; }
.header-phone { color: var(--primary-color); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 5px; font-size: 18px; }
.btn-header-cta { background-color: var(--secondary-color); color: #fff; border: none; padding: 12px 20px; border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 15px;}
.btn-header-cta:hover { background-color: #a02025; }

/* ==========================================================
   HERO SECTION (COM IMAGEM DE FUNDO DA EQUIPE)
   ========================================================== */
.hero-section { 
    /* Cor de fundo como garantia enquanto a imagem carrega */
    background-color: var(--primary-color); 
    
    /* Caminho para a foto da sua equipe */
    background-image: url('../assets/img/bg-equipe.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Aumentei levemente o padding para exibir mais a foto */
    padding: 100px 20px; 
    color: #fff; 
    position: relative; 
}

/* Película escura sobre a foto para garantir o contraste e a leitura do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Utiliza o verde da marca com 85% de opacidade */
    background-color: rgba(19, 78, 42, 0.85); 
    z-index: 0;
}

/* Eleva o texto e o botão para ficarem acima da película escura */
.hero-content {
    position: relative;
    z-index: 1; 
}

.tag-title { display: inline-block; background-color: rgba(255,255,255,0.15); padding: 6px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px); }
.hero-title { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 18px; margin-bottom: 30px; font-weight: 400; color: #e0e0e0; text-shadow: 0 1px 5px rgba(0,0,0,0.3); }
.hero-subtitle strong { color: #fff; }
.btn-primary-cta { background-color: var(--action-color); color: #fff; border: none; padding: 18px 40px; border-radius: 8px; font-size: 20px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 15px rgba(59, 174, 90, 0.4); transition: 0.3s; width: 100%; max-width: 400px; position: relative; overflow: hidden;}
.btn-primary-cta:hover { background-color: var(--action-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 174, 90, 0.6); }

/* VITRINE DE SERVIÇOS (COM IMAGENS) */
.services-section { padding: 80px 0; }
.section-title { font-size: 32px; margin-bottom: 50px; color: var(--primary-color); font-weight: 800; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-box { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s; }
.service-box:hover { transform: translateY(-5px); }
.service-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 3px solid var(--action-color); }

.service-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; text-align: left; }
.service-content h4 { font-size: 20px; margin-bottom: 10px; color: var(--text-dark); font-weight: 700; }
.service-content p { font-size: 15px; color: #555; margin-bottom: 25px; flex-grow: 1; }
.btn-service-cta { background-color: var(--action-color); color: #fff; border: none; padding: 14px; border-radius: 6px; font-weight: 700; font-size: 16px; cursor: pointer; width: 100%; transition: 0.3s; }
.btn-service-cta:hover { background-color: var(--action-hover); }

/* RODAPÉ COMPLETO */
.main-footer { background-color: #082413; color: #fff; padding: 60px 0 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; text-align: left; }

.footer-logo-img-bottom { max-height: 160px; margin-bottom: -50px; }
.footer-desc { color: #d1d5db; font-size: 14px; line-height: 1.7; }

.footer-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--action-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; font-size: 14px; color: #d1d5db; }

/* Estilo para os botões de serviço no rodapé */
.footer-service-btn {
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color 0.3s;
}

.footer-service-btn:hover {
    color: var(--action-color);
}

.footer-contact-info p { margin-bottom: 15px; font-size: 14px; color: #d1d5db; line-height: 1.6; }
.btn-footer-phone-large { display: inline-block; background-color: var(--action-color); color: #fff; padding: 12px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 16px; margin-top: 10px; transition: 0.3s; }
.btn-footer-phone-large:hover { background-color: var(--action-hover); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; background-color: #041209; }
.footer-bottom p { font-size: 13px; color: #888; }

/* MODAL CRM */
.hidden { display: none !important; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: #fff; padding: 40px 30px; border-radius: 12px; width: 100%; max-width: 450px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 20px; font-weight: bold; color: #999; cursor: pointer; }
.modal-header h3 { color: var(--primary-color); margin-bottom: 5px; }
.modal-header p { font-size: 14px; color: #666; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #333; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary-color); }
.btn-submit-crm { background-color: var(--action-color); color: #fff; border: none; padding: 15px; border-radius: 6px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 10px; }
.error-message { color: var(--secondary-color); font-size: 14px; margin: 10px 0; text-align: center; font-weight: 600; }

/* BOTÃO FLUTUANTE */
.float-cta-btn { position: fixed; bottom: 20px; right: 20px; background-color: var(--action-color); color: #fff; border: none; padding: 15px 20px; border-radius: 50px; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999; display: flex; align-items: center; gap: 10px; }

/* ==========================================================
   RESPONSIVO (FOCO MOBILE)
   ========================================================== */
@media (max-width: 768px) {
    /* Força o número de telefone a ficar centralizado e em grande destaque no topo */
    .header-container { flex-direction: column; gap: 15px; padding: 15px 0; }
    .header-contact-wrapper { flex-direction: column; width: 100%; gap: 10px; }
    
    .header-phone { 
        display: flex; 
        justify-content: center; 
        width: 100%; 
        font-size: 20px; /* Número maior no celular */
        background-color: var(--bg-light); 
        padding: 10px; 
        border-radius: 8px; 
        border: 1px solid #e0e0e0;
    }
    
    .btn-header-cta { width: 100%; font-size: 16px; padding: 14px; }

    .hero-title { font-size: 32px; }
    .hero-section { padding: 60px 20px; }
    .services-section { padding: 50px 0; }
    
    /* Ajuste do Footer para Mobile (Empilha as colunas) */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .btn-footer-phone-large { width: 100%; }
}
