/* Site institucional da JGR Broker (só a página inicial; a área logada usa o jgr.css).
   Cores fixas da marca: preto, branco, verde do WhatsApp (ação e "liberado"), petróleo (INFO-BROKER) e
   vermelho só para alerta. Tipografia: Archivo — larga e pesada nos títulos (como as letras pintadas nos
   contêineres), normal no texto. Elemento marcante: a rota do despacho, com o follow-up correndo por baixo. */

.site {
  --preto: #000;
  --branco: #fff;
  --verde: #25d366;
  --verde-hover: #3be07b;
  --verde-tinta: #052e16;     /* texto sobre o verde: 11:1 */
  --verde-linha: #1a9e4c;     /* verde das ligações da rota sobre o branco */
  --petroleo: #0e5e6f;
  --petroleo-escuro: #0b4a58;
  --texto-apoio: #3f3f46;     /* sobre branco: 10:1 */
  --texto-apoio-claro: #d4d4d8; /* sobre preto: 14:1 */
  --texto-petroleo: #dcecef;  /* sobre petróleo: 6:1 */
  --linha: #000;
  --margem: 1.25rem;          /* borda esquerda do conteúdo, para as seções que vão de ponta a ponta */

  font-family: Archivo, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  background: var(--branco); color: var(--preto);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 575.98px) { .site .container { padding-left: 1.25rem; padding-right: 1.25rem; } }
@media (min-width: 576px)  { .site { --margem: calc((100vw - 540px) / 2 + .75rem); } }
@media (min-width: 768px)  { .site { --margem: calc((100vw - 720px) / 2 + .75rem); } }
@media (min-width: 992px)  { .site { --margem: calc((100vw - 960px) / 2 + .75rem); } }
@media (min-width: 1200px) { .site { --margem: calc((100vw - 1140px) / 2 + .75rem); } }
@media (min-width: 1400px) { .site { --margem: calc((100vw - 1320px) / 2 + .75rem); } }

.site h1, .site h2, .site h3 { font-family: inherit; color: inherit; }
.site :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* Títulos: Archivo larga e pesada, em letra normal */
.site .titulo, .site .abertura h1 {
  font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; margin: 0;
}
.site .titulo { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 18ch; }
.site .intro { font-size: 1.15rem; color: var(--texto-apoio); max-width: 62ch; margin: 1.25rem 0 0; }
.site .texto-forte { font-size: 1.25rem; line-height: 1.5; font-weight: 500; margin: 1.5rem 0 0; max-width: 40ch; }

.secao { padding: clamp(4rem, 9vw, 7rem) 0; }
.secao-preta { background: var(--preto); color: var(--branco); }
.secao-preta .intro { color: var(--texto-apoio-claro); }
.secao-petroleo { background: var(--petroleo); color: var(--branco); }
.secao-petroleo .intro { color: var(--texto-petroleo); }

/* Botões: pílula (a forma do botão do WhatsApp); o verde é só para falar com a equipe */
.botao {
  display: inline-flex; align-items: center; gap: .55rem; border-radius: 999px; border: 2px solid transparent;
  padding: .85rem 1.6rem; font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.botao .bi { font-size: 1.15em; }
.botao-sm { padding: .5rem 1.05rem; font-size: .92rem; }
.botao-verde { background: var(--verde); color: var(--verde-tinta); }
.botao-verde:hover { background: var(--verde-hover); color: var(--verde-tinta); }
.botao-contorno { border-color: var(--preto); color: var(--preto); }
.botao-contorno:hover { background: var(--preto); color: var(--branco); }
.botao-branco { background: var(--branco); color: var(--preto); }
.botao-branco:hover { background: transparent; border-color: var(--branco); color: var(--branco); }

/* ---------- Topo ---------- */
.topo { background: var(--branco); border-bottom: 1px solid var(--preto); position: sticky; top: 0; z-index: 1030; }
.topo .navbar { padding: .8rem 0; }
.marca-site { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: .08em; font-size: 1.15rem; color: inherit; }
.marca-site span { font-weight: 400; }
.topo .marca-site { color: var(--preto); }
.topo .navbar-nav { gap: .35rem; }
.link-topo { display: inline-block; padding: .5rem .8rem; color: var(--preto); font-weight: 600; font-size: .98rem;
  text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.link-topo:hover { text-decoration-line: underline; color: var(--preto); }
.topo .navbar-nav a { white-space: nowrap; }
@media (min-width: 1200px) { .topo .navbar-nav .nav-item:nth-child(4) { margin-left: .6rem; } }
@media (max-width: 1199.98px) {
  .topo .navbar-nav { padding: 1rem 0 .5rem; gap: .5rem; align-items: flex-start; }
  .link-topo { padding-left: 0; }
}

/* ---------- Abertura: texto sobre preto, foto em quadro reto à direita ---------- */
.abertura { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--preto); color: var(--branco);
  min-height: min(76vh, 720px); }
.abertura-texto { padding: clamp(4rem, 8vw, 6.5rem) 3rem clamp(4rem, 8vw, 6rem) var(--margem); align-self: center; }
.abertura h1 { font-size: clamp(2.15rem, 4.6vw + 1rem, 4.4rem); }
.abertura h1 span { display: block; }
.abertura-lead { font-size: 1.2rem; line-height: 1.55; color: var(--texto-apoio-claro); max-width: 46ch; margin: 1.75rem 0 2.25rem; }
.abertura-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.abertura-cliente { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.28); color: var(--texto-apoio-claro); max-width: 46ch; }
.abertura-cliente a { color: var(--branco); font-weight: 700; text-underline-offset: 4px; }
.abertura-cliente a:hover { color: var(--branco); text-decoration-thickness: 2px; }
.abertura-foto { background: url("../img/hero-one.69d497d06091.jpg") 42% 70% / cover no-repeat; }
@media (max-width: 991.98px) {
  .abertura { grid-template-columns: 1fr; min-height: 0; }
  .abertura-foto { order: -1; height: 260px; }
  .abertura-texto { padding: 2.75rem var(--margem) 3.5rem; }
}

