/* ==========================================================================
   Alves Advocacia — folha de estilo
   --------------------------------------------------------------------------
   Linguagem visual
   · Geometria tirada do monograma: cantos chanfrados no ângulo dos pés do "A".
     Nada de cartões arredondados.
   · Libre Caslon Display só em títulos grandes; Public Sans (desenhada para
     governo) em todo o resto.
   · Dourado é luz e acento. Texto corrido nunca é dourado.
   · Nenhum conteúdo depende de JavaScript para aparecer: as animações partem
     do estado final e só escondem algo depois que o GSAP carregou.

   Índice
   1  Tokens            8  Contracheque          15 Formulário
   2  Base              9  Etapas                16 Contato
   3  Tipografia        10 Sobre (home)          17 Blog
   4  Layout            11 Mapa                  18 Texto corrido
   5  Botões e links    12 Dúvidas               19 Rodapé, WhatsApp, cookies
   6  Header e menu     13 Chamada final         20 Movimento
   7  Hero              14 Páginas internas      21 Responsivo · 22 Impressão
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --night:    #091428;
  --navy:     #0F1F3D;
  --navy-800: #16294C;
  --navy-700: #1E3663;
  --gold:     #D9A441;
  --gold-300: #ECCB82;
  /* Dourado escurecido para texto e linhas sobre fundo claro.
     #D9A441 sobre branco não passa no AA; este tom passa com folga. */
  --gold-ink: #7A5712;

  --paper: #FFFFFF;
  --mist:  #EEF1F5;

  --ink:       #0F1F3D;
  --ink-soft:  #3B465E;
  --ink-mute:  #5D6780;
  --on-dark:      rgba(255, 255, 255, 0.86);
  --on-dark-mute: rgba(255, 255, 255, 0.64);

  --rule:      rgba(15, 31, 61, 0.14);
  --rule-strong: rgba(15, 31, 61, 0.28);
  --rule-dark: rgba(217, 164, 65, 0.24);
  --rule-dark-soft: rgba(255, 255, 255, 0.10);

  /* Metal: as três faixas têm a mesma cor nas pontas, então tanto a posição
     0% quanto 100% mostram ouro "em repouso"; o brilho passa pelo meio. */
  --gold-metal: linear-gradient(105deg,
      #B8862F 0%, #E2B456 16%, #C9973A 33%,
      #E9C676 45%, #FFF0C4 50%, #E9C676 55%,
      #C9973A 67%, #E2B456 84%, #B8862F 100%);

  /* Chanfro do logo */
  --cut: 14px;
  --cut-lg: 28px;
  --clip-cut: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  --clip-cut-lg: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%);

  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
/* A Caslon Display só tem peso regular: sem isso o navegador inventaria um
   negrito falso nos títulos. Títulos em sans declaram o próprio peso. */
h1, h2, h3, h4 { font-weight: 400; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: var(--night); }

/* Lenis (rolagem suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* --------------------------------------------------------------------------
   3. Tipografia
   Escala: 14 · 17 · 21 · 28 · 36 · 48 · 60 · 84
   -------------------------------------------------------------------------- */
.display,
.title,
.title-sm {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  font-kerning: normal;
  /* Linhas de comprimento parecido: sem palavra órfã no fim do título */
  text-wrap: balance;
}
/* Trecho em destaque nos títulos: itálico caligráfico da Caslon (família
   irmã da dos títulos), em dourado. O itálico da Caslon Text tem olho maior
   que a Display, por isso o tamanho um pouco menor para alinhar as alturas. */
.display em,
.title em,
.title-sm em {
  font-family: "Libre Caslon Text", var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.94em;
  letter-spacing: -0.02em;
  color: var(--gold-ink);
}
.on-dark .display em,
.on-dark .title em,
.on-dark .title-sm em,
.hero .display em,
.page-head .display em { color: var(--gold-300); }

.lead,
.statement,
.step__text,
.career__rights { text-wrap: pretty; }

.display {
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
}
.title {
  font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
}
.title-sm {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.006em;
}

.lead {
  font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}

/* Parágrafo institucional em destaque: maior que o texto comum, mas na
   mesma fonte das descrições (a serifa fica só nos títulos) */
.statement {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 1.02rem + 0.75vw, 1.6rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--ink);
  max-width: 34em;
}

.label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-mute);
}

.small { font-size: 0.9375rem; line-height: 1.6; }

/* Em fundo escuro */
.on-dark { color: var(--on-dark); }
.on-dark .display,
.on-dark .title,
.on-dark .title-sm,
.on-dark .statement { color: var(--paper); }
.on-dark .lead { color: var(--on-dark); }
.on-dark .label { color: var(--gold-300); }

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

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 148px);
}
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.bg-night { background: var(--night); }
.bg-navy  { background: var(--navy); }
.bg-paper { background: var(--paper); }
.bg-mist  { background: var(--mist); }

/* Grade de 12 colunas */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: clamp(32px, 4vw, 56px);
}

/* Divisões recorrentes da grade (colapsam em coluna única no celular) */
.col-head  { grid-column: 1 / span 4; }
.col-body  { grid-column: 6 / span 7; }
.col-media { grid-column: 1 / span 5; }
.col-side  { grid-column: 7 / span 6; }

/* Abertura de seção: título à esquerda, apoio à direita, alinhados pela base */
.section-open {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.section-open > :first-child { grid-column: 1 / span 7; }
.section-open > :last-child:not(:first-child) { grid-column: 8 / span 5; }

/* --------------------------------------------------------------------------
   5. Botões e links
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 30px;
  border: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  clip-path: var(--clip-cut);
  overflow: hidden;
  transition: color 0.7s var(--ease-in-out);
}
.btn svg { flex: none; }

/* Preenchimento que entra da esquerda no hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right center;
  /* Mais lento e com aceleração suave, para o preenchimento ser visto atravessando o botão */
  transition: transform 0.85s var(--ease-in-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }

/* O chanfro cortaria o contorno externo: o foco fica do lado de dentro */
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }

.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold::before { background: var(--gold-300); }

.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy::before { background: var(--navy-700); }

.btn--line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper); }

.btn--line-light {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}
.btn--line-light::before { background: var(--paper); }
.btn--line-light:hover { color: var(--night); }

.btn--sm { min-height: 46px; padding: 11px 22px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Link textual com sublinhado que cresce */
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 calc(100% - 10px);
  background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease-out), color 0.25s;
}
.link:hover { color: var(--gold-ink); background-size: 0% 1px; background-position: 100% calc(100% - 10px); }
.on-dark .link { color: var(--paper); }
.on-dark .link:hover { color: var(--gold-300); }

