/* ==========================================================================
   Líder Importação & Exportação — design system
   Paleta: preto porão + laranja contêiner. Duas "bandas": escura (logo fundo
   preto) e clara (logo fundo branco). Tipografia: Big Shoulders (sinalização
   de porto), Archivo (texto), IBM Plex Mono (códigos, documentos, NCM).
   ========================================================================== */

:root {
  --ink: #0f0f0e;          /* preto porão */
  --steel: #1b1a18;        /* superfície escura elevada */
  --steel-2: #252320;
  --line-d: #36322e;       /* fio sobre escuro */
  --concrete: #ecebe8;     /* fundo claro */
  --paper: #f8f7f4;        /* superfície clara elevada */
  --line-l: #d3cfc8;       /* fio sobre claro */
  --orange: #f0661a;       /* laranja contêiner */
  --orange-hi: #ff7b31;
  --rust: #a9410b;         /* laranja legível sobre claro */
  --on-dark: #f2f0ec;
  --fog: #a8a29a;          /* texto secundário sobre escuro */
  --graphite: #58534c;     /* texto secundário sobre claro */

  /* semânticas — canais de parametrização */
  --verde: #2f9e5c;
  --amarelo: #e2b42a;
  --vermelho: #d23a2c;
  --cinza: #8c8a86;

  --f-display: "Big Shoulders Display", "Big Shoulders", "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(3.1rem, 8.4vw, 7.6rem);
  --fs-h2: clamp(2.4rem, 5.2vw, 4.4rem);
  --fs-h3: clamp(1.45rem, 2.2vw, 1.8rem);
  --fs-lead: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.75rem;

  --gutter: clamp(16px, 4vw, 44px);
  --max: 1240px;
  --band-y: clamp(64px, 9vw, 128px);
  --radius: 3px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- bandas ---------- */
.band { padding-block: var(--band-y); position: relative; }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--steel { background: var(--steel); color: var(--on-dark); }
.band--light { background: var(--concrete); color: var(--ink); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--orange { background: var(--orange); color: var(--ink); }
.band--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.005em;
}
.h1 { font-size: var(--fs-hero); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h3); text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; }
.accent { color: var(--orange); }
.band--light .accent, .band--paper .accent { color: var(--rust); }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 60ch; }
.muted { color: var(--fog); }
.band--light .muted, .band--paper .muted { color: var(--graphite); }
.prose { max-width: 65ch; display: grid; gap: 1em; }

.label {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: currentColor; flex: none; }
.band--light .eyebrow, .band--paper .eyebrow { color: var(--rust); }
.mono { font-family: var(--f-mono); }
.tnum { font-variant-numeric: tabular-nums; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 880px; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- botões ---------- */
.btn {
  --b-bg: var(--orange); --b-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 22px;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--f-body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; border: 1.5px solid var(--b-bg); border-radius: var(--radius);
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { --b-bg: var(--orange-hi); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.band--light .btn--ghost:hover, .band--paper .btn--ghost:hover { background: var(--ink); color: var(--concrete); border-color: var(--ink); }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--on-dark); }
.btn--ink:hover { --b-bg: var(--steel-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 14, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-d);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); flex: none; }
.brand__mark { width: 38px; height: 38px; color: var(--orange); }
.brand__word { display: grid; gap: 4px; }
.brand__word svg { display: block; }
.brand__name { width: 100px; height: auto; }
.brand__sub { width: 100px; height: auto; color: var(--fog); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 12px;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--fog); transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--orange); }
.nav .header-cta { margin-left: 12px; min-height: 42px; padding: 0 16px; font-size: 0.86rem; color: var(--ink); letter-spacing: 0.04em; }
.nav .header-cta:hover { color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-d);
  background: transparent; color: var(--on-dark); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-d);
    padding: 8px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 16px 0; font-size: 1rem; border-bottom: 1px solid var(--line-d); }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: 10px; }
  .nav .header-cta { margin: 16px 0 0; min-height: 50px; border-bottom: 0; }
}

