/* ===========================================================
   Instituto LIOR — Landing Page
   Design autoral · Mobile-first · Trust & Authority
   Paleta: navy #0A1F3D · dourado #C9A227 · areia #F6F1E6 · grafite #2B2B2B
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0A1F3D;
  --navy-800: #0d2748;
  --navy-700: #15335c;
  --gold: #C9A227;
  --gold-soft: #d9b94f;
  --sand: #F6F1E6;
  --sand-2: #efe7d6;
  --graphite: #2B2B2B;
  --white: #ffffff;
  --wa: #25D366;            /* verde WhatsApp oficial */
  --wa-dark: #1fbb59;

  --ink: #2B2B2B;
  --ink-soft: #51596a;
  --on-navy: #F6F1E6;
  --on-navy-soft: #aeb9cc;

  --line: #e3dcca;          /* hairline on light */
  --line-navy: rgba(201,162,39,.28); /* hairline on navy */

  --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* spacing scale (8pt) */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem; --s6: 4rem; --s7: 6rem;

  --maxw: 1120px;
  --radius: 4px;
  --header-h: 70px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* compensa o cabeçalho fixo ao navegar por âncoras */
.hero, .section, .process-h, #conteudo { scroll-margin-top: calc(var(--header-h) + 14px); }

.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 200;
  background: var(--gold); color: var(--navy); font-weight: 600;
  padding: .6rem 1rem; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:where(a, button, .link-btn):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 20px; height: 20px; flex: none; }

.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn .ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* WhatsApp — verde oficial da marca (#25D366); texto/glifo em navy para contraste AA (~8:1) */
.btn-whatsapp { background: var(--wa); color: var(--navy); border-color: var(--wa); }
.btn-whatsapp:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn-whatsapp .ic-wa { width: 20px; height: 20px; flex: none; fill: var(--navy); }
.btn-lg .ic-wa { width: 22px; height: 22px; }

.btn-outline-light { background: transparent; color: var(--on-navy); border-color: rgba(246,241,230,.4); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-700); }

.btn-sm { min-height: 42px; padding: .55rem 1.05rem; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.8rem; font-size: 1.0625rem; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--line-navy);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--sand); }
.brand-logo { height: 58px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; letter-spacing: .02em; }
.brand-sub { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-soft); }

.main-nav { display: none; }
.main-nav a {
  text-decoration: none; color: var(--on-navy-soft);
  font-size: .92rem; letter-spacing: .01em;
  padding: .35rem 0; position: relative;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--sand); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .btn-sm { display: none; min-height: 40px; padding: .48rem .9rem; font-size: .875rem; }
.header-actions .btn-sm .ic-wa { width: 17px; height: 17px; }

.nav-toggle {
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-navy);
  border-radius: var(--radius); display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--sand); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.header-credential {
  font-size: .72rem; letter-spacing: .04em;
  color: var(--on-navy-soft);
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .35rem 20px;
  border-top: 1px solid var(--line-navy);
}

/* Mobile nav panel */
.main-nav.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy-800);
  border-bottom: 1px solid var(--line-navy);
  padding: .5rem 20px 1rem;
}
.main-nav.open a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1rem; }
.main-nav.open a:last-child { border-bottom: 0; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background-color: var(--navy);
  background-image: url("/images/bg-heroi.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--on-navy);
  border-bottom: 1px solid var(--line-navy);
  padding: var(--s6) 0 var(--s5);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--s3);
}
.eyebrow-line { width: 28px; height: 1px; background: var(--gold); display: inline-block; }

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 7.5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 16ch;
}
.hero-sub {
  margin-top: var(--s3);
  font-size: 1.0625rem;
  color: var(--on-navy);
  max-width: 54ch;
}
.hero-filter {
  display: flex; align-items: baseline; gap: .6rem;
  margin-top: var(--s3);
  padding: .85rem 1rem;
  border: 1px solid var(--line-navy);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  font-size: .98rem;
  color: var(--sand);
  background: rgba(255,255,255,.02);
  max-width: 52ch;
}
.hero-filter .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-1px); }

.hero-cta { display: flex; flex-direction: column; gap: .75rem; margin-top: var(--s4); }
.hero-credential { margin-top: var(--s3); font-size: .82rem; color: var(--on-navy-soft); letter-spacing: .02em; }

.hero-aside { display: none; }

/* ===========================================================
   SECTIONS — base
   =========================================================== */
.section { padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); border-bottom-color: var(--line-navy); }