.inline-link {
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.on-dark .inline-link { color: var(--gold-300); }

/* --------------------------------------------------------------------------
   6. Header e menu
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -200%;
  z-index: 300;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--night);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--paper);
  transition: background-color 0.4s var(--ease-out),
              transform 0.5s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(9, 20, 40, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--rule-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 48px; }
.brand img { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav__list { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 18px); }
.nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__list a:hover { color: var(--paper); }
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__list a[aria-current="page"] { color: var(--paper); }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before {
  display: block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), width 0.4s var(--ease-out);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  width: 16px;
}
.nav-toggle span { transform: translateY(-3.5px); }
.nav-toggle[aria-expanded="true"] span { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { top: 0; width: 26px; transform: rotate(-90deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    /* top/left/right + altura explícita: com o header rolado, o backdrop-filter
       transforma o header em bloco de contenção e um inset:0 prenderia o painel
       dentro da faixa do cabeçalho. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 36px;
    background: var(--night);
    overflow-y: auto;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease-in-out), visibility 0s linear 0.6s;
  }
  .nav.is-open {
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.6s var(--ease-in-out), visibility 0s;
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--rule-dark-soft); overflow: hidden; }
  .nav__list a {
    width: 100%;
    min-height: 64px;
    padding-inline: 0;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem);
    color: var(--paper);
    transform: translateY(105%);
    transition: transform 0.6s var(--ease-out), color 0.25s;
    transition-delay: calc(0.12s + var(--i, 0) * 0.05s);
  }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--gold-300); }
  .nav.is-open .nav__list a { transform: none; }
  .nav__cta { align-self: flex-start; }

  /* Menu aberto: header sólido e sem filtro (alguns navegadores móveis
     compõem mal um painel opaco dentro de um elemento filtrado). */
  body.is-locked .site-header {
    background: var(--night);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(20px, 4.5vh, 56px));
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}

/* Luz de parede sobre o monograma, como no mockup da marca */
.hero::before {
  content: "";
  position: absolute;
  top: 4%;
  right: -8%;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(217, 164, 65, 0.15), rgba(30, 54, 99, 0.35) 55%, transparent);
  pointer-events: none;
}

.hero__body {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
  padding-bottom: clamp(28px, 4.5vh, 56px);
}

.hero__text { grid-column: 1 / span 8; }
.hero .display { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 4.75rem); }
.hero__kicker {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gold-300);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero__text .display { color: var(--paper); max-width: 13em; }
.hero__text .lead { margin-top: clamp(22px, 3.2vh, 34px); max-width: 30em; color: var(--on-dark); }
.hero__text .actions { margin-top: clamp(28px, 4.4vh, 44px); }

.hero__mark {
  grid-column: 9 / span 4;
  justify-self: end;
  width: 100%;
  max-width: 340px;
}

/* Notebooks baixos (1366×768, 1280×720): o hero inteiro, com a faixa de
   dados, ainda cabe na primeira tela */
@media (min-width: 861px) and (max-height: 820px) {
  .hero .display { font-size: clamp(2.4rem, 0.8rem + 3.9vw, 3.9rem); }
  .hero__text .lead { font-size: 1.0625rem; }
  .hero__mark { max-width: 270px; }
}

/* Monograma em camadas: pernas do "A" e espada, pintadas em metal pela máscara */
.mark {
  position: relative;
  width: 100%;
  aspect-ratio: 704 / 827;
}
.mark__layer {
  position: absolute;
  inset: 0;
  background: var(--gold-metal);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.mark__legs {
  -webkit-mask-image: url("../images/marca-pernas.png");
  mask-image: url("../images/marca-pernas.png");
}
.mark__sword {
  -webkit-mask-image: url("../images/marca-espada.png");
  mask-image: url("../images/marca-espada.png");
}

/* Espada que sai do monograma ao rolar e atravessa a tela.
   Criada pelo JavaScript; sem GSAP ou com movimento reduzido, nunca aparece.
   É desenhada no tamanho final e reduzida no início, para não ficar borrada. */
.sword-fly {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
  transform-origin: 50% 50%;
  will-change: transform;
}
@media (min-width: 861px) {
  /* Sombra no conjunto já mascarado: dá volume quando passa sobre fundo claro */
  .sword-fly { filter: drop-shadow(0 28px 36px rgba(9, 20, 40, 0.32)); }
}

/* Cards de dados do escritório (seção "Dedicados a quem serve Minas Gerais").
   Ao passar o mouse: o card cresce e uma luz dourada segue o cursor. */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-bottom: clamp(36px, 4.5vw, 64px);
  /* sombra dos três cards (o chanfro de cada um cortaria um box-shadow) */
  filter: drop-shadow(0 2px 3px rgba(9, 20, 40, 0.08)) drop-shadow(0 14px 26px rgba(9, 20, 40, 0.14));
}
.fact {
  --glow: rgba(217, 164, 65, 0.26);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: clamp(20px, 2.2vw, 30px);
  background: var(--night);
  clip-path: var(--clip-cut);
  transition: transform 0.55s var(--ease-out);
}
.fact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
/* Fio dourado no topo, que se acende no hover */
.fact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.fact:hover { transform: scale(1.05); z-index: 2; }
.fact:hover::before { opacity: 1; }
.fact:hover::after { transform: scaleX(1); }

.fact__value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.7rem + 2.2vw, 3.6rem);
  line-height: 1;
  color: var(--gold-300);
  font-variant-numeric: lining-nums tabular-nums;
}
.fact__value--text { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; }
.fact__label {
  display: block;
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--on-dark-mute);
}

/* --------------------------------------------------------------------------
   8. Carreiras (lista tipográfica) e contracheque
   -------------------------------------------------------------------------- */
/* Cards das carreiras: grade de tamanhos diferentes.
   ┌───────────┬─────────┬──────┐
   │  Penal    │ Civil   │ PM   │
   │ (destaque)├──────┬──┴──────┤
   │           │ CBM  │ Admin.  │
   └───────────┴──────┴─────────┘ */
.career-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(230px, auto);
  gap: clamp(12px, 1.6vw, 20px);
}
/* Sombra dos cards: fica no <li> porque o chanfro (clip-path) do link cortaria um
   box-shadow. drop-shadow segue o recorte, inclusive o canto cortado. */
