/* ==========================================
   1. CONFIGURAÇÃO GERAL E ROLAGEM SUAVE
   ========================================== */
html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif; /* Fonte padrão do site */
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    color: #333;
    font-family: 'Poppins', sans-serif;

    /* 
       Aplica a película branca semi-transparente por cima da imagem.
    */
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.80)),
            url('imagens/fundo.jpg.png'); /* Corrigida a extensão duplicada */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* ==========================================
   2. MENU DE NAVEGAÇÃO (BARRA SUPERIOR)
   ========================================== */
.navbar {
    position: sticky;
    top: 0;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Fonte marcante para a logo "Boas Novas Desentupimento" */
.logo-texto {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #3498db;
}


/* ==========================================
   3. ESTRUTURA DAS SEÇÕES (COM TRANSPARÊNCIA)
   ========================================== */
.section {
    padding: 40px 20px;
    min-height: 80vh;
    box-sizing: border-box;
}

/* Título principal "Bem-vindo ao Boas Novas" e demais títulos */
.section h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.3rem;
    margin-top: 0;
    color: #2c3e50;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c3e50;
}

#home { background-color: rgba(248, 249, 250, 0.85); }
#sobre { background-color: rgba(255, 255, 255, 0.85); }
#servicos { background-color: rgba(248, 249, 250, 0.85); }
#contato { background-color: rgba(255, 255, 255, 0.85); }


/* ==========================================
   4. BANNER PRINCIPAL (SEÇÃO INÍCIO)
   ========================================== */
.banner-container {
    width: 100%;
    max-width: 2000px;
    margin: 25px auto 0 auto;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* ==========================================
   5. CONTEÚDO DA SEÇÃO SOBRE NÓS
   ========================================== */
.sobre-container {
    max-width: 1100px;
    margin: 0 auto;
}

.subtitulo-sobre {
    font-size: 1.2rem;
    color: #3498db;
    margin-bottom: 20px;
}

.texto-historia {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.bloco-missao {
    background-color: rgba(248, 249, 250, 0.9);
    border-left: 4px solid #2c3e50;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.bloco-missao h3 {
    margin-top: 0;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
}

.bloco-valores h3 {
    color: #2c3e50;
    margin-top: 30px;
    font-family: 'Montserrat', sans-serif;
}

.bloco-valores ul {
    list-style: none;
    padding: 0;
}

.bloco-valores li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.bloco-valores li strong {
    color: #2c3e50;
}


/* ==========================================
   6. ESTRUTURA DA SEÇÃO SERVIÇOS (HOVER ANIMADO)
   ========================================== */
.servicos-container {
    max-width: 1100px;
    margin: 0 auto;
}

.servicos-introducao {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #555;
}

.cards-servicos {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.card-servico {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-servico:hover .card-bg-img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.88);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease-in-out;
    max-height: 80px;
    box-sizing: border-box;
}

.card-servico:hover .card-overlay {
    max-height: 100%;
    background: rgba(44, 62, 80, 0.93);
}

.card-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.card-conteudo-escondido {
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.card-servico:hover .card-conteudo-escondido {
    opacity: 1;
}

.card-conteudo-escondido p {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #e2e8f0;
}


/* ==========================================
   7. SEÇÃO DE CONTATO (LADO A LADO)
   ========================================== */
.contato-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.contato-subtitulo {
    margin-bottom: 30px;
}

.contato-container {
    display: flex;
    flex-direction: row; /* Força ficar na mesma linha horizontal */
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

#form-contato {
    flex: 1;
    width: 100%;
    max-width: 500px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-contato-lateral {
    flex: 1;
    width: 100%;
    max-width: 500px;
    background-color: rgba(248, 249, 250, 0.95);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
    box-sizing: border-box;
}

.info-contato-lateral h3 {
    margin-top: 0;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.info-contato-lateral ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-contato-lateral li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.info-contato-lateral li:last-child {
    border-bottom: none;
}

.info-contato-lateral li strong {
    color: #2c3e50;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

button {
    padding: 12px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

button:hover {
    background-color: #3498db;
}


/* ==========================================
   8. MENSAGENS DE FEEDBACK (ENVIO DE FORMULÁRIO)
   ========================================== */
#feedback-mensagem {
    margin-top: 15px;
    font-weight: bold;
}

.sucesso { color: green; }
.erro { color: red; }