/* ============================================================
   Global Escolta — folha de estilos
   Paleta extraída da logo oficial: dourado do escudo sobre
   azul-marinho (fibra de carbono) com painéis de aço azulado.
   ============================================================ */

:root {
  /* Cores base */
  --primary:        #C9A227;   /* dourado do escudo */
  --primary-dark:   #8F711A;   /* dourado escuro — hover e fundos */
  --secondary:      #17202F;   /* painel azul-marinho (cards) */
  --background:     #0D1420;   /* azul-marinho profundo do fundo da logo */
  --surface-input:  #242F42;   /* aço azulado dos painéis */

  /* Texto */
  --text:           #EDF1F8;
  --text-dark:      #0D1420;   /* texto sobre dourado */
  --text-muted:     #8A93A3;
  --white:          #FFFFFF;
  --accent-soft:    #E9D48F;   /* dourado claro (realces) */

  /* Variações com opacidade */
  --primary-80:     rgba(201, 162, 39, 0.8);
  --primary-70:     rgba(201, 162, 39, 0.7);
  --white-90:       rgba(255, 255, 255, 0.9);
  --white-70:       rgba(255, 255, 255, 0.7);
  --white-50:       rgba(255, 255, 255, 0.5);
  --white-10:       rgba(255, 255, 255, 0.1);
  --overlay-hero:   rgba(13, 20, 32, 0.55);

  /* Tipografia — Montserrat substitui a Gotham (proprietária) */
  --font-display:   "Montserrat", "Gotham", -apple-system, "Segoe UI", sans-serif;
  --font-body:      "Montserrat", "Gotham", -apple-system, "Segoe UI", sans-serif;
  --fs-h1:          clamp(2.75rem, 7.5vw, 6rem);   /* 96px no desktop */
  --fs-h1-inner:    clamp(2rem, 4.5vw, 4rem);      /* 64px no desktop */
  --fs-h2:          2rem;
  --fs-h3:          1.3rem;
  --fs-body:        1rem;

  /* Layout */
  --container-max:  1170px;
  --container-pad:  15px;
  --section-pad-y:  64px;
  --header-pad-y:   30px;

  /* Componentes */
  --radius-sm:      4px;
  --radius-card:    8px;
  --radius-pill:    800px;
}

/* ===== Reset e base ===== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ===== Tipografia ===== */

h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.heading-xl {
  font-family: var(--font-display);
  font-size: var(--fs-h1-inner);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.eyebrow {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ===== Botões ===== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 6px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* dourado pede texto escuro — branco sobre dourado não tem contraste */
.btn--primary {
  background-color: var(--primary);
  color: var(--text-dark);
  font-weight: 700;
}

.btn--primary:hover { background-color: var(--primary-dark); }

.btn--lg { padding: 12px 32px; }

/* ===== Navbar ===== */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: var(--header-pad-y);
  background-color: transparent;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.is-scrolled {
  background-color: var(--background);
  padding-block: 14px;
  border-bottom: 1px solid var(--white-10);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

/* logo é um escudo com fundo transparente — sem crop, sem borda quadrada */
.navbar__logo {
  height: 46px;
  width: auto;
}

.navbar__wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* eco da logo: "GLOBAL" em dourado, "ESCOLTA" em branco */
.navbar__wordmark strong { color: var(--primary); }

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

.navbar__menu a {
  color: var(--white);
  font-size: 0.875rem;
  margin-right: 16px;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.navbar__menu a:hover { color: var(--primary); }

.navbar__menu a.navbar__cta {
  color: var(--text-dark);
  margin-right: 0;
  padding: 6px 24px;
}

.navbar__menu a.navbar__cta:hover { color: var(--text-dark); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Rail social lateral ===== */

.social-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-rail a {
  color: var(--white-70);
  transition: color 0.2s ease;
}

.social-rail a:hover { color: var(--primary); }

.social-rail svg { width: 20px; height: 20px; }

/* ===== Herói ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--background);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.route-map { width: 100%; height: 100%; }

.route-map__grid path {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1;
}

.route-map__minor path {
  fill: none;
  stroke: rgba(76, 108, 168, 0.3); /* azul do globo da logo */
  stroke-width: 1.5;
}

.route-map__main {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 10;
  animation: route-flow 2.6s linear infinite;
}

.route-map__points circle {
  fill: var(--primary);
  stroke: var(--background);
  stroke-width: 2;
}

.route-map__pulse {
  fill: none !important;
  stroke: var(--primary) !important;
  stroke-width: 2 !important;
  animation: point-pulse 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.route-map__pulse--late { animation-delay: 1.2s; }

.route-map__labels text {
  fill: var(--white-50);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
}

@keyframes route-flow {
  to { stroke-dashoffset: -48; }
}

@keyframes point-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay-hero);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px;  /* respiro sob a navbar fixa */
  padding-bottom: 96px;
}

/* Slides empilhados na mesma célula do grid; troca por opacidade */
.hero__slider { display: grid; }

.hero-slide {
  grid-area: 1 / 1;
  max-width: 960px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero-slide h1 { margin-bottom: 24px; }

.hero-slide__text {
  color: var(--white-90);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__controls {
  display: flex;
  gap: 12px;
  margin-top: 56px;
}

.hero__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--white);
  background-color: var(--white-10);
  border: 1px solid var(--white-10);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero__arrow:hover { background-color: var(--primary); color: var(--text-dark); }

/* ===== Seções ===== */

.section {
  padding-block: var(--section-pad-y);
  background-color: var(--background);
}

/* seções com textura: grade sutil de blueprint */
.section--alt {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
}

.section__head { margin-bottom: 48px; max-width: 720px; }

.section__head .heading-xl { margin-bottom: 0; }

/* Layout em duas colunas */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse { grid-template-columns: 1fr 1.2fr; }

.split--reverse .split__text { order: 1; }
.split--reverse .split__aside { order: 2; }

.split__text .heading-xl { margin-bottom: 24px; }

.split__text > p { color: var(--white-70); max-width: 560px; }

/* Lista de diferenciais */
.feature-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--primary);
}

/* Painel de estatísticas */
.stat-panel {
  background-color: var(--white-10);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  display: grid;
  gap: 32px;
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

.stat span { color: var(--white-70); }

/* Cards de serviço */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--secondary);
  color: var(--text);
  padding: 32px 28px;
  border-radius: var(--radius-card);
  transition: transform 0.2s ease;
}

.card:hover { transform: translateY(-4px); }

.card__icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; }

