/* ============================================
   ZENIV LOGÍSTICA — Design tokens
   Extraídos diretamente do ícone/logo oficial.
   ============================================ */
:root {
  --ink:        #10263B;   /* navy principal — extraído do logo */
  --ink-deep:   #0B1B2C;   /* navy mais escuro — fundo hero/seções ink */
  --ink-soft:   #1B3A57;   /* navy mais claro — bordas/hover em fundo escuro */
  --coral:      #FE6A3A;   /* laranja assinatura — o "ponto de interceptação" */
  --coral-dim:  rgba(254, 106, 58, 0.16);
  --paper:      #F4F8FB;   /* branco-gelo — extraído do traço do Z */
  --paper-tint: #E9EFF4;   /* variação da seção "tint" */
  --slate:      #4C6178;   /* texto secundário sobre paper */
  --slate-light:#8FA3B8;   /* texto secundário sobre ink */
  --line:       #D6E0E8;   /* divisores sobre paper */

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --maxw: 1120px;
  --maxw-narrow: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.wrap--narrow { max-width: var(--maxw-narrow); }

/* Focus visibility (a11y floor) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 248, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo { height: 32px; width: auto; }
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
}
.nav__links a { transition: color 0.15s ease; }
.nav__links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--coral);
  color: var(--paper);
}
.btn--primary:hover { transform: translateY(-1px); background: #FF7C4F; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 248, 251, 0.35);
}
.btn--ghost:hover { border-color: var(--paper); }

.btn--nav {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
}
.btn--nav:hover { background: var(--ink-soft); }

.btn--form { width: 100%; padding: 15px 24px; font-size: 15px; margin-top: 8px; }

/* ============ EYEBROW / LABELS ============ */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.eyebrow--light { color: #FF9270; }

/* ============ HERO ============ */
.hero {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  color: var(--paper);
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 18px;
  color: var(--slate-light);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual { position: relative; }
.route-svg { width: 100%; height: auto; }
.route-line {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.route-line--pre { stroke: var(--slate-light); }
.route-line--post-a, .route-line--post-b, .route-line--join {
  stroke-dasharray: 6 6;
}
.route-node {
  fill: var(--ink-deep);
  stroke: var(--slate-light);
  stroke-width: 2;
}
.route-dot {
  fill: var(--coral);
  transform-origin: 200px 150px;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.hero__visual-label {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--slate-light);
  text-align: center;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; text-align: left; }
}

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.section--tint { background: var(--paper-tint); }
.section--ink { background: var(--ink-deep); color: var(--paper); }

.section__title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  max-width: 20ch;
  margin-bottom: 20px;
}
.section__title--light { color: var(--paper); }

.section__lead {
  font-size: 17px;
  color: var(--slate);
  max-width: 62ch;
  margin-top: 16px;
}
.section__lead--light { color: var(--slate-light); }

/* ============ PROBLEMA ============ */
.problema__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.problema__item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.problema__item p {
  font-size: 17px;
  color: var(--ink);
  margin-top: 14px;
  line-height: 1.45;
}
.dot-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

@media (max-width: 860px) {
  .problema__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ COMO FUNCIONA / STEPS ============ */
.steps {
  position: relative;
  margin-top: 56px;
  padding-left: 32px;
}
.steps__line {
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--ink-soft);
}
.step {
  position: relative;
  padding-bottom: 48px;
}
.step:last-child { padding-bottom: 0; }
.step__marker {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--slate-light);
  border: 3px solid var(--ink-deep);
}
.step__marker--exception {
  background: var(--coral);
  width: 16px;
  height: 16px;
  left: -34px;
  top: 2px;
  box-shadow: 0 0 0 6px var(--coral-dim);
}
.step__eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 8px;
}
.step h3 {
  font-size: 21px;
  color: var(--paper);
  margin-bottom: 10px;
}
.step p:not(.step__eyebrow) {
  color: var(--slate-light);
  font-size: 16px;
  max-width: 56ch;
}

/* ============ COMO SE ENCAIXA ============ */
.encaixa__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.encaixa__item {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.encaixa__nao {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 6px;
}
.encaixa__o-que {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.encaixa__fechamento {
  margin-top: 40px;
  font-size: 17px;
  color: var(--slate);
  max-width: 62ch;
}

@media (max-width: 860px) {
  .encaixa__grid { grid-template-columns: 1fr; }
}

/* ============ FORM (piloto) ============ */
.form {
  margin-top: 48px;
  max-width: 520px;
  display: grid;
  gap: 20px;
}
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__row label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate-light);
}
.form__row input {
  background: var(--ink);
  border: 1px solid var(--ink-soft);
  border-radius: 8px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
}
.form__row input::placeholder { color: var(--slate-light); }
.form__row input:focus { border-color: var(--coral); outline: none; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); padding: 40px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__icon { border-radius: 6px; }
.footer__text {
  font-size: 14px;
  color: var(--slate-light);
  flex: 1;
}
.footer__copy {
  font-size: 13px;
  color: var(--slate-light);
}

@media (max-width: 560px) {
  .footer__inner { flex-wrap: wrap; }
  .footer__text { flex-basis: 100%; order: 3; margin-top: 6px; }
}

/* ============ SCROLL REVEAL ============ */
/* A classe .reveal sozinha NÃO esconde nada — só quando o JS confirma que
   pôde rodar e adiciona .reveal-armed. Assim, se o JS falhar ou for
   bloqueado, o conteúdo permanece visível por padrão (progressive
   enhancement), nunca invisível por acidente. */
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-armed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE base tweaks ============ */
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
}