.kicker {
  display: flex; align-items: center; gap: .7rem;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
  margin-bottom: var(--s2);
}
.kicker .num {
  font-variant-numeric: tabular-nums;
  color: var(--gold); font-weight: 600;
}
.kicker-light { color: var(--on-navy-soft); }

.section-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.65rem, 5vw, 2.4rem);
  line-height: 1.15; letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 22ch;
}
.section-title-light { color: var(--white); }

.section-lead {
  margin-top: var(--s3);
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.section-lead-light { color: var(--on-navy); }

/* ---------- Problema cards ---------- */
.card-grid { display: grid; gap: 1px; margin-top: var(--s5); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--white); padding: var(--s4) var(--s3); }
.card-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s2); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Serviços ---------- */
.service-list { margin-top: var(--s5); border-top: 1px solid var(--line); }
.service-row { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.service-row dt { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.service-row dd { margin-top: .25rem; color: var(--ink-soft); }

/* ---------- Especialidades (navy) ---------- */
.chips-label {
  margin-top: var(--s5); margin-bottom: var(--s2);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  border: 1px solid var(--line-navy);
  color: var(--sand);
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .92rem;
}
.chips-areas li { border-color: rgba(201,162,39,.5); color: var(--gold-soft); }
.band-cta { margin-top: var(--s5); }

/* ---------- Responsável técnica ---------- */
.responsavel-grid { display: grid; gap: var(--s4); }
.responsavel-photo { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sand-2); max-width: 360px; }
.responsavel-photo img { width: 100%; height: auto; }
.credential-block {
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--navy); font-weight: 500;
  letter-spacing: .01em;
}

/* ---------- Como funciona ---------- */
.steps { margin-top: var(--s5); position: relative; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); padding-bottom: var(--s4); position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 0;
  width: 1px; background: var(--line);
}
.step-n {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
  background: var(--white); position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}
.section-sand .step-n { background: var(--sand); }
.step h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.step p { color: var(--ink-soft); margin-top: .15rem; }

/* ---------- Diferenciais ---------- */
.diff-grid { display: grid; gap: var(--s2); margin-top: var(--s5); }
.diff-grid li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: var(--s2) 0; border-bottom: 1px solid var(--line);
  font-size: 1.02rem; color: var(--navy);
}
.ic-check { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: left; position: relative; overflow: hidden; }
.final-buttons { display: flex; flex-direction: column; gap: .75rem; margin-top: var(--s4); }
.final-note { margin-top: var(--s4); font-size: .82rem; color: var(--on-navy-soft); border-top: 1px solid var(--line-navy); padding-top: var(--s3); max-width: 60ch; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--navy-800); color: var(--on-navy-soft); padding: var(--s5) 0 var(--s4); }
/* respiro para o botão flutuante de WhatsApp não cobrir o copyright (mobile) */
@media (max-width: 1023px) { .site-footer { padding-bottom: 88px; } }
.footer-grid { display: grid; gap: var(--s4); }
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-logo { width: 210px; height: auto; max-width: 100%; }
.footer-id { font-size: .92rem; color: var(--sand); line-height: 1.5; }
.footer-id strong { font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); font-weight: 600; }
.footer-h { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: var(--s2); }
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a, .link-btn {
  color: var(--on-navy-soft); text-decoration: none;
  background: none; border: none; padding: 0; font-size: .95rem;
  transition: color .2s var(--ease); text-align: left;
}
.footer-col a:hover, .link-btn:hover { color: var(--gold); }
.footer-col p { font-size: .95rem; color: var(--on-navy-soft); }

.footer-bottom {
  margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid var(--line-navy);
  display: grid; gap: .6rem;
}
.footer-disclaimer { font-size: .82rem; color: var(--on-navy-soft); max-width: 70ch; }
.footer-copy { font-size: .8rem; color: #6b7690; }

/* ===========================================================
   FLOATING WHATSAPP
   =========================================================== */
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(10,31,61,.32);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background-color .2s var(--ease);
}
.whatsapp-float:hover { background: var(--wa-dark); }
.whatsapp-float.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--navy); }

/* ===========================================================
   MODAIS
   =========================================================== */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(10,31,61,.55); backdrop-filter: blur(2px); animation: fade .2s var(--ease); }
