/* ==========================================================================
   Beatriz Silva | Advocacia & Consultoria Jurídica — home 2.0
   Base: docs/design-system-bs-advocacia.html
   Composição: abertura tipográfica escura · sobre em marfim · Júri em marinho ·
   áreas em linhas editoriais · conteúdo com destaque + chamadas · contato.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Cor */
  --navy: #101F34;
  --deep: #192C45;
  --night: #0A1524;
  --paper: #F7F2E9;
  --tint: #EFE6D8;
  --white: #FFFCF7;
  --gold: #C4A578;
  --gold-light: #EBD3AC;
  --gold-end: #BB8C50;
  --gold-ink: #75552F;
  --ink: #101F34;
  --muted: #465568;
  --on-dark: #E3DCD0;
  --on-dark-muted: #B9B3A8;
  --line: #DCD0BF;
  --line-dark: rgba(196, 165, 120, .28);

  /* Tipografia */
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .72rem;
  --fs-h3: clamp(1.35rem, 1.1rem + .9vw, 1.75rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);

  /* Espaço e forma */
  --gutter: 24px;
  --wrap: 1180px;
  --section-space: clamp(72px, 9vw, 128px);
  --header-height: 76px;
  --radius: 4px;

  /* Botões */
  --button-height: 56px;
  --button-gradient: linear-gradient(110deg, var(--gold-light) 0%, var(--gold) 55%, #C99E66 100%);
  --button-gradient-hover: linear-gradient(110deg, #F3DFBD 0%, #D0B385 55%, #D2A870 100%);
  --button-pressed: #BC9A6A;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--fs-body)/1.7 var(--sans); }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
h1, h4 { font-family: var(--serif); font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible,
.jury :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 100; padding: 12px 18px;
  background: var(--gold-light); color: var(--navy); font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.eyebrow { font-size: var(--fs-label); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.eyebrow-ink { color: var(--gold-ink); }

.section { padding-block: var(--section-space); }

/* ---------- Botões (3 variantes) ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: var(--button-height); padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 700 .78rem/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}
.btn-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }

/* Primária: degradê dourado discreto, texto marinho (contraste ≥ 5,9:1 em toda a extensão). */
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--button-gradient); color: var(--navy); border-color: #CFAF7E;
  box-shadow: 0 8px 24px rgba(187, 140, 80, .18), inset 0 1px rgba(255, 255, 255, .35);
}
.btn-primary:hover { background: var(--button-gradient-hover); box-shadow: 0 10px 30px rgba(187, 140, 80, .3), inset 0 1px rgba(255, 255, 255, .45); transform: translateY(-1px); }
.btn-primary:hover .btn-icon { transform: translateX(3px); }
/* Brilho que atravessa o botão no hover. */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { background: var(--button-pressed); box-shadow: inset 0 2px 5px rgba(16, 31, 52, .25); transform: translateY(1px); }

/* Secundária: contorno, fundo transparente. */
.btn-secondary { background: transparent; color: var(--navy); border-color: #A58C66; }
.btn-secondary:hover { background: rgba(196, 165, 120, .12); border-color: var(--gold-ink); }
.btn-secondary:active { background: rgba(196, 165, 120, .24); transform: translateY(1px); }
.btn-on-dark { color: var(--paper); border-color: rgba(196, 165, 120, .7); }
.btn-on-dark:hover { background: rgba(196, 165, 120, .12); border-color: var(--gold-light); }
.btn-on-dark:active { background: rgba(196, 165, 120, .22); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .72rem; }

/* Terciária: link com sublinhado e seta. */
.btn-text {
  min-height: 44px; padding: 0; gap: 10px; border: 0; border-radius: 0;
  color: var(--gold-ink); text-decoration: underline; text-decoration-color: rgba(117, 85, 47, .45);
}
.btn-text:hover { text-decoration-color: currentColor; }
.btn-text:hover .btn-icon { transform: translateX(3px); }
.btn-text:active { color: var(--navy); }

/* Link com seta (usado na abertura). */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 .98rem/1.3 var(--sans); color: var(--gold-ink);
  text-decoration: underline; text-decoration-color: rgba(117, 85, 47, .45);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover .btn-icon { transform: translateY(2px); }
.link-arrow-light { color: var(--gold-light); text-decoration-color: rgba(235, 211, 172, .45); }
.link-arrow-light:active { color: var(--white); }
.nowrap { white-space: nowrap; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--paper); border-bottom: 1px solid var(--line-dark); transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(10, 21, 36, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-height); }
.brand { display: grid; line-height: 1.1; text-decoration: none; }
.brand-name { font: 1.4rem var(--serif); letter-spacing: -.01em; }
.brand-sub { margin-top: 4px; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

.site-nav ul { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { display: inline-block; padding: 10px 0; color: var(--on-dark); font-size: .9rem; text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--white); border-bottom-color: var(--gold); }
.nav-contact .btn { color: var(--paper); border-color: rgba(196, 165, 120, .7); }
.nav-contact .btn:hover { background: rgba(196, 165, 120, .14); border-color: var(--gold-light); }

.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px;
  background: transparent; color: var(--paper); border: 1px solid rgba(196, 165, 120, .55); border-radius: var(--radius);
  font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: var(--gold-light); transition: transform .2s, background .2s; }
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 1. Primeira dobra ----------
   Texto sempre sobre marinho sólido (contraste garantido). A foto começa onde o texto termina,
   com uma transição curta na emenda e a luz da estante preservada. */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--paper);
  background: radial-gradient(ellipse 38% 70% at 50% 35%, rgba(155, 121, 92, .16) 0%, transparent 70%), var(--navy);
  min-height: max(560px, min(720px, calc(100svh - var(--header-height))));
  display: grid; align-items: center;
}
.hero-media { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; left: max(46%, calc(50% - 10px)); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 0%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(16, 31, 52, .55) 8%, rgba(16, 31, 52, 0) 24%),
    linear-gradient(0deg, rgba(16, 31, 52, .45) 0%, rgba(16, 31, 52, 0) 22%);
}
.hero-grid { padding-block: clamp(56px, 7vw, 96px); }
.hero-main { max-width: min(540px, calc(50vw - 74px)); }
.hero-title-name {
  display: block; font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem); line-height: 1;
  letter-spacing: -.03em; color: var(--white);
}
.hero-title-practice {
  display: block; margin-top: 14px; max-width: 18em;
  font-size: clamp(1.3rem, .95rem + 1.2vw, 1.95rem); line-height: 1.25; letter-spacing: -.01em; color: var(--on-dark);
}
/* Identificação profissional no topo da abertura. */
.hero-credential { display: inline-grid; gap: 8px; margin-bottom: 22px; font: 600 .74rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.hero-credential-role { padding-bottom: 8px; border-bottom: 1px solid rgba(196, 165, 120, .55); color: var(--on-dark); }
.hero-credential-oab { color: var(--gold); }
.hero-lede { margin-top: 24px; max-width: 46ch; color: var(--on-dark-muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.hero-note { margin-top: 14px; font-size: .86rem; color: var(--on-dark-muted); }

/* ---------- 2. Sobre ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.about-statement h2 { margin-top: 18px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.1; }
.about-body { display: grid; gap: 18px; padding-top: 6px; color: var(--muted); max-width: 58ch; }
.about-body p:first-child { color: var(--ink); font-size: 1.15rem; line-height: 1.65; }
.about-body .btn-text { justify-self: start; margin-top: 4px; }
.about-photo { margin: clamp(28px, 3vw, 40px) 0 0; max-width: 460px; overflow: hidden; border-radius: var(--radius); }
.about-photo picture { display: block; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 6px; border-top: 1px solid var(--line); }
.facts div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.facts dd { margin-top: 4px; font: 1.08rem/1.35 var(--serif); color: var(--ink); }

/* ---------- 3. Tribunal do Júri ----------
   Uma coluna de leitura, alinhada à esquerda: abertura → atuação da defesa (destaque)
   → sessão de julgamento (procedimento) → fonte → botão de contato. */
.jury {
  position: relative; overflow: hidden; isolation: isolate; color: var(--paper);
  background: linear-gradient(180deg, var(--navy) 0%, var(--night) 100%);
}
.jury-inner { max-width: 52rem; }

.jury-head h2 { margin-top: 14px; font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.2rem); line-height: 1; letter-spacing: -.035em; color: var(--white); }
.jury-lede { margin-top: 20px; max-width: 62ch; color: var(--on-dark); font-size: 1.1rem; }

/* Atuação de Beatriz: painel em destaque. */
.jury-defense {
  margin-top: clamp(40px, 5vw, 56px); padding: clamp(24px, 3.5vw, 40px);
  background: rgba(255, 252, 247, .045); border: 1px solid rgba(196, 165, 120, .45); border-radius: var(--radius);
}
.jury-defense-title { font-size: clamp(1.55rem, 1.25rem + 1vw, 2rem); line-height: 1.15; color: var(--white); }
.defense-list { margin-top: 20px; border-top: 1px solid var(--line-dark); }
.defense-list li { padding-block: 18px; border-bottom: 1px solid var(--line-dark); }
.defense-list h4 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.25; color: var(--gold-light); }
.defense-list p { margin-top: 6px; max-width: 62ch; color: var(--on-dark); }
.jury-secrecy { margin-top: 18px; font-size: .95rem; color: var(--on-dark-muted); }
.jury-secrecy strong { color: var(--on-dark); font-weight: 600; }

/* Sessão de julgamento: procedimento, separado da atuação. */
.jury-session { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line-dark); }
.jury-session-title { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.2; color: var(--on-dark); }
.rite { counter-reset: rite; margin-top: 24px; }
.rite li {
  counter-increment: rite; position: relative;
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 20px; padding-bottom: 22px;
}
/* Número em círculo na coluna estreita; fio vertical liga uma etapa à seguinte. */
.rite li::before {
  content: counter(rite); grid-row: 1 / span 2; align-self: start;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--gold); border-radius: 50%; background: var(--navy);
  font: 1.05rem/1 var(--serif); color: var(--gold-light); font-variant-numeric: tabular-nums;
}
.rite li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.25rem - .5px); top: 2.5rem; bottom: 0; width: 1px; background: rgba(196, 165, 120, .4);
}
.rite-step { grid-column: 2; padding-top: .45rem; font-size: 1.2rem; line-height: 1.25; color: var(--gold-light); }
.rite p { grid-column: 2; margin-top: 4px; max-width: 62ch; color: var(--on-dark); font-size: .98rem; line-height: 1.6; }
.rite-source { margin-top: 6px; padding-left: calc(2.5rem + 20px); font-size: .82rem; color: var(--on-dark-muted); }

