/* ILC do Brasil: visual compartilhado pelas versões PT, EN e ES.
   Motivo central: o logo (ponto, linha, ponto), o documento de embarque com o carimbo
   e o percurso da carga animado sobre o fundo preto. */

:root {
  --black: #14110F;      /* fundo preto quente, derivado do marrom do logo */
  --ink: #1D1917;        /* texto */
  --taupe: #6F6560;      /* cinza-marrom do logo */
  --muted: #5E5652;      /* texto secundário sobre branco */
  --on-dark: #B9B0AA;    /* texto secundário sobre preto */
  --line: #E6E2DF;
  --line-dark: #3A332F;
  --paper: #FFFFFF;
  --mist: #F4F3F1;       /* fundo de seções alternadas */
  --orange: #F39A1E;     /* laranja do logo */
  --stamp: #C8461A;      /* tinta de carimbo */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --display: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 88px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; font-stretch: 85%; font-variation-settings: "wdth" 85; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }

/* Botões */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font: inherit; font-weight: 600; line-height: 1;
  text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--black); }
.btn-primary:hover { background: #F7AE48; border-color: #F7AE48; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Motivo do logo: ponto, linha, ponto */
.link-dots { display: flex; align-items: center; width: 64px; }
.link-dots::before, .link-dots::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.link-dots span { flex: 1; height: 2px; background: var(--taupe); }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 42px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .98rem; }
.nav > a:not(.call) { text-decoration: none; position: relative; padding: 6px 0; }
.nav > a:not(.call)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav > a:not(.call):hover::after { transform: scaleX(1); }
.nav .call { display: inline-flex; align-items: center; gap: 8px; background: var(--black); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav .call:hover { background: #2C2622; }
.wa-icon { flex-shrink: 0; }
.lang { display: flex; gap: 2px; font-size: .88rem; font-weight: 600; }
.lang a { text-decoration: none; padding: 4px 8px; border-radius: 999px; color: var(--taupe); }
.lang a:hover { color: var(--ink); background: var(--mist); }
.lang a[aria-current="page"] { color: var(--black); background: #FCE7C9; }
.menu-toggle { display: none; }

/* Abertura: foto grande com o documento de embarque flutuando */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(80px, 10vw, 136px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -0.045em; font-stretch: 80%; font-variation-settings: "wdth" 80; margin-bottom: 28px; }
.hero-copy p { margin: 0 0 36px; max-width: 44ch; font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; padding: 0 0 72px 0; }
.hero-photo { border-radius: 24px; overflow: hidden; background: var(--mist); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 62% center; }

.waybill {
  position: absolute; left: clamp(-56px, -4vw, -16px); bottom: 0; width: min(440px, 88%);
  background: #fff; border-radius: 16px; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 40px 80px -30px rgba(20,17,15,.45), 0 8px 24px -12px rgba(20,17,15,.2);
}
.wb-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.wb-head img { height: 22px; width: auto; display: block; }
.wb-head span { font-size: .82rem; color: var(--muted); line-height: 1.3; padding-left: 14px; border-left: 1px solid var(--line); max-width: 13em; }
.wb-route { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 12px; margin: 0; padding: 20px 20px 22px; border-bottom: 1px solid var(--line); }
.wb-route .f:last-child { text-align: right; }
.wb-route .link-dots { width: 100%; }
.f dt { font-size: .76rem; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.f dd { margin: 0; font-weight: 600; line-height: 1.25; }
.wb-route dd { font-size: 1.2rem; letter-spacing: -0.01em; }
.wb-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.wb-grid .f { padding: 13px 20px 15px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.wb-grid .f:nth-child(odd) { border-right: 1px solid var(--line); }
.wb-grid .f:nth-last-child(-n+2) { border-bottom: 0; }

.stamp {
  position: absolute; right: -26px; top: -46px; z-index: 2;
  color: var(--stamp); border: 3px solid currentColor; border-radius: 10px;
  padding: 8px 18px 10px; text-align: center; background: rgba(255,251,248,.94);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px currentColor, 0 10px 24px -10px rgba(20,17,15,.45);
  transform: rotate(-9deg);
  animation: stamp .5s cubic-bezier(.2,.9,.3,1.3) .8s both;
}
.stamp strong { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: .05em; line-height: 1.1; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.stamp small { display: block; font-size: .76rem; font-weight: 600; }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  to { opacity: .94; transform: rotate(-9deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; opacity: .94; } }

/* Percurso de ponta a ponta: fundo preto, carga animada percorrendo as paradas */
.route { --dur: 6s; --gap: calc(var(--dur) / 5); background: var(--black); color: #fff; padding: clamp(80px, 10vw, 136px) 0; overflow: hidden; }
.route-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: clamp(56px, 7vw, 88px); }
.route-head p { margin: 0; color: var(--on-dark); font-size: 1.1rem; max-width: 46ch; }
.journey { position: relative; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.journey::before, .journey::after { content: ""; position: absolute; top: 7px; left: 8px; height: 2px; width: calc(100% * 5 / 6); }
.journey::before { background: var(--line-dark); }
.journey::after { background: var(--orange); transform-origin: left; }
.stops li { position: relative; padding: 40px 20px 0 0; }
.stops li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(243,154,30,.16); }
.stops .n { display: block; color: var(--orange); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.stops strong { display: block; font-size: 1.18rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin: 4px 0 8px; }
.stops .d { display: block; font-size: .95rem; color: var(--on-dark); line-height: 1.45; }
.cargo { position: absolute; top: -3px; left: 8px; width: 22px; height: 22px; margin-left: -11px; border-radius: 6px; background: var(--orange); box-shadow: 0 0 24px 4px rgba(243,154,30,.55); opacity: 0; pointer-events: none; }
.insured { margin: 56px 0 0; padding: 18px 22px; border: 1px solid var(--line-dark); border-radius: 14px; color: var(--on-dark); display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.insured b { color: var(--orange); font-weight: 600; }

/* Estado antes da animação (o JavaScript liga quando a seção aparece na tela) */
.journey.is-ready::after { transform: scaleX(0); }
.journey.is-ready .stops li::before { background: var(--black); box-shadow: 0 0 0 2px var(--line-dark); }
.journey.is-ready .stops li > * { opacity: .28; }
.journey.is-ready ~ .insured { opacity: 0; transform: translateY(8px); }

.journey.is-playing::after { animation: route-grow var(--dur) linear forwards; }
.journey.is-playing .cargo { animation: cargo-x var(--dur) linear forwards, cargo-in .3s ease forwards, cargo-pulse 1.6s ease-in-out calc(var(--dur) + .2s) infinite; }
.journey.is-playing .stops li::before { animation: stop-dot .45s ease calc(var(--i) * var(--gap)) forwards; }
.journey.is-playing .stops li > * { animation: stop-text .5s ease calc(var(--i) * var(--gap)) forwards; }
.journey.is-playing ~ .insured { transition: opacity .6s ease calc(var(--dur) + .3s), transform .6s ease calc(var(--dur) + .3s); opacity: 1; transform: none; }

@keyframes route-grow { to { transform: scaleX(1); } }
@keyframes cargo-x { from { left: 8px; } to { left: calc(8px + 100% * 5 / 6); } }
@keyframes cargo-y { from { top: -3px; } to { top: calc(var(--stop) * 5 - 3px); } }
@keyframes cargo-in { to { opacity: 1; } }
@keyframes cargo-pulse { 50% { box-shadow: 0 0 36px 10px rgba(243,154,30,.35); } }
@keyframes stop-dot { to { background: var(--orange); box-shadow: 0 0 0 6px rgba(243,154,30,.16); } }
@keyframes stop-text { to { opacity: 1; } }

/* Seções */
.block { padding: clamp(88px, 11vw, 144px) 0; }
.block-mist { background: var(--mist); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.12rem; max-width: 50ch; }

/* Segmentos */
.segment-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.segment-list picture { display: block; border-radius: 20px; overflow: hidden; margin-bottom: 20px; background: var(--mist); }
.segment-list img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.segment-list li:hover img { transform: scale(1.04); }
.segment-list h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* Clientes: nomes passam pela linha do logo como cargas em trânsito */
.clients-band { margin-top: clamp(72px, 9vw, 112px); }
.clients-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.clients-head h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.marquee-toggle { background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.marquee-toggle:hover { background: var(--ink); color: #fff; }
.marquee { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.track { display: flex; width: max-content; animation: travel 45s linear infinite; }
.marquee:hover .track, .marquee:focus-within .track, .marquee.paused .track { animation-play-state: paused; }
@keyframes travel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.track ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.track li { display: flex; align-items: center; }
.track li::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); margin: 0 6px; flex-shrink: 0; position: relative; }
.track li span { background: var(--paper); padding: 6px 24px; position: relative; font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; color: var(--ink); font-stretch: 85%; font-variation-settings: "wdth" 85; }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; width: auto; }
  .track ul { flex-wrap: wrap; row-gap: 12px; }
  .track ul[aria-hidden] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee::before, .marquee-toggle { display: none; }
}

/* Serviços em abas */
.tab-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-list [role="tab"] {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tab-list [role="tab"] span { font-size: .8rem; font-weight: 600; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--mist); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.tab-list [role="tab"]:hover { border-color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.tab-list [role="tab"][aria-selected="true"] span { background: var(--orange); color: var(--black); }
.tab-panel + .tab-panel { margin-top: 56px; } /* sem JavaScript, todas as categorias aparecem em sequência */
.has-tabs .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }
.panel-desc { margin: 0 0 28px; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.service { padding: 28px 0 32px; border-top: 1px solid #DAD5D1; }
.service h3 { font-size: 1.45rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.service p { margin: 0; color: var(--muted); max-width: 60ch; }
.service p + p { margin-top: 12px; }
.has-tabs .tab-panel:not([hidden]) .service { animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .has-tabs .tab-panel:not([hidden]) .service { animation: none; } }

/* Sobre */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy h2 { margin-bottom: 32px; }
.about-copy p { margin: 0 0 18px; max-width: 60ch; color: var(--muted); }
.about-copy p:first-of-type { color: var(--ink); font-size: 1.2rem; line-height: 1.5; }
.about-visual { position: relative; padding-bottom: 56px; }
.about-photo { border-radius: 24px; overflow: hidden; background: var(--mist); }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; }
.years { position: absolute; left: clamp(-40px, -3vw, -12px); bottom: 0; display: flex; align-items: center; gap: 20px; max-width: 380px; padding: 22px 26px; background: var(--black); color: #fff; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(20,17,15,.6); }
.years .big { font-size: clamp(3.4rem, 6vw, 4.6rem); font-weight: 600; line-height: .9; letter-spacing: -0.05em; font-stretch: 80%; font-variation-settings: "wdth" 80; }
.years .big span { color: var(--orange); }
.years p { margin: 0; color: var(--on-dark); font-size: .98rem; line-height: 1.4; }
.team { margin: clamp(48px, 6vw, 72px) 0 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.4; letter-spacing: -0.015em; max-width: 46ch; }
.why { margin-top: clamp(72px, 9vw, 112px); padding-top: clamp(48px, 6vw, 64px); border-top: 1px solid var(--line); }
.why h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.why > p { margin: 0 0 40px; color: var(--muted); max-width: 60ch; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.why-grid .link-dots { width: 48px; margin-bottom: 18px; }
.why-grid h4 { font-size: 1.35rem; margin-bottom: 10px; }
.why-grid p { margin: 0; color: var(--muted); }

/* Objetivos: visão, missão e política de qualidade em um bloco */
.goals { background: var(--mist); padding: clamp(88px, 11vw, 144px) 0; }
.goals h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.goals-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); border-top: 2px solid var(--ink); }
.goal { padding: 32px clamp(20px, 3vw, 40px) 8px 0; }
.goal + .goal { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid #DAD5D1; }
.goal .link-dots { width: 48px; margin-bottom: 20px; }
.goal h3 { font-size: 1.6rem; margin-bottom: 14px; }
.goal p { margin: 0; font-size: 1.12rem; line-height: 1.55; }
.goal ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.goal li { position: relative; padding-left: 22px; color: var(--muted); }
.goal li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Rodapé */
.site-footer { background: var(--black); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: .98rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand img { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { margin: 0; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a, .site-footer .wa-link { color: #fff; text-decoration: none; }
.footer-nav a:hover, .site-footer .wa-link:hover { color: var(--orange); }
.footer-contact { display: grid; gap: 16px; justify-items: start; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.site-footer .lang a { color: var(--on-dark); }
.site-footer .lang a:hover { background: #2C2622; color: #fff; }
.site-footer .lang a[aria-current="page"] { background: var(--orange); color: var(--black); }
.footer-copy { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .88rem; }

/* Responsivo */
@media (max-width: 1080px) { .nav { gap: 18px; } }
@media (max-width: 960px) {
  .hero-grid, .about-grid, .section-head, .route-head { grid-template-columns: 1fr; }
  .hero-visual { padding-bottom: 0; }
  .waybill { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 14px 0; }
  .segment-list { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .goal + .goal { padding-left: 0; border-left: 0; border-top: 1px solid #DAD5D1; }
  .goal { padding-bottom: 32px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .about-visual { padding-bottom: 0; }
  .years { position: relative; left: auto; margin: -48px 14px 0; }

  /* percurso na vertical: paradas com altura fixa para a carga chegar junto com cada uma */
  .journey { --stop: 112px; }
  .stops { grid-template-columns: 1fr; }
  .stops li { height: var(--stop); padding: 0 0 0 44px; }
  .journey::before, .journey::after { left: 7px; top: 8px; width: 2px; height: calc(var(--stop) * 5); }
  .journey::after { transform-origin: top; }
  .journey.is-ready::after { transform: scaleY(0); }
  .journey.is-playing::after { animation-name: route-grow-y; }
  .journey.is-playing .cargo { animation: cargo-y var(--dur) linear forwards, cargo-in .3s ease forwards, cargo-pulse 1.6s ease-in-out calc(var(--dur) + .2s) infinite; }
  .stops strong { margin-top: 0; }
}
@keyframes route-grow-y { to { transform: scaleY(1); } }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav > a:not(.call) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.call)::after { display: none; }
  .nav .call { margin-top: 14px; justify-content: center; }
  .nav .lang { padding: 14px 0 0; gap: 8px; }
  .nav .lang a { padding: 8px 14px; background: var(--mist); }
}
@media (max-width: 600px) {
  .logo img { height: 36px; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .wb-route { grid-template-columns: 1fr; gap: 10px; }
  .wb-route .f:last-child { text-align: left; }
  .wb-route .link-dots { flex-direction: column; width: 12px; height: 40px; }
  .wb-route .link-dots span { width: 2px; height: auto; }
  .wb-head span { display: none; }
  .wb-grid { grid-template-columns: 1fr; }
  .wb-grid .f:nth-child(odd) { border-right: 0; }
  .wb-grid .f:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .stamp { right: -6px; top: -30px; }
  .stamp strong { font-size: 1.35rem; }
  .years { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Atendimento (conversa guiada, modelo da Lumi, sem IA) */
.chat-fab { display: none; }
.has-chat .chat-fab { display: block; }
.chat-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; }
.chat-fab__btn { width: 64px; height: 64px; border-radius: 50%; padding: 0; cursor: pointer; overflow: hidden; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--orange), 0 16px 32px -10px rgba(20,17,15,.5); transition: transform .2s; }
.chat-fab__btn img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.chat-fab__btn:hover { transform: translateY(-2px); }
.chat-fab__tip {
  position: absolute; right: 0; bottom: 80px; width: max-content; max-width: min(280px, calc(100vw - 32px));
  margin: 0; padding: 12px 40px 12px 16px; background: #fff; border-radius: 16px 16px 4px 16px;
  box-shadow: 0 16px 40px -12px rgba(20,17,15,.35); font-size: .95rem; line-height: 1.4;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.chat-fab.is-tip .chat-fab__tip { opacity: 1; transform: none; pointer-events: auto; }
.chat-fab__tip button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; background: none; cursor: pointer; color: var(--taupe); font-size: .9rem; border-radius: 50%; }
.chat-fab__tip button:hover { background: var(--mist); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .chat-fab__tip, .chat-fab__btn { transition: none; } }

.chat {
  width: min(460px, calc(100vw - 24px)); height: min(680px, calc(100dvh - 24px)); max-height: none;
  padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(20,17,15,.6); flex-direction: column; overflow: hidden;
}
.chat[open] { display: flex; }
.chat::backdrop { background: rgba(20,17,15,.5); backdrop-filter: blur(2px); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--black); color: #fff; }
.chat__avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--orange); display: block; flex-shrink: 0; }
.chat__who { flex: 1; min-width: 0; }
.chat__title { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: 0; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.chat__step { margin: 0; font-size: .85rem; color: var(--on-dark); }
.chat__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; cursor: pointer; font-size: 1rem; color: #fff; }
.chat__close:hover { background: #2C2622; }

/* Progresso como a rota do logo: quatro paradas ligadas por uma linha */
.chat__route { list-style: none; margin: 0; padding: 12px 22px; display: flex; justify-content: space-between; position: relative; border-bottom: 1px solid var(--line); }
.chat__route::before { content: ""; position: absolute; left: 28px; right: 28px; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.chat__route li { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--line); }
.chat__route li.is-done { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.chat__route li.is-now { background: #fff; box-shadow: 0 0 0 3px var(--orange); }

.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat__msg { margin: 0; max-width: 86%; padding: 10px 14px; line-height: 1.45; white-space: pre-line; font-size: .98rem; }
.chat__msg--ilc { align-self: flex-start; background: var(--mist); border-radius: 4px 16px 16px 16px; }
.chat__msg--user { align-self: flex-end; background: var(--black); color: #fff; border-radius: 16px 4px 16px 16px; }
.chat__msg--note { background: #FBE9E2; }
.chat__msg a { color: var(--stamp); font-weight: 600; }
.chat__summary { margin: 0; display: grid; min-width: 240px; }
.chat__summary div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.chat__summary div:last-child { border-bottom: 0; }
.chat__summary dt { font-size: .78rem; color: var(--muted); }
.chat__summary dd { margin: 0; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.chat__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chat__chip { border: 1.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .92rem; cursor: pointer; }
.chat__chip:hover { background: var(--ink); color: #fff; }
.chat__typing { display: flex; gap: 5px; padding: 14px 16px; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--taupe); animation: blink 1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chat__form { border-top: 1px solid var(--line); padding: 14px 16px 12px; display: grid; gap: 10px; }
.chat__form[hidden] { display: none; }
.chat__fields { display: grid; gap: 10px; }
.chat__fields:empty { display: none; }
.chat__field { display: grid; gap: 4px; }
.chat__label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.chat__input { font: inherit; font-size: 1rem; width: 100%; border: 0; border-bottom: 1.5px solid var(--line); padding: 6px 0 8px; background: #fff; color: var(--ink); border-radius: 0; }
textarea.chat__input { resize: none; }
.chat__input:focus { outline: 0; border-bottom-color: var(--orange); }
.chat__phone { display: grid; grid-template-columns: 68px 1fr; gap: 12px; }
.chat__hint { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.chat__err { margin: 0; font-size: .88rem; color: var(--stamp); font-weight: 500; }
.chat__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.chat__ghost { background: none; border: 0; padding: 8px 10px; font: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chat__ghost:hover { color: var(--ink); }
.chat__actions .btn { padding: 12px 22px; }
.chat__actions .btn:disabled { opacity: .5; cursor: wait; }
.chat__foot { margin: 0; padding: 8px 16px 12px; font-size: .78rem; color: var(--muted); text-align: center; }

@media (max-width: 600px) {
  .chat { width: 100vw; height: 100dvh; max-width: 100vw; border-radius: 0; }
  .chat-fab__btn { width: 56px; height: 56px; }
  .chat-fab__tip { bottom: 70px; }
}
