/* =====================================================================
 * QAVAH — Vitrine (showcase) premium, mobile-first, "um veículo por vez".
 * Feed vertical com scroll-snap: cada veículo ocupa a tela inteira.
 * Usa os tokens de cor do styles.css (:root / config.js).
 * ===================================================================== */
/* trava total: nada desliza na horizontal; só o feed rola na vertical */
html, body { overflow: hidden; height: 100%; overscroll-behavior: none; }
.q-body { background: #000; overflow: hidden; width: 100%; max-width: 100vw; }
* { max-width: 100%; }

/* ---------- Header flutuante (vidro) ---------- */
.q-hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px clamp(14px, 4vw, 30px);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.q-brand { display: flex; align-items: center; gap: 9px; }
.q-brand .emblem {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--grad); display: grid; place-items: center;
  color: #0a0a0a; font-size: .95rem; box-shadow: 0 6px 18px rgba(201,169,110,.35);
}
.q-brand .wm { display: flex; flex-direction: column; line-height: 1; }
.q-brand .wm b {
  font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.1rem;
  letter-spacing: .02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.q-brand .wm i {
  font-style: normal; font-size: .48rem; letter-spacing: .36em; font-weight: 600;
  color: var(--accent); opacity: .9; margin-top: 3px;
}
.q-brand .logo-img { height: 36px; width: auto; display: block; }
.q-wa-top {
  display: inline-flex; align-items: center; gap: 7px; background: #25d366; color: #fff;
  font-weight: 700; font-size: .77rem; padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(37,211,102,.32);
}
.q-wa-top span { display: inline; }

/* ---------- Chips de filtro ---------- */
.q-chips {
  position: fixed; top: 49px; left: 0; right: 0; z-index: 29;
  display: flex; gap: 7px; padding: 3px clamp(14px,4vw,30px);
  overflow-x: auto; scrollbar-width: none;
}
.q-chips::-webkit-scrollbar { display: none; }
.q-chip {
  flex: none; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.32);
  color: #fff; backdrop-filter: blur(8px); font-weight: 700; font-size: .75rem;
  padding: 6px 13px; border-radius: 999px; transition: .18s;
}
.q-chip.on { background: var(--grad); color: #0a0a0a; border-color: transparent; }

/* ---------- Feed com snap ---------- */
.q-feed {
  height: 100vh; height: 100dvh; width: 100%; overflow-y: scroll; overflow-x: hidden;
  overscroll-behavior: contain; scroll-snap-type: y mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.q-feed::-webkit-scrollbar { display: none; }
.q-feed { scrollbar-width: none; }

.q-slide {
  position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start;
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
}

/* fundo: foto ou placeholder dourado */
.q-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.q-ph { display: grid; place-items: center; background:
  radial-gradient(120% 80% at 50% 0%, rgba(201,169,110,.18), transparent 55%), #0b0b0b; }
.q-ph i { font-size: 6rem; color: rgba(201,169,110,.16); }
.q-ph .w { position: absolute; bottom: 38%; left: 0; right: 0; text-align: center;
  font-family: 'Playfair Display', serif; font-size: 1.5rem; color: rgba(255,255,255,.13);
  letter-spacing: .04em; padding: 0 24px; }
.q-grad { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,.5) 62%, rgba(0,0,0,.92) 100%); }

/* tags superiores */
.q-tags { position: absolute; top: 90px; left: clamp(16px,5vw,40px); display: flex; gap: 8px; z-index: 3; }

/* bloco de informação */
.q-info { position: relative; z-index: 4; padding: 0 clamp(20px,6vw,48px) clamp(16px,3.5vh,40px); max-width: 720px; }
.q-type { font-size: .66rem; font-weight: 800; letter-spacing: .22em; color: var(--accent); margin-bottom: 5px; }
.q-name { font-family: 'Playfair Display', serif; font-weight: 800; line-height: 1.04;
  font-size: clamp(1.5rem, 6vw, 2.3rem); margin-bottom: 9px; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.q-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.q-pills span { font-size: .72rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 999px; }
.q-desc { color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.45; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-priceRow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.q-priceRow small { color: rgba(255,255,255,.6); font-size: .72rem; display: block; }
.q-price { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }
.q-wa { display: inline-flex; align-items: center; gap: 9px; background: #25d366; color: #fff;
  font-weight: 800; font-size: .95rem; padding: 13px 22px; border-radius: 13px;
  box-shadow: 0 12px 30px rgba(37,211,102,.4); flex: 1; justify-content: center; min-width: 180px; }
.q-wa:active { transform: scale(.98); }
.q-more { margin-top: 11px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-weight: 700; font-size: .82rem; padding: 10px 18px; border-radius: 12px;
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; backdrop-filter: blur(6px); }

/* ===== Dinâmica (estilo Vorexi): entrada animada + zoom na foto ===== */
.q-info > *, .q-intro .in > *, .q-contact .in > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .65s cubic-bezier(.2,.75,.2,1); }
.q-slide.is-active .q-info > *, .q-slide.is-active .in > * { opacity: 1; transform: none; }
.q-slide.is-active .q-info > *:nth-child(2) { transition-delay: .05s; }
.q-slide.is-active .q-info > *:nth-child(3) { transition-delay: .10s; }
.q-slide.is-active .q-info > *:nth-child(4) { transition-delay: .15s; }
.q-slide.is-active .q-info > *:nth-child(5) { transition-delay: .20s; }
.q-slide.is-active .q-info > *:nth-child(6) { transition-delay: .25s; }
.q-slide.is-active .in > *:nth-child(2) { transition-delay: .08s; }
.q-slide.is-active .in > *:nth-child(3) { transition-delay: .16s; }
.q-slide.is-active .in > *:nth-child(4) { transition-delay: .24s; }
.q-slide.is-active .in > *:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .q-info > *, .q-intro .in > *, .q-contact .in > * { opacity: 1; transform: none; transition: none; }
}

/* pontos das fotos */
.q-dots { position: absolute; top: 26px; right: clamp(16px,5vw,40px); display: flex; gap: 5px; z-index: 5; }
.q-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); transition: .2s; }
.q-dots i.on { background: var(--accent); width: 18px; border-radius: 4px; }

