/* ============================================================
   NovaLog Transportes — identidade industrial e dinâmica
   Paleta: #0B1F3A (azul-marinho) · #FF6B1A (laranja) ·
           #8DA2B8 (cinza-aço) · #F4F7FA (branco gelo)
   Fontes: Barlow Condensed (títulos) + Barlow (texto)
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-deep: #071527;
  --navy-soft: #10294a;
  --navy-line: #1d3a63;
  --orange: #FF6B1A;
  --orange-soft: #ff8c4a;
  --steel: #8DA2B8;
  --ice: #F4F7FA;
  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", Arial, sans-serif;
  --radius: 2px;
  --cut: 4.5rem; /* altura dos cortes diagonais */
  --shadow: 0 18px 50px rgba(3, 10, 22, 0.45);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ice);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--orange); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.08;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.07em; }

h1 em, h2 em {
  font-style: normal;
  color: var(--orange);
}

p { color: var(--steel); }
strong { color: var(--ice); }

.section-kicker {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 0.7rem;
  position: relative;
  padding-left: 2.6rem;
}
.section-kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2rem; height: 2px;
  background: var(--orange);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head p { margin-top: 0.8rem; font-size: 1.06rem; }

/* ---------- Badge tipo placa de carga ---------- */
.tag-plate {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--ice);
  background: var(--navy-soft);
  border: 1px solid var(--orange);
  border-left-width: 5px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, 0.15);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.98rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  /* brilho diagonal que cruza o botão no hover */
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
}
.btn:hover::after { left: 130%; }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 107, 26, 0.35);
}

.btn-ghost {
  border-color: rgba(244, 247, 250, 0.5);
  color: var(--ice);
  background: rgba(244, 247, 250, 0.04);
}
.btn-ghost:hover {
  border-color: var(--ice);
  background: rgba(244, 247, 250, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--orange);
  color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block { width: 100%; text-align: center; }

/* ---------- Barra de progresso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: rgba(255, 107, 26, 0.12);
  z-index: 1001;
}
#scroll-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  box-shadow: 0 0 12px rgba(255, 107, 26, 0.8);
  transition: width 0.08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 4px; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 21, 39, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(7, 21, 39, 0.96);
  box-shadow: 0 8px 30px rgba(3, 10, 22, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand img { width: 180px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.main-nav ul a {
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  color: var(--ice);
  padding: 0.4rem 0;
  position: relative;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.main-nav ul a:hover::after,
.main-nav ul a:focus-visible::after { width: 100%; }

.btn-nav { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ice);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 5rem) 0 8rem;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 21, 39, 0.96) 0%, rgba(11, 31, 58, 0.85) 45%, rgba(11, 31, 58, 0.45) 100%),
    linear-gradient(to top, var(--navy) 2%, transparent 30%);
}

/* linhas de velocidade */
.speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.speed-lines span {
  position: absolute;
  height: 2px;
  width: 220px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 26, 0.7), transparent);
  animation: speed-line 3.2s linear infinite;
  opacity: 0;
}
.speed-lines span:nth-child(1) { top: 22%; animation-delay: 0s; }
.speed-lines span:nth-child(2) { top: 38%; animation-delay: 0.9s; width: 160px; }
.speed-lines span:nth-child(3) { top: 55%; animation-delay: 1.7s; }
.speed-lines span:nth-child(4) { top: 70%; animation-delay: 2.3s; width: 130px; }
.speed-lines span:nth-child(5) { top: 85%; animation-delay: 0.5s; width: 190px; }

