/* --- GERAL E RESET --- */
:root {
    --primary-color: #f3cc2a;
    /* Amarelo-Ouro */
    --dark-color: #181818;
    /* Cinza Escuro */
    --light-color: #fcfcfc;
    /* Branco Suave */
    --white-color: #ffffff;
    --gray-text: #555;
    --border-color: #e0e0e0;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
    /* Previne scroll horizontal causado por animações */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    /* Fonte responsiva */
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

section {
    padding: 100px 0;
}

/* --- CABEÇALHO --- */
.main-header {
    background-color: rgba(24, 24, 24, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    /* <-- Diminuímos o padding para 10px */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 75px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.btn-whatsapp-header {
    color: var(--light-color);
    text-decoration: none;
    background-color: var(--success-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-whatsapp-header:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- BOTÕES GLOBAIS --- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(243, 204, 42, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-4px);
}

/* --- 1. HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/IMG_9448.JPG') center/cover no-repeat;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 120px 20px 40px;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    margin-bottom: 20px;
    max-width: 900px;
    font-weight: 700;
}

.hero-subheadline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 40px;
    max-width: 700px;
    opacity: 0.9;
}

.inventory-section { padding: 80px 0; background: #0f172a; color:#fff; }
.inventory-section .btn { margin-top: 10px; }



.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* A mágica acontece aqui! */
}

.hero-cta-group a {
    margin: 10px;
}

/* --- 2. SEÇÃO BENEFÍCIOS --- */
.benefits-section {
    background-color: var(--white-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.25rem;
}

/* --- 3. SEÇÃO FORMULÁRIO --- */
.form-section {
    background-color: var(--light-color);
}

.simulation-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background-color: var(--white-color);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.form-group {
    grid-column: span 1;
}

.form-group.full-width {
    grid-column: span 2;
}

.simulation-form input,
.simulation-form select {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.simulation-form input:focus,
.simulation-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 204, 42, 0.3);
}

.btn-full-width {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    grid-column: span 2;
}

.form-legal {
    grid-column: span 2;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: 15px;
}


/* --- 4. SEÇÃO CONFIANÇA (DEPOIMENTOS) --- */
.trust-section {
    background-color: var(--white-color);
}

.testimonial-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 70px auto;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    padding: 20px 60px;
    /* Mais padding lateral para os botões não sobreporem */
    text-align: center;
    box-sizing: border-box;
}

.testimonial-card p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 25px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-color);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    border: none;
    color: var(--dark-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--dark-color);
    color: var(--primary-color);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.partners-section {
    text-align: center;
    margin-top: 80px;
}

.partners-section h3 {
    color: var(--gray-text);
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Garante o alinhamento vertical perfeito */
    gap: clamp(30px, 6vw, 60px);
    /* Espaçamento responsivo */
    flex-wrap: wrap;
    /* Permite que os logos quebrem a linha em telas menores */
}

.partners-logos img {
    /* A MÁGICA ACONTECE AQUI: */
    max-height: 45px;
    /* Define uma altura máxima. Ajuste o valor se quiser maiores ou menores */
    width: auto;
    /* O navegador calcula a largura para manter a proporção */

    /* Mantém os efeitos visuais que já tínhamos */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    /* Adiciona um leve zoom ao passar o mouse */
}

/* --- 5. SEÇÃO COMO FUNCIONA --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

/* Linha conectora */
.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 25px auto;
    border: 4px solid var(--light-color);
}

.step-card p {
    font-size: 1.1rem;
    max-width: 280px;
    margin: 0 auto;
}

.interactive-section {
    background-color: var(--white-color);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Espaço entre os botões */
    flex-wrap: wrap;
    /* Permite quebrar a linha em telas pequenas */
    margin-bottom: 50px;
    border-bottom: none;
    /* Removemos a linha antiga */
}

.tab-link {
    padding: 12px 28px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background-color: #f5f5f5;
    /* Fundo de botão sutil */
    border-radius: 50px;
    /* Bordas arredondadas (formato de pílula) */
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-link:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estado ativo do botão: usa as cores da marca */
.tab-link.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(243, 204, 42, 0.3);
}

.tab-content {
    display: none;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.tab-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}


/* --- 7. CTA DE URGÊNCIA (COM PARALLAX CORRIGIDO) --- */
/* VERIFIQUE SE O SEU CSS ESTÁ ASSIM: */

/* ==============================
   URGENCY CTA SECTION — parallax sem zoom exagerado
   ============================== */

.urgency-cta-section{
  position: relative;
  overflow: hidden;
  color: var(--white-color);
  text-align: center;
}

/* IMAGEM: agora ocupa exatamente a seção (sem inset) */
.urgency-cta-section::before{
  content: "";
  position: absolute;
  inset: 0; /* sem bleed = sem zoom aparente */
  /* ajuste o caminho da imagem conforme sua estrutura real */
  background: url('../img/IMG_9447.PNG') center 40% / cover no-repeat;
  will-change: transform;
  /* parallax via translate; scale mínimo só p/ evitar bordas no scroll */
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(var(--parallax-scale, 1));
  transform-origin: center center;
  z-index: 0;
  pointer-events: none;
}

/* OVERLAY (gradiente) */
.urgency-cta-section::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6));
  z-index: 1;
  pointer-events: none;
}

/* Conteúdo acima do overlay */
.urgency-cta-section > *{
  position: relative;
  z-index: 2;
}