.career {
  position: relative;
  filter: drop-shadow(0 2px 3px rgba(9, 20, 40, 0.06)) drop-shadow(0 12px 24px rgba(9, 20, 40, 0.10));
  transition: filter 0.6s var(--ease-out);
}
.career:hover {
  z-index: 2;   /* o card que cresce passa por cima dos vizinhos */
  filter: drop-shadow(0 4px 6px rgba(9, 20, 40, 0.08)) drop-shadow(0 26px 44px rgba(9, 20, 40, 0.20));
}
.career:nth-child(1) { grid-column: 1 / span 5; grid-row: span 2; }
.career:nth-child(2) { grid-column: 6 / span 4; }
.career:nth-child(3) { grid-column: 10 / span 3; }
.career:nth-child(4) { grid-column: 6 / span 3; }
.career:nth-child(5) { grid-column: 9 / span 4; }

.career__link {
  --glow: rgba(217, 164, 65, 0.16);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: clamp(22px, 2.4vw, 34px);
  padding-right: clamp(64px, 6vw, 84px);
  background: var(--mist);
  color: var(--ink);
  clip-path: var(--clip-cut-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out);
}
/* Luz que segue o cursor (--mx/--my vêm do JS) */
.career__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 110%), var(--glow), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
/* Linha dourada que corre pela base */
.career__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.career__link:hover { transform: scale(1.035); }
.career__link:hover::before,
.career__link:focus-visible::before { opacity: 1; }
.career__link:hover::after,
.career__link:focus-visible::after { transform: scaleX(1); }
.career__link:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -6px; }

.career__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.career__rights {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 26em;
}

.career__go {
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  right: clamp(18px, 2vw, 26px);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.career__go svg { transition: transform 0.45s var(--ease-out); }
.career__link:hover .career__go { background: var(--navy); color: var(--paper); box-shadow: none; }
.career__link:hover .career__go svg { transform: translateX(3px); }

/* Destaque: Polícia Penal em azul, com o monograma em marca-d'água */
.career--feature .career__link { --glow: rgba(217, 164, 65, 0.24); background: var(--navy); }
.career--feature .career__name { color: var(--paper); font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.5rem); }
.career--feature .career__rights { color: var(--on-dark); font-size: 1.0625rem; }
.career--feature .career__go { color: var(--gold-300); box-shadow: inset 0 0 0 1px var(--rule-dark); }
.career--feature .career__link:hover .career__go { background: var(--gold); color: var(--night); }
.career__mark {
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 6%;
  width: 64%;
  aspect-ratio: 704 / 827;
  background: var(--gold);
  -webkit-mask: url("../images/marca-alves.png") center / contain no-repeat;
  mask: url("../images/marca-alves.png") center / contain no-repeat;
  opacity: 0.1;
  transition: transform 0.9s var(--ease-out), opacity 0.5s;
}
.career--feature .career__link:hover .career__mark { transform: translateY(-10px); opacity: 0.16; }

/* Bombeiros em dourado */
.career--gold .career__link { --glow: rgba(255, 255, 255, 0.35); background: var(--gold); }
.career--gold .career__link::after { background: var(--night); }
.career--gold .career__name { color: var(--night); }
.career--gold .career__rights { color: rgba(9, 20, 40, 0.8); }
.career--gold .career__go { color: var(--night); box-shadow: inset 0 0 0 1px rgba(9, 20, 40, 0.3); }
.career--gold .career__link:focus-visible { outline-color: var(--night); }
.careers__close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: clamp(24px, 3vw, 36px);
}
.careers__close p { max-width: 36em; color: var(--ink-mute); }

/* Vitrine das ações em destaque (home).
   Desktop com JS (.is-tabs): lista à esquerda, painel à direita; os painéis
   ficam empilhados na mesma célula e só o ativo aparece.
   Sem JS: todos os painéis em grade. Celular: cards que deslizam para o lado. */
.showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 28px;
}
.showcase__list { display: none; }
.showcase__panels {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.showcase__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.is-tabs .showcase__list {
  grid-column: 1 / span 5;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}
.is-tabs .showcase__foot { grid-column: 1 / span 5; grid-row: 2; align-self: end; }
.is-tabs .showcase__panels { grid-column: 7 / span 6; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr; }

.showcase__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 12px 22px 12px 24px;
  /* Abas: cada ação é um bloco arredondado com fundo próprio, mais claro que o azul
     da seção; a aba aberta fica com o fundo transparente (o azul da seção) e borda dourada */
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.65rem);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.35s, background-color 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    padding-left 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.showcase__tab::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}
/* Mesmo "chegar perto" dos cards ao passar o mouse */
.showcase__tab:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.025);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
}
.showcase__tab[aria-selected="true"] {
  color: var(--paper);
  padding-left: 34px;
  background: transparent;
  border-color: rgba(217, 164, 65, 0.55);
}
.showcase__tab[aria-selected="true"]::before { transform: scaleY(1); }
.showcase__tab:focus-visible { outline-offset: 3px; }
.showcase__chev {
  flex: none;
  color: var(--gold-300);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.showcase__tab[aria-selected="true"] .showcase__chev { opacity: 1; transform: none; }

.showcase__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 3.2vw, 52px);
  background: var(--paper);
  color: var(--ink);
  clip-path: var(--clip-cut-lg);
}
/* Monograma em marca-d'água no canto do painel */
.showcase__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -7%;
  top: -6%;
  width: 42%;
  aspect-ratio: 704 / 827;
  background: var(--navy);
  -webkit-mask: url("../images/marca-alves.png") center / contain no-repeat;
  mask: url("../images/marca-alves.png") center / contain no-repeat;
  opacity: 0.05;
}

/* O painel que sai some na hora; só o que entra é animado. Uma fusão
   cruzada deixaria os textos dos dois painéis sobrepostos durante a troca. */
.is-tabs .showcase__panel {
  grid-area: 1 / 1;
  min-height: 500px;
  opacity: 0;
  visibility: hidden;
  transition: none;
}
.is-tabs .showcase__panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-out);
}
/* O conteúdo do painel ativo entra em cascata */
.is-tabs .showcase__panel .showcase__top > *,
.is-tabs .showcase__panel .showcase__body > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.is-tabs .showcase__panel.is-active .showcase__top > *,
.is-tabs .showcase__panel.is-active .showcase__body > * { opacity: 1; transform: none; }
.is-tabs .showcase__panel.is-active .showcase__figure { transition-delay: 0.05s; }
.is-tabs .showcase__panel.is-active .showcase__caption { transition-delay: 0.1s; }
.is-tabs .showcase__panel.is-active .showcase__title { transition-delay: 0.14s; }
.is-tabs .showcase__panel.is-active .showcase__desc { transition-delay: 0.18s; }
.is-tabs .showcase__panel.is-active .showcase__actions { transition-delay: 0.22s; }