/* ---------- hero (início) ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__copy { display: grid; gap: 28px; align-content: start; }
.hero__copy .lead { color: var(--fog); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.hero__meta div { display: grid; gap: 2px; }
.hero__meta dt { color: var(--fog); }
.hero__meta dd { margin: 0; font-weight: 600; }
.hero__visual { position: relative; }
.globe { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; }
.globe canvas { width: 100%; height: 100%; display: block; }

/* ficha de rastreio (simulação) */
.tracker {
  position: absolute; left: 0; bottom: 2%; width: min(320px, 78%);
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.45;
}
.tracker__top { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius) var(--radius) 0 0; }
.tracker__top b { color: var(--orange); font-weight: 600; }
.tracker__body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.tracker__code { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.04em; line-height: 1; }
.tracker__code span { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1.5px solid var(--ink); }
.tracker__row { display: flex; justify-content: space-between; gap: 10px; color: var(--graphite); }
.tracker__row b { color: var(--ink); font-weight: 600; text-align: right; }
.tracker__status { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); min-height: 1.45em; }
.tracker__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(240,102,26,.2); flex: none; }
.tracker__bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.tracker__bar i { height: 5px; background: var(--line-l); }
.tracker__bar i.on { background: var(--orange); }
.tracker__note { font-size: 0.68rem; color: var(--graphite); letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .tracker { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -12%; }
}

/* ---------- faixa de termos (burocracia) ---------- */
.ticker { background: var(--orange); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker__list { display: flex; align-items: center; flex: none; }
.ticker__list li {
  display: flex; align-items: center; gap: 22px; padding: 14px 0 14px 22px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
}
.ticker__list li::after { content: ""; width: 8px; height: 8px; background: var(--ink); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- frentes (FIN / LOG / TRIB / OPS) ---------- */
.fronts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.front { display: grid; grid-template-columns: 76px 1fr; gap: 6px 24px; padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line-l); }
.front:nth-child(odd) { border-right: 1px solid var(--line-l); }
.front:nth-child(even) { padding-left: 32px; }
.front__code {
  grid-row: span 2; align-self: start;
  display: grid; place-items: center; width: 76px; height: 76px; border: 1.5px solid var(--ink);
  font-family: var(--f-mono); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em;
  position: relative;
}
.front__code::before, .front__code::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--ink); }
.front__code::before { top: -1.5px; left: -1.5px; } .front__code::after { bottom: -1.5px; right: -1.5px; }
.front h3 { align-self: end; }
.front p { color: var(--graphite); max-width: 52ch; }
.front ul { grid-column: 2; display: grid; gap: 6px; margin-top: 10px; font-size: var(--fs-small); }
.front li { display: flex; gap: 10px; }
.front li::before { content: "—"; color: var(--rust); }
@media (max-width: 820px) {
  .fronts { grid-template-columns: 1fr; }
  .front, .front:nth-child(even) { padding: 28px 0; border-right: 0; }
  .front:nth-child(odd) { border-right: 0; }
}
@media (max-width: 460px) {
  .front { grid-template-columns: 56px 1fr; gap: 6px 16px; }
  .front__code { width: 56px; height: 56px; font-size: 0.78rem; }
}

/* ---------- painéis de contêiner (modalidades) ---------- */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px;
  padding: 28px 26px 26px; min-height: 380px; color: var(--on-dark); text-decoration: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 18px, rgba(255,255,255,.035) 18px 21px, rgba(0,0,0,.25) 21px 24px, rgba(255,255,255,0) 24px 42px),
    var(--steel);
  border: 1px solid var(--line-d); border-top: 6px solid var(--orange);
  transition: transform .25s, border-color .25s;
}
a.panel:hover { transform: translateY(-4px); border-color: var(--orange); }
.panel__plate { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.panel__plate .label { color: var(--fog); }
.panel__code { font-family: var(--f-mono); font-size: 0.8rem; padding: 3px 7px; border: 1px solid var(--line-d); background: var(--ink); color: var(--on-dark); letter-spacing: 0.08em; }
.panel h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 0.92; text-transform: uppercase; align-self: end; }
.panel p { color: var(--fog); }
.panel__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line-d); font-weight: 600; font-size: var(--fs-small); }
.panel__foot::after { content: "→"; color: var(--orange); font-size: 1.2rem; }
@media (max-width: 900px) { .panels { grid-template-columns: 1fr; } .panel { min-height: 0; } }

