/* ============================================================
   AUTORAD PERFORMANCE — responsive.css
   Breakpoints: desktop < 1200 (notebook), tablet < 900, mobile < 640
   ============================================================ */

/* Notebook / small desktop */
@media (max-width: 1200px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .brand img { height: 38px; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(8, 9, 11, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 18px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after { display: none; }

  .nav-toggle { display: inline-flex; }

  .header-actions .btn--header { display: none; }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: 100%;
    padding: 64px 0 84px;
  }

  .hero__bg img { object-position: 72% center; }

  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0.88) 55%, var(--black) 100%);
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 15px; }

  .benefits { grid-template-columns: 1fr; }

  .site-footer__grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; }

  .hero__ctas .btn { width: 100%; }

  .step:not(:last-child)::after { width: 18px; margin: 0 6px; }

  .step__label { display: none; }

  .step.is-active .step__label { display: inline; }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .filters {
    gap: 8px;
  }

  .btn { padding: 12px 18px; }

  .photo-preview img { max-height: 280px; }
}

@media (max-width: 400px) {
  .brand img { height: 32px; }
}

/* Acessibilidade: reduzir animações */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