@keyframes speed-line {
  0%   { left: -240px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-text .tag-plate { margin-bottom: 1.4rem; }
.hero-text h1 { margin-bottom: 1.2rem; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* corte diagonal na base do hero */
.hero-cut {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: var(--cut);
  background: var(--navy);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ---------- Tracker do hero ---------- */
.hero-tracker {
  position: relative;
  background: rgba(7, 21, 39, 0.55);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 1.2rem;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.tracker-svg { width: 100%; height: auto; display: block; }

.route-line-bg {
  stroke: rgba(141, 162, 184, 0.25);
  stroke-width: 2;
}
.route-line {
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-dasharray: 8 8;
  animation: route-dash 1.2s linear infinite;
}
@keyframes route-dash {
  to { stroke-dashoffset: -16; }
}

.city-dot { fill: var(--orange); }
.city-pulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
  opacity: 0.7;
  transform-origin: center;
  animation: city-pulse 2.4s ease-out infinite;
}
.city-pulse.delay-1 { animation-delay: 0.6s; }
.city-pulse.delay-2 { animation-delay: 1.2s; }
.city-pulse.delay-3 { animation-delay: 1.8s; }
@keyframes city-pulse {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.city-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  fill: var(--steel);
}

/* caminhão percorrendo a rota via offset-path */
.truck-mover {
  offset-path: path("M40 250 C 120 200, 150 120, 240 110 S 400 140, 480 50");
  offset-rotate: auto;
  animation: truck-run 9s ease-in-out infinite;
}
@keyframes truck-run {
  0%   { offset-distance: 0%; }
  46%  { offset-distance: 52%; }
  54%  { offset-distance: 52%; } /* parada rápida em Brasília */
  100% { offset-distance: 100%; }
}

.tracker-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--navy-soft);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}
.tracker-card strong {
  font-family: var(--font-title);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.tracker-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  font-weight: 600;
}
.tracker-eta { font-size: 0.85rem; color: var(--steel); }

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  animation: status-blink 1.4s ease-in-out infinite;
}
@keyframes status-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 107, 26, 0); }
}

/* ---------- Seções ---------- */
.section {
  padding: 6rem 0;
  position: relative;
}
.section-dark {
  background: var(--navy-deep);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding: calc(6rem + var(--cut)) 0;
  margin: calc(var(--cut) * -1) 0;
  z-index: 1;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ---------- Sobre ---------- */
.sobre-media { position: relative; }
.sobre-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.4rem), calc(100% - 2.4rem) 100%, 0 100%);
}
.media-badge {
  position: absolute;
  top: 1.2rem; left: -0.8rem;
  background: var(--navy-deep);
}
.sobre-text h2 { margin-bottom: 1.2rem; }
.sobre-text p { margin-bottom: 1.4rem; }

.check-list {
  list-style: none;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.8rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ice);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42rem;
  width: 14px; height: 8px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}

/* ---------- Serviços ---------- */
.cards-grid { display: grid; gap: 1.6rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  position: relative;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.service-card::before {
  /* faixa diagonal laranja no topo */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 26, 0.55);
  box-shadow: 0 16px 40px rgba(3, 10, 22, 0.55);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  position: absolute;
  top: 0.9rem; right: 1.1rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.4rem;
  color: rgba(141, 162, 184, 0.16);
  letter-spacing: 0.04em;
}
.service-icon {
  width: 44px; height: 44px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  margin-bottom: 1.1rem;
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.95rem; }

/* ---------- Cobertura ---------- */
.cobertura-map {
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.map-svg { width: 100%; height: auto; }
.map-shape {
  fill: var(--navy-soft);
  stroke: var(--navy-line);
  stroke-width: 2;
}
.map-route-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  opacity: 0.85;
  animation: route-dash 1.4s linear infinite;
}
.map-node {
  fill: var(--ice);
  stroke: var(--orange);
  stroke-width: 2;
}
.map-label {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 13px;
  fill: var(--steel);
}
.map-label-hub { fill: var(--ice); }

.cobertura-text h2 { margin-bottom: 1.2rem; }
.cobertura-text > p { margin-bottom: 1.6rem; }
.uf-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.uf-badges .tag-plate { transition: transform 0.2s ease, border-color 0.2s ease; }
.uf-badges .tag-plate:hover {
  transform: translateY(-3px);
  border-color: var(--orange-soft);
}
.cobertura-note { font-size: 0.92rem; }

/* ---------- TMS ---------- */
.tms-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.tms-media {
  position: relative;
  top: 0;
}
.tms-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 2.4rem) 0, 100% 2.4rem, 100% 100%, 0 100%);
}
.tms-float-card {
  position: absolute;
  bottom: -1.2rem; right: -0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--navy-soft);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow);
}
.tms-float-card strong {
  display: block;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
}
.tms-float-card span:last-child { font-size: 0.85rem; color: var(--steel); }

