/* --- GERAL E VARIÁVEIS (Mobile-First) --- */
:root {
    --primary-color: #2C5F2D; /* Verde escuro principal */
    --secondary-color: #FFE77A; /* Amarelo para destaque */
    --dark-color: #222831; /* Cor de texto escura */
    --light-gray: #f4f4f4; /* Fundo de seções */
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
    font-size: 16px; /* Base font size */
}

.container {
    width: 90%;
    margin: 0 auto;
}

section {
    padding: 4rem 0;
}

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

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    color: var(--white-color);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

/* --- CABEÇALHO (Mobile) --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Por simplicidade, o menu é visível. Em um projeto real, aqui entraria um "menu hambúrguer". */
header nav {
    display: none; /* Escondido em mobile por padrão */
}

.btn-cta {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.btn-cta:hover {
    background: #255026;
}


/* --- SEÇÃO HERO (Mobile) --- */
#hero {
    height: 90vh; /* Um pouco menos que 100vh para melhor encaixe em mobile */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('bg2.jpg') no-repeat center left  /cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 5%;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta-hero {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s;
}
.btn-cta-hero:hover {
    background: #edd86a;
    transform: scale(1.05);
}


/* --- SEÇÃO SOBRE (Mobile) --- */
#sobre {
    background: var(--light-gray);
}
.about-content {
    display: flex;
    flex-direction: column; /* Layout de coluna por padrão */
    gap: 2rem;
    text-align: center;
}
.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* --- SEÇÃO CRÉDITO (CARDS - Mobile) --- */
.cards-container {
    display: flex;
    flex-direction: column; /* Cards empilhados por padrão */
    gap: 1.5rem;
}
.card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px); /* Efeito de hover sutil */
}
.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}


/* --- SEÇÃO SIMULADOR (Mobile) --- */
#simulador {
    background: var(--light-gray);
}
.simulator-box {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-group {
    margin-bottom: 2rem;
}
.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.form-group input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #f9f9f9;
}
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    margin-top: 1rem;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}
.btn-cta-form {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-color);
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
#valor-parcela {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}


/* --- SEÇÃO CONTATO e RODAPÉ (Mobile) --- */
#contato {
    text-align: center;
}
.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column; /* Empilhado em mobile */
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
}
.contact-info p i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

footer {
    background: var(--dark-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 0;
}


/* =================================================================== */
/* --- ESTILOS PARA TABLET E DESKTOP (min-width: 768px) --- */
/* =================================================================== */

@media (min-width: 768px) {
    .container {
        width: 85%;
        max-width: 1100px;
    }

    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    /* --- CABEÇALHO (Desktop) --- */
    header nav {
        display: block; /* Mostra a navegação */
    }
    header nav ul {
        list-style: none;
        display: flex;
    }
    header nav ul li {
        margin-left: 2rem;
    }
    header nav ul li a {
        text-decoration: none;
        color: var(--dark-color);
        font-weight: 600;
        transition: color 0.3s;
    }
    header nav ul li a:hover {
        color: var(--primary-color);
    }
    .btn-cta { /* Escondemos o botão de CTA no header, pois a navegação já está visível */
      display: none;
    }
    /* Reaparece o botão CTA principal */
    header .container > .btn-cta {
      display: block;
    }

    /* --- HERO (Desktop) --- */
    #hero {
      height: 100vh;
    }

    /* --- SOBRE (Desktop) --- */
    .about-content {
        flex-direction: row; /* Layout de 2 colunas */
        text-align: left;
        align-items: center;
        gap: 4rem;
    }
    .about-text {
        flex: 1;
    }
    .about-image {
        flex: 1;
    }

    /* --- CRÉDITO (Desktop) --- */
    .cards-container {
        flex-direction: row; /* Layout de 3 colunas */
        gap: 2rem;
    }
    .card {
        flex: 1;
    }

    /* --- SIMULADOR (Desktop) --- */
    .simulator-box {
        padding: 3rem;
    }

    /* --- CONTATO (Desktop) --- */
    .contact-info {
        flex-direction: row; /* Em linha novamente */
        justify-content: center;
        gap: 3rem;
    }
}