.showcase__tag { font-size: 0.875rem; font-weight: 600; color: var(--gold-ink); }
.showcase__figure {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 2.6rem + 4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--gold-ink);
  font-variant-numeric: lining-nums;
}
.showcase__figure--text { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 4rem); line-height: 1; }
.showcase__caption { margin-top: 12px; font-size: 1rem; color: var(--ink-mute); max-width: 24em; }
.showcase__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.showcase__desc { margin-top: 14px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); max-width: 32em; }
.showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }

/* Painel claro dentro de seção escura: links voltam à tinta */
.on-dark .showcase__panel .link { color: var(--ink); }
.on-dark .showcase__panel .link:hover { color: var(--gold-ink); }

/* --------------------------------------------------------------------------
   9. Etapas do atendimento
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 40px;
}
.process__aside { grid-column: 1 / span 5; }
.process__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.process__aside .actions { margin-top: 36px; }

/* Contador grande da etapa ativa: só existe com o movimento ligado */
.process__counter {
  display: none;
  align-items: flex-end;
  gap: 18px;
  margin-top: clamp(32px, 5vh, 56px);
}
.has-motion .process__counter { display: flex; }
.process__now {
  position: relative;
  display: block;
  height: 1em;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(6rem, 4rem + 7vw, 10rem);
  line-height: 1;
  color: var(--gold-ink);
}
.process__now span { display: block; }
.process__track {
  position: relative;
  flex: 1;
  max-width: 200px;
  height: 1px;
  margin-bottom: 1.6em;
  background: var(--rule-strong);
}
.process__fill {
  position: absolute;
  inset: 0;
  background: var(--gold-ink);
  transform: scaleX(0.25);
  transform-origin: left;
}
.process__total { margin-bottom: 1.1em; font-size: 0.9375rem; color: var(--ink-mute); white-space: nowrap; }

/* Linha do tempo ao lado das etapas: a linha dourada enche com a rolagem
   (--line vai de 0 a 1 pelo JS) e cada marco acende quando a linha chega
   nele; o da etapa ativa fica maior. Sem movimento: linha cheia, marcos acesos. */
.process__steps {
  --rail: clamp(26px, 3vw, 44px);
  position: relative;
  grid-column: 7 / span 6;
  padding-left: var(--rail);
}
.process__steps::before,
.process__steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}
.process__steps::before { background: var(--rule-strong); }
.process__steps::after {
  background: var(--gold-ink);
  transform-origin: top;
  transform: scaleY(var(--line, 1));
}
.step {
  --step-pad: clamp(28px, 6vh, 64px);
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 20px;
  padding-block: var(--step-pad);
  border-top: 1px solid var(--rule-strong);
  transition: opacity 0.5s var(--ease-out);
}
.step:last-child { border-bottom: 1px solid var(--rule-strong); }

/* Marco da etapa, centrado na linha (largura 2px, marco 14px) */
.step::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail) - 6px);
  top: calc(var(--step-pad) + 12px);
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
  transition: background-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.has-motion .step::before { background: var(--rule-strong); }
.has-motion .step.is-reached::before { background: var(--gold); }
.has-motion .step.is-active::before { transform: scale(1.45); }
.has-motion .step { opacity: 0.32; }
.has-motion .step.is-active { opacity: 1; }
.step__num {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--gold-ink);
}
.step__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
}
.step__text { margin-top: 12px; font-size: 1.125rem; line-height: 1.6; max-width: 30em; }

/* --------------------------------------------------------------------------
   10. Sobre (home)
   -------------------------------------------------------------------------- */
.about { align-items: center; }
.about__media {
  grid-column: 1 / span 5;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: var(--clip-cut-lg);
}
.about__media img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
.about__text { grid-column: 7 / span 6; }
.about__text .statement { margin-top: 28px; }
.signature-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
}
.signature-block__name { font-family: var(--serif); font-size: 1.375rem; color: var(--paper); }
.signature-block__oab { font-size: 0.9375rem; font-weight: 600; color: var(--gold-300); }
.about__text .actions { margin-top: 36px; }

/* --------------------------------------------------------------------------
   11. Mapa
   -------------------------------------------------------------------------- */
.reach { align-items: start; }
.reach__text { grid-column: 1 / span 5; }
.reach__text .lead { margin-top: 24px; }
.reach__map { grid-column: 6 / span 7; }

.city-list {
  columns: 2;
  column-gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--ink-soft);
}
.city-list li { break-inside: avoid; }
.city-list .is-hq { font-weight: 700; color: var(--ink); }
.reach__note { margin-top: 28px; color: var(--ink-mute); }

.map {
  position: relative;
  padding: clamp(14px, 2vw, 28px);
  background: var(--night);
  clip-path: var(--clip-cut-lg);
}
.map svg { width: 100%; height: auto; }
.map__ring { fill: none; stroke: rgba(217, 164, 65, 0.22); stroke-width: 1; stroke-dasharray: 2 6; }
.map__ring-label { fill: rgba(236, 203, 130, 0.55); font: 500 11px var(--sans); letter-spacing: 0.02em; }
.map__dot { fill: var(--gold-300); }
.map__dot-halo { fill: rgba(217, 164, 65, 0.18); }
.map__hq { fill: var(--gold); }
.map__label { fill: rgba(255, 255, 255, 0.78); font: 500 12px var(--sans); }
.map__label--hq { fill: var(--gold-300); font-weight: 700; font-size: 13px; }
/* Mapa interativo: lista e pontos se acendem juntos, com a distância da sede */
.map__dot {
  cursor: pointer;
  stroke: transparent;
  stroke-width: 14;          /* área de toque maior que o ponto */
  transition: fill 0.25s;
}
.map__dot.is-hot { fill: var(--paper); }
.map__focus {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.3);
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.map__focus.is-on { opacity: 1; transform: scale(1); }

.map__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 9px 14px 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 0.2s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.map__tip.is-below { transform: translate(-50%, 14px); }
.map__tip.is-on { opacity: 1; }
.map__tip strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; color: var(--ink); }