.module-card {
  background: rgba(16, 41, 74, 0.6);
  border: 1px solid var(--navy-line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.module-card:hover {
  transform: translateX(6px);
  background: var(--navy-soft);
  box-shadow: 0 10px 30px rgba(3, 10, 22, 0.5);
}
.module-card svg {
  width: 34px; height: 34px;
  stroke: var(--orange);
  fill: var(--orange);
  margin-bottom: 0.8rem;
}
.module-card svg [fill="none"] { fill: none; }
.module-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.module-card p { font-size: 0.92rem; }

.tms-cta {
  margin-top: 3.5rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.tms-cta p { font-size: 1.1rem; }

/* ---------- Números ---------- */
.numeros {
  background:
    linear-gradient(rgba(11, 31, 58, 0.92), rgba(11, 31, 58, 0.96)),
    url("imagens/estrada.jpg") center/cover fixed no-repeat;
  padding-bottom: calc(6rem + var(--cut));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.stat {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--navy-line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  background: rgba(7, 21, 39, 0.65);
  transition: transform 0.25s ease;
}
.stat:hover { transform: translateY(-5px); }
.stat-value {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--ice);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.stat-value em {
  font-style: normal;
  color: var(--orange);
  font-size: 0.6em;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--steel);
  font-weight: 600;
}

/* ---------- Depoimentos ---------- */
.quote-card {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem; left: 1.1rem;
  font-family: var(--font-title);
  font-size: 4.5rem;
  color: rgba(255, 107, 26, 0.35);
  line-height: 1;
}
.quote-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 26, 0.5);
}
.quote-card blockquote p {
  color: var(--ice);
  font-style: italic;
  margin: 1.4rem 0 1.4rem;
  font-size: 0.98rem;
}
.quote-card figcaption strong {
  display: block;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
}
.quote-card figcaption span {
  font-size: 0.85rem;
  color: var(--steel);
}

/* ---------- Contato ---------- */
.contato { padding-top: calc(6rem + var(--cut)); }
.contato-text h2 { margin-bottom: 1rem; }
.contato-text > p { margin-bottom: 1.8rem; }

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--ice);
}
.contact-list svg {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  stroke: var(--orange);
  fill: var(--orange);
  margin-top: 0.2rem;
}
.contact-list svg [fill="none"] { fill: none; }

.contato-foto img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 2.4rem 100%, 0 calc(100% - 2.4rem));
}

.contact-form {
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 1.4rem; }

.field { margin-bottom: 1.1rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--steel);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(141, 162, 184, 0.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.18);
}

.form-feedback {
  margin-top: 1rem;
  min-height: 1.4rem;
  font-weight: 600;
  color: var(--orange);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.form-feedback.visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
  position: relative;
}
.site-footer::before {
  /* filete diagonal laranja no topo do footer */
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.footer-brand img { width: 190px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; max-width: 20rem; }

.social-links {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.social-links svg {
  width: 20px; height: 20px;
  stroke: var(--steel);
  fill: var(--steel);
  transition: stroke 0.2s ease, fill 0.2s ease;
}
.social-links svg [fill="none"] { fill: none; }
.social-links a:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 26, 0.08);
  transform: translateY(-3px);
}
.social-links a:hover svg { stroke: var(--orange); fill: var(--orange); }
.social-links a:hover svg [fill="none"] { fill: none; }

.footer-nav h4, .footer-contact h4 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--ice);
  margin-bottom: 1.1rem;
}
.footer-nav ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-nav a, .footer-contact a {
  color: var(--steel);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-nav a:hover, .footer-contact a:hover {
  color: var(--orange);
  padding-left: 4px;
}
.footer-contact address {
  font-style: normal;
  color: var(--steel);
  line-height: 1.9;
}

.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding: 1.3rem 0;
}
.footer-bottom p {
  font-size: 0.85rem;
  text-align: center;
  color: rgba(141, 162, 184, 0.7);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-reveal="left"]  { transform: translateX(-44px); }