/* Fechamento. */
.jury-cta { margin-top: clamp(40px, 5vw, 56px); }

/* Desktop: o bloco ocupa a largura toda sem perder a ordem de leitura.
   Abertura continua em coluna de leitura; a atuação vira uma fileira de três momentos;
   a sessão vira linhas largas (número · etapa · explicação). */
@media (min-width: 1024px) {
  .jury-inner { max-width: none; }
  .jury-head { max-width: 52rem; }
  .defense-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 3vw, 48px); margin-top: 24px; border-top: 0; }
  .defense-list li { padding-block: 20px 0; border-bottom: 0; border-top: 1px solid rgba(196, 165, 120, .55); }
  .jury-secrecy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
  .rite li { grid-template-columns: 2.5rem 9.5rem minmax(0, 1fr); column-gap: 28px; padding-bottom: 28px; }
  .rite li::before { grid-row: 1; }
  .rite-step { grid-column: 2; }
  .rite p { grid-column: 3; grid-row: 1; margin-top: 0; padding-top: .5rem; max-width: 66ch; }
  .rite-source { padding-left: calc(2.5rem + 28px); }
}

/* ---------- 4. Áreas ---------- */
.areas { background: var(--tint); }
.areas-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.areas-head { position: sticky; top: calc(var(--header-height) + 32px); display: grid; gap: 16px; }
.areas-head p:not(.eyebrow) { color: var(--muted); max-width: 40ch; }
.area-list { border-top: 1px solid var(--line); }
.area-row {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px; align-items: baseline;
  padding-block: 28px; border-bottom: 1px solid var(--line);
}
.area-row { position: relative; }
.area-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left center; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.area-row:hover::after { transform: scaleX(1); }
.area-row h3 { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.area-row:hover h3 { transform: translateX(6px); }
.area-row p { color: var(--muted); font-size: 1rem; }
.area-row .btn-text { grid-column: 2; justify-self: start; }
.area-row-lead h3 { color: var(--navy); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.area-row-lead p { color: var(--ink); }
.area-phases { grid-column: 2; display: grid; gap: 16px; margin-top: 8px; }
.area-phases li { padding-left: 16px; border-left: 1px solid var(--gold); }
.area-phases h4 { font: 400 1.12rem/1.3 var(--serif); color: var(--navy); }
.area-phases p { margin-top: 4px; color: var(--muted); font-size: .95rem; }

/* ---------- 5. Conteúdo ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.content-photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.content-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.content-main { display: grid; gap: 28px; }
.content-head { display: grid; gap: 16px; }
.content-head > p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.content-head a { color: var(--gold-ink); }
.feature {
  position: relative; display: grid; gap: 10px; padding: clamp(24px, 3vw, 32px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.feature:hover, .feature:focus-within { box-shadow: 0 14px 40px rgba(16, 31, 52, .08); }
.feature:focus-within { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.feature-meta { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.feature h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.feature h3 a { text-decoration: none; }
.feature h3 a::after { content: ""; position: absolute; inset: 0; }
.feature h3 a:focus-visible { outline: none; }
.feature > p:not(.feature-meta) { color: var(--muted); }
.feature-cta { padding-top: 4px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(117, 85, 47, .45); }

.compact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.compact-list li { display: grid; gap: 8px; align-content: start; padding-block: 20px; border-top: 1px solid var(--line); }
.compact-list h3 { font-size: 1.3rem; }
.compact-list h3 a { display: inline-block; padding-block: 4px; text-decoration: underline; text-decoration-color: rgba(117, 85, 47, .4); }
.compact-list h3 a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
.compact-list h3 a::after { content: " ↗"; font-size: .8em; color: var(--gold-ink); }
.compact-list p:not(.feature-meta) { color: var(--muted); font-size: .95rem; }

/* ---------- 6. Contato ---------- */
.contact { background: var(--tint); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact-main { display: grid; gap: 18px; }
.contact-main h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1.02; max-width: 14ch; }
.contact-main > p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
.contact-main .actions { margin-top: 12px; }
.channels { border-top: 1px solid var(--navy); }
.channels div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.channels dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.channels dd { font: 1.2rem var(--serif); }
.channels a { display: inline-block; padding-block: 6px; text-decoration-color: rgba(117, 85, 47, .45); }
.channels a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
.channel-note { display: block; margin-top: 2px; font: .9rem/1.5 var(--sans); color: var(--muted); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px rgba(10, 21, 36, .35), 0 2px 6px rgba(10, 21, 36, .2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-icon { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover { background: #1FB955; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10, 21, 36, .4); }
.wa-float:active { transform: translateY(0); background: #1A9E49; }
.wa-float:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
/* Rótulo que aparece ao lado no desktop ao passar o mouse ou focar pelo teclado. */
.wa-float-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--navy); color: var(--paper); font: 600 .85rem/1 var(--sans);
  box-shadow: 0 6px 18px rgba(10, 21, 36, .3); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; transform: translate(0, -50%); }
.footer-oab { margin-top: 10px; font-size: .9rem; color: var(--on-dark); letter-spacing: .04em; }
.footer-contact { margin-top: 14px; font-size: .9rem; color: var(--on-dark); }
.footer-contact a { color: var(--gold-light); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding-block: 56px 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.footer-name { font: 1.6rem var(--serif); color: var(--white); }
.footer-sub { margin-top: 4px; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-links a { display: inline-block; padding-block: 10px; color: var(--on-dark); font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .82rem; color: var(--on-dark-muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .site-nav ul { gap: 22px; }
}

@media (max-width: 900px) {
  :root { --header-height: 66px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--navy); border-bottom: 1px solid var(--line-dark); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: calc(100% - 2 * var(--gutter)); margin-inline: auto; padding: 4px 0 24px; }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(196, 165, 120, .18); }
  .site-nav a:not(.btn):hover { border-bottom-color: rgba(196, 165, 120, .18); color: var(--gold-light); }
  .nav-contact { margin-top: 18px; }
  .nav-contact .btn { width: 100%; min-height: var(--button-height); }

  /* Celular e tablet: mensagem e contato primeiro; o retrato vem logo abaixo, saindo do marinho. */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-grid { padding-block: 44px 28px; }
  .hero-main { max-width: 600px; }
  .hero-media { position: relative; order: 2; inset: auto; height: clamp(380px, 100vw, 600px); }
  .hero-media img { object-position: 50% 0%; }
  .hero-media::after { background: linear-gradient(180deg, var(--navy) 0%, rgba(16, 31, 52, 0) 18%, rgba(16, 31, 52, 0) 82%, rgba(16, 31, 52, .5) 100%); }


  .about-grid, .areas-grid, .contact-grid, .content-layout { grid-template-columns: minmax(0, 1fr); }
  .content-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .about-photo { max-width: none; }
  .about-photo img { aspect-ratio: 4 / 3; object-position: 50% 32%; }
  .areas-head { position: static; }
  .site-nav { box-shadow: 0 24px 40px rgba(10, 21, 36, .45); }

}

@media (max-width: 640px) {
  .wa-float { width: 56px; height: 56px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wa-icon { width: 30px; height: 30px; }
  .wa-float-label { display: none; }
  .site-footer { padding-bottom: 96px; }
  :root { --gutter: 16px; --fs-body: 1rem; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .14em; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .contact-main .actions { flex-direction: column; align-items: stretch; }
  .contact-main .actions .btn { width: 100%; padding: 0 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; padding: 0 18px; }
  .hero-actions .link-arrow { align-self: flex-start; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .area-phases { grid-column: 1; }

  .compact-list { grid-template-columns: minmax(0, 1fr); }
  .jury-defense { padding: 22px 18px; }
  .rite li { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 16px; }
  .rite li::before { width: 2.25rem; height: 2.25rem; }
  .rite li:not(:last-child)::after { left: calc(1.125rem - .5px); top: 2.25rem; }
  .rite-step { padding-top: .35rem; }
  .rite-source { padding-left: calc(2.25rem + 16px); }
  .jury-cta .btn { width: 100%; }

  .area-row { grid-template-columns: minmax(0, 1fr); padding-block: 22px; }
  .area-row .btn-text { grid-column: 1; }

  .channels div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .brand-sub { letter-spacing: .1em; }
  .btn { letter-spacing: .05em; }
}

/* ---------- Movimento ----------
   Só para quem não pediu redução de movimento ao sistema.
   Abertura em sequência, leve zoom da foto ao rolar, revelação suave das seções
   e o rito do Júri desenhado etapa por etapa. Apenas opacity/transform/clip-path. */
@media (prefers-reduced-motion: no-preference) {
  :root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1); }

  /* Abertura */
  .hero-media img { animation: hero-photo 1.6s var(--ease-out) both; }
  .hero-credential { animation: rise .8s .02s var(--ease-out) both; }
  .hero-title-name { animation: rise .8s .1s var(--ease-out) both; }
  .hero-title-practice { animation: rise .8s .22s var(--ease-out) both; }
  .hero-lede { animation: rise .8s .34s var(--ease-out) both; }
  .hero-actions { animation: rise .8s .46s var(--ease-out) both; }
  .hero-note { animation: rise .8s .56s var(--ease-out) both; }

  @keyframes hero-photo { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes slide-up { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* Ao rolar, a foto aproxima levemente (--hero-p vai de 0 a 1, definido em script.js). */
  .hero-media { transform: scale(calc(1 + var(--hero-p, 0) * .06)); transform-origin: 70% 30%; }

  /* Revelação das seções: só elementos abaixo da dobra recebem o estado inicial. */
  .reveal-pending { opacity: 0; transform: translateY(28px); }
  .is-revealing { transition: opacity .9s var(--ease-out) var(--reveal-delay, 0s), transform .9s var(--ease-out) var(--reveal-delay, 0s); }

  /* Foto do Instagram: cortina de cima para baixo e leve aproximação. */
  /* A cortina fica no <picture> interno: o contêiner continua visível para o detector de rolagem. */
  .content-photo picture { display: block; }
  .content-photo.reveal-pending { opacity: 1; transform: none; }
  .content-photo.reveal-pending picture { clip-path: inset(0 0 100% 0); }
  .content-photo.reveal-pending img { transform: scale(1.12); }
  .content-photo.is-revealing { transition: none; }
  .content-photo.is-revealing picture { transition: clip-path 1.2s var(--ease-in-out) var(--reveal-delay, 0s); clip-path: inset(0 0 0 0); }
  .content-photo img { transition: transform 1.8s var(--ease-out); }

  /* Rito do Júri: a linha se desenha e as etapas surgem em sequência. */
  .rite.reveal-pending { opacity: 1; transform: none; }
  .rite.reveal-pending li { opacity: 0; transform: translateY(16px); }
  .rite.reveal-pending li::before { transform: scale(0); }
  .rite.reveal-pending li::after { transform: scaleY(0); }
  .rite li::after { transform-origin: center top; }
  .rite.is-revealing { transition: none; }
  .rite.is-revealing li, .rite.is-revealing li::before, .rite.is-revealing li::after { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(.3s + var(--i, 0) * .2s); }
  .rite li:nth-child(2) { --i: 1; } .rite li:nth-child(3) { --i: 2; } .rite li:nth-child(4) { --i: 3; } .rite li:nth-child(5) { --i: 4; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  /* Desktop: o texto da abertura sobe e esmaece levemente ao rolar, criando profundidade. */
  .hero-grid { transform: translateY(calc(var(--hero-p, 0) * -48px)); opacity: calc(1 - var(--hero-p, 0) * .7); }
}

@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: wa-in .5s 1.2s cubic-bezier(.2, .8, .2, 1) backwards; }
  @keyframes wa-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .btn:active { transform: none; }
}

@media print {
  .site-header, .skip-link, .menu-toggle { display: none; }
  .hero, .jury, .site-footer { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
