/* --- DEFINIÇÕES GERAIS E CORES --- */
:root {
    --navy: #0A2463;
    --blue-light: #e6f0ff;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #080808;
    --font-main: 'Montserrat', sans-serif;
}

body { 
    font-family: var(--font-main); 
    color: var(--text-dark); 
    background: var(--white); 
    margin: 0; 
    line-height: 1.6; 
}

a { text-decoration: none; transition: 0.3s; }
* { box-sizing: border-box; } /* Previne que paddings estourem a largura */

/* --- HEADER MINIMALISTA --- */
header {
    background: var(--white); 
    padding: 15px 5%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid #f0f0f0; 
    position: sticky; 
    top: 0; 
    z-index: 100;
}

.logo-img { height: 50px; width: auto; }

nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
nav a { color: var(--text-dark); font-weight: 500; font-size: 0.9rem; }
nav a:hover { color: var(--navy); }

.btn-nav-outline { 
    border: 1px solid var(--navy); 
    color: var(--navy); 
    padding: 8px 20px; 
    border-radius: 4px; 
}
.btn-nav-outline:hover { background: var(--navy); color: var(--white); }

/* --- HERO (BANNER) --- */
.hero {
    height: 80vh;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0) 100%), url('banner.jpg');
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    padding: 0 5%;
}

.hero-content { max-width: 600px; }
.hero h1 { font-size: 3rem; color: var(--navy); line-height: 1.2; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 30px; font-weight: 300; }

.btn-cta { 
    background: var(--navy); 
    color: var(--white); 
    padding: 15px 40px; 
    border-radius: 4px; 
    font-weight: 600; 
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.2); 
    display: inline-block;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 36, 99, 0.3); }

/* --- SERVIÇOS (CLEAN GRID) --- */
.section-pad { padding: 80px 5%; }
.section-title { text-align: center; font-size: 2rem; color: var(--navy); margin-bottom: 50px; }

.grid-services { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.card-service { 
    background: var(--white); 
    padding: 40px 30px; 
    border: 1px solid #f0f0f0; 
    border-radius: 8px; 
    text-align: center;
    transition: 0.3s;
}
.card-service:hover { border-color: var(--navy); transform: translateY(-5px); }
.icon-service { font-size: 2.5rem; color: var(--navy); margin-bottom: 20px; display: block; }

/* --- NOTÍCIAS --- */
.news-bg { background: #fafafa; }
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.news-card { 
    background: var(--white); 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-tag { 
    background: var(--blue-light); 
    color: var(--navy); 
    padding: 4px 10px; 
    font-size: 0.75rem; 
    border-radius: 20px; 
    font-weight: 700; 
    text-transform: uppercase; 
    align-self: flex-start;
}

.news-title { font-size: 1.1rem; margin: 15px 0 10px; font-weight: 600; }
.news-link { color: var(--navy); font-size: 0.9rem; font-weight: 600; margin-top: 10px; display: block; }

/* --- FORMULÁRIO BLINDADO (CORREÇÃO ANTI-QUEBRA) --- */
.form-container { 
    max-width: 800px; 
    width: 90%; 
    margin: 60px auto; 
    padding: 40px; 
    background: var(--white); 
    box-shadow: 0 0 20px rgba(0,0,0,0.1); 
    border-radius: 10px; 
}

.form-section-title { 
    font-size: 1.2rem; 
    color: var(--navy); 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
    margin-top: 30px; 
}

.form-row { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    margin-bottom: 15px;
}

.form-col { 
    flex: 1; 
    min-width: 250px; 
}

.form-group { 
    margin-bottom: 15px; 
    text-align: left; 
    width: 100%; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: var(--navy); 
    font-size: 0.9rem; 
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-family: inherit; 
    font-size: 1rem; 
}

.form-group input:focus { 
    border-color: var(--navy); 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.btn-submit { 
    width: 100%; 
    background: var(--navy); 
    color: var(--white); 
    padding: 18px; 
    border: none; 
    font-size: 1.1rem; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    margin-top: 20px; 
    transition: 0.3s; 
}
.btn-submit:hover { background: #051540; }

/* --- FOOTER --- */
footer { background: var(--navy); color: var(--white); padding: 60px 5%; text-align: center; }
.footer-logo { opacity: 0.8; height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }

/* --- MOBILE E TABLET (RESPONSIVIDADE TOTAL) --- */
@media (max-width: 768px) {
    /* Header e Navegação */
    header { flex-direction: column; gap: 15px; padding: 15px; }
    nav ul { flex-direction: column; text-align: center; gap: 15px; width: 100%; }
    .btn-nav-outline { display: block; width: 100%; }

    /* Hero */
    .hero { 
        background: linear-gradient(180deg, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0) 100%), url('banner.jpg'); 
        background-position: top center; 
        text-align: center; 
        justify-content: center; 
        height: auto;
        padding: 60px 5%;
    }
    .hero h1 { font-size: 2.2rem; }
    .btn-cta { width: 100%; }

    /* Correção do Formulário no Celular */
    .form-container { width: 95%; padding: 20px; margin: 30px auto; }
    .form-col { min-width: 100%; } /* Força um campo por linha */
}