/* fotos: fundo borrado preenche as bordas + foto INTEIRA por cima (qualquer formato) */
.q-bgwrap { position: absolute; inset: 0; }
.q-ph-layer { position: absolute; inset: 0; opacity: 0; overflow: hidden; transition: opacity .55s ease; }
.q-ph-layer.on { opacity: 1; }
.q-ph-blur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(26px) brightness(.5); transform: scale(1.2); }
.q-ph-main { position: absolute; left: 0; right: 0; top: 26px; bottom: 30%; background-size: contain; background-position: center; background-repeat: no-repeat; }
/* zoom suave na foto ativa (sem cortar a moto) */
@keyframes qzoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.q-slide.is-active .q-ph-main { animation: qzoom 15s ease forwards; }
@media (prefers-reduced-motion: reduce) { .q-slide.is-active .q-ph-main { animation: none; } }
/* status discreto ao lado do tipo */
.q-st { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: .58rem; letter-spacing: .08em;
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; position: relative; top: -1px; }
.q-st.disponivel { background: rgba(0,184,148,.16); color: var(--good); }
.q-st.reservada { background: rgba(253,203,110,.16); color: var(--warn); }
.q-st.vendida { background: rgba(255,118,117,.16); color: var(--bad); }
/* header aparece só no topo (some ao deslizar pros veículos) */
.q-hd, .q-chips { transition: transform .35s ease, opacity .3s ease; }
body.q-scrolled .q-hd { transform: translateY(-115%); opacity: 0; pointer-events: none; }
body.q-scrolled .q-chips { transform: translateY(-140%); opacity: 0; pointer-events: none; }
/* zonas invisíveis de toque pra trocar foto (toca esquerda/direita) */
.q-tap { position: absolute; top: 0; bottom: 42%; width: 42%; z-index: 5; cursor: pointer; }
.q-tap.l { left: 0; } .q-tap.r { right: 0; }

/* trilha vertical (posição no catálogo) */
.q-rail { position: fixed; right: 7px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 6px; }
.q-rail b { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: .2s; }
.q-rail b.on { background: var(--accent); height: 16px; border-radius: 3px; }

/* dica de scroll */
.q-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; z-index: 4;
  color: rgba(255,255,255,.6); font-size: .74rem; animation: qbounce 1.8s infinite; pointer-events: none; }