.city-btn {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.city-btn:hover,
.city-btn.is-hot { color: var(--ink); text-decoration-color: var(--gold-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.map figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-dark-soft);
  font-size: 0.8125rem;
  color: var(--on-dark-mute);
}

/* --------------------------------------------------------------------------
   12. Dúvidas (acordeão)
   -------------------------------------------------------------------------- */
.faq { align-items: start; }
.faq__aside { grid-column: 1 / span 4; }
.faq__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__aside .lead,
.faq__aside .actions { margin-top: 24px; }
.faq__list { grid-column: 6 / span 7; }

/* Home: título e botão em cima, perguntas em duas colunas logo abaixo */
#duvidas .faq__aside { grid-column: 1 / -1; }
#duvidas .faq__sticky { position: static; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
#duvidas .faq__aside .actions { margin-top: 0; }
#duvidas .faq__list { grid-column: 1 / -1; margin-top: clamp(28px, 3.5vw, 44px); }
.faq__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); align-items: start; }
.faq__cols .accordion__trigger { min-height: 64px; padding: 18px 0; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); }
.faq__cols .accordion__panel > div { padding-right: 48px; font-size: 1rem; }
@media (max-width: 860px) {
  .faq__cols { grid-template-columns: 1fr; }
  .faq__cols .accordion + .accordion { border-top: 0; }
}

.accordion { border-top: 1px solid var(--rule-strong); }
.accordion__item { border-bottom: 1px solid var(--rule-strong); }
.accordion__item h2,
.accordion__item h3 { font: inherit; }
.accordion__trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.25s;
}
.accordion__trigger:hover { color: var(--gold-ink); }
.accordion__icon {
  position: relative;
  width: 36px;
  height: 36px;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-out), background-color 0.35s;
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--navy); box-shadow: none; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { background: var(--paper); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }

.accordion__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.5s var(--ease-out);
}
.accordion__panel > div { padding: 0 60px 28px 0; max-width: 38em; font-size: 1.125rem; }

/* --------------------------------------------------------------------------
   13. Chamada final
   -------------------------------------------------------------------------- */
.closing { padding-block: clamp(96px, 14vw, 200px) clamp(72px, 10vw, 140px); }
.closing .display { max-width: 15em; }
.closing .lead { margin-top: 28px; }
.closing .actions { margin-top: 40px; }
.closing__sign {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   14. Páginas internas
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 120px));
  padding-bottom: clamp(48px, 7vw, 96px);
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: min(60vw, 760px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(217, 164, 65, 0.11), rgba(30, 54, 99, 0.3) 55%, transparent);
  pointer-events: none;
}
.page-head > .container { position: relative; }
.page-head .display { color: var(--paper); max-width: 14em; }
.page-head .lead { margin-top: 28px; max-width: 36em; color: var(--on-dark); }
.page-head .actions { margin-top: 36px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 44px);
  font-size: 0.875rem;
  color: var(--on-dark-mute);
}
.crumbs a { color: var(--on-dark); }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span[aria-hidden] { color: var(--gold); }

/* Serviços: barra de filtros */
.filterbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: top 0.5s var(--ease-out);
}
/* Quando o header some ao rolar, a barra sobe junto */
.header-hidden .filterbar { top: 0; }
.filterbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filters {
  display: flex;
  gap: clamp(8px, 2vw, 28px);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-count { flex: none; font-size: 0.875rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .filter-count { display: none; } }
.filters::-webkit-scrollbar { display: none; }
.filter {
  position: relative;
  flex: none;
  min-height: 60px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color 0.25s;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold-ink);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease-out);
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter:focus-visible { outline-offset: -4px; }

/* Serviços: cada ação */
.entries { border-top: 1px solid var(--rule-strong); }
.entry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 24px;
  padding-block: clamp(40px, 5.5vw, 76px);
  border-bottom: 1px solid var(--rule-strong);
  scroll-margin-top: calc(var(--header-h) + 72px);
}
.entry[hidden] { display: none; }
.entry__head { grid-column: 1 / span 5; }
.entry__tag { display: block; margin-bottom: 14px; font-size: 0.875rem; font-weight: 600; color: var(--gold-ink); }
.entry__head .title-sm { max-width: 12em; }
.entry__body { grid-column: 7 / span 6; }

.terms > div + div { margin-top: 24px; }
.terms dt { font-size: 0.875rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.terms dd { font-size: 1.0625rem; line-height: 1.65; }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
}

.entry__cta { margin-top: 32px; }

.disclaimer {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 22px 26px;
  background: var(--mist);
  border-left: 3px solid var(--gold);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54em;
}

/* Sobre: valores */
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}
.values__item {
  padding: clamp(28px, 3.6vw, 48px) clamp(0px, 3vw, 44px) clamp(28px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--rule-strong);
}
.values__item:nth-child(even) { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--rule-strong); }
.values__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.25rem); color: var(--ink); }
.values__item p { margin-top: 10px; max-width: 26em; }

.prose-cols p + p { margin-top: 1.1em; }

.portrait-panel {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 18%;
  background: var(--night);
  clip-path: var(--clip-cut-lg);
}
.portrait-panel .mark { max-width: 220px; }

.twin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 40px;
}
.twin > div { padding-top: 22px; border-top: 1px solid var(--rule-strong); }
.twin h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--ink); margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   15. Formulário
   -------------------------------------------------------------------------- */
.form-panel {
  padding: clamp(24px, 4vw, 52px);
  background: var(--paper);
  clip-path: var(--clip-cut-lg);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--gold-ink); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230F1F3D' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field input::placeholder { color: var(--ink-mute); opacity: 0.7; }
.field input:hover,
.field select:hover,
.field textarea:hover { box-shadow: inset 0 0 0 1px var(--ink-mute); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 3px rgba(217, 164, 65, 0.35); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #A8402B; background-color: #FCF5F3; }

.field__error { display: none; font-size: 0.8125rem; font-weight: 600; color: #9A3A27; }
.field.has-error .field__error { display: block; }

.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; cursor: pointer; }
.checkbox input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 1px;
  flex: none;
  padding: 0;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--navy);
  box-shadow: none;
}