/* ---------- Pontos sensíveis: lista com linhas, sem cards ---------- */
@media (min-width: 992px) { .pontos-cabeca { position: sticky; top: 7rem; } }
.pontos { margin: 0; border-bottom: 1px solid var(--linha); }
.pontos > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .35rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--linha); }
.pontos dt { font-stretch: 112%; font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.pontos dd { margin: 0; color: var(--texto-apoio); }
@media (max-width: 575.98px) { .pontos > div { grid-template-columns: 1fr; } }

/* ---------- Serviços: do lado esquerdo o que a pessoa precisa resolver; do direito, o serviço que resolve ---------- */
.servicos { list-style: none; padding: 0; margin: 3rem 0 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.servicos li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: .9rem 3rem; padding: 1.9rem 0;
  border-top: 1px solid rgba(255,255,255,.35); }
.servicos .necessidade { font-stretch: 125%; font-weight: 800; font-size: clamp(1.4rem, 2.5vw, 2.05rem); line-height: 1.1;
  letter-spacing: -.015em; margin: 0; max-width: 17ch; text-wrap: balance; }
.servicos h3 { font-stretch: 112%; font-weight: 700; font-size: 1.12rem; line-height: 1.3; margin: .2rem 0 .4rem; }
.servicos .servico p { color: var(--texto-apoio-claro); margin: 0; max-width: 54ch; }
@media (max-width: 767.98px) { .servicos li { grid-template-columns: 1fr; padding: 1.6rem 0; } }

/* ---------- A rota do despacho ----------
   Linha preta = a carga passando pelas etapas (números em quadro, como o dígito verificador do contêiner).
   Linha verde = o follow-up, contínua por baixo de todas; cada etapa desce até ela. */
.rota { --numero: 2.75rem; --vao: 1.75rem; margin-top: 3.25rem; }
.rota-etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--vao); }
.rota-etapas li { position: relative; padding: calc(var(--numero) + 1.25rem) 0 2.25rem calc(var(--numero) / 2 + .9rem); }
.rota-numero {
  position: absolute; top: 0; left: 0; z-index: 1; width: var(--numero); height: var(--numero); display: grid; place-items: center;
  background: var(--branco); border: 3px solid var(--preto); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; line-height: 1;
}
/* trecho da linha preta até a próxima etapa */
.rota-etapas li:not(:last-child)::before {
  content: ""; position: absolute; top: calc(var(--numero) / 2 - 2px); left: var(--numero); right: calc(-1 * var(--vao)); height: 4px;
  background: var(--preto); transform-origin: left center;
}
/* ligação de cada etapa com o follow-up */
.rota-etapas li::after {
  content: ""; position: absolute; left: calc(var(--numero) / 2 - 1px); top: var(--numero); bottom: 0; width: 2px;
  background: var(--verde-linha); transform-origin: top center;
}
.rota-etapas h3 { font-stretch: 112%; font-weight: 700; font-size: 1.12rem; line-height: 1.25; margin: 0 0 .5rem; }
.rota-etapas p { color: var(--texto-apoio); font-size: .97rem; margin: 0; max-width: 60ch; }
.rota-follow-up { position: relative; margin: 0; padding-top: calc(10px + 1.25rem); }
.rota-follow-up::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--verde); transform-origin: left center; }
.rota { position: relative; }
.rota-fim { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 3rem; }
.rota-fim p { margin: 0; font-weight: 600; display: flex; gap: .55rem; align-items: center; }

