/* Baú do Crédito — Mobile First */
@media (max-width: 768px) {

  /* Nenhuma animação, grid ou campo pode alargar a página no celular. */
  html, body { max-width: 100%; overflow-x: hidden; }
  .header-inner, .hero-inner, .hero-content, .container, .steps-grid, .why-inner,
  .hero-inner > *, .steps-grid > *, .why-inner > * { min-width: 0; max-width: 100%; }
  input, select, textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
  #calc-hero { max-width: 100%; box-sizing: border-box; }
  #calc-hero > div { min-width: 0; }
  #calc-hero input { min-width: 0; width: 100%; }

  /* HEADER */
  header { padding: 0 16px; }
  .header-inner { height: 60px; }
  .logo-wrap img { height: 44px; }
  .logo-name { font-size: 15px; }
  .logo-sub { display: none; }
  .header-cta { padding: 9px 16px; font-size: 13px; }
  .header-cta span { display: none; }

  /* HEADER */
  .header-inner { gap: 8px; }
  .header-cta { padding: 8px 10px; font-size: 12px; gap: 4px; white-space: nowrap; flex-shrink: 0; }
  .header-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
  .logo-wrap { gap: 6px; flex-shrink: 0; }
  .logo-wrap img { height: 50px; }
  .logo-name { display: none; }
  .logo-sub { display: none; }
  .nav-wrap { flex: 1; display: flex; justify-content: center; }

  /* HERO */
  .hero { padding: 0 16px; min-height: auto; overflow: visible !important; }
  .hero-inner { grid-template-columns: 1fr !important; padding: 72px 0 0; }
  .hero-content { padding: 0 0 24px !important; }
  .hero-person { display: flex !important; justify-content: center; align-items: center; margin: 16px auto 0; }
  .hero-person img { height: 200px !important; width: auto; animation: none !important; display: block; margin: 0 auto; }
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 15px; margin-bottom: 24px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; }
  .hero-stat strong { font-size: 20px; }

  /* SEÇÕES */
  section { padding: 48px 16px; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 15px; }

  /* BENEFÍCIOS */
  .benefits-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }

  /* COMO FUNCIONA */
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-photo { display: none; }
  .sim-card { padding: 20px 16px; }

  /* REQUISITOS */
  .req-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }

  /* POR QUE NÓS */
  .why-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-photo { display: none; }
  .why-list { gap: 12px; }

  /* FAQ */
  .faq-list { margin-top: 32px; }
  .faq-q { font-size: 14px; padding: 16px 18px; }

  /* CTA FINAL */
  .cta-box { padding: 40px 20px; border-radius: 16px; }
  .cta-box h2 { font-size: 22px; }
  .cta-box p { font-size: 14px; }
  .cta-box .btn-primary { width: 100%; justify-content: center; }

  /* BOTÕES */
  .btn-primary { font-size: 15px; padding: 14px 24px; }
  .btn-ghost { font-size: 14px; padding: 13px 20px; }

  /* FOOTER */
  footer { padding: 32px 16px 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-contact { text-align: left; }
  .footer-contact a { justify-content: flex-start; font-size: 13px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-logo img { height: 34px; }

  /* MODAL FORMULÁRIO */
  #modal-overlay { padding: 0; align-items: flex-end; }
  #modal-overlay > div {
    border-radius: 20px 20px 0 0;
    padding: 28px 20px;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* WHATSAPP FLOAT */
  .wa-float { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 13px; }

  /* STEPS */
  .step { gap: 14px; padding-bottom: 24px; }
  .step-num { width: 36px; height: 36px; font-size: 15px; }
  .step-content h3 { font-size: 15px; }
  .step-content p { font-size: 13px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .header-cta { padding: 8px 12px; font-size: 12px; }
  .hero-stats { gap: 12px; }
}