.card p { color: var(--white-70); font-size: 0.95rem; }

/* Chips de corredores */
.corridor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.corridor-chips span {
  border: 1px solid var(--primary-70);
  color: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Card da central de operações */
.ops-card {
  background-color: var(--secondary);
  border-radius: var(--radius-card);
  padding: 32px;
}

.ops-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 24px;
}

.ops-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: dot-blink 1.8s ease-in-out infinite;
}

@keyframes dot-blink {
  50% { opacity: 0.35; }
}

.ops-card__list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.ops-card__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--white-10);
  padding-bottom: 14px;
}

.ops-card__list span { color: var(--white-70); }

.ops-card__list strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.ops-card__note { color: var(--text-muted); font-size: 0.875rem; }

/* ===== Como funciona ===== */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background-color: var(--secondary);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.step__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 8px; font-size: 1.1rem; }

.step p { color: var(--white-70); font-size: 0.9rem; }

/* ===== Cobertura: mapa do Brasil ===== */

.coverage-map { width: 100%; height: auto; }

.uf path {
  fill: var(--surface-input);
  stroke: var(--background);
  stroke-width: 1.2;
}

.uf text {
  fill: var(--white-70);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

.uf text.uf__label--sm { font-size: 8.5px; }

/* cobertura nível Brasil: o país inteiro em destaque dourado */
.uf.is-destaque path { fill: var(--primary); }
.uf.is-destaque text { fill: var(--text-dark); }

/* malha logística: capitais conectadas ao hub de São Paulo — em azul-marinho
   pra contrastar com o país inteiro agora dourado */
.map-net { pointer-events: none; }

.map-net__lines {
  fill: none;
  stroke: rgba(13, 20, 32, 0.5);
  stroke-width: 1.3;
  stroke-dasharray: 5 4;
}

.map-net__node {
  fill: var(--secondary);
  stroke: var(--background);
  stroke-width: 2;
}

.map-net__pulse {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2;
  animation: point-pulse 2.8s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.coverage-legend {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.coverage-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white-70);
  font-size: 0.9375rem;
}

.coverage-legend__swatch {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 3px;
  background-color: var(--secondary);
  border: 1px solid var(--white-10);
}

.coverage-legend__swatch--sede { background-color: var(--primary); border-color: var(--primary); }

/* ===== Alta complexidade: pilares ===== */

.pillar-stack { display: grid; gap: 16px; }

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--secondary);
  border-radius: var(--radius-card);
  padding: 24px;
}

.pillar > svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--primary);
}

.pillar h3 { font-size: 1.05rem; margin-bottom: 6px; }

.pillar p { color: var(--white-70); font-size: 0.9rem; }

/* ===== Dúvidas frequentes ===== */

