/* Página de setor (logística e TMS) · 26/11/2026
   Cena própria: o mesmo ERP anunciado de dois jeitos (genérico x língua do nicho). */

/* Cena do topo */
.anuncios { position: relative; display: grid; gap: 14px; margin: 0; }
.anuncio { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.anuncio__cab { display: flex; align-items: center; gap: 10px; }
.anuncio__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); color: var(--text-3); font-size: .75rem; font-weight: 700; }
.anuncio__quem { display: grid; line-height: 1.25; }
.anuncio__quem strong { color: var(--white); font-size: .875rem; }
.anuncio__quem span { color: var(--text-3); font-size: .75rem; }
.anuncio__rotulo { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.anuncio__texto { color: var(--white); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.anuncio__nota { color: var(--text-3); font-size: .8125rem; line-height: 1.45; }

.anuncio--generico { opacity: .72; }
.anuncio--generico .anuncio__rotulo { background: rgba(139,147,167,.14); color: var(--text-3); }
.anuncio--generico .anuncio__texto { color: var(--text-2); font-weight: 500; }

.anuncio--nicho { border: 1px solid rgba(255,94,0,.55); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.anuncio--nicho .anuncio__avatar { background: rgba(255,94,0,.16); color: #ff8a4d; }
.anuncio--nicho .anuncio__rotulo { background: rgba(255,94,0,.16); color: #ff8a4d; }
.anuncio__resultado { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .875rem; }
.anuncio__resultado strong { color: var(--white); font-size: 1.125rem; }

.segmentos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.segmentos li { padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: .8125rem; }
.segmentos__fonte { color: var(--text-3); font-size: .75rem; }

@media (min-width: 960px) {
  .anuncio--generico { margin-right: 14%; }
  .anuncio--nicho { margin-left: 8%; }
}

/* Tabela de canais */
.tabela-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.tabela { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.tabela caption { padding: 14px 18px; color: var(--text-3); font-size: .8125rem; text-align: left; caption-side: bottom; border-top: 1px solid var(--line); }
.tabela th, .tabela td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabela thead th { background: var(--surface); color: var(--text-3); font-size: .8125rem; font-weight: 600; }
.tabela tbody th { color: var(--white); font-weight: 700; white-space: nowrap; }
.tabela td { color: var(--text-2); line-height: 1.5; }
.tabela tbody tr:last-child th, .tabela tbody tr:last-child td { border-bottom: 0; }

/* Lista de como vende */
.vende { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.vende li { padding: 16px 18px; border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--bg-alt); color: var(--text-2); line-height: 1.55; }
.vende strong { display: block; color: var(--white); }
@media (min-width: 768px) { .vende { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cases do setor */
.cases-setor { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.case-setor { display: grid; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-2); text-decoration: none; transition: border-color .2s; }
.case-setor:hover, .case-setor:focus-visible { border-color: var(--blue); }
.case-setor__nome { color: var(--white); font-size: 1.1875rem; font-weight: 700; }
.case-setor__soft { font-size: .875rem; }
.case-setor__num { margin-top: 6px; color: var(--blue); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.case-setor__rot { font-size: .9375rem; line-height: 1.45; }
.case-setor__ir { margin-top: 8px; color: var(--white); font-size: .875rem; font-weight: 600; }
@media (min-width: 768px) { .cases-setor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

/* Fundo do topo: pátio de transportadora com caminhões nas docas (Gemini, 26/11/2026). Escurecido para manter o contraste do texto. */
.hero--setor { position: relative; isolation: isolate; background-color: var(--bg); background-image:
    linear-gradient(180deg, rgba(5,7,15,.84) 0%, rgba(5,7,15,.70) 45%, rgba(5,7,15,.94) 100%),
    url("../img/fundo-logistica-cel.webp");
  background-size: cover; background-position: center top; }
@media (min-width: 768px) {
  .hero--setor { background-image:
      linear-gradient(90deg, rgba(5,7,15,.95) 0%, rgba(5,7,15,.80) 40%, rgba(5,7,15,.30) 72%, rgba(5,7,15,.45) 100%),
      linear-gradient(180deg, rgba(5,7,15,.25) 0%, rgba(5,7,15,0) 25%, rgba(5,7,15,0) 75%, rgba(5,7,15,1) 100%),
      url("../img/fundo-logistica-1920.webp");
    background-position: center 60%; }
}
.hero--setor .anuncio { background: rgba(16,23,43,.92); backdrop-filter: blur(6px); }
.hero--setor .segmentos li { background: rgba(5,7,15,.6); }

/* Ajustes v4 (26/11/2026): a trilha entra no topo, sobre a foto; 2 depoimentos centralizados */
.hero--setor .trilha { margin: 0 auto 28px; padding-top: 0; }
@media (min-width: 900px) { .vozes--duas { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-inline: auto; } }

/* Cena própria da página de logística: a rota do lead, com paradas (anúncio → landing page → orçamento) */
.rota { position: relative; margin: 0; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgba(16,23,43,.74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.rota__topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rota__nome { color: var(--white); font-size: 1rem; font-weight: 700; }
.rota__tag { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: .8125rem; }
.rota__paradas { position: relative; display: grid; gap: 18px; margin: 18px 0 0; padding: 0 0 0 34px; list-style: none; }
.rota__paradas::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; border-left: 2px dashed rgba(0,196,244,.55); }
.rota__parada { position: relative; display: grid; gap: 2px; }
.rota__parada::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border: 2px solid var(--blue); border-radius: 50%; background: var(--bg); }
.rota__parada--fim::before { width: 16px; height: 16px; left: -31px; top: 2px; border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 5px rgba(255,94,0,.18); }
.rota__etapa { color: var(--text-3); font-size: .75rem; font-weight: 600; }
.rota__texto { color: var(--white); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.rota__valor { color: var(--blue); font-size: 1.0625rem; font-weight: 800; }
.rota__parada--fim .rota__valor { color: #ff8a4d; }
.rota__rodape { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .75rem; }
.rota__frase { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--orange); border-radius: var(--radius); background: rgba(5,7,15,.55); color: var(--text-2); font-size: .875rem; line-height: 1.45; }
.rota__frase strong { color: var(--white); }
@media (min-width: 960px) { .rota { margin-left: 6%; } }

/* v6 (26/11/2026): revisão do Edson */
/* 1. No celular, a tabela de canais vira cartões (no computador continua tabela) */
@media (max-width: 767px) {
  .tabela-wrap { overflow: visible; border: 0; border-radius: 0; }
  .tabela { min-width: 0; }
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabela, .tabela tbody, .tabela tr, .tabela th, .tabela td { display: block; width: 100%; }
  .tabela tbody { display: grid; gap: 12px; }
  .tabela tr { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
  .tabela tbody th, .tabela td { padding: 0; border: 0; white-space: normal; }
  .tabela tbody th { margin-bottom: 10px; font-size: 1.0625rem; }
  .tabela td + td { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .tabela td::before { content: attr(data-rotulo); display: block; margin-bottom: 2px; color: var(--text-3); font-size: .75rem; font-weight: 600; }
  .tabela caption { display: block; padding: 12px 2px 0; border: 0; }
}
/* 2. Frase do José Luis centralizada, na largura dos depoimentos */
#cases .citacao--case { max-width: 780px; margin-inline: auto; }
/* 3. Links do fim da seção viram botões pequenos */
.links-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.links-botoes a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-alt); color: var(--white); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: border-color .2s; }
.links-botoes a:hover, .links-botoes a:focus-visible { border-color: var(--blue); }
@media (max-width: 479px) { .links-botoes { flex-direction: column; } .links-botoes a { justify-content: center; width: 100%; } }

/* v7 (26/11/2026): ícone de cada canal na tabela */
.canal-tab { display: inline-flex; align-items: center; gap: 10px; }
.canal-tab__icone { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #fff; }
.canal-tab__icone svg { width: 18px; height: 18px; }
.tabela tbody tr:last-child .canal-tab__icone { background: rgba(255,94,0,.14); }
@media (max-width: 767px) { .tabela { display: flex; flex-direction: column; } .tabela caption { order: 2; } }

/* v3 logística (26/11/2026): logo da TRAF na cena e no case */
.rota__nome { display: inline-flex; align-items: center; gap: 10px; }
.rota__logo { width: auto; height: 26px; }
.case-marca { display: flex; align-items: center; gap: 14px; margin: 8px 0 24px; color: var(--text-2); font-size: .9375rem; }
.case-marca img { width: auto; height: 44px; }
.case-marca strong { display: block; color: var(--white); font-size: 1.25rem; }

/* Animação da primeira dobra: a rota se desenha parada por parada (uma vez; só sem movimento reduzido) */
@media (prefers-reduced-motion: no-preference) {
  .rota { animation: rota-entra .5s ease-out both; }
  .rota__paradas::before { transform-origin: top; animation: rota-linha 1.6s ease-in-out .5s both; }
  .rota__parada { animation: rota-parada .45s ease-out both; }
  .rota__parada:nth-child(1) { animation-delay: .6s; }
  .rota__parada:nth-child(2) { animation-delay: 1.15s; }
  .rota__parada:nth-child(3) { animation-delay: 1.7s; }
  .rota__parada--fim::before { animation: rota-chegada 1.4s ease-out 2.1s 1; }
  .rota__frase { animation: rota-parada .5s ease-out 2.5s both; }
  .rota__rodape { animation: rota-parada .5s ease-out 2.7s both; }
}
@keyframes rota-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rota-linha { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rota-parada { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes rota-chegada { 0% { box-shadow: 0 0 0 0 rgba(255,94,0,.55); } 100% { box-shadow: 0 0 0 16px rgba(255,94,0,0); } }
#case .citacao--case { max-width: 780px; margin-inline: auto; }
#case .cta-linha { text-align: center; }