/* Título */
.urgency-cta-section h2{
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Ajustes finos ——— */
/* Em telas muito altas, um leve scale evita aparecer borda quando o parallax desloca */
@media (min-height: 800px){
  .urgency-cta-section::before{
    --parallax-scale: 1.15; /* 2% é imperceptível e evita “vazar” */
  }
}

/* Em mobile, mantenha o scale baixíssimo para não parecer zoom */
@media (max-width: 768px){
  .urgency-cta-section::before{
    --parallax-scale: 1.45; /* quase 0% de zoom visual */
  }
}

/* Acessibilidade: usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce){
  .urgency-cta-section::before{
    transform: none !important;
  }
}


/* --- 8. RODAPÉ --- */
.main-footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p,
.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col i {
    color: var(--primary-color);
    min-width: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
}

.seals span {
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.whatsapp-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ================================================================ */
/* =========== SUBSTITUA TODA A SEÇÃO DE RESPONSIVIDADE =========== */
/* ================================================================ */

@media(max-width: 992px) {
    .steps-container::before {
        display: none;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* ESCONDE O HEADER NO MOBILE */
    .main-header {
        display: none;
    }

    /* AJUSTA PADDING DAS PÁGINAS INTERNAS */
    .content-page-section {
        padding-top: 80px;
    }

    section {
        padding: 60px 15px;
        /* Menos padding lateral para dar mais 'ar' */
    }

    .hero-section {
        padding-top: 60px;
        /* Adiciona um respiro no topo */
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ================================================================ */
    /* ============= AQUI ESTÁ A CORREÇÃO PARA O FORMULÁRIO ============= */
    /* ================================================================ */

    .form-section .section-title {
        font-size: 1.8rem;
        /* Título um pouco menor */
    }

    .form-section .section-subtitle {
        margin: -25px 0 30px 0;
        /* Margens ajustadas para mobile */
    }

    /* E SUBSTITUA PELA REGRA DEFINITIVA ABAIXO: */
    .simulation-form {
        display: block;
        /* Garante que não é mais grid nem flex */
        padding: 30px 20px;
    }

    /* ADICIONE TAMBÉM ESTA NOVA REGRA LOGO ABAIXO */
    .form-group {
        width: 100%;
        /* Força cada grupo a ocupar a largura total */
        display: block;
        /* Garante que ele se comporte como um bloco */
        margin-bottom: 20px;
        /* Adiciona espaçamento vertical entre os campos */
    }

    .btn-full-width {
        grid-column: span 1 !important;
        margin-top: 10px;
        /* Espaço extra antes do botão final */
    }

    /* ================================================================ */

    .footer-grid {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        margin-bottom: 20px;
    }

    /* Garante que o parallax no mobile não tenha comportamentos estranhos */
    .urgency-cta-section {
        background-attachment: scroll;
    }
}
/* --- ESTILO PARA O BANNER DE COOKIES --- */
#cookie-banner {
    position: fixed;
    bottom: -100%; /* Começa escondido fora da tela */
    left: 0;
    width: 100%;
    background-color: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fcfcfc;
    padding: 20px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transition: bottom 0.8s ease-in-out;
}

#cookie-banner.show {
    bottom: 0; /* Mostra o banner ao adicionar a classe .show */
}

#cookie-banner p {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
}

#cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

#cookie-banner button {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap; /* Evita que o texto do botão quebre linha */
    transition: all 0.3s ease;
}

#cookie-banner button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(243, 204, 42, 0.2);
}

@media(max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
    }
}

/* Parallax para a seção do estoque */
.inventory-section.parallax{
  padding: 100px 0;
  color: #fff;
  background: url("../img/hb20s.webp") center / cover no-repeat fixed; /* <-- sua foto */
  position: relative;
  isolation: isolate;
}
.inventory-section.parallax::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45); /* overlay p/ leitura */
}
.inventory-section.parallax .container{
  position: relative;
  z-index: 1;
}

/* Fallback mobile (iOS/Android desativam background-attachment: fixed) */
@media (max-width: 1024px){
  .inventory-section.parallax{ background-attachment: scroll; }
}

.form-group.cnh-group{
  border: 1px solid #e5e7eb;         /* gray-200 */
  background: #f9fafb;               /* gray-50 */
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

.form-group.cnh-group label{
  display:block;
  font-weight:600;
  color:#0b1220;
  margin-bottom:10px;
}

.form-group.cnh-group input[type="checkbox"]{
  /* tamanho e cor do “check” */
  width: 18px; height: 18px;
  accent-color: var(--brand);
  vertical-align: middle;
  cursor: pointer;
  margin-right: 8px;
}

.form-group.cnh-group .form-hint{
  display:inline-block;
  margin-left: 6px;
  font-size: 12px;
  color:#6b7280;                      /* gray-500 */
}

/* foco acessível */
.form-group.cnh-group input[type="checkbox"]:focus-visible{
  outline: 2px solid color-mix(in oklab, var(--brand), #ffffff 30%);
  outline-offset: 2px;
  border-radius: 4px;
}

/* compacta um pouco em telas pequenas */
@media (max-width: 480px){
  .form-group.cnh-group{ padding:12px 14px; }
  .form-group.cnh-group .form-hint{ font-size:11px; }
}

/* Selo abaixo do formulário */
.seal-badge{
  text-align:center;
  margin-top: 18px;
}
.seal-badge img{
  max-width: 220px;   /* ajuste o tamanho */
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.12));
  user-select: none;
}
@media (max-width: 480px){
  .seal-badge img{ max-width: 180px; }
}