/* ---------- prévia do processo ---------- */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: ph; }
.phase-col { padding: 0 24px 0 0; display: grid; gap: 14px; align-content: start; position: relative; }
.phase-col + .phase-col { padding-left: 24px; border-left: 1px solid var(--line-l); }
.phase-col__bar { height: 6px; background: var(--ink); position: relative; margin-bottom: 8px; }
.phase-col:nth-child(1) .phase-col__bar { background: var(--orange); }
.phase-col h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.phase-col ol { display: grid; gap: 8px; font-size: var(--fs-small); }
.phase-col li { display: grid; grid-template-columns: 2.2em 1fr; }
.phase-col li span { font-family: var(--f-mono); color: var(--rust); font-weight: 600; }
.phase-col li.is-decision { color: var(--graphite); font-style: italic; }
.phase-col li.is-decision span { color: var(--graphite); }
@media (max-width: 900px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 0; }
  .phase-col:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .phases { grid-template-columns: 1fr; }
  .phase-col, .phase-col + .phase-col { padding: 0; border-left: 0; }
}

/* ---------- riscos ---------- */
.risks { display: grid; border-top: 1px solid var(--line-d); }
.risk { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 16px 48px; padding: 30px 0; border-bottom: 1px solid var(--line-d); align-items: baseline; }
.risk__fig { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 0.9; text-transform: uppercase; color: var(--orange); }
.risk__fig small { display: block; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--fog); font-weight: 500; margin-top: 10px; }
.risk h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; font-family: var(--f-body); text-transform: none; }
.risk p { color: var(--fog); max-width: 60ch; }
@media (max-width: 760px) { .risk { grid-template-columns: 1fr; } }

/* ---------- unidades ---------- */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.office { background: var(--paper); border: 1px solid var(--line-l); padding: 28px; display: grid; gap: 16px; align-content: start; }
.office__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.office__coord { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--graphite); letter-spacing: 0.08em; }
.office h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 3.6vw, 3rem); text-transform: uppercase; line-height: 0.9; }
.office address { font-style: normal; color: var(--graphite); }
.office__links { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 14px; border-top: 1px solid var(--line-l); font-weight: 600; font-size: var(--fs-small); }
.office__links a { text-decoration: none; border-bottom: 1.5px solid var(--orange); }
.band--dark .office, .band--steel .office { background: var(--steel); border-color: var(--line-d); }
.band--dark .office address, .band--dark .office__coord { color: var(--fog); }
.band--dark .office__links { border-color: var(--line-d); }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px 64px; align-items: end; }
.cta p { margin-top: 18px; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* ---------- page hero (internas) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line-d); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px 64px; align-items: end; }
.page-hero .lead { color: var(--fog); }
.crumbs { margin-bottom: 22px; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- fluxograma: mapa geral ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-d); }
.stat { padding: 18px 20px; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line-d); }
.stat b { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 0.9; color: var(--orange); font-variant-numeric: tabular-nums; }
.stat span { color: var(--fog); font-size: var(--fs-small); }
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-d); }
}

