/* =====================================================================
   Conversão: cadastro que começa no hero, faixa de marcas, CTAs extras,
   WhatsApp fixo no desktop e o carrossel flutuante de produtos.
   ===================================================================== */

/* cartão "Cadastro de revenda" no hero: um formulário de verdade, com rótulo, campo e botão empilhados */
.quick { display: grid; gap: 10px; width: 100%; max-width: 400px; justify-self: end; padding: 24px; border-radius: 16px; background: rgba(8, 22, 44, .62); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.quick-kicker { font: 600 12px/1 var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--gm-ciano); }
.quick-tit { margin-top: 6px; font: 500 22px/1.2 var(--font-display); color: var(--gm-branco); letter-spacing: -.02em; }
.quick select {
  width: 100%; min-height: 52px; padding: 12px 44px 12px 16px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2300ACF0' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--gm-branco); font: 400 15px var(--font-body); appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s var(--ease);
}
.quick select:hover { border-color: rgba(255, 255, 255, .4); }
.quick select option { background: #0A1A33; color: #fff; }
.quick select:focus { outline: none; border-color: var(--gm-ciano); box-shadow: 0 0 0 3px rgba(0, 172, 240, .2); }
.quick .btn { width: 100%; min-height: 52px; margin-top: 2px; }
.quick-note { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .6); }
.quick .hero-mapa { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .75); }
.quick.shake { animation: shake .4s var(--ease); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.selos-main { margin-top: 22px; gap: 6px; }
@media (min-width: 1024px) { .hero-side { align-content: end; } .hero-side > .selos { display: none; } }
/* celular e tablet: os botões do hero e a barra fixa já levam ao cadastro; do cartão fica só o link do mapa */
@media (max-width: 1023px) {
  .selos-main { display: none; }
  .quick { display: block; max-width: none; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .quick > :not(.hero-mapa) { display: none; }
  .quick .hero-mapa { margin: 0; padding: 0; border: 0; font-size: 14px; font-weight: 600; }
}

/* faixa de marcas logo depois do vídeo */
.brandbar { position: relative; z-index: 1; padding: 28px 0 8px; }
.brandbar .marcas-tit { margin: 0 0 14px; text-align: center; font: 600 12px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .55); }
.brandbar .marcas { margin-top: 0; padding-top: 0; border-top: 0; }

/* CTAs extras */
.arg-text .btn { margin-top: 4px; }
.sup-cta { margin-top: 32px; }

/* WhatsApp fixo no desktop (no celular quem cumpre esse papel é a barra fixa) */
.wa-float { display: none; }
@media (min-width: 768px) {
  .wa-float {
    position: fixed; z-index: 40; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
    border-radius: 999px; background: rgba(10, 26, 51, .85); border: 1px solid rgba(255, 255, 255, .22); color: var(--gm-branco); text-decoration: none;
    font: 600 15px var(--font-display); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), border-color .2s var(--ease);
  }
  .wa-float svg { width: 22px; height: 22px; color: var(--gm-ciano); }
  .wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float:hover { border-color: var(--gm-ciano); }
  .depth { bottom: auto; }
}

/* ---------- carrossel flutuante ---------- */
.car { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.car-track {
  --w: min(78vw, 330px);
  display: flex; gap: clamp(16px, 2.4vw, 32px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 36px calc(50% - var(--w) / 2) 64px; cursor: grab; outline: none; -webkit-user-select: none; user-select: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.car-track:focus-visible { box-shadow: inset 0 0 0 2px rgba(0, 172, 240, .5); border-radius: 12px; }
.car-item { flex: 0 0 var(--w); scroll-snap-align: center; position: relative; transition: transform .5s var(--ease), opacity .5s var(--ease), filter .5s var(--ease); transform: scale(.86); opacity: .45; filter: saturate(.7); }
.car-item.is-on { transform: scale(1); opacity: 1; filter: none; }
.car-item.is-near { opacity: .7; }
/* o card levita; a sombra no "chão" encolhe quando ele sobe */
.car-item .prod { display: block; aspect-ratio: 4 / 5.4; animation: levitate 6s ease-in-out infinite; will-change: transform; }
.car-item:nth-child(2n) .prod { animation-duration: 7s; animation-delay: -2s; }
.car-item:nth-child(3n) .prod { animation-duration: 6.5s; animation-delay: -4s; }
.car-item::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -34px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 172, 240, .28), transparent 70%); filter: blur(4px); animation: shadow 6s ease-in-out infinite; }
.car-item:nth-child(2n)::after { animation-duration: 7s; animation-delay: -2s; }
.car-item:nth-child(3n)::after { animation-duration: 6.5s; animation-delay: -4s; }
@keyframes levitate { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-14px) rotate(.4deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .55; } }
.car-item .prod figure { position: absolute; inset: 0; aspect-ratio: auto; }
.car-item .prod h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.02em; }
.car-item.is-on .prod { border-color: rgba(0, 172, 240, .6); box-shadow: 0 0 0 1px rgba(0, 172, 240, .25), 0 40px 80px -30px rgba(0, 172, 240, .45); }
.car-item:not(.is-on) .prod-more { visibility: hidden; }
@media (max-width: 767px) {
  .car-item .prod { display: block; }
  .car-item .prod h3, .car-item .prod-more { position: absolute; }
  .car-item .prod h3 { bottom: 40px; padding: 48px 16px 4px; background: linear-gradient(0deg, rgba(8, 24, 48, .96) 40%, rgba(8, 24, 48, 0)); }
  .car-item .prod-more { bottom: 0; height: 40px; padding: 0 16px 14px; background: rgba(8, 24, 48, .96); }
}
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: -24px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .22); color: var(--gm-branco); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.car-btn svg { width: 22px; height: 22px; }
.car-btn:hover { border-color: var(--gm-ciano); background: rgba(0, 172, 240, .1); }
.car-btn[disabled] { opacity: .35; pointer-events: none; }
.car-dots { display: flex; gap: 8px; }
.car-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); transition: width .3s var(--ease), background-color .3s var(--ease); }
.car-dots i.on { width: 22px; background: var(--gm-ciano); }
@media (prefers-reduced-motion: reduce) { .car-item .prod, .car-item::after { animation: none; } }
/* passagem contínua: sem ímã enquanto anda; o card no centro segue em destaque e todos levam ao cadastro */
.car-track.auto { scroll-snap-type: none; }
.car-item:not(.is-on) .prod-more { visibility: visible; opacity: .0; }
.car-item .prod-more { transition: opacity .4s var(--ease); }
.car-item.is-on .prod-more { opacity: 1; }