.modal-panel {
  position: relative; width: 100%; max-width: 640px;
  max-height: 88vh; overflow-y: auto;
  background: var(--white); color: var(--ink);
  border-radius: 12px 12px 0 0;
  padding: var(--s4) var(--s3) var(--s4);
  box-shadow: 0 -8px 40px rgba(0,0,0,.25);
  animation: slideUp .28s var(--ease);
}
.modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 40px; height: 40px; border: none; background: transparent;
  font-size: 1.8rem; line-height: 1; color: var(--ink-soft); border-radius: var(--radius);
}
.modal-close:hover { color: var(--navy); background: var(--sand); }
.modal-title { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--navy); margin-bottom: var(--s2); padding-right: 2rem; }
.modal-body h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); margin-top: var(--s3); margin-bottom: .25rem; font-weight: 600; }
.modal-body p { font-size: .98rem; color: var(--ink-soft); margin-bottom: .6rem; }
.modal-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.modal-meta { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: .85rem; }
.modal-actions { display: flex; gap: .6rem; margin-top: var(--s3); flex-wrap: wrap; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

/* ===========================================================
   COOKIE BAR
   =========================================================== */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120;
  background: var(--navy); color: var(--sand);
  border: 1px solid var(--line-navy);
  border-radius: 10px;
  padding: var(--s3);
  display: grid; gap: var(--s2);
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  animation: slideUp .3s var(--ease);
}
.cookie-bar[hidden] { display: none; }
.cookie-text { font-size: .92rem; color: var(--on-navy); }
.link-inline { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; display: inline; }
.link-inline:hover { color: var(--gold-soft); }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-actions .btn { flex: 1; }

/* ===========================================================
   RESPONSIVE — tablet
   =========================================================== */