.reveal[data-reveal="right"] { transform: translateX(44px); }
.reveal.revealed {
  opacity: 1;
  transform: none;
}
/* stagger nos grids */
.cards-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.36s; }
.cards-grid .reveal:nth-child(5) { transition-delay: 0.18s; }
.cards-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.stats-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
}

.login-visual {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5rem) 100%, 0 100%);
  display: flex;
  align-items: flex-end;
}
.login-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(15deg, rgba(7, 21, 39, 0.95) 10%, rgba(11, 31, 58, 0.55) 60%, rgba(255, 107, 26, 0.18) 100%);
}
.login-visual-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem;
}
.login-visual-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 1.2rem 0 0.8rem;
}
.login-visual-content p { max-width: 26rem; color: var(--ice); opacity: 0.85; }

.login-diagonals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.login-diagonals span {
  position: absolute;
  width: 140%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 26, 0.65), transparent);
  transform: rotate(-18deg);
  animation: diag-slide 6s linear infinite;
}
.login-diagonals span:nth-child(1) { top: 22%; animation-delay: 0s; }
.login-diagonals span:nth-child(2) { top: 52%; animation-delay: 2s; }
.login-diagonals span:nth-child(3) { top: 80%; animation-delay: 4s; }
@keyframes diag-slide {
  from { left: -150%; }
  to   { left: 110%; }
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 6vw, 5rem);
  position: relative;
}
.login-panel .back-home {
  position: absolute;
  top: 1.6rem; right: 1.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--steel);
  transition: color 0.2s ease;
}
.login-panel .back-home:hover { color: var(--orange); }

.login-box {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
.login-box > .brand-mark {
  display: block;
  width: 200px;
  margin-bottom: 2rem;
}
.login-box h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}
.login-sub { margin-bottom: 2rem; font-size: 0.98rem; }

/* Toggle Entrar / Criar conta */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 4px;
  position: relative;
  margin-bottom: 1.8rem;
}
.auth-tabs::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--orange);
  border-radius: var(--radius);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-tabs.register-active::before { transform: translateX(100%); }
.auth-tabs button {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--steel);
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  padding: 0.7rem;
  cursor: pointer;
  transition: color 0.25s ease;
}
.auth-tabs button[aria-selected="true"] { color: #fff; }

.auth-form { display: none; }
.auth-form.active {
  display: block;
  animation: form-in 0.4s ease;
}
@keyframes form-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -0.2rem 0 1.2rem;
  font-size: 0.88rem;
}
.form-extra label {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--steel);
  cursor: pointer;
}
.form-extra input[type="checkbox"] { accent-color: var(--orange); }
.form-extra a { font-size: 0.88rem; }

.login-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(141, 162, 184, 0.75);
  text-align: center;
}

/* ---------- Acessibilidade: reduced motion ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .numeros { background-attachment: scroll; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; }
  .hero-tracker { max-width: 560px; }
  .tms-wrap { grid-template-columns: 1fr; }
  .tms-media { max-width: 620px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --cut: 3rem; }

  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 4px);
    right: 0;
    width: min(320px, 86vw);
    height: calc(100vh - var(--header-h) - 4px);
    background: var(--navy-deep);
    border-left: 1px solid var(--navy-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.8rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -20px 0 50px rgba(3, 10, 22, 0.5);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }
  .main-nav ul a { font-size: 1.15rem; display: block; }

  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .cobertura-map { order: 2; }

  .login-body { grid-template-columns: 1fr; }
  .login-visual {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%);
    min-height: 34vh;
  }
  .login-visual-content { padding: 2rem 1.6rem; }
}

@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .section-dark { padding: calc(4.5rem + var(--cut)) 0; }
  .contato { padding-top: calc(4.5rem + var(--cut)); }
  .hero { padding: calc(var(--header-h) + 3.5rem) 0 6.5rem; }
  .hero-sub { font-size: 1.05rem; }
  .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand img { width: 150px; }
  .tms-float-card { right: 0.4rem; }
  .form-extra { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