/* ---------- formulário: régua de passos com nome, campos mais altos, respiro entre grupos ---------- */
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: 18px; }
.form-prog { display: block; margin-bottom: 26px; }
.stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.st { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid rgba(255, 255, 255, .12); font: 500 14px/1.2 var(--font-display); color: rgba(255, 255, 255, .5); transition: color .3s var(--ease), border-color .3s var(--ease); }
.st b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); font: 600 12px var(--font-display); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.form-card:not([data-at="2"]) .st1, .form-card[data-at="2"] .st2 { color: var(--gm-branco); border-color: var(--gm-ciano); }
.form-card:not([data-at="2"]) .st1 b, .form-card[data-at="2"] .st2 b { background: var(--gm-ciano); border-color: var(--gm-ciano); color: #04121F; }
.form-card[data-at="2"] .st1 { color: rgba(255, 255, 255, .75); border-color: rgba(0, 172, 240, .45); }
.form-card[data-at="2"] .st1 b { border-color: var(--gm-ciano); color: var(--gm-ciano); }
.field label, .field legend, fieldset.checks legend { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); margin-bottom: 8px; }
.form-card .field input, .form-card .field select { min-height: 52px; border-radius: 10px; font-size: 16px; }
.form-card .field textarea { border-radius: 10px; }
.form-card .step { gap: 20px; margin-top: 22px; }
.form-card .field-row.two { gap: 16px; }
@media (max-width: 559px) { .form-card .field-row.two { grid-template-columns: 1fr; gap: 20px; } }
.form-card .btn-full, .form-card [data-submit] { min-height: 56px; font-size: 16px; }
.form-safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); text-align: center; }
.form-safe svg { width: 16px; height: 16px; flex: none; color: var(--gm-ciano); }
.form-card .checks { padding: 18px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); }