.flowmap { overflow-x: auto; border: 1px solid var(--line-l); background: var(--paper); -webkit-overflow-scrolling: touch; }
.flowmap svg { display: block; width: 100%; min-width: 980px; height: auto; font-family: var(--f-body); }
.flowmap__hint { display: none; margin-top: 10px; }
@media (max-width: 1000px) { .flowmap__hint { display: block; } }
.fm-phase-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--graphite); font-weight: 500; }
.fm-phase-name { font-family: var(--f-display); font-size: 19px; font-weight: 800; text-transform: uppercase; fill: var(--ink); }
.fm-band { fill: var(--concrete); }
.fm-node rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.fm-node .num { font-family: var(--f-mono); font-size: 11px; font-weight: 600; fill: var(--rust); letter-spacing: 0.06em; }
.fm-node .t { font-size: 13px; font-weight: 600; fill: var(--ink); }
.fm-node:hover rect, .fm-node:focus rect { fill: #fff3ea; stroke: var(--orange); }
.fm-node { cursor: pointer; }
.fm-node:focus { outline: none; }
.fm-node:focus-visible rect { stroke-width: 3; }
.fm-dec polygon { fill: var(--ink); }
.fm-dec text { fill: var(--on-dark); font-size: 11.5px; font-weight: 600; }
.fm-edge { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.fm-edge--no { stroke: var(--rust); stroke-dasharray: 5 4; }
.fm-edge--opt { stroke: var(--graphite); stroke-dasharray: 3 4; }
.fm-arrow { fill: var(--ink); }
.fm-arrow--no { fill: var(--rust); }
.fm-tag { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--graphite); }
.fm-tag--no { fill: var(--rust); }
.fm-side rect { fill: none; stroke: var(--graphite); stroke-dasharray: 3 3; stroke-width: 1.2; }
.fm-side text { font-size: 11.5px; fill: var(--graphite); font-weight: 500; }
.fm-canal rect { stroke: none; }
.fm-canal text { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; fill: #fff; }
.fm-canal--amarelo text { fill: var(--ink); }
.fm-end circle { fill: var(--orange); }
.fm-end text { font-family: var(--f-display); font-size: 18px; font-weight: 900; text-transform: uppercase; fill: var(--ink); }

/* ---------- fluxograma: detalhado ---------- */
.flow-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 36px; font-size: var(--fs-small); color: var(--graphite); }
.flow-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-you, .lg-lider { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--ink); }
.lg-lider { background: var(--orange); border-color: var(--orange); }
.lg-dec { width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); display: inline-block; margin-inline: 1px; }

.flow { position: relative; display: grid; --spine-x: 31px; --progress: 0; }
.flow::before, .flow::after { content: ""; position: absolute; left: var(--spine-x); top: 0; width: 2px; background: var(--line-l); bottom: 0; }
.flow::after { background: var(--orange); bottom: auto; height: calc(var(--progress) * 100%); transition: height .1s linear; }

.flow-phase { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0 28px; padding: 40px 0 18px; }
.flow-phase:first-child { padding-top: 0; }
.flow-phase__dot { width: 64px; height: 30px; display: grid; place-items: center; position: relative; z-index: 1; }
.flow-phase__dot::before { content: ""; width: 22px; height: 22px; background: var(--ink); border: 4px solid var(--concrete); box-sizing: content-box; }
.flow-phase h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: 0.95; }
.flow-phase .label { color: var(--rust); display: block; margin-bottom: 6px; }

.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 28px; padding: 14px 0; }
.step__marker {
  position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--ink);
  font-family: var(--f-mono); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.step__marker::before, .step__marker::after { content: ""; position: absolute; width: 10px; height: 10px; background: var(--ink); transition: background .3s; }
