/* ==========================================================================
   Bebusiness — sistema visual
   Direção: institucional-editorial. Tipografia faz o trabalho; a cor é escassa;
   o movimento só aparece onde explica ou dá retorno (ver MOTION.md).
   ========================================================================== */

:root {
  /* Cor — derivada do índigo do logotipo (#2D2A77) */
  --ink: #0e1238;          /* texto e fundos escuros */
  --brand: #2d2a77;        /* índigo da marca */
  --brand-600: #3a36a0;
  --sun: #f5b301;          /* acento: usado só para estado (aberto, novo, ação principal) */
  --sun-ink: #3a2a00;
  --paper: #f6f4ef;        /* fundo quente, nunca branco puro em áreas grandes */
  --paper-2: #efece4;
  --card: #ffffff;
  --muted: #5d6182;
  --line: rgba(14, 18, 56, 0.12);
  --line-strong: rgba(14, 18, 56, 0.22);
  --on-dark: #f6f4ef;
  --on-dark-muted: rgba(246, 244, 239, 0.66);
  --line-dark: rgba(246, 244, 239, 0.14);
  --ok: #1f8a5b;

  /* Tipografia */
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --fs-hero: clamp(2.6rem, 1.2rem + 5.4vw, 6.6rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3.35rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Espaço e grid */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(88px, 7vw + 40px, 168px);
  --radius: 18px;
  --radius-sm: 10px;

  /* Movimento (tokens das skills emil-design-eng / animate) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --press: 160ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .muted { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Tipografia ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.04; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 38ch; }
.dark .lead { color: var(--on-dark-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.dark .eyebrow { color: var(--on-dark-muted); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }

/* ---------- Botões ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.975rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform var(--press) var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--ink); color: var(--on-dark); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--ghost { border: 1px solid var(--line-strong); }
.dark .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn--sm { --h: 40px; padding-inline: 16px; font-size: 0.9rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand); }
  .btn--sun:hover { background: #ffc21a; }
  .btn--ghost:hover { border-color: var(--ink); }
  .dark .btn--ghost:hover { border-color: var(--on-dark); }
}
.btn .arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arrow { transform: translateX(3px); }
}

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
}
.link svg { width: 16px; height: 16px; }

/* ---------- Chips de estado ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding-inline: 10px; border-radius: 999px;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted); background: transparent;
}
.chip--live { background: var(--sun); border-color: transparent; color: var(--ink); }
.chip--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--new { background: var(--ink); border-color: transparent; color: var(--on-dark); }
.chip--inc { border-color: rgba(31, 138, 91, 0.35); color: var(--ok); }
.dark .chip { border-color: var(--line-dark); color: var(--on-dark-muted); }
.dark .chip--live { color: var(--ink); }
.dark .chip--new { background: var(--on-dark); color: var(--ink); }

/* ---------- Marca ---------- */
.mark {
  display: inline-block; aspect-ratio: 960 / 548; background: currentColor;
  -webkit-mask: url("../img/be-mark.svg") center / contain no-repeat;
          mask: url("../img/be-mark.svg") center / contain no-repeat;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.site-header.is-stuck {
  background: rgba(246, 244, 239, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); flex: none; }
.brand .mark { width: 44px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.03em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-size: 0.94rem; font-weight: 500; color: var(--muted);
  transition: color 160ms ease;
}
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--sun);
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.header-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform 240ms var(--ease-out), opacity 160ms ease;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 76px 0 0 0; z-index: 49; background: var(--paper);
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; padding-block: 10px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 24px; align-self: stretch; font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; padding-block: 0; border-bottom: 0; }

@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.hero-bg {
  position: absolute; right: -6vw; top: 30%; width: min(58vw, 880px); color: var(--brand); pointer-events: none;
}
.hero-bg > span { display: block; }
.hero-bg .mark { width: 100%; opacity: 0.055; }
.hero .grid { align-items: start; row-gap: 0; position: relative; }
.hero-copy { grid-column: 1 / -1; }
.hero-text { grid-column: 1 / span 6; padding-top: clamp(32px, 4vw, 56px); }
.hero-title { font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: 0.98; margin-top: 28px; }
.hero-title .line { display: block; overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .serif { letter-spacing: -0.02em; font-size: 1.08em; line-height: 0.9; }
.hero-sub { margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-aside { grid-column: 8 / span 5; padding-top: clamp(32px, 4vw, 56px); max-width: 460px; justify-self: end; width: 100%; }

/* Cartão de status do edital vigente */
.status-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(14, 18, 56, 0.04), 0 24px 48px -28px rgba(14, 18, 56, 0.22);
}
.status-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status-card h3 { margin-top: 16px; font-size: 1.15rem; line-height: 1.25; }
.status-card .meta { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); }
.steps { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.steps .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); justify-self: center; }
.steps .is-done .dot { background: var(--ink); border-color: var(--ink); }
.steps .is-now .dot { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.22); }
.steps .is-done { color: var(--muted); }
.steps time { font-size: var(--fs-small); color: var(--muted); }
.latest {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--paper);
  transition: background-color 160ms ease;
}
.latest small { grid-column: 1 / -1; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.latest strong { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.latest svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .latest:hover { background: var(--paper-2); } }
.status-card .link { margin-top: 18px; font-size: 0.92rem; }

/* Fatos */
.facts { border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 112px); }
.facts .grid { row-gap: 0; }
.fact { grid-column: span 3; padding: 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 32px); }
.fact b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.fact span { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Cabeçalho de seção ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.section-head h2 { max-width: 18ch; margin-top: 18px; }

/* ---------- Serviços ---------- */
.services .grid { row-gap: 48px; }
.services-intro { grid-column: 1 / span 5; align-self: start; position: sticky; top: 120px; }
.services-intro h2 { margin-top: 18px; max-width: 14ch; }
.services-intro .lead { margin-top: 24px; }
.services-list { grid-column: 7 / span 6; list-style: none; padding: 0; counter-reset: s; }
.services-list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px 16px; padding-block: 28px; border-top: 1px solid var(--line); }
.services-list li:last-child { border-bottom: 1px solid var(--line); }
.services-list li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: var(--fs-small); color: var(--muted); padding-top: 4px; }
.services-list h3 { grid-column: 2; }
.services-list p { grid-column: 2; color: var(--muted); max-width: 46ch; }

