/* Transportadora Barreto | estrada noturna azul */
:root {
  --noite: #040e36;
  --fundo: #061650;
  --royal: #1f4fd8;
  --royal-escuro: #0b2a8a;
  --celeste: #5cb3ff;
  --branco: #ffffff;
  --texto: #dbe6ff;
  --asfalto: #14161c;
  --zap: #25d366;
  --zap-escuro: #128c4a;
  --gutter: clamp(16px, 5vw, 72px);
  --fonte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

html, body { background: var(--noite); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--texto);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--branco); color: var(--noite); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Cenário fixo ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
html.cena-pronta .stage canvas { opacity: 1; }
.stage__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 60% 78%, rgba(47, 111, 232, .55), transparent 60%),
    linear-gradient(180deg, #030b2e 0%, #0a2276 62%, #050f3c 100%);
}
html.cena-pronta .stage__fallback { opacity: 0; transition: opacity 1.2s ease; }
.stage__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 14, 54, .7) 0%, transparent 18%),
    linear-gradient(90deg, rgba(4, 14, 54, .88) 0%, rgba(4, 14, 54, .62) 30%, rgba(4, 14, 54, 0) 56%);
}

/* ---------- Topo ---------- */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
  pointer-events: none;
}
.topo a { pointer-events: auto; }
.topo__marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--branco); }
.topo__marca img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(92, 179, 255, .35); }
.topo__marca span { font-size: .8rem; line-height: 1.1; letter-spacing: .02em; font-stretch: 112%; }
.topo__marca strong { font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; color: var(--celeste); }
.topo__insta {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--branco); background: rgba(31, 79, 216, .35); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Capítulos ---------- */
main { position: relative; z-index: 10; }
.cap { position: relative; height: 122vh; }
.cap--hero { height: 112vh; }
.cap__fixo {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center;
  padding: 96px var(--gutter) 40px;
}

/* Abertura */
.hero { max-width: 40rem; }
.hero__marca {
  margin: 0 0 18px; color: var(--celeste); font-weight: 700; font-stretch: 125%;
  font-size: .95rem; letter-spacing: .08em;
}
.hero__titulo {
  margin: 0; color: var(--branco);
  font-weight: 800; font-stretch: 125%;
  font-size: clamp(2.35rem, 4.9vw, 4.6rem);
  line-height: .98; letter-spacing: -.012em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(4, 14, 54, .6);
}
.hero__sub { margin: 22px 0 0; max-width: 30rem; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--texto); }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.1;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn--zap { background: var(--zap); color: #062b16; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .7); }
.btn--zap:hover { background: #3be07b; transform: translateY(-2px); }
.btn--linha { color: var(--branco); border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(4, 14, 54, .35); }
.btn--linha:hover { border-color: var(--branco); }
.btn--grande { min-height: 62px; padding: 0 32px; font-size: 1.12rem; }

.rolar {
  position: absolute; left: 50%; bottom: 28px; width: 2px; height: 46px; margin-left: -1px;
  background: rgba(255, 255, 255, .18); overflow: hidden; border-radius: 2px;
}
.rolar span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--branco); animation: rolar 2.2s ease-in-out infinite; }
@keyframes rolar { to { top: 100%; } }

/* Painel de cada parada */
.painel { max-width: 34rem; }
.painel__frase {
  margin: 26px 0 0; color: var(--branco);
  font-weight: 750; font-stretch: 118%;
  font-size: clamp(1.7rem, 3.3vw, 3rem); line-height: 1.04; letter-spacing: -.01em;
  text-wrap: balance;
}
.painel__texto { margin: 18px 0 0; max-width: 30rem; }

/* Placa de rodovia (azul com filete branco) */
.placa {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0; padding: 14px 20px 14px 22px;
  background: var(--royal); color: var(--branco);
  border-radius: 12px;
  outline: 2.5px solid var(--branco); outline-offset: -8px;
  font-weight: 700; font-stretch: 108%;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.15;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.placa span { padding: 4px 0; }
.placa__seta { width: 30px; height: 18px; flex: none; }

/* Passos */
.passos { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: passo; display: grid; gap: 16px; }
.passos li {
  counter-increment: passo; position: relative;
  padding-left: 56px; display: grid; gap: 2px;
}
.passos li::before {
  content: counter(passo); position: absolute; left: 0; top: 2px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--asfalto); color: var(--branco); font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85);
}
.passos li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 46px; bottom: -14px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.7) 0 6px, transparent 6px 12px);
}
.passos strong { color: var(--branco); font-size: 1.12rem; font-weight: 750; }
.passos span { font-size: .98rem; }