/* Até notebooks pequenos: a rota fica vertical; o follow-up vira uma linha verde à esquerda */
@media (max-width: 1199.98px) {
  .rota { --numero: 2.5rem; --vao: 0rem; padding-left: 1.6rem; }
  .rota::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--verde); transform-origin: top center; }
  .rota-etapas { grid-template-columns: 1fr; row-gap: 0; }
  .rota-etapas li { padding: .35rem 0 2rem calc(var(--numero) + 1.1rem); }
  .rota-etapas li:not(:last-child)::before { top: var(--numero); bottom: 0; left: calc(var(--numero) / 2 - 2px); right: auto; width: 4px; height: auto; transform-origin: top center; }
  .rota-etapas li::after { top: calc(var(--numero) / 2 - 1px); bottom: auto; left: -1.6rem; width: 1.6rem; height: 2px; transform-origin: left center; }
  .rota-follow-up { border-top: 0; padding-top: 0; }
  .rota-follow-up::before { display: none; }
}

/* O desenho da rota acontece uma vez, quando ela entra na tela (rota.js), também com "reduzir movimento" (linhas crescendo devagar). Sem JS, aparece pronta. */
@keyframes rota-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rota-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rota-surgir { from { opacity: 0; } to { opacity: 1; } }
.rota.desenhar li:not(:last-child)::before { animation: rota-x .35s ease-in-out both; }
.rota.desenhar li::after { animation: rota-y .35s ease-out both; }
.rota.desenhar .rota-follow-up::before { animation: rota-x .9s ease-in-out both; animation-delay: 1.9s; }
.rota.desenhar li:nth-child(1) .rota-numero { animation: rota-surgir .3s ease-out 0s both !important; }
.rota.desenhar li:nth-child(1)::before { animation-delay: .25s; }
.rota.desenhar li:nth-child(2) .rota-numero { animation: rota-surgir .3s ease-out .55s both !important; }
.rota.desenhar li:nth-child(2)::before { animation-delay: .7s; }
.rota.desenhar li:nth-child(3) .rota-numero { animation: rota-surgir .3s ease-out 1s both !important; }
.rota.desenhar li:nth-child(3)::before { animation-delay: 1.15s; }
.rota.desenhar li:nth-child(4) .rota-numero { animation: rota-surgir .3s ease-out 1.45s both !important; }
.rota.desenhar li:nth-child(4)::before { animation-delay: 1.6s; }
.rota.desenhar li:nth-child(5) .rota-numero { animation: rota-surgir .3s ease-out 1.9s both !important; }
.rota.desenhar li::after { animation-delay: 2.6s; }
.rota.esperando .rota-numero { opacity: 0; }
.rota.esperando li::before, .rota.esperando .rota-follow-up::before { transform: scaleX(0); }
.rota.esperando li::after { transform: scaleY(0); }
@media (max-width: 1199.98px) {
  .rota.desenhar li:not(:last-child)::before { animation-name: rota-y; }
  .rota.desenhar li::after { animation-name: rota-x; }
  .rota.desenhar::before { animation: rota-y 2.2s ease-in-out both; }
  .rota.esperando::before, .rota.esperando li::before { transform: scaleY(0); }
  .rota.esperando li::after { transform: scaleX(0); }
}

/* ---------- INFO-BROKER (petróleo, a cor da área do cliente) ---------- */
.carrossel-ib { margin-top: 2.75rem; }
.trilho-ib { position: relative; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: 6%;  /* folga nas pontas: a primeira e a última tela também ficam centralizadas */
  scrollbar-width: none; padding-bottom: 14px; cursor: grab; outline-offset: 6px; }  /* espaço para a sombra das telas */