/* ---------- Processos ---------- */
.feature {
  border-radius: calc(var(--radius) + 6px); overflow: clip;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.feature-main { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; border-right: 1px solid var(--line-dark); }
.feature-main h3 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.05; }
.feature-main .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-main .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
.feature-docs { padding: clamp(20px, 3vw, 40px); }
.feature-docs h4 { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 8px; }

.doc-list { list-style: none; padding: 0; }
.doc-list a {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; line-height: 1.35;
  transition: color 150ms ease, background-color 150ms ease;
}
.doc-list svg { width: 18px; height: 18px; opacity: 0.7; }
.doc-list .kind { font-size: var(--fs-micro); color: var(--muted); white-space: nowrap; }
.doc-list .chip { height: 22px; }
.dark .doc-list a { border-color: var(--line-dark); }
.dark .doc-list .kind { color: var(--on-dark-muted); }
@media (hover: hover) and (pointer: fine) {
  .doc-list a:hover { color: var(--brand-600); }
  .dark .doc-list a:hover { color: var(--sun); }
}

.proc-more { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.proc-mini {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); min-height: 168px;
  transition: border-color 160ms ease, transform var(--press) var(--ease-out);
}
.proc-mini:active { transform: scale(0.985); }
.proc-mini .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proc-mini h3 { font-size: 1.1rem; line-height: 1.25; margin-top: auto; }
.proc-mini p { font-size: var(--fs-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .proc-mini:hover { border-color: var(--ink); } }
.dark .proc-mini { background: transparent; border-color: var(--line-dark); }
.dark .proc-mini p { color: var(--on-dark-muted); }
@media (hover: hover) and (pointer: fine) { .dark .proc-mini:hover { border-color: rgba(246, 244, 239, 0.45); } }
.sub-head { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(48px, 5vw, 72px); }

/* ---------- Parceiros ---------- */
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner {
  display: grid; place-items: center; aspect-ratio: 1.5; padding: 14% 18%;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card);
}
.partner img { width: auto; max-height: 92px; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: filter 240ms ease, opacity 240ms ease; }
@media (hover: hover) and (pointer: fine) { .partner:hover img { filter: none; opacity: 1; } }