/* ---------- S06: "Como a GoMarine leva o cliente" em duas colunas e o mapa 3D em largura total ---------- */
@media (min-width: 900px) {
  .dem-bottom { grid-template-columns: 1fr; }
  .levamos { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 80px); align-items: center; }
  .levamos-foto { grid-row: span 2; margin: 0; }
  .levamos h3 { align-self: end; }
  .levamos .lev-list { align-self: start; }
}
.mapa3d { position: relative; margin-top: clamp(48px, 7vw, 96px); }
.mapa-stage { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 60% 40%, #0d2a50 0%, #071830 55%, #04101f 100%); border: 1px solid var(--hair, rgba(255, 255, 255, .12)); }
.mapa-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.mapa-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.mapa-stage.is-3d .mapa-fallback { opacity: 0; pointer-events: none; }
.mapa-labels { position: absolute; inset: 0; pointer-events: none; }
.mapa-label { position: absolute; left: 0; top: 0; margin: -54px 0 0 14px; padding: 6px 10px; border-radius: 8px; background: rgba(6, 20, 40, .78); border: 1px solid rgba(0, 172, 240, .35); font: 600 13px/1.2 var(--font-display); color: var(--gm-branco); white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.mapa-label small { display: block; font: 500 10px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--gm-ciano); margin-bottom: 2px; }
.mapa-label.on { opacity: 1; }
.mapa-label + .mapa-label { margin: -44px 0 0 -14px; translate: -100% 0; }
.mapa-tip { position: absolute; left: 0; top: 0; margin: -40px 0 0; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #04121F; font: 600 13px var(--font-display); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease); }
.mapa-tip.on { opacity: 1; }
.mapa-hud { display: grid; gap: 16px; margin-top: 24px; }
.mapa-hud h3 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.03em; color: var(--gm-branco); }
.mapa-txt { color: rgba(255, 255, 255, .78); font-size: 16px; max-width: 40ch; }
.mapa-key { display: grid; gap: 10px; list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.mapa-key li { display: flex; align-items: center; gap: 10px; }
.mapa-key i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.k-cd { background: #7fe0ff; box-shadow: 0 0 0 4px rgba(127, 224, 255, .2), 0 0 14px #7fe0ff; }
.k-sp { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.k-polo { background: var(--gm-ciano); box-shadow: 0 0 10px var(--gm-ciano); width: 8px !important; height: 8px !important; margin: 0 2px; }
.mapa-hud .btn { justify-self: start; margin-top: 6px; }
.mapa-hud .mapa-leg { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
@media (min-width: 900px) {
  .mapa-stage { aspect-ratio: 16 / 9; min-height: 560px; max-height: 760px; width: 100%; }
  .mapa-hud { position: absolute; left: clamp(24px, 3vw, 48px); top: 50%; translate: 0 -50%; margin: 0; width: min(360px, 34%); padding: 28px; border-radius: 16px; background: rgba(6, 20, 40, .55); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 2; }
}
@media (max-width: 899px) { .mapa-label { font-size: 11px; } .mapa-label small { font-size: 9px; } }

@media (max-width: 899px) { .mapa-label:first-child { margin: 16px 0 0 -14px; translate: -100% 0; } }

/* ---------- tubarão nadando por toda a página ----------
   Camada fixa acima do fundo do mar e atrás do conteúdo. A cada travessia ele vira e muda de altura (main.js).
   Duas camadas da mesma imagem: corpo e cauda, costuradas por degradê; a cauda bate presa ao corpo. */
.swim { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.swim.on { opacity: 1; }
.swim-path {
  --sw: clamp(320px, 58vw, 860px);
  position: absolute; left: 0; top: var(--sy, 40vh); width: var(--sw); aspect-ratio: 3 / 2; opacity: .09; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  animation: swim-cross var(--sd, 46s) linear -12s infinite alternate; transition: top 0s;
}
.swim-path.rev .shark-bob { scale: -1 1; }   /* voltando da esquerda para a direita: vira o tubarão */
.shark-bob { position: absolute; inset: 0; animation: shark-bob 6s ease-in-out infinite; }
.shark-bob img { position: absolute; inset: 0; width: 100%; height: 100%; }
.shark-body { -webkit-mask-image: linear-gradient(90deg, #000 56%, transparent 64%); mask-image: linear-gradient(90deg, #000 56%, transparent 64%); transform-origin: 45% 50%; animation: shark-body 1.5s ease-in-out infinite alternate; }
.shark-tail { -webkit-mask-image: linear-gradient(90deg, transparent 56%, #000 64%); mask-image: linear-gradient(90deg, transparent 56%, #000 64%); transform-origin: 60% 52%; animation: shark-tail 1.5s ease-in-out infinite alternate; }
@keyframes swim-cross { from { translate: 100vw 0; } to { translate: -100% 0; } }
@keyframes shark-bob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-3vh) rotate(1deg); } }
@keyframes shark-body { from { transform: rotate(-.8deg); } to { transform: rotate(.8deg); } }
@keyframes shark-tail { from { transform: rotate(6deg); } to { transform: rotate(-6deg); } }
@media (max-width: 767px) { .swim-path { --sw: 92vw; --sd: 30s; opacity: .08; } }
@media (prefers-reduced-motion: reduce) { .swim { display: none; } }
/* celular estreito: o selo do hero cabe numa linha */
@media (max-width: 400px) { .hero .eyebrow { font-size: 11px; letter-spacing: .08em; padding-inline: 12px; white-space: nowrap; } }

/* ---------- S04: ícones 3D animados (three.js); o SVG fica de reserva ---------- */
.oferta .card { grid-template-columns: 72px 1fr; gap: 20px; align-items: center; }
.ico-wrap { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: radial-gradient(circle at 50% 35%, rgba(0, 172, 240, .16), rgba(0, 172, 240, .03) 70%); border: 1px solid rgba(0, 172, 240, .18); }
.ico-wrap .ico { margin: 0 !important; transition: opacity .4s var(--ease); }
.ico3d { position: absolute; inset: 4px; width: 64px; height: 64px; opacity: 0; transition: opacity .5s var(--ease); }
.card.is-3d .ico3d { opacity: 1; }
.card.is-3d .ico-wrap .ico { opacity: 0; }
@media (hover: hover) { .oferta .card:hover .ico-wrap { border-color: rgba(0, 172, 240, .45); } }
@media (max-width: 767px) { .oferta .card { grid-template-columns: 60px 1fr; gap: 16px; align-items: start; } .ico-wrap { width: 60px; height: 60px; border-radius: 15px; } .ico3d { width: 54px; height: 54px; inset: 3px; } }

/* selos sem borda: logo + texto, separados por espaço */
.selos .selo { border: 0; padding: 4px 0; border-radius: 0; }
.selos-main { gap: 8px 26px; }

@media (max-width: 1023px) { html.js .hero-content [data-movable], html.js .hero-content [data-movable-side] { display: none; } }
