/* ==========================================================================
   MOBILE PREMIUM — Touch, gestos, refinamentos
   ========================================================================== */

/* Mobile: Apple-like touch polish */
@media (max-width: 991px) {
  :root {
    --header-height: 56px;
    --header-height-scrolled: 52px;
    --trust-bar-height: 0px;
    --site-top-offset: var(--header-height);
    --site-top-offset-scrolled: var(--header-height-scrolled);
    --text-hero: clamp(2.35rem, 11vw, 3.25rem);
    --space-section: clamp(4.5rem, 16vw, 7rem);
  }

  .trust-bar {
    display: none;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
    gap: var(--space-3);
  }

  .header__logo {
    max-width: min(180px, 55vw);
  }

  .header__logo .logo-full {
    display: none;
  }

  .header__logo .logo-short {
    display: inline;
  }

  .header__cta-group .btn--primary {
    padding: var(--space-3) var(--space-4);
    font-size: 0.7rem;
  }

  .hero__content {
    padding-block: var(--space-12) var(--space-16);
  }

  .hero__lead {
    font-size: var(--text-base);
    line-height: 1.5;
  }

  .btn--lg {
    min-height: 52px;
    padding: var(--space-4) var(--space-8);
  }

  .card:active,
  .service-card:active,
  .ba-card:active {
    transform: scale(0.985);
    transition: transform 0.15s var(--ease-out-expo);
  }

  .mobile-nav {
    padding: env(safe-area-inset-top) var(--space-6) env(safe-area-inset-bottom);
  }

  .section__glow {
    opacity: 0.2;
  }

  .hero__metrics {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: var(--space-5);
  }

  .metric__value {
    font-size: var(--text-2xl);
  }

  .hero__scroll-hint {
    display: none;
  }

  .insurance-logos {
    gap: var(--space-4);
  }

  .insurer-logo {
    min-width: 100px;
    font-size: var(--text-xs);
  }

  .timeline::before {
    left: 27px;
  }

  .back-top {
    right: var(--space-6);
    bottom: 5.5rem;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
  }

  .lightbox__nav {
    display: none;
  }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.96);
  }

  .card:active {
    transform: scale(0.99);
  }

  .nav__link,
  .mobile-nav__link {
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav__link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .ba-card__compare {
    cursor: grab;
  }

  .ba-card__compare:active {
    cursor: grabbing;
  }
}

/* Safe areas (notch) */
@supports (padding: max(0px)) {
  .site-top,
  .header__inner {
    padding-inline: max(var(--container-padding), env(safe-area-inset-left))
      max(var(--container-padding), env(safe-area-inset-right));
  }

  .whatsapp-float {
    bottom: max(var(--space-6), env(safe-area-inset-bottom));
    right: max(var(--space-6), env(safe-area-inset-right));
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero__cta-row {
    flex-direction: column;
  }

  .hero__cta-row .btn {
    width: 100%;
  }

  .header__cta-group .btn--ghost {
    display: none;
  }
}