.step__marker::before { top: -1.5px; left: -1.5px; } .step__marker::after { bottom: -1.5px; right: -1.5px; }
.step.is-past .step__marker { background: var(--orange); border-color: var(--orange); }
.step.is-past .step__marker::before, .step.is-past .step__marker::after { background: var(--ink); }
.step__card { background: var(--paper); border: 1px solid var(--line-l); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.step__main { padding: 22px 26px 24px; display: grid; gap: 14px; align-content: start; }
.step__main h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1; }
.step__roles { display: grid; gap: 10px; }
.role { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 0.97rem; }
.role__who { align-self: start; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 6px; text-align: center; border: 1.5px solid var(--ink); }
.role--lider .role__who { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.role p { color: #2b2825; }
.step__side { padding: 22px 24px 24px; background: var(--concrete); border-left: 1px solid var(--line-l); display: grid; gap: 18px; align-content: start; }
.step__side .label { color: var(--graphite); display: block; margin-bottom: 8px; }
.docs, .actors { display: flex; flex-wrap: wrap; gap: 6px; }
.doc {
  font-family: var(--f-mono); font-size: 0.74rem; font-weight: 500; line-height: 1.3;
  padding: 5px 8px 5px 22px; background: var(--paper); border: 1px solid var(--line-l); position: relative;
}
.doc::before { content: ""; position: absolute; left: 7px; top: 50%; width: 8px; height: 10px; margin-top: -5px; border: 1.2px solid var(--graphite); background: linear-gradient(var(--graphite), var(--graphite)) 1px 3px / 4px 1px no-repeat, linear-gradient(var(--graphite), var(--graphite)) 1px 5px / 4px 1px no-repeat; }
.actor { font-size: 0.8rem; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--ink); color: var(--on-dark); }
.actor--gov { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
@media (max-width: 900px) {
  .step__card { grid-template-columns: 1fr; }
  .step__side { border-left: 0; border-top: 1px solid var(--line-l); }
}
@media (max-width: 560px) {
  .flow { --spine-x: 19px; }
  .flow-phase, .step, .decision { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
  .flow-phase__dot { width: 40px; }
  .step__marker { width: 40px; height: 40px; font-size: 0.85rem; }
  .step__main, .step__side { padding: 18px 16px; }
  .role { grid-template-columns: 1fr; gap: 6px; }
  .role__who { justify-self: start; }
}

/* decisões */
.decision { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 28px; padding: 14px 0; align-items: center; }
.decision__marker { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; }
.decision__marker::before { content: ""; width: 42px; height: 42px; background: var(--ink); transform: rotate(45deg); border: 4px solid var(--concrete); }
.decision__marker span { position: absolute; font-family: var(--f-display); font-weight: 900; font-size: 1.3rem; color: var(--orange); }
.decision__box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; padding: 18px 22px; background: var(--ink); color: var(--on-dark); }
.decision__q { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.7rem); text-transform: uppercase; line-height: 1.05; }
.decision__branches { display: grid; gap: 6px; font-size: var(--fs-small); }
.branch { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; }
.branch b { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; padding: 2px 6px; border: 1px solid var(--line-d); }
.branch--sim b { color: var(--orange); border-color: var(--orange); }
.branch a { color: var(--orange); }
.decision__box > .decision__branches { grid-column: 1 / -1; padding-top: 12px; border-top: 1px dashed var(--line-d); color: var(--fog); }
@media (max-width: 560px) {
  .decision__marker { width: 40px; height: 40px; }
  .decision__marker::before { width: 26px; height: 26px; border-width: 3px; }
  .decision__marker span { font-size: 0.95rem; }
  .decision__box { padding: 16px; }
}

/* canais de parametrização */
.canais { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; grid-column: 1 / -1; }
.canal { padding: 12px 12px 14px; display: grid; gap: 6px; align-content: start; background: var(--steel); border-top: 5px solid var(--c); }
.canal b { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); }
.canal p { font-size: 0.86rem; color: var(--fog); line-height: 1.45; }
.canal--verde { --c: var(--verde); } .canal--amarelo { --c: var(--amarelo); } .canal--vermelho { --c: #f0584a; } .canal--cinza { --c: #b9b6b1; }
@media (max-width: 760px) { .canais { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.flow-end { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0 28px; padding-top: 14px; align-items: center; }
.flow-end__dot { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.flow-end__dot svg { width: 28px; height: 28px; color: var(--ink); }
.flow-end p { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 0.95; }
@media (max-width: 560px) {
  .flow-end { grid-template-columns: 40px 1fr; gap: 0 14px; }
  .flow-end__dot { width: 40px; height: 40px; } .flow-end__dot svg { width: 20px; }
}

/* ---------- pilha de custos ---------- */
.stack-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 72px; align-items: center; }
.stack { display: grid; gap: 4px; }
.box {
  --bg: var(--steel-2); --fg: var(--on-dark);
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 16px; min-height: 50px; color: var(--fg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 14px, rgba(255,255,255,.06) 14px 16px, rgba(0,0,0,.18) 16px 18px, rgba(255,255,255,0) 18px 32px),
    var(--bg);
  border-left: 5px solid rgba(0,0,0,.35); border-right: 5px solid rgba(0,0,0,.35);
}
.box b { font-weight: 700; font-size: 0.98rem; }
.box span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: .8; text-align: right; }
.box--fob { --bg: var(--orange); --fg: var(--ink); min-height: 64px; }
.box--fob b { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; }
.box--log { --bg: #3a3632; }
.box--tax { --bg: #7a2f08; }
.box--br { --bg: #2a2825; }
.stack__sep { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); padding: 8px 0; display: flex; align-items: center; gap: 10px; }
.stack__sep::before, .stack__sep::after { content: ""; flex: 1; height: 1px; background: var(--line-d); }
@media (max-width: 860px) { .stack-grid { grid-template-columns: 1fr; } }

/* ---------- exportação (mini-fluxo) ---------- */
.mini-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: mf; }
.mini-flow li { position: relative; padding: 20px 18px 0 0; display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--on-dark); }
.mini-flow li::before { counter-increment: mf; content: counter(mf, decimal-leading-zero); font-family: var(--f-mono); font-weight: 600; font-size: 0.8rem; color: var(--orange); }
.mini-flow li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--orange); }
.mini-flow b { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1; }
.mini-flow p { font-size: var(--fs-small); color: var(--fog); }
@media (max-width: 900px) { .mini-flow { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 500px) { .mini-flow { grid-template-columns: 1fr; } }

/* ---------- serviços ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 72px; padding: 44px 0; border-top: 1px solid var(--line-l); }
.svc:last-child { border-bottom: 1px solid var(--line-l); }
.svc__head { display: grid; gap: 14px; align-content: start; }
.svc__head .h3 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; line-height: .92; }
.svc__body { display: grid; gap: 22px; }
.svc__body > p { font-size: 1.12rem; max-width: 60ch; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.97rem; }
.checks li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border: 1.5px solid var(--rust); background: linear-gradient(var(--rust), var(--rust)) center / 4px 4px no-repeat; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr; } }

.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-d); }
.aud { padding: 28px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.aud + .aud { padding-left: 28px; border-left: 1px solid var(--line-d); }
.aud h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.aud p { color: var(--fog); }
@media (max-width: 820px) { .audience { grid-template-columns: 1fr; } .aud, .aud + .aud { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-d); } }

/* FAQ */
.faq { display: grid; border-top: 1.5px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.3rem; color: var(--rust); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--graphite); max-width: 70ch; display: grid; gap: .8em; }

