/* --- GERAL & VARIÁVEIS --- */
:root {
    --primary-color: #0d2c54; /* Azul escuro */
    --secondary-color: #fca311; /* Amarelo/Laranja vibrante */
    --accent-color: #ffc95e; /* Amarelo mais claro para detalhes */
    --light-gray: #f4f4f9;
    --dark-gray: #333333;
    --text-color: #4a4a4a;
    --error-color: #d93025; /* Vermelho para erros */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
}

body.no-scroll {
    overflow: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-primary); font-weight: 700; color: var(--primary-color); }

h1 { font-weight: 800; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 3rem; line-height: 1.3; }
p { margin-bottom: 1rem; font-size: 1.1rem; }
a { color: var(--secondary-color); text-decoration: none; }
section { padding: 5rem 0; }

/* --- EFEITO DE ANIMAÇÃO --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- BOTÕES (CTA) --- */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-primary);
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* --- NAVEGAÇÃO --- */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo { max-height: 40px; }
.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: #ffffff; font-family: var(--font-primary); font-weight: 600; position: relative; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--secondary-color); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 8px 20px; font-size: 0.9rem; }

/* --- HERO SECTION OTIMIZADA --- */
.hero-section {
    background: linear-gradient(rgba(13, 44, 84, 0.6), rgba(13, 44, 84, 0.6)), url('https://granprimeplus.org.br/Landpag_granprime_2025%20v2/imagens/1EF773EF40F2DABDD7D241AC370CD1B8C54D_carro.jpg') no-repeat center center/cover;
    color: #ffffff;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
}
.hero-content {
    text-align: center;
    background-color: rgba(13, 44, 84, 0.7);
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 950px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
.hero-section h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin: 0 auto 1.5rem;
    line-height: 1.3;
}
.hero-section p {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}
.hero-cta {
    font-size: 1.3rem;
    padding: 20px 45px;
}
.hero-price {
    display: block;
    margin-top: 0.5rem;
    color: var(--accent-color);
    font-weight: 800;
}

/* --- SEÇÃO COMO FUNCIONA --- */
.info-section { background-color: #ffffff; }
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    text-align: center;
}
.step-card { padding: 1.5rem; }
.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}
.step-icon svg { width: 40px; height: 40px; }
.step-card:hover .step-icon { transform: scale(1.1) rotate(5deg); }
.step-card h4 { font-size: 1.5rem; margin-bottom: 1rem; }
.info-summary {
    text-align: center;
    max-width: 700px;
    margin: 3rem auto 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
}

/* --- SEÇÃO BENEFÍCIOS OTIMIZADA --- */
.benefits-section { background-color: var(--light-gray); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.benefit-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--primary-color);
}
.benefit-icon svg {
    width: 32px;
    height: 32px;
}
.benefit-card h4 { font-size: 1.4rem; margin-bottom: 1rem; }
.benefit-card p { font-size: 1rem; line-height: 1.6; }

/* --- SEÇÃO SIMULAÇÃO COM FORMULÁRIO OTIMIZADO --- */
.simulation-section {
    background: linear-gradient(to top, var(--primary-color), #1a4a8a);
    color: #ffffff;
    text-align: center;
}
.simulation-section h2 { color: #ffffff; max-width: 800px; margin-left: auto; margin-right: auto; }
.simulation-section p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.form-container { background-color: #fff; max-width: 800px; margin: 0 auto; padding: 3rem; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }

.optimized-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.optimized-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}
.optimized-form .form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    width: 24px;
    height: 24px;
}
.optimized-form input {
    width: 100%;
    padding: 18px 18px 18px 50px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1.1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.optimized-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.3);
}
.optimized-form input.invalid {
    border-color: var(--error-color);
}
.optimized-form .error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    text-align: left;
    display: block;
    margin-top: 5px;
    height: 1em;
}
#simulation-form button { padding: 18px; font-size: 1.2rem; width: 100%; }
.trust-badges { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; color: #777; font-family: var(--font-primary); font-weight: 600; }

/* --- PÁGINAS INTERNAS --- */
.page-header { background-color: var(--primary-color); padding: 4rem 0; text-align: center; }
.page-header h1 { color: #ffffff; font-size: 3.5rem; }
.content-section { padding: 4rem 0; }
.content-section .container { max-width: 800px; }
.content-section h2 { text-align: left; margin-bottom: 1.5rem; }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
.value-item { background-color: var(--light-gray); padding: 1.5rem; border-left: 4px solid var(--secondary-color); border-radius: 5px; }

/* --- MENU HAMBÚRGUER E RESPONSIVIDADE --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}
.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.hamburger-menu.active .bar1 { transform: rotate(-45deg) translate(-7px, 6px); }
.hamburger-menu.active .bar2 { opacity: 0; }
.hamburger-menu.active .bar3 { transform: rotate(45deg) translate(-7px, -6px); }

.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--primary-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    padding-top: 120px;
    z-index: 1005;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.mobile-nav a { color: white; font-size: 1.3rem; font-family: var(--font-primary); font-weight: 600; }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
    z-index: 1004;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

/* --- RODAPÉ --- */
.site-footer { background-color: var(--dark-gray); color: #e0e0e0; padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}
.logo-footer { max-width: 150px; margin-bottom: 1rem; }
.site-footer h4 { color: #ffffff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer a { color: #e0e0e0; transition: color 0.3s; }
.site-footer a:hover { color: var(--secondary-color); }
.copyright { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #555; }


/* --- OTIMIZAÇÕES PARA MOBILE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger-menu { display: flex; }
    
    section { padding: 3.5rem 0; }
    
    /* --- OTIMIZAÇÃO DE TÍTULOS PARA MOBILE --- */
    h2 { font-size: 2rem; margin-bottom: 2rem; }
    .hero-section h1 { font-size: 2.1rem; line-height: 1.4; }
    .page-header h1 { font-size: 2.5rem; }
    .simulation-section h2 { font-size: 1.8rem; }
    .step-card h4 { font-size: 1.3rem; }
    .benefit-card h4 { font-size: 1.1rem; }
    /* --- FIM DA OTIMIZAÇÃO DE TÍTULOS --- */

    .hero-section { min-height: auto; padding: 5rem 1rem;}
    .hero-content { padding: 2rem 1.5rem; }
    .hero-section p { font-size: 1.1rem; }
    
    .steps-container,
    .optimized-form .form-row { 
        grid-template-columns: 1fr; 
    }
    
    .optimized-form .form-row {
        gap: 0;
    }
    .optimized-form .form-group {
        margin-bottom: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .benefit-card {
        padding: 1.5rem 1rem;
    }
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    .benefit-icon svg {
        width: 28px;
        height: 28px;
    }
    .benefit-card p {
        font-size: 0.85rem;
    }
    
    .trust-badges { flex-direction: column; gap: 0.8rem; align-items: center;}
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-about, .footer-contact {
        grid-column: 1 / -1; 
        text-align: center;
    }
    .logo-footer { margin-left: auto; margin-right: auto; }
}

@media (max-width: 380px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .hero-section h1 { font-size: 1.9rem; }
}