/* Valores */
.valores { margin: 26px 0 0; display: grid; gap: 20px; }
.valores div { display: grid; gap: 2px; }
.valores dt {
  color: var(--branco); font-weight: 800; font-stretch: 125%;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1; letter-spacing: -.01em;
}
.valores div:nth-child(2) dt { color: var(--celeste); }
.valores dd { margin: 6px 0 0; max-width: 26rem; }

/* Marcas da frota (só texto) */
.marcas { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.marcas li {
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .35); color: var(--branco);
  font-weight: 700; font-stretch: 112%; font-size: 1.02rem;
  background: rgba(4, 14, 54, .45);
}

/* Mapa: Brasil com o Pará em destaque, estrada se desenha com a rolagem (--estrada 0..1) */
.cap--mapa .cap__fixo { background: radial-gradient(75% 85% at 70% 50%, rgba(4, 14, 54, .9), rgba(4, 14, 54, .55) 65%, rgba(4, 14, 54, .2)); }
.painel--mapa {
  max-width: none; width: 100%;
  display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px);
}
.mapa { margin: 0; justify-self: center; width: min(100%, 78vh, 640px); }
.mapa svg { width: 100%; height: auto; overflow: visible; }
.mapa__btn { margin-top: 26px; }
.mapa__br { fill: rgba(13, 36, 112, .82); stroke: rgba(120, 165, 255, .45); stroke-width: .8; stroke-linejoin: round; }
.mapa__para { fill: url(#g-para); stroke: #bfe0ff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(92, 179, 255, .45)); }
.mapa__uf { fill: var(--branco); font: 800 26px var(--fonte); font-stretch: 125%; letter-spacing: .01em; text-anchor: middle; }
.mapa__revela { fill: none; stroke: #fff; stroke-width: 30; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--estrada, 1)); }
.mapa__estrada { fill: none; stroke: var(--asfalto); stroke-width: 10; stroke-linecap: round; }
.mapa__faixa { fill: none; stroke: var(--branco); stroke-width: 1.8; stroke-dasharray: 6 7; stroke-linecap: round; }
.mapa__ponto { fill: var(--branco); stroke: var(--royal); stroke-width: 2.5; }
.mapa__pulso { fill: none; stroke: var(--branco); stroke-width: 1.6; transform-origin: 311.9px 82.8px; transform-box: view-box; animation: pulso 2.4s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.mapa__cidade { fill: var(--branco); font: 700 17px var(--fonte); paint-order: stroke; stroke: rgba(4, 14, 54, .9); stroke-width: 4px; }
.mapa__destino { fill: var(--celeste); font: 800 24px var(--fonte); font-stretch: 125%; paint-order: stroke; stroke: rgba(4, 14, 54, .9); stroke-width: 5px; opacity: var(--destino, 1); transition: opacity .5s ease; }

/* Entrada dos painéis */
html.anima .painel, html.anima .hero { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s cubic-bezier(.25,.1,.25,1), transform .9s cubic-bezier(.25,.1,.25,1), filter .9s ease; }
html.anima .is-in .painel, html.anima .is-in .hero { opacity: 1; transform: none; filter: none; }

/* ---------- Contato ---------- */
.contato {
  position: relative; z-index: 10; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 0; text-align: center;
  background:
    radial-gradient(70% 45% at 50% 32%, rgba(31, 79, 216, .45), transparent 70%),
    linear-gradient(180deg, rgba(4, 14, 54, 0) 0%, rgba(4, 14, 54, .85) 16vh, var(--noite) 42vh, var(--noite) 100%);
}
.contato__in { max-width: 40rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contato__logo { width: 150px; height: 150px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(92, 179, 255, .14), 0 30px 80px -20px rgba(31, 79, 216, .9); }
.contato__titulo {
  margin: 30px 0 0; color: var(--branco);
  font-weight: 800; font-stretch: 125%;
  font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.012em; text-wrap: balance;
}
.contato__texto { margin: 18px 0 30px; max-width: 28rem; }
.contato__dados { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.contato__dados li { display: flex; align-items: center; gap: 8px; color: var(--branco); }
.contato__dados svg { width: 20px; height: 20px; color: var(--celeste); }
.contato__dados a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contato__dados a:hover { border-color: var(--branco); }
.rodape { margin-top: 80px; padding: 26px 0 calc(100px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: rgba(219, 230, 255, .7); }
.rodape p { margin: 0; }

/* ---------- WhatsApp fixo ---------- */
.zap-fixo {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--zap); color: #062b16; text-decoration: none; font-weight: 800;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6), 0 0 0 4px rgba(37, 211, 102, .18);
  transition: transform .25s ease;
}
.zap-fixo svg { width: 26px; height: 26px; }
.zap-fixo:hover { transform: translateY(-2px); }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .stage__scrim {
    background:
      linear-gradient(180deg, rgba(4, 14, 54, .75) 0%, transparent 16%),
      linear-gradient(0deg, rgba(4, 14, 54, .96) 0%, rgba(4, 14, 54, .82) 38%, rgba(4, 14, 54, 0) 62%);
  }
  .cap { height: 115vh; }
  .cap--hero { height: 105vh; }
  .painel--mapa { grid-template-columns: 1fr; gap: 6px; }
  .cap--mapa .cap__fixo { align-items: center; padding-top: 76px; }
  .mapa { width: min(100%, 46vh); order: -1; }
  .mapa__btn { display: none; }
  .cap--mapa .painel__frase { margin-top: 14px; }
  .cap__fixo { align-items: flex-end; padding: 84px 16px calc(92px + env(safe-area-inset-bottom)); }
  .topo { padding-left: 16px; padding-right: 16px; }
  .topo__marca img { width: 40px; height: 40px; }
  .hero__marca { margin-bottom: 12px; font-size: .82rem; }
  .hero__titulo { font-size: clamp(2.05rem, 10vw, 2.9rem); }
  .hero__sub { margin-top: 14px; }
  .hero__acoes { margin-top: 22px; }
  .hero__acoes .btn { width: 100%; }
  .rolar { display: none; }
  .painel__frase { margin-top: 18px; font-size: clamp(1.5rem, 7vw, 2rem); }
  .painel__texto { margin-top: 12px; }
  .placa { padding: 12px 16px 12px 18px; font-size: 1.02rem; outline-offset: -7px; }
  .passos { margin-top: 18px; gap: 12px; }
  .passos li { padding-left: 50px; }
  .passos li::before { width: 36px; height: 36px; }
  .passos li:not(:last-child)::after { left: 17px; top: 42px; }
  .valores { margin-top: 18px; gap: 12px; }
  .valores dt { font-size: 1.9rem; }
  .valores dd { margin-top: 2px; font-size: .96rem; }
  .contato { padding-top: 96px; }
  .contato__logo { width: 120px; height: 120px; }
  .btn--grande { width: 100%; }
  .zap-fixo { height: 54px; }
}

/* Telas baixas (celular deitado, notebook pequeno) */
@media (max-height: 640px) and (min-width: 761px) {
  .hero__titulo { font-size: clamp(2rem, 4.2vw, 3.4rem); }
  .painel__frase { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
  .valores dt { font-size: 2rem; }
}

/* Reduzir movimento: tudo parado e visível */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stage canvas { opacity: 1; }
  .cap, .cap--hero { height: auto; min-height: 100vh; }
  .cap__fixo { position: relative; min-height: 100vh; height: auto; }
  .cap:not(.cap--hero) .stage__scrim, .cap:not(.cap--hero) .painel { text-shadow: 0 1px 12px rgba(4, 14, 54, .9); }
  .cap:not(.cap--hero) .cap__fixo { background: rgba(4, 14, 54, .55); }
}
