/* ============================================================
   Suavização (movimento leve e minimalista)
   Não altera cores nem layout: só transições.
   ============================================================ */

html { scroll-behavior: smooth; }

/* troca de página: aparece suave, some suave (só opacidade, para não quebrar elementos fixos) */
body { animation: paginaEntra .55s ease backwards; }
@keyframes paginaEntra { from { opacity: 0; } to { opacity: 1; } }
html.saindo body { opacity: 0; transition: opacity .28s ease; }

/* seções ficam alinhadas abaixo do menu fixo quando alguém chega por link */
section[id] { scroll-margin-top: 72px; }

/* transições gerais (seletores simples: qualquer regra própria do site continua valendo) */
a, button, input, select, textarea {
    transition: color .3s ease, background-color .3s ease, border-color .3s ease,
                box-shadow .3s ease, opacity .3s ease, transform .3s ease;
}
.btn, .full-width-btn { transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease; }
.btn:hover, .full-width-btn:hover { transform: translateY(-2px); }
.btn:active, .full-width-btn:active { transform: translateY(0); }

/* entrada dos blocos ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1); }
.reveal.visivel { opacity: 1; transform: none; }

/* perguntas frequentes abrem e fecham deslizando */
.faq-answer {
    display: block; max-height: 0; opacity: 0; overflow: hidden;
    padding-top: 0; padding-bottom: 0;
    transition: max-height .6s ease, opacity .5s ease, padding .6s ease;
}
.faq-item.active .faq-answer { max-height: 260px; opacity: 1; padding-bottom: 20px; }
.faq-question i { transition: transform .4s ease; }

/* ---- Simulador rápido: limpo e sem quebra de linha ---- */
.hero-simulator-card .sim-header { justify-content: flex-start; }
.hero-simulator-card .sim-header h3 { white-space: nowrap; }
.hero-simulator-card .sim-subtitle { margin-bottom: 22px; }
.hero-simulator-card .form-group-sim label { display: block; margin-bottom: 10px; }
.hero-simulator-card .sim-res-row span { white-space: nowrap; }
.hero-simulator-card .full-width-btn { white-space: nowrap; font-size: .95rem; padding-left: 16px; padding-right: 16px; }
.hero-simulator-card .sim-legal { line-height: 1.5; opacity: .85; }
.hero-simulator-card .sim-res-row { gap: 12px; align-items: baseline; }
.hero-simulator-card .sim-res-row strong { white-space: nowrap; }
@media (max-width: 400px) {
    .hero-simulator-card .full-width-btn, .hero-simulator-card .sim-res-row span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
