/* =====================================================================
   ROTA 22 — RESPONSIVO (a base mobile está em style.css)
   320 → 480 → 768 → 1024 → 1280 → 1440
   ===================================================================== */

/* ---------- até 359px (aparelhos bem pequenos) ---------- */
@media (max-width: 359px) {
  :root { --gutter: 0.875rem; }
  .btn { padding-inline: 1rem; letter-spacing: 0.05em; }
  .mobile-bar { grid-template-columns: 1fr 1.2fr; }
  .mobile-bar .btn { font-size: 0.85rem; gap: 0.4rem; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .progress__label { font-size: 0.58rem; letter-spacing: 0.02em; }
  .service-card__name { font-size: 1.45rem; }
  .trust-card { padding: 1rem 0.85rem; }
  .trust-card h3 { font-size: 1rem; }
}

/* ---------- 480px ---------- */
@media (min-width: 480px) {
  .hero__actions, .howto__cta, .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn, .howto__cta .btn, .cta-band__actions .btn { flex: 1 1 auto; }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .success__actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- 768px (tablet) ---------- */
@media (min-width: 768px) {
  :root { --header-h: 76px; }

  .brand__logo { height: 58px; }
  .header.is-scrolled .brand__logo { height: 48px; }

  .hero { align-items: center; }
  .hero__actions { max-width: 36rem; }
  .hero__actions .btn { flex: 0 0 auto; }

  .trust__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .trust-card { padding: 1.5rem 1.25rem; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid var(--c-line); }

  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .about__grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 3.5rem; }

  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.25rem 1rem; }

  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
  .gallery__item:first-child { grid-column: span 1; grid-row: span 2; }
  .gallery__item:first-child .gallery__btn { aspect-ratio: auto; height: 100%; }
  .gallery__item:nth-child(2) { grid-column: span 2; }
  .gallery__item:nth-child(2) .gallery__btn { aspect-ratio: 2 / 1; }

  .location__grid { grid-template-columns: repeat(2, 1fr); }
  .location__grid .info-card--hours { grid-row: span 2; }

  .contact-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }

  .panel { padding: 1.75rem; }
  .progress__label { font-size: 0.75rem; }
  .dates { grid-auto-columns: 82px; }
  .slots { grid-template-columns: repeat(5, 1fr); }
  .options--services { grid-template-columns: repeat(2, 1fr); }

  .lightbox__nav--prev { left: 1.5rem; }
  .lightbox__nav--next { right: 1.5rem; }
  .lightbox__close { top: 1.5rem; right: 1.5rem; }

  .toast-region { bottom: 1.5rem; }
}

/* ---------- 1024px (desktop) ---------- */
@media (min-width: 1024px) {
  /* menu completo, sem hambúrguer e sem barra inferior */
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-toggle, .mobile-menu, .mobile-bar { display: none; }
  .footer { padding-bottom: 1.5rem; }

  .hero {
    min-height: min(100svh, 980px);
    padding-bottom: 5rem;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }
  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: min(72vh, 640px);
    order: 2;
  }
  .hero__media::after { display: none; }
  .hero__photo {
    inset: 0 0 12% 14%;
    border-radius: var(--radius);
    box-shadow: 0 40px 80px -30px #000;
  }
  .hero__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, transparent 50%, rgba(14, 13, 12, 0.55));
  }
  .hero__photo--detail {
    display: block;
    inset: auto auto 0 0;
    width: 42%;
    aspect-ratio: 1;
    border: 6px solid var(--c-ink);
    box-shadow: 0 30px 60px -25px #000;
  }
  .hero__photo--detail img { height: 100%; }
  .hero__frame {
    position: absolute;
    inset: -1.25rem -1.25rem 18% 22%;
    border: 1px solid rgba(201, 161, 91, 0.45);
    border-radius: var(--radius);
    pointer-events: none;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(60% 70% at 85% 40%, rgba(201, 161, 91, 0.1), transparent 70%),
      var(--c-ink);
  }
  .hero__title { font-size: clamp(7rem, 11.5vw, 10.5rem); }

  .hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    color: var(--c-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateX(-50%);
  }
  .hero__scroll span {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--c-gold), transparent);
  }

  .trust__grid { grid-template-columns: repeat(6, 1fr); }

  .services__grid { grid-template-columns: repeat(3, 1fr); }

  .howto__layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }
  .howto__layout .section-head { margin-bottom: 0; }
  .howto__cta { margin-top: 2rem; }
  .steps { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 0; }
  .step { flex-direction: row; align-items: center; padding: 1.5rem 1.75rem; gap: 1.5rem; }
  .step::before { font-size: 2.5rem; min-width: 3.5rem; }
  .step h3 { font-size: 1.4rem; }

  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__item:nth-child(2) { grid-column: span 2; }

  .location__grid { grid-template-columns: repeat(3, 1fr); }
  .location__grid .info-card--hours { grid-row: auto; }

  .contact-grid { grid-template-columns: repeat(4, 1fr); }

  .booking__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; }
  .summary { display: block; }
  .panel { padding: 2rem; }
  .options--services { grid-template-columns: repeat(2, 1fr); }
  .slots { grid-template-columns: repeat(6, 1fr); }
  .dates { grid-auto-columns: 84px; }
}

/* ---------- 1280px ---------- */
@media (min-width: 1280px) {
  .trust-card { padding: 1.75rem 1.4rem; }
  .booking__layout { grid-template-columns: minmax(0, 1fr) 380px; }
}

/* ---------- 1440px ---------- */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
  body { font-size: 1.125rem; }
}

/* Dispositivos sem hover (touch): sem efeitos de elevação que "grudam" */
@media (hover: none) {
  .service-card:hover, .btn:hover, .slot-btn:hover { transform: none; }
  .gallery__zoom { opacity: 1; transform: scale(0.85); }
}