.trilho-ib::-webkit-scrollbar { display: none; }
.trilho-ib.arrastando { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.slide-ib { flex: 0 0 88%; margin: 0; scroll-snap-align: center; }
@media (min-width: 992px) { .slide-ib { flex-basis: 78%; } .trilho-ib { padding-inline: 11%; } }
/* Sombra sólida e deslocada, em petróleo mais escuro: dá profundidade sem desfocar nada */
.tela-ib { overflow: hidden; border-radius: .6rem; background: var(--branco); box-shadow: 10px 10px 0 rgba(0, 0, 0, .22); }
.slide-ib img { display: block; width: 100%; height: auto; pointer-events: none; transform-origin: 50% 35%; }
/* Movimento no carrossel: só o que é lento e pequeno. Vale também com "reduzir movimento" ligado no aparelho
   (o !important vence o corte geral do jgr.css); o deslizar de lado continua cortado nesse caso (carrossel.js).
   - a tela em destaque se aproxima devagar, como uma câmera chegando perto;
   - as outras telas clareiam e escurecem em vez de trocar de repente;
   - o ponto da tela atual enche como uma barra de tempo, mostrando quando vem a próxima. */
@keyframes aproximar-ib { from { transform: scale(1); } to { transform: scale(1.04); } }
.carrossel-ib.pronto .slide-ib.ativo img { animation: aproximar-ib 8s ease-out both !important; }
.slide-ib figcaption { margin-top: 1rem; color: var(--texto-petroleo); max-width: 60ch; }
.slide-ib figcaption strong { display: block; color: var(--branco); font-size: 1.12rem; font-weight: 700; margin-bottom: .15rem; }
.controles-ib { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.seta-ib { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent;
  color: var(--branco); font-size: 1.1rem; display: grid; place-items: center; }
.seta-ib:hover { background: var(--branco); color: var(--petroleo); }
.pontos-ib { display: flex; gap: .5rem; }
.ponto-ib { position: relative; overflow: hidden; width: 10px; height: 10px; border-radius: 5px; border: 0; padding: 0;
  background: rgba(255,255,255,.4); transition: width .3s !important; }
.ponto-ib[aria-current="true"] { width: 40px; }
.ponto-ib[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--branco); transform-origin: left center; }
@keyframes tempo-ib { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carrossel-ib.rodando .ponto-ib[aria-current="true"]::after { animation: tempo-ib 6s linear both; }
.carrossel-ib.pronto .slide-ib img, .carrossel-ib.pronto .slide-ib figcaption { transition: opacity .5s !important; }
.carrossel-ib.pronto .slide-ib:not(.ativo) img { opacity: .4; }
.carrossel-ib.pronto .slide-ib:not(.ativo) figcaption { opacity: 0; }
.legenda-ib { text-align: center; font-size: .85rem; color: var(--texto-petroleo); margin: 1rem 0 0; }

/* ---------- Quem somos ---------- */
.sobre { display: grid; grid-template-columns: 1fr 1fr; background: var(--preto); color: var(--branco); min-height: 480px; }
.sobre-texto { padding: clamp(4rem, 8vw, 6rem) 3rem clamp(4rem, 8vw, 6rem) var(--margem); align-self: center; }
.sobre-texto p { color: var(--texto-apoio-claro); font-size: 1.1rem; max-width: 48ch; margin: 1.25rem 0 0; }
.sobre-foto { background: url("../img/patio-one.a056876cbd57.jpg") 40% 45% / cover no-repeat; }
@media (max-width: 991.98px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre-texto { padding: 3.5rem var(--margem); }
  .sobre-foto { min-height: 280px; }
}

/* ---------- Dúvidas ---------- */
.faq .accordion-item { border: 0; border-top: 1px solid var(--linha); border-radius: 0; background: transparent; }
.faq .accordion-item:last-child { border-bottom: 1px solid var(--linha); }
.faq .accordion-button { font-weight: 700; font-size: 1.12rem; padding: 1.3rem 0; color: var(--preto); background: transparent; box-shadow: none; border-radius: 0; }
.faq .accordion-button:not(.collapsed) { color: var(--preto); }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-button:focus-visible { outline: 3px solid var(--preto); outline-offset: 2px; }
.faq .accordion-body { padding: 0 0 1.5rem; color: var(--texto-apoio); max-width: 64ch; }

/* ---------- Chamada final e rodapé (um bloco preto só) ---------- */
.contato { background: var(--preto); color: var(--branco); padding: clamp(4rem, 9vw, 6.5rem) 0 4rem; }
.contato p { color: var(--texto-apoio-claro); font-size: 1.2rem; max-width: 52ch; margin: 1.25rem 0 2rem; }
.contato-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; color: var(--texto-apoio-claro); }
.contato-acoes a:not(.botao) { color: var(--branco); text-underline-offset: 4px; }

.rodape { background: var(--preto); color: var(--texto-apoio-claro); font-size: .96rem; }
.rodape > .container { padding-top: 3rem; padding-bottom: 1.5rem;
  background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) .75rem 0 / calc(100% - 1.5rem) 1px no-repeat; }
.rodape .marca-site { color: var(--branco); }
.rodape p { margin: .9rem 0 0; }
.rodape h3 { font-size: 1rem; font-weight: 700; color: var(--branco); margin: 0; }
.rodape ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; }
.rodape a { color: var(--branco); text-decoration: none; }
.rodape a:hover { text-decoration: underline; color: var(--branco); }
.rodape .rodape-final { margin-top: 3rem; font-size: .85rem; }

.whatsapp-flutuante {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; width: 58px; height: 58px; border-radius: 50%;
  background: var(--verde); color: var(--verde-tinta); display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.whatsapp-flutuante:hover { color: var(--verde-tinta); background: var(--verde-hover); }
