/* ==========================================================================
   MOVAR TRANSPORTES — Site público + página de rastreamento
   ========================================================================== */

/* --------------------------------- Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: .93rem; color: var(--text-soft);
  padding: 9px 14px; border-radius: 999px; transition: .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--navy-800); background: var(--surface-2); }
.site-header__cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* --------------------------------- Hero -------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, #1c4483 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
  color: #fff;
}
.hero::after {
  content:''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 74px 0 90px; }
.hero__eyebrow { color: var(--accent-400); }
.hero__eyebrow::before { background: var(--accent-400); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; margin-bottom: .3em; }
.hero h1 span { color: var(--accent-400); }
.hero p.lead { font-size: 1.12rem; color: #c5d0e6; max-width: 33ch; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 34px; }
.hero__stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; }
.hero__stat .l { font-size: .82rem; color: #9fb0cf; }

/* Card de rastreio no hero */
.track-card {
  background: var(--surface); color: var(--text);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.5);
}
.track-card h3 { font-size: 1.3rem; }
.track-card p.sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.track-form { display: flex; gap: 10px; }
.track-input {
  flex: 1; display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 0 6px 0 18px; background: var(--surface-2);
  transition: .2s;
}
.track-input:focus-within { border-color: var(--accent-500); box-shadow: var(--ring); background: #fff; }
.track-input input {
  flex: 1; border: 0; background: transparent; outline: none; padding: 14px 0;
  font-size: 1rem; font-family: var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--text);
}
.track-input input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted); }
.track-hint { margin-top: 14px; font-size: .82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.track-hint b { color: var(--text-soft); font-weight: 600; }
.track-hint code { background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; cursor: pointer; font-family: ui-monospace, monospace; }

/* ------------------------------- Sections ------------------------------ */
section.block { padding: 82px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* Faixa de indicadores */
.trust-strip { background: var(--navy-800); }
.trust-strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust-item { color: #fff; display: flex; align-items: center; gap: 14px; }
.trust-item .ico { width: 42px; height: 42px; flex: none; background: rgba(255,255,255,.08); border-radius: 12px; display: grid; place-items: center; color: var(--accent-400); }
.trust-item .n { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.trust-item .l { font-size: .82rem; color: #9fb0cf; }

/* Cards de serviço */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-800)); color: var(--accent-400);
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* Seção "Acompanhe sua entrega" */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent-500); display: block; margin-bottom: 10px;
}
.step h4 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { font-size: .88rem; color: var(--text-soft); margin: 0; }

/* Sobre / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__media {
  border-radius: var(--radius-lg); min-height: 340px;
  background: radial-gradient(900px 400px at 20% 0%, #1c4483 0, transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900));
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.split__media::after { content:''; position:absolute; inset:0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 30px); }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.feature-list .chk { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--teal-500); color: #fff; display: grid; place-items: center; margin-top: 2px; }

/* Contato / CTA final */
.contact { background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); color: #fff; border-radius: var(--radius-lg); padding: 46px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.contact h2 { color: #fff; }
.contact p { color: #c5d0e6; }
.contact__info { display: grid; gap: 16px; }
.contact__info .row { display: flex; gap: 14px; align-items: center; }
.contact__info .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--accent-400); display: grid; place-items: center; flex: none; }
.contact__info .l { font-size: .78rem; color: #9fb0cf; }
.contact__info .v { font-weight: 600; }

/* Atendimento / WhatsApp */
.support-band { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: var(--shadow-sm); }
.support-band__ico { width: 60px; height: 60px; flex: none; border-radius: 16px; display: grid; place-items: center; background: #25d366; color: #fff; }
.support-band__text { flex: 1; min-width: 220px; }
.support-band__text h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: .1em 0 0; }
.btn--wa { background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.28); }
.btn--wa:hover { background: #1ebe5b; box-shadow: 0 14px 30px rgba(37,211,102,.35); }

/* Painel de suporte na página de rastreamento */
.support-help { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.support-help__ico { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #25d366; color: #fff; }
.support-help__text { flex: 1; min-width: 200px; }

@media (max-width: 560px) {
  .support-band { flex-direction: column; text-align: center; padding: 26px 22px; }
  .support-band__text { min-width: 0; }
  .support-help { flex-direction: column; text-align: center; }
  .support-help__text { min-width: 0; }
  .btn--wa { width: 100%; }
}

/* Rodapé */
.site-footer { background: var(--navy-900); color: #b9c5dd; padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a { display: block; color: #9fb0cf; padding: 5px 0; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; font-size: .84rem; color: #7d8cab; flex-wrap: wrap; }
.footer-demo { background: rgba(255,106,44,.14); color: var(--accent-400); border: 1px solid rgba(255,106,44,.3); padding: 4px 10px; border-radius: 8px; font-size: .78rem; }

/* ======================= PÁGINA DE RASTREAMENTO ======================== */
.rastreio-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff;
  padding: 40px 0 120px; position: relative; overflow: hidden;
}
.rastreio-hero::after { content:''; position:absolute; inset:0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 26px); }
.rastreio-hero__inner { position: relative; text-align: center; }
.rastreio-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 24px; }
.rastreio-hero p { color: #b9c5dd; }
.rastreio-search { max-width: 560px; margin: 26px auto 0; }

.rastreio-wrap { margin-top: -84px; position: relative; z-index: 2; padding-bottom: 70px; }

.result-empty, .result-loading, .result-error {
  background: var(--surface); border-radius: var(--radius-lg); padding: 46px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.result-error { border-top: 4px solid var(--danger-500); }
.result-empty .ico, .result-error .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }

/* Painel de resumo */
.summary-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.summary-top {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #fff;
  padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.summary-top .code-label { font-size: .78rem; color: #9fb0cf; letter-spacing: .08em; text-transform: uppercase; }
.summary-top .code { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: .04em; }
.summary-status { text-align: right; }
.summary-status .l { font-size: .74rem; color: #9fb0cf; text-transform: uppercase; letter-spacing: .08em; }
.summary-status .badge { font-size: .92rem; padding: 8px 16px; margin-top: 4px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.summary-item { padding: 22px 30px; border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
.summary-item:last-child { border-right: 0; }
.summary-item .l { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.summary-item .v { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; margin-top: 4px; }
.summary-item .v small { display:block; font-family: var(--font); font-weight: 400; font-size: .82rem; color: var(--muted); }

/* Bloco genérico */
.panel { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 28px 30px; margin-top: 22px; }
.panel > h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.panel > h3 .ico { color: var(--accent-500); }

/* Rota horizontal (stepper) */
.route-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 6px; }
.route-node { flex: 1; min-width: 130px; text-align: center; position: relative; padding: 0 6px; }
.route-node .dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted); font-weight: 700; z-index: 2; position: relative;
}
.route-node.origin .dot { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.route-node.dest .dot { background: var(--accent-500); border-color: var(--accent-500); color: #fff; }
.route-node.mid .dot { background: #fff; border-color: var(--navy-600); color: var(--navy-700); }
.route-node::before {
  content:''; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px;
  background: var(--border-strong); z-index: 1;
}
.route-node:first-child::before { display: none; }
.route-node .city { font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
.route-node .tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.route-node.origin .tag { color: var(--navy-700); }
.route-node.dest .tag { color: var(--accent-600); }

#route-map { height: 320px; border-radius: var(--radius); margin-top: 20px; border: 1px solid var(--border); z-index: 1; }
.leaflet-container { font-family: var(--font); }

/* Timeline vertical */
.timeline { position: relative; padding-left: 6px; }
.tl-item { position: relative; padding: 0 0 26px 40px; }
.tl-item::before { content:''; position: absolute; left: 13px; top: 4px; bottom: -4px; width: 2px; background: var(--border-strong); }
.tl-item:last-child::before { display: none; }
.tl-dot {
  position: absolute; left: 4px; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted); z-index: 2;
}
.tl-item.done .tl-dot { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.tl-item.current .tl-dot { background: var(--accent-500); border-color: var(--accent-500); color: #fff; box-shadow: 0 0 0 5px rgba(255,106,44,.18); }
.tl-item.current { }
.tl-item.pending { opacity: .55; }
.tl-item.pending .tl-dot { background: var(--surface-2); }
.tl-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl-item.current .tl-title { color: var(--accent-600); }
.tl-meta { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.tl-meta b { color: var(--text-soft); font-weight: 600; }
.tl-desc { font-size: .9rem; color: var(--text-soft); margin-top: 6px; }
.tl-now { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--accent-500); padding: 2px 8px; border-radius: 6px; }

/* Destinatário */
.recipient-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.recipient-grid .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.recipient-grid .v { font-weight: 600; margin-top: 3px; }
.privacy-note { margin-top: 16px; font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }

/* ===================== LOCALIZAÇÃO AO VIVO (público) ==================== */
.live-panel { border-top: 3px solid var(--accent-500); }
.live-head { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.live-status { display: flex; align-items: center; gap: 14px; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-500); position: relative; flex: none; box-shadow: 0 0 0 0 rgba(255,106,44,.5); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,106,44,.5); } 70% { box-shadow: 0 0 0 12px rgba(255,106,44,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,44,0); } }
.live-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.live-value { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy-800); }
.live-loc { text-align: right; }
.live-loc .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.live-loc .v { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--accent-600); }
.live-unit { font-size: .84rem; color: var(--text-soft); margin-top: 2px; }
#live-map { height: 340px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 1; }
.live-nomap { padding: 26px; text-align: center; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); font-size: .9rem; }
.live-updated { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .86rem; color: var(--muted); }
.live-updated b { color: var(--text-soft); font-weight: 600; }

/* Marcadores do mapa de localização */
.mv-dot { width: 14px; height: 14px; border-radius: 50%; background: #1c4483; border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.mv-dot.origin { background: var(--navy-800); }
.mv-current { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.mv-current .mv-pin { font-size: 20px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); z-index: 2; }
.mv-current .mv-pulse { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,106,44,.35); animation: mvPulse 1.6s infinite ease-out; }
@keyframes mvPulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* ------------------------------ Responsivo ----------------------------- */
@media (max-width: 900px) {
  .hero__inner, .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .live-head { flex-direction: column; align-items: flex-start; }
  .live-loc { text-align: left; }
  .hero__inner { padding: 48px 0 60px; gap: 32px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .trust-strip__inner { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-item { border-right: 0; }
  .site-nav, .site-header__cta { display: none; }
  .site-nav.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); padding: 12px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); gap: 2px;
  }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 560px) {
  .cards, .steps, .trust-strip__inner, .footer-grid { grid-template-columns: 1fr; }
  .track-form { flex-direction: column; }
  .contact { padding: 30px; }
  section.block { padding: 56px 0; }
}
