/* =========================================================
   ROTA PRIME LOGÍSTICA — Design tokens & base
   Paleta extraída do logotipo oficial: azul-marinho + dourado
   ========================================================= */

:root {
  /* Cor */
  --navy-950: #08132a;
  --navy-900: #0d1b33;
  --navy-800: #142547;
  --navy-700: #1c3260;
  --gold-300: #efc55c;
  --gold-500: #d39a0d;
  --gold-600: #a97a08;
  --cream-50: #f6f4ef;
  --cream-100: #efece3;
  --ink-900: #10182a;
  --slate-500: #626b7a;
  --slate-300: #9aa2b0;
  --white: #ffffff;

  /* Tipografia */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius-md: 10px;

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  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-900);
  background: var(--cream-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head p {
  color: var(--slate-500);
  font-size: 1.05rem;
  margin-top: 0.85rem;
}

.section--dark {
  background: var(--navy-950);
  color: var(--white);
}

.section--dark .section-head p {
  color: var(--slate-300);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}

.btn-ghost {
  border-color: var(--navy-800);
  color: var(--navy-900);
}

.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
}

.btn-block {
  width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: rgba(16, 24, 42, 0.08);
  box-shadow: 0 8px 24px -18px rgba(8, 19, 42, 0.35);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 70px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-900);
  position: relative;
  padding-block: 0.3rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--gold-500);
  transition: right 0.25s var(--ease);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--navy-950);
  color: var(--white);
  padding-top: clamp(7.5rem, 14vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold-300);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-300);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--slate-300);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-meta {
  display: flex;
  gap: 2.2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-meta div {
  border-left: 2px solid var(--navy-700);
  padding-left: 0.9rem;
  font-size: 0.92rem;
  color: var(--slate-300);
  max-width: 20ch;
}

.hero-visual {
  position: relative;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

/* =========================================================
   APRESENTAÇÃO / SOBRE
   ========================================================= */
.about .container {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-copy p + p {
  margin-top: 1.1rem;
}

.about-copy p {
  color: var(--slate-500);
  font-size: 1.05rem;
}

.about-copy h2 {
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-left: 2px solid var(--cream-100);
  padding-left: 1.6rem;
}

.about-point strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
  color: var(--navy-900);
}

.about-point span {
  color: var(--slate-500);
  font-size: 0.95rem;
}

/* =========================================================
   SERVIÇOS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.service-card {
  grid-column: span 3;
  background: var(--white);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 2rem 1.9rem;
  box-shadow: 0 18px 30px -26px rgba(8, 19, 42, 0.5);
}

.service-card.is-featured {
  grid-column: span 6;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--navy-950);
  color: var(--white);
  border-left: none;
  padding: 2.4rem 2.6rem;
}

.service-card.is-featured .icon-badge {
  background: rgba(211, 154, 13, 0.16);
}

.service-card.is-featured p {
  color: var(--slate-300);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.service-card.is-featured .icon-badge {
  color: var(--gold-300);
  margin-bottom: 0;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  color: var(--navy-900);
  margin-bottom: 0.55rem;
}

.service-card.is-featured h3 {
  color: var(--white);
  font-size: 1.4rem;
}

.service-card p {
  color: var(--slate-500);
  font-size: 0.96rem;
}

/* =========================================================
   DIFERENCIAIS
   ========================================================= */
.diff-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--cream-100);
}

.diff-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cream-100);
}

.diff-item:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--cream-100);
}

.diff-item:nth-child(even) {
  padding-left: 2rem;
}

.diff-item .icon-badge {
  margin-bottom: 0;
  background: transparent;
  border: 1.5px solid var(--cream-100);
  color: var(--gold-600);
}

.diff-copy strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-900);
  margin-bottom: 0.2rem;
}

.diff-copy span {
  color: var(--slate-500);
  font-size: 0.94rem;
}

/* =========================================================
   COMO FUNCIONA — linha de rota literal (sequência real)
   ========================================================= */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 4%;
  right: 4%;
  height: 2px;
  background-image: linear-gradient(
    to right,
    var(--gold-500) 0%,
    var(--gold-500) 50%,
    transparent 50%
  );
  background-size: 16px 2px;
  background-repeat: repeat-x;
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-node {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  border: 3px solid var(--cream-50);
  box-shadow: 0 0 0 2px var(--cream-100);
  position: relative;
  z-index: 1;
}

.timeline-step h3 {
  color: var(--navy-900);
  font-size: 1.05rem;
}

.timeline-step p {
  color: var(--slate-500);
  font-size: 0.92rem;
}

/* =========================================================
   PÚBLICO ATENDIDO
   ========================================================= */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.audience-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-100);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.5rem;
}

.audience-card h3 {
  color: var(--navy-900);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.audience-card p {
  color: var(--slate-500);
  font-size: 0.92rem;
}

/* =========================================================
   COMPROMISSOS / CONFIANÇA
   ========================================================= */
.trust {
  background: var(--navy-900);
  color: var(--white);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.trust-item {
  background: var(--navy-900);
  padding: 2.1rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--gold-300);
}

.trust-item span {
  font-size: 0.95rem;
  color: var(--slate-300);
  line-height: 1.5;
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 65%);
  color: var(--navy-950);
}

.cta-final .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.cta-final h2 {
  color: var(--navy-950);
  max-width: 16ch;
}

.cta-final p {
  margin-top: 0.9rem;
  color: rgba(8, 19, 42, 0.75);
  max-width: 40ch;
}

.cta-form {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.cta-form h3 {
  color: var(--white);
  margin-bottom: 1.3rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-300);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-500);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate-300);
  margin-top: 0.9rem;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: rgba(211, 154, 13, 0.12);
  border: 1px solid var(--gold-600);
  color: var(--gold-300);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.form-success.is-visible {
  display: flex;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding-block: clamp(3rem, 6vw, 4rem) 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-brand .wordmark span {
  color: var(--gold-300);
}

.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  max-width: 32ch;
  color: var(--slate-300);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--slate-300);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--gold-300);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* =========================================================
   Reveal (um único momento orquestrado por seção)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .hero .container,
  .about .container,
  .cta-final .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 340px;
    margin-inline: auto;
  }

  .about-points {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--cream-100);
    padding-top: 1.4rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    grid-column: span 1;
  }

  .service-card.is-featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    padding: 1.5rem var(--gutter);
    gap: 1.25rem;
    border-bottom: 1px solid var(--cream-100);
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background-image: linear-gradient(
      to bottom,
      var(--gold-500) 0%,
      var(--gold-500) 50%,
      transparent 50%
    );
    background-size: 2px 16px;
  }

  .timeline-step {
    flex-direction: row;
    align-items: center;
  }

  .diff-list {
    grid-template-columns: 1fr;
  }

  .diff-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }

  .diff-item:nth-child(even) {
    padding-left: 0;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .trust-band {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-meta {
    gap: 1.4rem;
  }
}