@keyframes qbounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* slide de capa (intro) */
.q-intro { justify-content: center; text-align: center; align-items: center; }
.q-intro .q-bg { background:
  radial-gradient(80% 60% at 50% 10%, rgba(201,169,110,.22), transparent 60%),
  radial-gradient(60% 50% at 50% 100%, rgba(0,206,201,.06), transparent 60%), #000; transform: none; }
.q-intro .in { position: relative; z-index: 3; padding: 0 24px; }
.q-intro .eyebrow { color: var(--accent); letter-spacing: .3em; font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.q-intro h1 { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(2.4rem, 11vw, 4.6rem);
  line-height: 1.02; margin: 16px 0 18px; }
.q-intro h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.q-intro p { color: rgba(255,255,255,.72); max-width: 30ch; margin: 0 auto 26px; font-size: 1.05rem; line-height: 1.5; }
.q-intro .stats { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.q-intro .stats .n { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.8rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.q-intro .stats small { color: rgba(255,255,255,.6); font-size: .76rem; }
.q-cta-main { display: inline-flex; align-items: center; gap: 10px; background: var(--grad); color: #0a0a0a;
  font-weight: 800; padding: 15px 30px; border-radius: 14px; font-size: 1rem; box-shadow: 0 12px 30px rgba(201,169,110,.35); }

/* slide de contato (fim) */
.q-contact { justify-content: center; align-items: center; text-align: center; }
.q-contact .q-bg { background: radial-gradient(80% 60% at 50% 30%, rgba(201,169,110,.16), transparent 60%), #000; transform: none; }
.q-contact .in { position: relative; z-index: 3; padding: 0 24px; }
.q-contact h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 10px; }
.q-contact .lines { color: rgba(255,255,255,.78); line-height: 2; margin: 18px 0 26px; }
.q-contact .lines i { color: var(--accent); width: 22px; }

/* ---------- Detalhe (bottom sheet) ---------- */
.q-detail { position: fixed; inset: 0; z-index: 60; display: none; }
.q-detail.open { display: block; }
.q-detail .bd { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.q-detail .sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  background: #0d0d0d; border-top-left-radius: 22px; border-top-right-radius: 22px; border-top: 1px solid rgba(201,169,110,.25);
  animation: qup .28s ease; }
@keyframes qup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.q-detail .grip { width: 40px; height: 4px; background: rgba(255,255,255,.25); border-radius: 3px; margin: 10px auto 0; }
.q-detail .x { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; }
.q-gal { position: relative; aspect-ratio: 4/3; background: #000; }
.q-gal .ph { position: absolute; inset: 0; background-size: cover; background-position: center; }
.q-gal .ph.empty { display: grid; place-items: center; background:
  radial-gradient(120% 80% at 50% 0%, rgba(201,169,110,.18), transparent 55%), #0b0b0b; }
.q-gal .ph.empty i { font-size: 5rem; color: rgba(201,169,110,.18); }
.q-gal .arw { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); color: #fff; }
.q-gal .arw.l { left: 12px; } .q-gal .arw.r { right: 12px; }
.q-db { padding: 22px clamp(18px,5vw,30px) 30px; }
.q-db .t { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.9rem; }
.q-db .sub { color: var(--muted); margin: 4px 0 18px; }
.q-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 10px; margin-bottom: 20px; }
.q-specs .it { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.q-specs .it small { color: var(--muted); font-size: .7rem; display: block; }
.q-specs .it b { font-size: 1rem; }
.q-db .full { color: rgba(255,255,255,.82); line-height: 1.65; margin-bottom: 22px; }
.q-db .priceBig { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: rgba(201,169,110,.08); border: 1px solid rgba(201,169,110,.25); border-radius: 16px; padding: 16px 20px; }
.q-db .priceBig .v { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.7rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Desktop: split por veículo ---------- */
@media (min-width: 900px) {
  .q-wa-top span { display: inline; }
  .q-slide.veh { flex-direction: row; align-items: stretch; }
  .q-slide.veh .q-bg { right: 42%; }
  .q-slide.veh .q-bgwrap { right: 42%; }
  .q-slide.veh .q-ph-main { top: 60px; bottom: 24px; left: 24px; right: 24px; }
  .q-slide.veh .q-tap { bottom: 0; width: 29%; }
  .q-slide.veh .q-tap.r { right: 42%; }
  .q-slide.veh .q-ph { right: 42%; }
  .q-slide.veh .q-grad { right: 42%; background: linear-gradient(90deg, transparent 40%, rgba(0,0,0,.6) 100%); }
  .q-slide.veh .q-info { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; max-width: none;
    display: flex; flex-direction: column; justify-content: center; background: #0a0a0a;
    padding: 60px clamp(28px,3.5vw,60px); border-left: 1px solid rgba(201,169,110,.18); }
  .q-slide.veh .q-tags { top: 104px; left: clamp(20px,4vw,44px); }
  .q-slide.veh .q-name { font-size: clamp(2.2rem, 3.2vw, 3.2rem); }
  .q-dots { right: 44%; }
  .q-nav { bottom: 0; width: 29%; }
  .q-detail .sheet { left: 50%; transform: translateX(-50%); max-width: 760px; border-radius: 22px; bottom: 4vh; max-height: 90vh; }
  @keyframes qup { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
}