/* marca d'água do escudo no espaço vazio à direita do FAQ */
#duvidas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#duvidas::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -70px;
  width: 460px;
  height: 600px;
  transform: translateY(-50%);
  background: url("../logo/logo-globalescolta-v3.png") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

@media (max-width: 992px) {
  #duvidas::after { display: none; }
}

.faq { max-width: 820px; }

.faq details { border-bottom: 1px solid var(--white-10); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  transition: color 0.2s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq summary:hover { color: var(--accent-soft); }

.faq details p {
  color: var(--white-70);
  padding-bottom: 20px;
  max-width: 720px;
}

/* ===== Parceria ===== */

.section--partner { background-color: var(--primary-dark); }

.partner {
  text-align: center;
  max-width: 760px;
}

.partner .heading-xl { margin-bottom: 20px; }

.partner p { color: var(--white-90); margin-bottom: 32px; }

/* fundo e botão padrão são da mesma família dourada — troca pra um botão
   claro sólido pra garantir contraste em vez de dourado sobre dourado */
.partner .btn--primary { background-color: var(--text); color: var(--background); }

.partner .btn--primary:hover { background-color: var(--white); color: var(--background); }

/* ===== Formulário de contato ===== */

.contact-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-list a { transition: color 0.2s ease; }

.contact-list a:hover { color: var(--primary); }

.contact-form {
  background-color: var(--secondary);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: grid; gap: 8px; }

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-90);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background-color: var(--surface-input);
  border: 1px solid var(--surface-input);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.3);
}

.contact-form__submit { justify-self: start; border: 0; }

.contact-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.contact-form__hint { color: var(--text-muted); font-size: 0.8125rem; }

.contact-form__status {
  font-size: 0.875rem;
  min-height: 1.2em;
}

.contact-form__status[data-state="success"] { color: var(--primary); }

.contact-form__status[data-state="error"] { color: #E07856; }

/* honeypot: existe só para bots preencherem — invisível e fora da ordem de tab */
.field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ===== Rodapé ===== */

.footer {
  background-color: var(--background);
  border-top: 1px solid var(--white-10);
  padding-block: 40px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer__nav a {
  color: var(--white-70);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer__nav a:hover { color: var(--primary); }

.footer__legal { color: var(--text-muted); font-size: 0.8125rem; }

/* ===== WhatsApp flutuante ===== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== Animação de entrada das seções ===== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsivo ===== */

@media (max-width: 1200px) {
  .social-rail { display: none; }
}

@media (max-width: 992px) {
  .navbar__toggle { display: flex; }

  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background-color: var(--background);
    border-bottom: 1px solid var(--white-10);
    padding: 16px var(--container-pad) 24px;
    display: none;
  }

  .navbar__menu.is-open { display: flex; }

  .navbar__menu a {
    margin-right: 0;
    padding: 10px 0;
    font-size: 1rem;
  }

  .navbar__menu a.navbar__cta { margin-top: 8px; }

  /* menu aberto precisa de fundo sólido mesmo no topo da página */
  .navbar:has(.navbar__menu.is-open) { background-color: var(--background); }

  .split,
  .split--reverse { grid-template-columns: 1fr; gap: 48px; }

  .split--reverse .split__text { order: 0; }
  .split--reverse .split__aside { order: 0; }

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

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

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

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

  .field-row { grid-template-columns: 1fr; }

  .hero__inner { padding-top: 104px; padding-bottom: 64px; }

  .hero__controls { margin-top: 32px; }

  /* no celular a tela é alta e estreita: se o mapa esticar 100% dessa altura,
     o corte central mostra só uma fatia quase vazia do desenho (largura 1200
     só sobra ~390 visíveis). Limitando a altura, o corte fica mais largo e
     os pontos SP/BR-116 aparecem de novo — sem isso o fundo "some". A altura
     é generosa (quase toda a tela) e as bordas dissolvem com máscara, pra não
     parecer um quadrado recortado flutuando no meio da tela. */
  .route-map {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 640px;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  }

  .route-map__grid path { stroke: rgba(255, 255, 255, 0.08); }

  .route-map__minor path {
    stroke: rgba(76, 108, 168, 0.45);
    stroke-width: 2;
  }

  .route-map__main { stroke-width: 4; }

  .route-map__labels text { font-size: 17px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Movimento reduzido ===== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .route-map__main,
  .route-map__pulse,
  .map-net__pulse,
  .ops-card__dot { animation: none; }

  .route-map__pulse,
  .map-net__pulse { opacity: 0; }

  .hero-slide,
  [data-reveal],
  .card,
  .whatsapp-float {
    transition: none;
  }

  [data-reveal] { opacity: 1; transform: none; }
}