.form-status {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  border-left: 3px solid;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #EEF6F0; border-color: #2E7D4A; color: #1D4F2E; }
.form-status--err { background: #FCF2EF; border-color: #A8402B; color: #7E2F20; }
.form-status a { font-weight: 700; text-decoration: underline; }

/* --------------------------------------------------------------------------
   16. Contato
   -------------------------------------------------------------------------- */
.contact { align-items: start; }
.contact__channels { grid-column: 1 / span 5; }
.contact__form { grid-column: 7 / span 6; }

.channels { border-top: 1px solid var(--rule-strong); }
.channels > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.contact__wa { margin-top: 28px; }
/* Ícones dos canais (página Contato) */
.channels dt { display: flex; align-items: flex-start; gap: 8px; }
.channels dt .ico { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--gold-ink); }
.channels dt { font-size: 0.875rem; font-weight: 600; color: var(--ink-mute); padding-top: 2px; }
.channels dd { font-size: 1.0625rem; color: var(--ink); }
.channels dd a { transition: color 0.25s; }
.channels dd a:hover { color: var(--gold-ink); }

.map-embed { clip-path: var(--clip-cut-lg); background: var(--mist); }
.map-embed iframe { width: 100%; height: clamp(320px, 42vw, 520px); border: 0; filter: grayscale(0.35) contrast(1.05); }
.map-caption { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   17. Blog (portal) e página de artigo
   -------------------------------------------------------------------------- */

/* Capa desenhada: cor da categoria, monograma em marca-d'água e um número ou
   sigla do tema em dourado. Nenhuma foto de banco de imagem. */
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 16 / 10;
  padding: clamp(16px, 2vw, 26px);
  background: var(--navy);
}
.cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -25%;
  top: -40%;
  width: 85%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(217, 164, 65, 0.22), transparent);
}
.cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5%;
  bottom: -20%;
  width: 44%;
  aspect-ratio: 704 / 827;
  background: var(--gold);
  -webkit-mask: url("../images/marca-alves.png") center / contain no-repeat;
  mask: url("../images/marca-alves.png") center / contain no-repeat;
  opacity: 0.12;
  transition: transform 0.8s var(--ease-out);
}
.cover__cat { font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.cover__fig {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 2rem + 2.2vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--gold-300);
  transition: transform 0.7s var(--ease-out);
}
.cover--deep { background: var(--navy-700); }
.cover--night { background: var(--night); }
.cover--gold { background: var(--gold); }
.cover--gold::before { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.35), transparent); }
.cover--gold::after { background: var(--night); opacity: 0.1; }
.cover--gold .cover__cat { color: rgba(9, 20, 40, 0.72); }
.cover--gold .cover__fig { color: var(--night); }

/* Capa com foto: a imagem cobre a área, um degradê suave no topo garante a
   leitura do selo de categoria, e no hover a foto aproxima devagar */
.cover--photo { padding: 0; }
.cover--photo::before { display: none; }
.cover--photo::after {
  inset: 0;
  z-index: 1;
  width: auto;
  aspect-ratio: auto;
  background: linear-gradient(180deg, rgba(9, 20, 40, 0.5) 0%, rgba(9, 20, 40, 0) 40%, rgba(9, 20, 40, 0) 72%, rgba(9, 20, 40, 0.22) 100%);
  -webkit-mask: none;
  mask: none;
  opacity: 1;
}
.cover--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.cover--photo .cover__cat {
  position: absolute;
  z-index: 2;
  top: clamp(12px, 1.6vw, 18px);
  left: clamp(12px, 1.6vw, 18px);
  padding: 6px 12px 7px;
  background: rgba(9, 20, 40, 0.84);
  color: var(--gold-300);
  font-size: 0.75rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.post-card:hover .cover--photo img,
.post-feature:hover .cover--photo img { transform: scale(1.06); }
.post-card:hover .cover--photo::after,
.post-feature:hover .cover--photo::after { transform: none; }

/* Imagem de abertura dentro do artigo, com crédito da foto */
.article-figure { margin: 0 0 clamp(32px, 4vw, 48px); }
.article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--mist);
  clip-path: var(--clip-cut-lg);
}
.article-figure figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-mute); }
.prose .article-figure + h2 { margin-top: 0; }

/* Categoria e tempo de leitura, separados por um losango dourado */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-ink);
}
.post-meta span + span,
.article-meta span + span { position: relative; padding-left: 14px; }
.post-meta span + span { font-weight: 500; color: var(--ink-mute); }
.post-meta span + span::before,
.article-meta span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Artigo em destaque */
.post-item--feature { margin-bottom: clamp(32px, 4vw, 56px); }
.post-feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 24px;
  align-items: center;
}
.post-feature .cover { grid-column: 1 / span 7; clip-path: var(--clip-cut-lg); }
.post-feature .cover__fig { font-size: clamp(4rem, 2.8rem + 5vw, 8rem); }
.post-feature__body { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 14px; }
.post-feature__flag {
  align-self: flex-start;
  padding: 5px 12px 6px;
  background: var(--gold);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.post-feature__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
  transition: color 0.3s;
}
.post-feature__excerpt { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.post-feature__more {
  align-self: flex-start;
  margin-top: 6px;
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ease-out), color 0.25s;
}
.post-feature:hover .post-feature__title,
.post-feature:hover .post-feature__more { color: var(--gold-ink); }
.post-feature:hover .cover__fig { transform: translateY(-8px) scale(1.04); }
.post-feature:hover .cover::after { transform: translateY(-10px); }
.post-feature:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 6px; }

/* Blog na página inicial: categorias + os artigos mais recentes numa linha só */
.home-blog__filters { margin: clamp(24px, 3vw, 36px) 0 clamp(20px, 2.4vw, 28px); }
.home-blog__grid .post-item:nth-child(n + 4) { display: none; }
.home-blog__more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* Grade de artigos */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px);
}
.post-item { position: relative; }
.post-item:hover { z-index: 2; }
.post-item[hidden] { display: none; }
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  clip-path: var(--clip-cut-lg);
  transition: transform 0.5s var(--ease-out);
}
.bg-paper .post-card { background: var(--mist); }
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px) clamp(26px, 2.8vw, 34px);
}
.post-card__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
  transition: color 0.3s;
}
.post-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.post-card:hover { transform: scale(1.025); }
.post-card:hover .post-card__title { color: var(--gold-ink); }
.post-card:hover .cover__fig { transform: translateY(-4px) scale(1.05); }
.post-card:hover .cover::after { transform: translateY(-8px); }
.post-card:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -4px; }

.blog-empty { padding: 32px 0 8px; font-size: 1.0625rem; color: var(--ink-soft); }

/* Página de artigo ----------------------------------------------------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 130; height: 3px; pointer-events: none; }
.read-progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--read, 0));
}

.article-head .display { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.8rem); max-width: 18em; }
.article-cat { margin-bottom: 18px; font-size: 0.9375rem; font-weight: 600; color: var(--gold-300); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 26px; font-size: 0.9375rem; color: var(--on-dark-mute); }

.article-wrap { padding-top: clamp(48px, 6vw, 88px); }
.article-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 48px;
  align-items: start;
}
.article-body { grid-column: 1 / span 7; font-size: 1.125rem; line-height: 1.75; }
/* A coluna estica até a altura do texto, para o bloco de dentro poder
   acompanhar a rolagem (sticky só se move dentro do próprio pai) */