/* ---------- Integridade ---------- */
.integrity .grid { row-gap: 24px; }
.integrity-head { grid-column: 1 / span 5; }
.integrity-head h2 { margin-top: 18px; }
.integrity-head .lead { margin-top: 24px; }
.integrity-cards { grid-column: 7 / span 6; display: grid; gap: 16px; }
.panel {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-dark);
  transition: border-color 200ms ease, background-color 200ms ease, transform var(--press) var(--ease-out);
}
.panel:active { transform: scale(0.985); }
.panel h3 { font-size: 1.35rem; }
.panel p { grid-column: 1; color: var(--on-dark-muted); font-size: 0.95rem; }
.panel .go { grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.panel .go svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .panel:hover { border-color: rgba(246, 244, 239, 0.4); background: rgba(246, 244, 239, 0.03); }
  .panel:hover .go { background: var(--sun); border-color: var(--sun); color: var(--ink); }
}

/* ---------- Chamada final ---------- */
.cta { text-align: left; }
.cta h2 { font-size: var(--fs-h1); max-width: 18ch; }
.cta .row { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.contact-item { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.contact-item + .contact-item { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-item small { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item p { font-weight: 500; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) { .contact-item a:hover { color: var(--brand-600); } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(64px, 8vw, 120px); overflow: clip; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; color: var(--on-dark); }
.footer-brand .mark { width: 72px; }
.footer-brand p { color: var(--on-dark-muted); max-width: 32ch; font-size: 0.95rem; }
.site-footer h4 { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--on-dark); opacity: 0.86; transition: opacity 150ms ease; }
@media (hover: hover) and (pointer: fine) { .site-footer ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; } }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 24px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--on-dark-muted); }
.footer-word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.06em; line-height: 0.78;
  font-size: clamp(5rem, 22vw, 22rem); color: rgba(246, 244, 239, 0.05); white-space: nowrap; user-select: none;
  margin-bottom: -0.12em;
}

/* ---------- Páginas internas ---------- */
.page-hero { padding-top: clamp(48px, 7vw, 120px); padding-bottom: clamp(40px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 24px; max-width: 16ch; }
.page-hero .lead { margin-top: 28px; max-width: 52ch; }

/* ---------- Formulários ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field label .req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card);
  font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(58, 54, 160, 0.14); }
.field .hint { font-size: var(--fs-micro); color: var(--muted); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: var(--fs-small); color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.form-status { grid-column: 1 / -1; font-size: var(--fs-small); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

/* ---------- Revelação (apenas títulos de seção e blocos-chave) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-expo); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Entrada do hero (uma vez por visita) ---------- */
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.js .hero .line > span { animation: rise 1100ms var(--ease-expo) both; animation-delay: var(--d, 0ms); }
.js .hero [data-enter] { animation: lift 900ms var(--ease-expo) both; animation-delay: var(--d, 0ms); }
.js .hero [data-enter="fade"] { animation-name: fade; animation-duration: 1400ms; animation-timing-function: ease; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .hero-copy, .hero-text, .hero-aside { grid-column: 1 / -1; }
  .hero-aside { max-width: 520px; justify-self: start; }
  .services-intro, .services-list, .integrity-head, .integrity-cards { grid-column: 1 / -1; }
  .services-intro { position: static; }
  .feature { grid-template-columns: 1fr; }
  .feature-main { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .fact { grid-column: span 6; padding-bottom: 20px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proc-more { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item + .contact-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .contact-item { padding-bottom: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-bg { width: 120vw; right: -40vw; top: 0; }
  /* No celular as linhas quebram pelo texto, não pela marcação: entrada por opacidade + subida curta */
  .hero-title .line { display: inline; overflow: visible; }
  .hero-title .line > span { display: inline; }
  .js .hero .line > span { animation-name: lift; animation-duration: 900ms; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Movimento reduzido: sem deslocamento, só opacidade ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero .line > span { animation: none; }
  .js .hero [data-enter] { animation: fade 400ms ease both; animation-delay: 0ms; }
  .js [data-reveal] { transform: none; transition: opacity 400ms ease; }
  .btn:active, .proc-mini:active, .panel:active { transform: none; }
  .mobile-nav { transform: none; }
  html { scroll-behavior: auto; }
}