@media (min-width: 680px) {
  .wrap { padding-inline: 32px; }
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { flex: 0 0 auto; }
  .final-buttons { flex-direction: row; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .diff-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
  .responsavel-grid { grid-template-columns: 320px 1fr; align-items: center; }
  .responsavel-photo { max-width: none; }
  .cookie-bar { grid-template-columns: 1fr auto; align-items: center; left: 16px; right: 16px; bottom: 16px; }
  .cookie-actions .btn { flex: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .modal { align-items: center; }
  .modal-panel { border-radius: 12px; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* ===========================================================
   RESPONSIVE — desktop
   =========================================================== */
@media (min-width: 1024px) {
  /* nav sempre estática no desktop — neutraliza o estado .open do mobile */
  .main-nav,
  .main-nav.open {
    display: flex; gap: 1.3rem;
    position: static; flex-direction: row;
    background: transparent; border-bottom: 0; padding: 0;
  }
  .main-nav.open a { padding: .35rem 0; border-bottom: 0; font-size: .92rem; }
  .nav-toggle { display: none; }
  .header-actions .btn-sm { display: inline-flex; }
  .header-credential { text-align: right; }

  .hero { padding: var(--s7) 0 var(--s6); }
  .hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s5); align-items: center; }
  .hero-aside { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
  .hero-emblem { width: 180px; height: 180px; opacity: .92; }
  .hero-rule { width: 1px; height: 90px; background: linear-gradient(var(--gold), transparent); }
  .whatsapp-float { display: none; }  /* desktop tem CTA no header */
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .main-nav { gap: 1.1rem; }
}

/* ===========================================================
   DIFERENCIAL — "Dossiê técnico-pericial"
   =========================================================== */

/* ---------- Barra de progresso de leitura ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

/* ---------- Índice lateral / fólios (desktop) ---------- */
.folio-rail { display: none; }
@media (min-width: 1280px) {
  .folio-rail {
    display: block; position: fixed; z-index: 80;
    right: 22px; top: 50%; transform: translateY(-50%);
  }
  .folio-rail ol { display: grid; gap: .55rem; }
  .folio-rail a {
    display: flex; align-items: center; gap: .6rem;
    text-decoration: none; color: var(--ink-soft);
    justify-content: flex-end;
  }
  .folio-rail .fr-num {
    font-size: .72rem; font-variant-numeric: tabular-nums; letter-spacing: .08em;
    color: #9aa3b4; transition: color .2s var(--ease);
  }
  .folio-rail .fr-label {
    font-size: .74rem; letter-spacing: .02em; color: var(--ink-soft);
    max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    transition: max-width .3s var(--ease), opacity .25s var(--ease);
    text-align: right;
  }
  .folio-rail::after {
    content: ""; position: absolute; right: 4px; top: -14px; bottom: -14px;
    width: 1px; background: var(--line); z-index: -1;
  }
  .folio-rail a::after {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    border: 1px solid #b9c0cd; background: var(--white); flex: none;
    transition: all .2s var(--ease);
  }
  .folio-rail a:hover .fr-label,
  .folio-rail a.active .fr-label { max-width: 140px; opacity: 1; }
  .folio-rail a:hover .fr-num { color: var(--gold); }
  .folio-rail a.active .fr-num { color: var(--gold); font-weight: 600; }
  .folio-rail a.active::after { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
  /* quando a seção ativa é navy, o trilho fica claro para contraste */
  .folio-rail.on-dark a .fr-num { color: #8893a6; }
  .folio-rail.on-dark a .fr-label { color: #aeb9cc; }
  .folio-rail.on-dark::after { background: rgba(255,255,255,.14); }
  .folio-rail.on-dark a::after { border-color: #5b6883; background: var(--navy); }
  .folio-rail.on-dark a.active .fr-num { color: var(--gold); }
  .folio-rail.on-dark a.active::after { background: var(--gold); border-color: var(--gold); }
}

/* ---------- Legenda de fólio por seção ---------- */
.folio {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: var(--s5); padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: #9aa3b4; font-variant-numeric: tabular-nums;
}
.folio-light { border-top-color: var(--line-navy); color: #6f7d96; }

/* ---------- Hero: marca d'água + emblema que se desenha ---------- */
.hero { position: relative; overflow: hidden; }
.hero-watermark {
  position: absolute; pointer-events: none; z-index: 0;
  right: -8%; top: 50%; transform: translateY(-50%);
  width: min(560px, 80%); aspect-ratio: 1;
  background: url("/images/logo-lior.svg") no-repeat center / contain;
  opacity: .05;
}
.final-watermark { opacity: .06; right: -6%; }
.hero .wrap, .final-inner { position: relative; z-index: 1; }

.hero-docline {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--on-navy-soft); margin-bottom: var(--s3);
  padding-bottom: var(--s2); border-bottom: 1px solid var(--line-navy);
}

.hero-emblem-svg { width: 190px; height: 190px; }
.hero-emblem-svg .draw > * {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: drawIn 1.6s var(--ease) forwards;
}
.hero-emblem-svg .draw > *:nth-child(n+5) { animation-delay: .25s; }
.hero-emblem-svg .draw > *:nth-child(n+9) { animation-delay: .5s; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.hero-aside-cap {
  font-family: var(--font-serif); font-style: italic;
  font-size: .98rem; color: var(--on-navy-soft); text-align: center; line-height: 1.4;
}

/* ---------- Selo / carimbo de responsabilidade ---------- */
.responsavel-photo { position: relative; }
.selo-stamp {
  position: absolute; right: -14px; bottom: -14px;
  width: 104px; height: 104px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 10px rgba(10,31,61,.18));
  background: var(--sand); border-radius: 50%; padding: 4px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card-grid.reveal.in .card { animation: cardUp .5s var(--ease) both; }
.card-grid.reveal.in .card:nth-child(2) { animation-delay: .08s; }
.card-grid.reveal.in .card:nth-child(3) { animation-delay: .16s; }
@keyframes cardUp { from { opacity: .2; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-emblem-svg .draw > * { stroke-dashoffset: 0; animation: none; }
  .card-grid.reveal.in .card { animation: none; }
}

@media (min-width: 680px) {
  .selo-stamp { width: 120px; height: 120px; right: -22px; bottom: -22px; }
}

/* ===========================================================
   OUSADIA — layout editorial, números gigantes, emblema vivo,
   processo em scroll horizontal
   =========================================================== */

/* ---------- Tipografia maior ---------- */
.hero h1 { font-size: clamp(2.4rem, 8.5vw, 4.2rem); letter-spacing: -0.02em; }
.section-title { font-size: clamp(1.9rem, 5.5vw, 3rem); }

/* ---------- Números-fólio gigantes (marca d'água editorial) ---------- */
.section.has-ghost { position: relative; overflow: clip; }
.section.has-ghost > .wrap { position: relative; z-index: 1; }
.ghost-num {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  top: clamp(-30px, -2vw, 0px); right: clamp(-20px, 1vw, 48px);
  font-family: var(--font-serif); font-weight: 600; line-height: .74;
  font-size: clamp(170px, 30vw, 440px);
  color: rgba(10, 31, 61, .045);
}
.ghost-num-light { color: rgba(201, 162, 39, .07); }

/* ---------- Herói: emblema como peça central viva ---------- */
.hero-aside { perspective: 900px; }
.emblem-stage {
  position: relative; display: grid; place-items: center;
  width: clamp(220px, 24vw, 320px); aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
}
.hero-emblem-svg { width: 100%; height: 100%; position: relative; z-index: 2; }
.emblem-balance { transform-origin: 24px 13px; animation: sway 7s ease-in-out infinite 1.6s; }
@keyframes sway { 0%, 100% { transform: rotate(-3.2deg); } 50% { transform: rotate(3.2deg); } }

.emblem-ring {
  position: absolute; inset: 50% auto auto 50%;
  width: 118%; height: 118%; transform: translate(-50%, -50%);
  border: 1px solid var(--line-navy); border-radius: 50%; z-index: 1;
}
.emblem-ring::before, .emblem-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
}
.emblem-ring::before {
  inset: -9%; border: 1px dashed rgba(201,162,39,.28);
  animation: spin 40s linear infinite;
}
.emblem-ring::after {
  inset: 14%; border: 1px solid rgba(201,162,39,.14);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Processo em scroll horizontal (sticky) ---------- */
.process-h { position: relative; background: var(--navy); color: var(--on-navy); }
.process-sticky { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6) 0; }
.process-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); }
.process-head .kicker { color: var(--on-navy-soft); }
.process-head .kicker .num { border-right-color: var(--line-navy); }
.process-head .section-title { color: var(--white); }
.process-hint { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; display: none; }
.process-hint .arrow { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

.process-viewport { width: 100%; }
.process-track {
  display: flex; flex-direction: column; gap: var(--s2);
  padding-inline: 20px;
}
.process-card {
  background: var(--navy-800); border: 1px solid var(--line-navy);
  border-radius: 10px; padding: var(--s4);
  display: flex; flex-direction: column;
}
.pc-n {
  font-family: var(--font-serif); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 2.6rem; color: var(--gold); line-height: 1;
  padding-bottom: var(--s2); margin-bottom: var(--s2);
  border-bottom: 1px solid var(--line-navy);
}
.process-card h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; color: var(--white); margin-bottom: .35rem; }
.process-card p { color: var(--on-navy-soft); font-size: 1rem; }

.process-foot { display: flex; flex-direction: column; gap: var(--s2); }
.process-progress { height: 2px; background: var(--line-navy); border-radius: 2px; overflow: hidden; }
.process-progress span { display: block; height: 100%; width: 0%; background: var(--gold); }

@media (min-width: 900px) {
  .process-h { height: 360vh; }
  .process-sticky {
    position: sticky; top: 0; height: 100vh; justify-content: center;
    overflow: hidden; padding: 0;
  }
  .process-head, .process-foot { padding-inline: max(20px, calc((100vw - var(--maxw)) / 2)); }
  .process-viewport { overflow: hidden; position: relative; }
  /* trilho-linha do tempo */
  .process-viewport::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%;
    height: 1px; background: var(--line-navy);
  }
  .process-track {
    flex-direction: row; gap: 28px; flex-wrap: nowrap;
    padding-inline: max(20px, calc((100vw - var(--maxw)) / 2));
    transition: transform .1s linear;
  }
  .process-card {
    flex: 0 0 clamp(320px, 30vw, 420px); min-height: 300px;
    position: relative; z-index: 1;
  }
  .process-hint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .emblem-balance, .emblem-ring::before, .process-hint .arrow { animation: none; }
  .process-h { height: auto; }
  .process-sticky { position: static; height: auto; padding: var(--s6) 0; }
  .process-track { flex-direction: column; transform: none !important; }
  .process-viewport::before { display: none; }
}

/* ===========================================================
   Herói com BG institucional (arte navy + emblema à direita)
   =========================================================== */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: block; }
.hero-copy { position: relative; z-index: 1; max-width: 40ch; }

/* overlay para legibilidade do texto à esquerda */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(95deg, rgba(10, 31, 61, .92) 26%, rgba(10, 31, 61, .5) 54%, rgba(10, 31, 61, 0) 80%);
}
.hero > .wrap { position: relative; z-index: 1; }

/* mobile: BG vertical */
@media (max-width: 759px) {
  .hero { background-image: url("/images/bg-heroi-mobile.jpg"); background-position: center top; }
  .hero::before {
    background: linear-gradient(180deg, rgba(10, 31, 61, .55) 0%, rgba(10, 31, 61, .8) 45%, rgba(10, 31, 61, .92) 100%);
  }
}

@media (min-width: 900px) {
  .hero { min-height: 82vh; display: flex; align-items: center; padding-block: 0; }
  .hero > .wrap { width: 100%; padding-block: var(--s7); }
  .hero-copy { max-width: 56%; }
}

@media (min-width: 1280px) {
  .hero-copy { max-width: 52%; }
}