.article-aside { grid-column: 9 / span 4; align-self: stretch; }
.article-aside__sticky {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.article-aside .toc { position: static; }
.aside-label { display: block; margin-bottom: 12px; font-size: 0.8125rem; font-weight: 700; color: var(--ink-mute); }

.share__row { display: flex; flex-wrap: wrap; gap: 10px; }
.share__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.share__btn:hover { background: var(--navy); color: var(--paper); box-shadow: none; }
.share__btn.is-done { background: var(--gold); color: var(--night); box-shadow: none; }

.aside-action {
  display: block;
  padding: 22px 24px;
  background: var(--navy);
  clip-path: var(--clip-cut);
  transition: transform 0.5s var(--ease-out);
}
.aside-action .aside-label { color: var(--gold-300); }
.aside-action__name { display: block; font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; color: var(--paper); }
.aside-action:hover { transform: scale(1.03); }

.callout {
  margin-top: 40px !important;
  padding: 20px 24px;
  background: var(--mist);
  border-left: 3px solid var(--gold);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.article-cta {
  margin-top: 32px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--night);
  color: var(--on-dark);
  clip-path: var(--clip-cut-lg);
}
.article-cta__title { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; color: var(--paper); }
.article-cta p + p { margin-top: 8px; }
.prose .article-cta .btn { margin-top: 22px; color: var(--night); text-decoration: none; }

/* --------------------------------------------------------------------------
   18. Texto corrido (política)
   -------------------------------------------------------------------------- */
.prose { max-width: 42em; }
.prose h2 {
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h2 + p, .prose h2 + ul { margin-top: 16px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%); }
.prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
/* Elementos que o editor do painel permite: subtítulo menor, lista numerada e citação */
.prose h3 {
  margin-top: clamp(28px, 3vw, 36px);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--ink);
}
.prose h3 + p, .prose h3 + ul, .prose h3 + ol { margin-top: 10px; }
.prose ol { display: grid; gap: 10px; counter-reset: prose-ol; }
.prose ol > li { counter-increment: prose-ol; padding-left: 30px; }
.prose ol > li::before {
  content: counter(prose-ol) ".";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  clip-path: none;
  color: var(--gold-ink);
  font-weight: 600;
}
.prose p + ol, .prose ol + p, .prose ul + ul, .prose p + blockquote, .prose blockquote + p,
.prose ul + h3, .prose ol + h3, .prose p + h3 { margin-top: 14px; }
.prose p + h3, .prose ul + h3, .prose ol + h3 { margin-top: clamp(28px, 3vw, 36px); }
.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  font-family: "Libre Caslon Text", var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink);
}
.prose em { font-style: italic; }

/* Índice lateral de documentos longos */
.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc ol { counter-reset: toc; border-top: 1px solid var(--rule-strong); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a {
  display: flex;
  gap: 14px;
  min-height: 44px;
  align-items: center;
  padding-block: 8px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  transition: color 0.25s, padding-left 0.35s var(--ease-out);
}
.toc a::before { content: counter(toc); min-width: 1.2em; font-family: var(--serif); color: var(--gold-ink); }
.toc a:hover { color: var(--ink); padding-left: 6px; }
@media (max-width: 860px) { .toc { position: static; margin-bottom: 16px; } }

/* --------------------------------------------------------------------------
   19. Rodapé, WhatsApp flutuante e cookies
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--on-dark-mute);
  border-top: 1px solid var(--rule-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 40px;
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
}
.footer-brand { grid-column: 1 / span 5; }
.footer-brand img { width: 168px; }
.footer-brand p {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--paper);
  max-width: 18em;
}
.footer-col { grid-column: span 3; }
.footer-col:last-child { grid-column: 10 / span 3; }
.footer-col h2 { font-size: 0.875rem; font-weight: 600; color: var(--gold-300); margin-bottom: 14px; }
.footer-col li a,
.footer-col li span { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark); transition: color 0.25s; }
.footer-col li a:hover { color: var(--gold-300); }
.footer-col address { margin-top: 14px; font-style: normal; font-size: 0.9375rem; line-height: 1.6; }
/* Ícones dos contatos no rodapé */
.footer-col .ico { flex: none; width: 18px; height: 18px; margin-right: 10px; color: var(--gold); }
.footer-address { display: flex; align-items: flex-start; }
.footer-address .ico { margin-top: 3px; }

.footer-legal {
  position: relative;
  padding-block: 26px 36px;
  font-size: 0.8125rem;
  line-height: 1.7;
}
/* A linha acompanha o conteúdo, não a margem do container */
.footer-legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--rule-dark-soft);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-legal p { max-width: 90ch; }
.footer-credit { margin-right: 72px; color: var(--on-dark-mute); } /* espaço para o botão flutuante do WhatsApp */
.footer-credit a, .footer-credit span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.footer-credit a { color: var(--on-dark-mute); transition: color 0.25s; }
.footer-credit a:hover { color: var(--gold-300); }
.footer-credit strong { font-weight: 600; color: var(--on-dark); }
.footer-credit img { height: 22px; width: auto; opacity: 0.8; transition: opacity 0.3s; }
.footer-credit a:hover img { opacity: 1; }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1FA855;
  color: var(--paper);
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), background-color 0.25s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #178F47; }
.wa-float:focus-visible { outline-offset: 4px; }
@media (min-width: 720px) { .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; } }

.cookie {
  position: fixed;
  z-index: 110;
  left: 12px;
  right: 12px;
  bottom: 88px;
  max-width: 520px;
  padding: 24px;
  background: var(--night);
  color: var(--on-dark);
  border-top: 2px solid var(--gold);
  clip-path: var(--clip-cut);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.cookie.is-visible { opacity: 1; transform: none; }
/* Fechado, o aviso não pode continuar na página: invisível, ele cobria o botão do
   WhatsApp e os links do rodapé e "engolia" os cliques. */
.cookie:not(.is-visible) { pointer-events: none; }
.cookie[hidden] { display: none !important; }
.cookie__title { font-family: var(--serif); font-size: 1.3rem; color: var(--paper); }
.cookie__text { margin-top: 8px; font-size: 0.9375rem; line-height: 1.6; }
.cookie__text a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie__prefs { display: none; margin-top: 18px; border-top: 1px solid var(--rule-dark-soft); }
.cookie__prefs.is-open { display: block; }
.cookie__pref { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark-soft); font-size: 0.9rem; line-height: 1.5; color: var(--on-dark-mute); cursor: pointer; }
.cookie__pref input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--gold); }
.cookie__pref strong { display: block; color: var(--paper); font-size: 0.9375rem; }

