/* Ajustes de fluidez e legibilidade — out/2026.
   Carregado depois do CSS do Next, então só sobrescreve o necessário. */

/* 1. Hero mais curto: mesma animação, menos rolagem até o conteúdo. */
.hero-expansion { height: 230vh; min-height: 1600px; }
@media (max-width: 650px) {
  .hero-expansion { height: 175svh; min-height: 1200px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-expansion { height: 100svh; min-height: 720px; }
}

/* 2. Legibilidade no celular: nada abaixo de 12px, textos corridos em 13–14px. */
@media (max-width: 650px) {
  .kicker,
  .hero-expansion-sticky .hero-scroll-cue span,
  .hero-expanded-stamp,
  .impact-screen-top span,
  .impact-screen-top strong,
  .impact-result small,
  .impact-screen-copy small,
  .map-panel-head small,
  .map-reach span,
  .map-legend span,
  .coverflow-meta span,
  .coverflow-card-index,
  .case-numbers small,
  .case-process span,
  .case-watch-label,
  .plan-card .plan-tier,
  .city-tabs button,
  .header-cta,
  .mobile-section-scroll span,
  .footer-lower p {
    font-size: 12px !important;
    letter-spacing: .06em;
  }

  .hero-expanded-metrics span { font-size: 11px !important; letter-spacing: .04em; }
  .map-credit { font-size: 10px !important; }

  .impact-caption,
  .impact-result span,
  .impact-screen-copy p,
  .audience-stats p,
  .map-legend p,
  .city-list span,
  .pricing-note,
  .data-note,
  .footer-column a,
  .footer-column span,
  .footer-contact a,
  .footer-contact span {
    font-size: 13px !important;
    line-height: 1.45;
  }
}

/* 3. Bolinhas do carrossel: visual igual, área de toque de 44px. */
.coverflow-pagination { gap: 7px; margin-top: 30px !important; margin-bottom: 12px; }
.coverflow-pagination button { position: relative; }
.coverflow-pagination button::after {
  content: "";
  position: absolute;
  inset: -20px -4px;
}

/* 4. Menu no celular (injetado por ajustes.js). */
.ajm-toggle { display: none; }
@media (max-width: 980px) {
  .site-header { gap: 12px; }
  .site-header .brand { margin-right: auto; }
  .ajm-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff26;
    border-radius: 12px;
    background: #ffffff0d;
    color: #fff;
    cursor: pointer;
  }
  .ajm-toggle svg { width: 20px; height: 20px; }
  .ajm-toggle .ajm-close { display: none; }
  .ajm-open .ajm-toggle .ajm-open-icon { display: none; }
  .ajm-open .ajm-toggle .ajm-close { display: block; }

  .ajm-panel {
    position: fixed;
    inset: 66px 0 auto;
    z-index: 49;
    display: grid;
    gap: 2px;
    padding: 10px 16px 18px;
    background: #061321f5;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #ffffff14;
    box-shadow: 0 24px 50px #0000004d;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .ajm-open .ajm-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .ajm-panel a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    padding: 0 6px;
    border-bottom: 1px solid #ffffff12;
    color: #e6eef3;
    font-size: 17px;
    font-weight: 650;
    text-decoration: none;
  }
  .ajm-panel a::after { content: "→"; color: var(--cyan); }
  .ajm-panel a:last-child { border-bottom: 0; }
}
@media (min-width: 651px) and (max-width: 980px) {
  .ajm-panel { inset: 76px 0 auto; }
}

/* 5. WhatsApp fixo no celular. */
.ajm-whats { display: none; }
@media (max-width: 650px) {
  .ajm-whats {
    position: fixed;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 47;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 30px #00000059;
    transition: transform .25s ease, opacity .25s ease;
  }
  .ajm-whats svg { width: 28px; height: 28px; }
  .ajm-whats:active { transform: scale(.94); }
  /* Esconde no topo (o hero já tem CTA) e no contato final. */
  .ajm-whats.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
  .ajm-panel, .ajm-whats { transition: none !important; }
}
