/* ============================================================
   RESPONSIVE — breakpoints alinhados ao design-system.html
   Breakpoints: 480 · 768 · 1024 · 1280 · 1536
   ============================================================ */

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .form__row.row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {

  /* Container · respiro lateral aumentado */
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* Navbar · links visíveis, CTA visível, toggle escondido */
  .site-nav {
    top: 1.5rem;
    width: 92%;
  }

  .site-nav__links { display: flex; }
  .site-nav__cta { display: inline-flex; }
  .site-nav__toggle { display: none; }
  .site-nav__drawer { display: none; }

  /* Aurora desktop · orbes maiores */
  .bg-aurora::before {
    width: 50rem;
    height: 50rem;
  }
  .bg-aurora::after {
    width: 38rem;
    height: 38rem;
  }

  /* Section paddings */
  .section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .doc-section {
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  /* Hero · desktop */
  .hero {
    padding-top: 11rem;
    padding-bottom: 8rem;
  }
  /* Logo decorativo · desktop ganha mais presença */
  .hero__numeral {
    opacity: calc(var(--hero-numeral-vis, 1) * 0.09);
    top: 42%;
  }

  .hero__lead {
    font-size: 1.2rem;
  }

  /* Two-col Sobre */
  .two-col {
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
  }

  /* Bento atuação · 3 colunas */
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .bento-col-2 {
    grid-column: span 2 / span 2;
  }

  /* Diferenciais · 2 colunas */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Contato · form + aside lado a lado */
  .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .contact-card {
    padding: 2.5rem;
  }

  /* Footer */
  .site-footer__top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .site-footer__bottom {
    flex-direction: row;
    text-align: left;
  }

  /* WhatsApp flutuante reposicionado */
  .whatsapp-float {
    bottom: 1.75rem;
    right: 1.75rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .form__row.row-2 {
    grid-template-columns: 1fr 1fr;
  }

  /* Logo decorativo mais presente no desktop wide */
  .hero__numeral {
    opacity: calc(var(--hero-numeral-vis, 1) * 0.1);
  }
}

@media (min-width: 1280px) {
  .doc-head {
    max-width: 48rem;
  }
}

/* ---------- Mobile · Hero (alinhamento e segurança contra clipping) ----------
   Palavras longas ("previdenciária", "estratégica") podem quebrar para uma
   2ª linha dentro do .kinetic-line__inner — que é inline-block. O parent
   .kinetic-line tem overflow:hidden + line-height:1 para fazer o mask reveal
   no desktop, o que CORTARIA a 2ª linha. No mobile relaxamos esse mask para
   um simples slide+fade — animação ainda existe, sem risco de clipping. */
@media (max-width: 767px) {
  /* Headline display · reduzido para palavras longas
     ("previdenciária", "estratégica") não estourarem horizontalmente */
  .h-display {
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .kinetic-line {
    overflow: visible;
    line-height: 1.05;
    padding-bottom: 0;
  }
  .kinetic-line__inner {
    transform: translateY(20%);
    max-width: 100%;
  }

  /* Hero · respiro mobile */
  .hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
  /* Numeral fixo · mais sutil no mobile */
  .hero__numeral {
    top: 32%;
    opacity: calc(var(--hero-numeral-vis, 1) * 0.045);
  }
  .hero__title { margin-bottom: 1.25rem; }
  .hero__lead { margin-bottom: 1.75rem; }
  .hero__foot { margin-top: 2.5rem; }

  /* Badge · letter-spacing aliviado para caber em 320–375px */
  .badge { padding: 0.3rem 0.75rem; }
  .badge__label {
    font-size: 0.5625rem;
    letter-spacing: 0.18em;
  }

  /* Eyebrow das sections · evita tracking gigante quebrando feio */
  .doc-head .eyebrow {
    letter-spacing: 0.2em;
  }

  /* Field labels · numeral + texto cabem em uma linha */
  .field-label {
    font-size: 0.5875rem;
    letter-spacing: 0.15em;
  }
  .field-label__index { font-size: 0.6rem; }

  /* Section-divider · marca de centro um pouco menor no mobile */
  .section-divider { max-width: 18rem; }

  /* Contact card · padding mais enxuto no mobile */
  .contact-card { padding: 1.75rem 1.25rem; }

  /* Pull-quote · respiro reduzido para não criar buraco vertical */
  .about__quote { margin-top: 2rem; padding-top: 1.75rem; }
}

/* ---------- Mobile · Credenciais (Sobre) ---------- */
@media (max-width: 767px) {
  .about__credentials {
    gap: 0.875rem;
    margin: 0 auto 1.5rem;
    max-width: 22rem;
  }
  /* Divisor "Formação" · mais enxuto no mobile */
  .about__cred-divider {
    margin: 1.75rem auto 1.25rem;
    gap: 0.75rem;
  }
  .about__cred-label {
    font-size: 0.5rem;
    letter-spacing: 0.28em;
  }
  .about__credentials li {
    gap: 0.625rem;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 0.875rem;
    line-height: 1.35;
  }
  .about__credentials svg {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
  }
  .about__credentials .cred-text { gap: 0.05rem; }
  .about__credentials .cred-title {
    white-space: normal;
    font-size: 0.9375rem;
    line-height: 1.25;
    font-weight: 500;
  }
  .about__credentials .cred-sub {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* Logo decorativo · mais contido no mobile para não competir com o título */
  .hero__numeral {
    width: clamp(12rem, 55vw, 18rem);
    opacity: calc(var(--hero-numeral-vis, 1) * 0.07);
    max-width: 80vw;
  }

  /* Bento mobile · numeral completamente dentro do card.
     No desktop, bottom:-1.5rem cria um "bleed" editorial intencional —
     mas em cards estreitos de mobile esse corte vira "número cortado".
     Aqui reposicionamos para dentro e diminuímos o tamanho. */
  .card-bento__index {
    font-size: clamp(4.5rem, 14vw, 6.5rem);
    bottom: 0.5rem;
    right: 0.75rem;
  }
  .card-bento--featured .card-bento__index {
    right: 0.5rem;
  }
}

/* ---------- Mobile · Cards Diferenciais e Atuação ---------- */
@media (max-width: 767px) {
  .card-mini__head {
    gap: 0.5rem;
  }
  .card-mini__head .card-mini__value {
    font-size: 1.125rem;
    line-height: 1.25;
  }
  .card-bento__head {
    gap: 0.625rem;
  }
  .card-bento__head .card-bento__icon-wrap,
  .card-bento__head .card-bento__icon-wrap svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  .card-bento__head .card-bento__title {
    font-size: 1.25rem;
    line-height: 1.25;
  }
}

/* ---------- Mobile · Footer ---------- */
@media (max-width: 767px) {
  .site-footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
  }
  .site-footer__top {
    gap: 1.75rem;
    margin-bottom: 2rem;
  }
  .site-footer__brand {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .site-footer__logo {
    width: 2.75rem;
    height: 2.75rem;
  }
  .site-footer__tagline {
    font-size: 0.8125rem;
    max-width: none;
  }
  .site-footer__col h3 { margin-bottom: 0.75rem; }
  .site-footer__col a,
  .site-footer__col li {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .site-footer__bottom {
    gap: 0.5rem;
    padding-top: 1.5rem;
  }
  .site-footer__legal {
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
  }
}

/* ---------- Garantia de não-scroll horizontal ----------
   Vários reforços porque iOS Safari tem comportamento agressivo de
   rubber-band lateral quando QUALQUER elemento descendente passa
   mesmo 1px do viewport. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
html { overscroll-behavior-x: none; }
body { overscroll-behavior-x: none; }

/* Containers principais não podem ultrapassar 100vw em hipótese alguma */
.container,
main,
section,
.hero,
.hero__inner,
.doc-section,
.contact-card,
.card-bento,
.card-mini {
  max-width: 100%;
}

/* Quebra suave de palavras longas em qualquer headline */
h1, h2, h3, .h-display, .h1, .h2 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* Numeral fixo "JB" · garante que ele nunca empurre layout */
.hero__numeral {
  max-width: 100vw;
}