/* Desktop: faixa baixa na base da tela, para não cobrir o botão principal do hero */
@media (min-width: 900px) {
  .cookie {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 40px;
    align-items: center;
    padding: 16px var(--gutter);
    clip-path: none;
    border-top-width: 1px;
  }
  .cookie__title { grid-column: 1; font-size: 1.1rem; }
  .cookie__text { grid-column: 1; margin-top: 2px; max-width: 78ch; }
  .cookie__actions { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; flex-wrap: nowrap; }
  .cookie__prefs { grid-column: 1 / -1; }
  .cookie__prefs.is-open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    column-gap: 28px;
    align-items: center;
    margin-top: 14px;
  }
  .cookie__pref { border-bottom: 0; }
  .cookie__prefs .btn { margin-top: 0 !important; width: auto; }

  /* Com a faixa aberta, o botão do WhatsApp sobe para não ficar por baixo */
  body.cookie-open .wa-float { bottom: 112px; }
}

/* --------------------------------------------------------------------------
   20. Movimento
   O conteúdo só fica escondido enquanto a abertura não começa. Um script
   no <head> põe .intro-pending e o tira sozinho depois de 3s, então se o
   GSAP não carregar nada fica invisível.
   -------------------------------------------------------------------------- */
.intro-pending [data-intro] { opacity: 0; }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* Transição entre páginas (View Transitions entre documentos).
   A página antiga sobe como uma cortina, aparece o azul com o monograma, e a
   nova sobe por baixo. O header fica parado por cima.
   Navegadores sem suporte (Firefox, por exemplo) só trocam de página normalmente. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }

::view-transition {
  background: var(--night) url("../images/marca-alves.png") center / 72px auto no-repeat;
}
::view-transition-old(root) {
  animation: vt-curtain-out 0.42s cubic-bezier(0.65, 0, 0.35, 1) both;
}
/* A nova página espera a antiga passar do meio e sobe sem arranque brusco:
   o monograma fica à vista por ~0,3s, e a troca toda leva menos de 1s */
::view-transition-new(root) {
  animation: vt-curtain-in 0.55s cubic-bezier(0.33, 1, 0.68, 1) 0.38s both;
}
@keyframes vt-curtain-out {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 0 100% 0); }
}
@keyframes vt-curtain-in {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* --------------------------------------------------------------------------
   21. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero__text { grid-column: 1 / span 8; }
  .hero__mark { grid-column: 9 / span 4; max-width: 280px; }
  .process__aside { grid-column: 1 / span 5; }
  .process__steps { grid-column: 6 / span 7; }
  .faq__aside { grid-column: 1 / -1; }
  .faq__sticky { position: static; }
  .faq__list { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .section-open > :first-child,
  .section-open > :last-child:not(:first-child),
  .col-head, .col-body, .col-media, .col-side { grid-column: 1 / -1; }
  .portrait-panel { aspect-ratio: 5 / 4; padding: 12%; }

  /* Hero: o monograma sobe para cima do título, menor */
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); }
  .hero__body { align-items: start; padding-bottom: 40px; }
  .hero__mark { grid-column: 1 / -1; grid-row: 1; justify-self: start; max-width: 64px; margin-bottom: 22px; }
  .hero__text { grid-column: 1 / -1; grid-row: 2; }
  .hero::before { top: -10%; right: -40%; width: 120vw; }

  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { min-height: 130px; }
  /* Com número ímpar de cards, o último ocupa a linha inteira */
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Cards: destaque em largura total, os outros dois a dois */
  .career-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .career:nth-child(n) { grid-column: auto; grid-row: auto; }
  .career:nth-child(1) { grid-column: 1 / -1; }
  .career__link { min-height: 200px; }
  .career--feature .career__link { min-height: 300px; }
  .career__mark { width: 46%; right: -4%; }

  /* Vitrine: cards que deslizam para o lado, com o próximo aparecendo na borda */
  .showcase__panels {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .showcase__panels::-webkit-scrollbar { display: none; }
  .showcase__panel { flex: 0 0 84%; scroll-snap-align: start; gap: 24px; }

  .process__aside,
  .process__steps { grid-column: 1 / -1; }
  .process__sticky { position: static; }
  .has-motion .process__counter { display: none; }
  .has-motion .step { opacity: 1; }

  .step { grid-template-columns: 36px minmax(0, 1fr); }

  .about__media { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
  .about__text { grid-column: 1 / -1; }

  .reach__text,
  .reach__map { grid-column: 1 / -1; }

  .entry__head,
  .entry__body { grid-column: 1 / -1; }

  .contact__channels,
  .contact__form { grid-column: 1 / -1; }

  .post-feature .cover,
  .post-feature__body { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-body,
  .article-aside { grid-column: 1 / -1; }
  .article-aside__sticky { position: static; }
  .article-aside .toc { display: none; }

  .footer-brand { grid-column: 1 / -1; }
  .footer-col,
  .footer-col:last-child { grid-column: span 6; }
}

@media (max-width: 560px) {
  /* Título do hero em 4 linhas, para o botão principal caber na primeira tela */
  .hero .display { font-size: clamp(2.1rem, 1.2rem + 4.6vw, 2.6rem); }
  .hero__kicker { margin-bottom: 16px; }

  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .actions { flex-direction: column; align-items: stretch; }
  .cookie__actions .btn { width: auto; }

  .form-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .career-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .career__link { min-height: 170px; }
  .career--feature .career__link { min-height: 260px; }
  .values__item:nth-child(even) { padding-left: 0; border-left: 0; }
  .twin { grid-template-columns: 1fr; }
  .channels > div { grid-template-columns: 1fr; gap: 2px; }
  .accordion__panel > div { padding-right: 0; }
  .city-list { columns: 2; column-gap: 16px; }
  .footer-col,
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* Sem movimento: nada se mexe, tudo no estado final */
@media (min-width: 761px) and (max-width: 860px) {
  .home-blog__grid .post-item:nth-child(n + 3) { display: none; }
}
@media (max-width: 760px) {
  .home-blog__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .home-blog__filters::-webkit-scrollbar { display: none; }
  .home-blog__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    scroll-padding-inline: var(--gutter);
  }
  .home-blog__grid::-webkit-scrollbar { display: none; }
  .home-blog__grid .post-item { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .intro-pending [data-intro] { opacity: 1; }
  .wa-float { transform: none; }
  .nav__list a { transform: none !important; }
}

/* --------------------------------------------------------------------------
   22. Impressão
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .wa-float, .cookie, .nav-toggle, .map-embed, .hero__mark { display: none !important; }
  body { color: #000; background: #fff; }
  .bg-night, .bg-navy, .hero, .page-head { background: #fff !important; color: #000 !important; }
  .hero::before, .page-head::before { display: none; }
  .on-dark .display, .on-dark .title, .hero__text .display, .page-head .display { color: #000 !important; }
}