/* ---------- sobre ---------- */
.manifesto { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 0.9; }
.manifesto span { display: block; }
.manifesto span:nth-child(2) { color: var(--orange); }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.value { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line-l); }
.value h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }
.value p { color: var(--graphite); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.axis { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.axis__line { height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 16px); min-width: 60px; }
.axis__city { display: grid; gap: 4px; }
.axis__city:last-child { text-align: right; }
.axis__city b { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; line-height: 0.9; }

/* ---------- contato ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--paper); border: 1px solid var(--line-l); padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--graphite); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-l); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; transition: border-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,102,26,.18); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-l); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 0.92rem; background: #fff; transition: all .15s; }
.chip input:checked + span { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding-top: 6px; }
.form__foot small { color: var(--graphite); max-width: 42ch; }
.form__status { font-weight: 600; color: var(--rust); }
.contact-list { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.contact-item { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line-l); }
.contact-item .label { color: var(--graphite); }
.contact-item a { font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.contact-item a:hover { color: var(--rust); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer { background: #0a0a09; color: var(--fog); padding-block: 64px 28px; border-top: 1px solid var(--line-d); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.footer-logo { width: 170px; color: var(--on-dark); display: block; }
.footer-grid h4 { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); font-weight: 600; margin-bottom: 14px; }
.footer-grid address { font-style: normal; font-size: var(--fs-small); line-height: 1.6; }
.footer-grid ul { display: grid; gap: 8px; font-size: var(--fs-small); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--orange); }
.footer-tag { margin-top: 18px; font-size: var(--fs-small); max-width: 34ch; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.8rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 14px; height: 54px;
  background: var(--orange); color: var(--ink); border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.55); transition: transform .2s, background .2s;
}
.wa-float:hover { transform: translateY(-2px); background: var(--orange-hi); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 56px; justify-content: center; } }

/* ---------- entrada suave (a partir de estado visível) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
}

/* ---------- ajustes ---------- */
.section-head .section-head { margin: 0; }
.panel__list { display: grid; gap: 6px; margin-top: 4px; font-size: var(--fs-small); color: var(--on-dark); }
.panel__list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }
.panel__list li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; background: var(--orange); }
a.panel__foot { color: var(--on-dark); text-decoration: none; }
a.panel__foot:hover { color: var(--orange); }
.band--paper .office { background: var(--concrete); }
