/* ==========================================================================
   Breno Lins Advocacia Criminal
   Direção: institucional, sério e sóbrio. Paleta do Freire Contabilidade (pedido do cliente: "igual ao da
   Cibele"): base champanhe, blocos em verde petróleo, destaques em dourado ocre. Couro verde com bordado
   dourado nas faixas. Raio único: 2px.
   Os blocos escuros usam .on-deep (ou a lista logo abaixo), que troca as cores de dentro para o tema escuro.
   ========================================================================== */

:root {
  /* Base clara: champanhe, cartões um tom acima, texto em verde petróleo (como no Freire). */
  --bg: #EFE6D2;
  --bg-deep: #E6DBC2;
  --surface: #F6F0E1;
  --surface-2: #FFFDF8;
  --ink: #0C2F2C;
  --muted: #46605B;
  --line: #D5C9AA;
  --line-strong: #8A7E63;
  --error: #9E2B1F;
  /* Botão principal: petróleo com texto champanhe sobre o claro. */
  --btn-bg: #0C2F2C;
  --btn-fg: #EFE6D2;
  --btn-hover: #123D39;

  /* "Couro" agora é verde petróleo; os fios e ícones (--couro-hi) são dourado ocre. */
  --couro: #0C2F2C;
  --couro-deep: #081F1D;
  --couro-hi: #9A7D45;
  --ouro: #C2A56C;
  --whatsapp: #25D366; /* verde oficial do WhatsApp: só no símbolo, para ser reconhecido de relance */
  /* Couro com profundidade: mais claro no alto, mais fundo embaixo, como luz sobre material. */
  --couro-fill: linear-gradient(155deg, #17443F 0%, #0F3632 42%, #0A2724 100%);
  /* Base dos blocos com textura (.leather): mais escura, porque os poros clareiam o tom; o resultado fica perto do #0C2F2C. */
  --couro-base: linear-gradient(155deg, #0E3530 0%, #0A2A27 42%, #061D1B 100%);
  /* Textura de couro em SVG: relevo dos poros (ruído iluminado). */
  --couro-poros: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='1.8'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  /* Títulos: Cabinet Grotesk. Legendas e textos: Switzer. */
  --font-display: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 10vw, 144px);
  --header-h: 64px;
  --header-top: 12px;
  --r: 2px;

  --z-header: 40;
  --z-menu: 44;
  --z-bar: 50;
  --z-skip: 100;

  color-scheme: light;
}

/* Blocos escuros (verde petróleo e couro verde): as mesmas variáveis, com os valores do tema escuro. */
.on-deep, .site-header__bar, .tabbar, .hero, .page-hero--image, .marquee, .leather, .feature, .site-footer, .group-card--photo {
  --bg: #0C2F2C;
  --bg-deep: #081F1D;
  --surface: #123D39;
  --surface-2: #174843;
  --ink: #EFE6D2;
  --muted: #B9C6C0;
  --line: rgba(239, 230, 210, 0.14);
  --line-strong: rgba(239, 230, 210, 0.3);
  --error: #FFB1A4;
  --btn-bg: #EFE6D2;
  --btn-fg: #0C2F2C;
  --btn-hover: #F6F0E1;
  --couro-hi: #C2A56C;
  color: var(--ink);
  color-scheme: dark;
}
.hero, .page-hero--image, .feature, .site-footer { background-color: var(--bg); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + var(--header-top) + 24px);
  background-color: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Granulado fino sobre a página inteira: textura de papel no osso, quase invisível nos blocos escuros. Fixo. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.18 0 0 0 0 0.17 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

/* Tudo que é título usa a fonte de títulos. */
h1, h2, h3, h4, .display, .h2, .h3, blockquote p, .area-card strong, .group-links strong, .related strong, .instances__title, .instances__short, .channel__main {
  font-family: var(--font-display);
}

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--couro); color: #EFE6D2; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r);
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.icon { width: 1.125em; height: 1.125em; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  border-radius: var(--r);
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

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

.section { padding-block: var(--section); }
/* Duas seções seguidas sem divisória dividem o mesmo respiro. Com divisória (.section--line), cada uma tem o seu. */
.section + .section:not(.section--line) { padding-top: 0; }
.section--line { border-top: 1px solid var(--line); }

/* ---------- Tipografia ---------- */
.display {
  font-size: clamp(2.375rem, 4.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  padding-bottom: 0.06em;
}

.h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.h3 {
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
}

.muted { color: var(--muted); }

em { font-style: italic; }

.prose { max-width: 68ch; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--ink); font-weight: 500; }
.prose h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; }
.prose li { position: relative; padding-left: 24px; color: var(--muted); margin-bottom: 8px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 12px; height: 1px;
  background: var(--couro-hi);
}
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--couro-hi); text-underline-offset: 4px; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 6px 18px 6px 20px;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }

/* Só o símbolo do WhatsApp, em verde, sem fundo. */
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms var(--ease-out);
}
.btn__icon .icon { width: 24px; height: 24px; }

/* Principal: vinho com texto claro no osso; claro com texto vinho nos blocos escuros (variáveis --btn-*). */
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); gap: 10px; }
.btn--primary .btn__icon { color: var(--whatsapp); }

.btn--ghost {
  padding: 6px 20px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn--sm { min-height: 40px; padding: 4px 14px 4px 16px; font-size: 0.9375rem; gap: 8px; }
.btn--sm .btn__icon .icon { width: 22px; height: 22px; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--btn-hover); }
  .btn--primary:hover .btn__icon { transform: translateX(2px); }
  .btn--ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
}

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--couro-hi);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 200ms ease;
}
.link .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--ink); }
  .link:hover .icon { transform: translateX(3px); }
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0; right: 0;
  z-index: var(--z-header);
  pointer-events: none;
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 12px 0 20px;
  background: rgba(12, 47, 44, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  pointer-events: auto;
}

.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { width: 146px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  font-size: 0.9375rem;
  color: var(--muted);
  border-radius: var(--r);
  transition: color 200ms ease, background-color 200ms ease;
}
.nav__link[aria-current="page"], .nav__link[aria-expanded="true"], .nav__link.is-current { color: var(--ink); }
.nav__link .icon { width: 14px; height: 14px; transform: rotate(90deg); transition: transform 200ms var(--ease-out); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(-90deg); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--ink); background: rgba(239, 230, 210, 0.05); }
}

.site-header__end { display: flex; align-items: center; gap: 8px; }
/* Enquanto a abertura (com o seu próprio botão de WhatsApp) está na tela, o botão do topo some,
   para não haver dois iguais. Volta ao rolar para fora da abertura. Sem JS, fica sempre visível. */
.site-header__end { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 0s; }
.site-header.is-cta-hidden .site-header__end {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
@media (prefers-reduced-motion: reduce) {
  .site-header__end, .site-header.is-cta-hidden .site-header__end { transform: none; }
}

/* Painel de áreas (desktop) */
.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(3, 14, 13, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transform-origin: top center;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
}
.mega__grid { display: grid; grid-template-columns: 1.15fr 1fr 0.8fr 1.4fr; gap: 32px; }
.mega__group-title {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.mega__list a {
  display: block;
  padding: 6px 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
  transition: color 200ms ease;
}
.mega__list--cols { columns: 2; column-gap: 24px; }
.mega__list--cols li { break-inside: avoid; }
@media (hover: hover) and (pointer: fine) {
  .mega__list a:hover { color: var(--couro-hi); }
}
.mega__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Barra de abas (celular e tablet) ----------
   Fixa embaixo, como num aplicativo: Início, Áreas, WhatsApp (no centro), Sobre e Contato.
   Só aparece quando o menu do topo some (até 1080px). */
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-bar);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 31, 29, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding-top: 6px;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--muted);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.tabbar__item .icon { width: 22px; height: 22px; }
.tabbar__item[aria-current="page"], .tabbar__item.is-current, .tabbar__item[aria-expanded="true"] { color: var(--ink); }
.tabbar__item:active { transform: scale(0.95); }
/* WhatsApp no centro: círculo osso que sobe acima da barra. */
.tabbar__item--main { margin-top: -26px; color: var(--ink); }
.tabbar__item--main i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(8, 31, 29, 0.94), 0 10px 24px rgba(0, 0, 0, 0.45);
}
.tabbar__item--main i .icon { width: 26px; height: 26px; }

/* Gaveta de áreas: sobe de baixo, por cima da página e por baixo da barra de abas. */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  /* Acima do cabeçalho (40) e abaixo da barra de abas (50). */
  background: rgba(3, 14, 13, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: calc(var(--z-menu) + 1);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) calc(100px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 340ms var(--ease-drawer), visibility 0s linear 340ms;
}
.sheet.is-open { transform: none; visibility: visible; transition: transform 340ms var(--ease-drawer), visibility 0s; }
.sheet:focus { outline: none; }
body.sheet-open { overflow: hidden; }
body.sheet-open .sheet-backdrop { opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 0s; }
.sheet__grip { width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: var(--line-strong); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet__title { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.015em; }
.sheet__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; color: var(--muted); }
.sheet__close .icon { width: 20px; height: 20px; }
.sheet details { border-top: 1px solid var(--line); }
.sheet summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary::after { content: "+"; font-size: 1.25rem; color: var(--couro-hi); }
.sheet details[open] summary::after { content: "\2212"; }
.sheet details ul { padding: 0 0 14px; }
.sheet details a { display: block; padding: 9px 0 9px 14px; border-left: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.sheet details a:active { color: var(--ink); }
.sheet__foot { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Abertura da página inicial ---------- */
/* Abertura com foto de fundo: o retrato fica à direita e se funde ao grafite à esquerda e embaixo. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 960px);
  padding-top: calc(var(--header-top) + var(--header-h) + 64px);
  padding-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
  isolation: isolate;
}
.hero--page { min-height: min(88svh, 820px); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  position: absolute;
  top: 0; right: 0;
  width: min(62%, 1040px);
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 47, 44, 0) 34%),
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 36%, rgba(12, 47, 44, 0.78) 48%, rgba(12, 47, 44, 0.18) 70%, rgba(12, 47, 44, 0) 100%);
}

.hero__content { position: relative; }
.hero__content .display { margin-bottom: 24px; max-width: 11em; }
/* Abertura da página inicial: Cabinet Grotesk um pouco menor, para o título caber em três linhas. */
/* Título grande, com as três linhas fixas: "Defesas criminais," / "direito penal econômico" / "e Tribunal do Júri." */
.hero--home .display { font-size: clamp(2.5rem, 5.4vw, 5.25rem); line-height: 1.04; max-width: none; }
.hero--home .hero__line { display: block; }
/* A Cabinet Grotesk não tem itálico: a ênfase nos títulos vai num peso mais leve. */
.display em { font-style: normal; font-weight: 500; }
.hero__content .lead { margin-bottom: 36px; max-width: 46ch; color: #C9D3CE; }
.hero__content .breadcrumb { margin-bottom: 24px; }

/* O retrato assenta devagar ao carregar e acompanha a rolagem (onde o navegador permite). */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__bg img { animation: hero-settle 1800ms var(--ease-out) both; }
  @supports (animation-timeline: scroll()) {
    .hero__bg {
      animation: hero-parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
  }
}
/* Só escala: se a animação não rodar (aba oculta, economia de bateria), a foto continua 100% visível. */
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes hero-parallax { to { transform: translateY(12%); } }

/* Fundo de foto genérico (aberturas internas e seção do escritório) */
.media-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  isolation: isolate;
}
.media-bg img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.media-bg::before, .media-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* Duotone grafite e couro: a foto vira textura, sem disputar com o texto. */
.media-bg--duotone img { object-position: 50% 45%; filter: grayscale(1) contrast(1.15) brightness(0.62); }
/* Retrato em duotone: só na metade direita, para o rosto não ficar atrás do texto. */
.media-bg--retrato img {
  position: absolute;
  top: 0; right: 0;
  width: min(55%, 900px);
  object-position: 50% 20%;
  filter: grayscale(1) contrast(1.1) brightness(0.8);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
@media (max-width: 1023px) {
  .media-bg--retrato img {
    width: 100%;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 50%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 50%);
  }
}
.media-bg--duotone::before { z-index: 1; background: var(--couro); mix-blend-mode: multiply; opacity: 0.9; }
.media-bg--duotone::after {
  z-index: 2;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 47, 44, 0) 45%),
    linear-gradient(90deg, rgba(12, 47, 44, 0.92) 0%, rgba(12, 47, 44, 0.55) 55%, rgba(12, 47, 44, 0.25) 100%);
}

/* Foto do escritório em cores, escurecida para o cartão ficar legível. */
.media-bg--photo img { object-position: 62% 50%; filter: saturate(0.85) brightness(0.8); }
.media-bg--photo::after {
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 47, 44, 0.85) 0%, rgba(12, 47, 44, 0.45) 45%, rgba(12, 47, 44, 0.05) 100%);
}

.page-hero--image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: min(72svh, 680px);
}
.page-hero--image .lead { color: #C9D3CE; }

/* Seção do escritório */
.feature {
  position: relative;
  isolation: isolate;
  padding-block: clamp(96px, 11vw, 168px);
}
.feature__card {
  max-width: 540px;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(8, 31, 29, 0.9);
  border: 1px solid var(--line);
  border-top: 2px solid var(--couro-hi);
  border-radius: var(--r);
}
.feature__card .h2 { margin-bottom: 16px; }
.feature__card .office__info { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo--landscape { aspect-ratio: 5 / 4; }
.photo--landscape img { object-position: 40% 40%; }

/* ---------- Acabamento de couro (áreas em vinho, menos a faixa rolante) ----------
   Camadas, de baixo para cima: degradê do couro, poros em relevo (::before),
   brilho que acompanha o mouse (.leather__glow), costura tracejada (.leather__stitch) e, por cima, o conteúdo. */
.leather {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--couro-base);
  box-shadow: inset 0 1px 0 rgba(239, 230, 210, 0.1), inset 0 0 70px rgba(2, 12, 11, 0.55);
}
.leather::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--couro-poros);
  background-size: 260px;
  mix-blend-mode: overlay;
  opacity: 0.45;
}
.leather__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 22%) var(--my, 0%), rgba(239, 230, 210, 0.14), rgba(239, 230, 210, 0) 55%);
}
.leather__stitch {
  position: absolute;
  inset: 12px;
  z-index: 1;
  pointer-events: none;
  /* Bordado dourado */
  border: 2px dashed #C2A56C;
  border-radius: var(--r);
  box-shadow: 0 0 0 3px rgba(2, 12, 11, 0.2), inset 0 0 0 3px rgba(2, 12, 11, 0.2);
}
.leather > :not(.leather__glow):not(.leather__stitch) { position: relative; z-index: 2; }
/* Garante a base do couro mesmo onde o componente define outro fundo (cartões, bloco do mosaico). */
.area-card.leather, .group-links a.leather, .area-card.leather:hover, .group-links a.leather:hover { background: var(--couro-base); }
/* Cartões pequenos: costura mais perto da borda. */
.leather--sm .leather__stitch { inset: 7px; }
/* Faixa de largura total: costura só em cima e embaixo. */
.leather--band .leather__stitch { inset: 12px 0; border-left: 0; border-right: 0; border-radius: 0; }

/* ---------- Faixa rolante (abaixo da abertura) ----------
   Duas cópias da lista lado a lado; a faixa anda metade da largura e recomeça, sem emenda. */
.marquee {
  position: relative;
  background: var(--couro-fill);
  padding-block: clamp(18px, 2.2vw, 26px);
}
/* O couro vai de ponta a ponta; só os nomes somem nas bordas. */
.marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee__list { display: flex; align-items: center; flex-shrink: 0; }
.marquee__list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
/* Separador: traço fino em osso translúcido depois de cada nome (inclusive o último, para o laço ficar contínuo). */
.marquee__list li::after {
  content: "";
  width: clamp(28px, 3vw, 44px);
  height: 1px;
  margin-inline: clamp(20px, 2.4vw, 36px);
  background: rgba(239, 230, 210, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Faixa das instâncias ---------- */
/* Quatro instâncias como uma pequena tabela: sigla grande, nome completo embaixo, fios finos entre elas. */
.instances {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}
.instances__grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(40px, 5vw, 56px);
}
.instances__title {
  margin-bottom: 8px;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.instances__text { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); max-width: 26ch; }
.instances__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.instances__list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 4px;
  border-left: 1px solid var(--line);
}
.instances__list li::before {
  content: "";
  position: absolute;
  top: 0; left: 24px;
  width: 20px; height: 2px;
  background: var(--couro-hi);
}
.instances__short {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.instances__name { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

/* ---------- Cabeçalho de seção ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-bottom: 18px; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* ---------- Grupos de atuação em cartões com foto (página inicial enxuta) ---------- */
/* Título e os quatro cartões cabem juntos numa tela: título e texto lado a lado, cartões numa fileira só,
   com altura presa à altura da janela (menos topo fixo, título e respiro). */
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 32px; }
.section-head--row .h2 { margin-bottom: 0; max-width: 14em; }
.section-head--row p { margin: 0; max-width: 40ch; }
.groups-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.group-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: clamp(340px, calc(100svh - 300px), 480px);
  padding: clamp(22px, 2vw, 30px);
  background: var(--surface);
  border-radius: var(--r);
}
.group-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; }

/* Foto: preto e branco nas quatro, com escurecimento de baixo para cima, onde fica o texto. */
.group-card__bg { position: absolute; inset: 0; z-index: 0; }
.group-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.86);
  transform: scale(1.001);
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}
.group-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(8, 31, 29, 0.96) 0%, rgba(8, 31, 29, 0.78) 30%, rgba(8, 31, 29, 0.12) 64%, rgba(8, 31, 29, 0) 100%);
}
.group-card--penal-economico .group-card__bg img { object-position: 70% 50%; }
.group-card--crime-organizado .group-card__bg img { object-position: 80% 50%; }
.group-card--juri .group-card__bg img { object-position: 60% 50%; }
.group-card--defesa-criminal .group-card__bg img { object-position: 45% 40%; }

.group-card__title { font-size: clamp(1.375rem, 1.75vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; max-width: 12em; }
.group-card p { margin: 0; color: var(--muted); max-width: 44ch; font-size: 0.9375rem; line-height: 1.55; }
.group-card--photo p { color: rgba(239, 230, 210, 0.82); }
.group-card__more { display: inline-flex; align-items: center; gap: 8px; padding-top: 18px; font-weight: 500; color: var(--ink); }
.group-card__more .icon { width: 16px; height: 16px; color: var(--couro-hi); transition: transform 200ms var(--ease-out); }
/* Fio de couro no rodapé do cartão: cresce ao passar o mouse */
.group-card--photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  background: var(--couro-hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .group-card:not(.group-card--photo):hover { background: var(--surface-2); }
  .group-card:hover .group-card__more .icon { transform: translateX(3px); }
  .group-card--photo:hover .group-card__bg img { transform: scale(1.04); filter: grayscale(1) contrast(1.1) brightness(0.98); }
  .group-card--photo:hover::after { transform: scaleX(1); }
}
.groups-dots { display: none; }
@media (prefers-reduced-motion: reduce) {
  .group-card__bg img, .group-card--photo::after, .groups-dots__dot span { transition: none; }
}
/* Tablet: dois por fileira, mais baixos, para os quatro caberem com o título */
@media (max-width: 1080px) {
  .groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-card { height: clamp(230px, calc((100svh - 350px) / 2), 340px); }
}
/* Celular: os cartões correm para o lado (deslizar), e o próximo aparece pela borda */
@media (max-width: 767px) {
  .section-head--row { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .groups-grid {
    display: flex;
    gap: 10px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .groups-grid::-webkit-scrollbar { display: none; }
  .groups-grid > li { flex: 0 0 82%; scroll-snap-align: start; }
  /* Fora da tela na horizontal, o cartão nunca "entra" na visão: sem animação de entrada aqui. */
  .js .groups-grid > li[data-reveal] { opacity: 1; transform: none; transition: none; }
  /* Pontinhos: mostram em qual cartão se está. O ponto ativo vira um traço. Área de toque de 32px. */
  .groups-dots:not([hidden]) { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
  .groups-dots__dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .groups-dots__dot span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--line-strong);
    transition: width 240ms var(--ease-out), background-color 240ms var(--ease-out);
  }
  .groups-dots__dot[aria-current="true"] span { width: 20px; background: var(--ink); }
  .groups-dots__dot:focus-visible { outline: 2px solid var(--couro-hi); outline-offset: -4px; border-radius: 999px; }
  .group-card { height: clamp(340px, calc(100svh - 360px), 440px); }
}

/* ---------- Advogado em um bloco só (página inicial enxuta) ---------- */
.lawyer-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; }
.lawyer-feature .photo { grid-column: 1 / span 5; }
.lawyer-feature__text { grid-column: 7 / span 6; }
.lawyer-feature__quote { margin: 0 0 28px; }
.lawyer-feature__quote p { font-family: var(--font-display); font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.lawyer-feature__text .h3 { margin-bottom: 10px; }
.lawyer-feature__text .muted { margin-bottom: 22px; max-width: 52ch; }

/* Rodapé: marca, navegação e escritório. */
.site-footer--compact .footer__grid { grid-template-columns: 5fr 3fr 4fr; }

/* ---------- Passos do atendimento ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; padding-top: 28px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--couro-hi);
  transform-origin: left center;
}
.step .h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Escritório ---------- */
.office__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.info-block__title { display: block; margin-bottom: 8px; font-size: 0.875rem; color: var(--muted); }
.info-block p { margin: 0; line-height: 1.55; }
.info-block .link { margin-top: 12px; }

/* ---------- Faixa de urgência ---------- */
/* A faixa usa o acabamento .leather (textura, costura e brilho). */
.band { position: relative; }
.band__grid {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: end;
  padding-block: clamp(72px, 8vw, 112px);
}
.band .h2 { margin-bottom: 16px; }
.band p { color: rgba(239, 230, 210, 0.8); max-width: 54ch; }
.band__actions { display: grid; justify-items: start; gap: 16px; }
.band__call { font-size: 0.9375rem; color: rgba(239, 230, 210, 0.8); }
.band__call a { white-space: nowrap; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(239, 230, 210, 0.5); text-underline-offset: 4px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--bg-deep); padding-top: clamp(64px, 7vw, 96px); }
.footer__grid {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__brand img { width: 186px; margin-bottom: 20px; }
.footer__brand p { font-size: 0.9375rem; color: var(--muted); max-width: 34ch; }
.footer__title { display: block; margin-bottom: 16px; font-size: 0.8125rem; color: var(--muted); }
.footer__contact li { break-inside: avoid; }
.footer__contact a, .footer__contact span { display: inline-block; padding: 4px 0; font-size: 0.9375rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .footer__contact a:hover, .footer__legal a:hover { color: var(--couro-hi); }
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.footer__legal p { margin: 0; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Páginas internas ---------- */
.page-hero {
  padding-top: calc(var(--header-top) + var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(56px, 7vw, 96px);
}
.page-hero .display { max-width: 20ch; margin-bottom: 22px; }
.page-hero .lead { margin-bottom: 32px; }
.page-hero--image > .container { position: relative; }

.breadcrumb { margin-bottom: 28px; font-size: 0.875rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* Página de área */
.section--area { padding-top: 0; }
.area-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 6vw, 88px);
}
.toc { grid-column: 1 / span 3; }
.toc__inner { position: sticky; top: calc(var(--header-top) + var(--header-h) + 40px); }
.toc__title { display: block; margin-bottom: 14px; font-size: 0.8125rem; color: var(--muted); }
.toc__link {
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 200ms ease, border-color 200ms ease;
}
.toc__link.is-active { color: var(--ink); border-left-color: var(--couro-hi); }
@media (hover: hover) and (pointer: fine) { .toc__link:hover { color: var(--ink); } }
.toc__cta { margin-top: 32px; }

.area-article { grid-column: 5 / span 8; }
.area-section + .area-section { margin-top: clamp(56px, 6vw, 80px); }
.area-section > .h3 { font-size: 1.625rem; letter-spacing: -0.02em; margin-bottom: 20px; }

.check-list li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.55;
}
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.55em;
  width: 16px; height: 2px;
  background: var(--couro-hi);
}

.how-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.how-list li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.how-list h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.how-list p { font-size: 0.96875rem; color: var(--muted); line-height: 1.6; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--couro-hi);
  transition: transform 220ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq__answer { padding: 0 48px 24px 0; color: var(--muted); }
.faq details[open] .faq__answer { animation: faq-in 260ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--couro-hi); } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r);
  transition: background-color 200ms ease;
}
.related strong { font-weight: 500; line-height: 1.35; }
.related span { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }
.related .icon { margin-top: auto; width: 16px; height: 16px; color: var(--couro-hi); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .related a:hover { background: var(--surface-2); }
  .related a:hover .icon { transform: translateX(3px); }
}

.note {
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Índice de áreas */
.group + .group { margin-top: clamp(72px, 8vw, 112px); }
.group__head { margin-bottom: 28px; }
.group__head .h2 { margin-bottom: 12px; }
.group__head p { color: var(--muted); max-width: 60ch; }

/* Grupos de atuação (página do advogado) */
.group-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.group-links a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r);
  transition: background-color 200ms ease;
}
.group-links strong { font-size: 1.125rem; font-weight: 500; line-height: 1.3; }
.group-links span { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }
.group-links li:first-child span { color: rgba(239, 230, 210, 0.78); }
.group-links .icon { margin-top: auto; width: 16px; height: 16px; color: var(--couro-hi); transition: transform 200ms var(--ease-out); }
.group-links li:first-child .icon { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .group-links a:hover { background: var(--surface-2); }
  .group-links a:hover .icon { transform: translateX(3px); }
}
.area-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.area-cards--single { grid-template-columns: 1fr; }
.area-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: start;
  height: 100%;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r);
  transition: background-color 200ms ease;
}
.area-card strong { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.area-card span { grid-column: 1; font-size: 0.96875rem; color: var(--muted); line-height: 1.6; max-width: 60ch; }
.area-card .icon { grid-column: 2; grid-row: 1; width: 18px; height: 18px; color: var(--couro-hi); transition: transform 200ms var(--ease-out); }
.area-cards--econ .area-card span { color: rgba(239, 230, 210, 0.78); }
.area-cards--econ .area-card .icon { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .area-card:hover { background: var(--surface-2); }
  .area-card:hover .icon { transform: translateX(3px); }
}

/* Base clara: cartões com fio fino em volta, como no Freire (os de couro não precisam). */
.related a, .group-links a:not(.leather), .area-card:not(.leather), .duty { border: 1px solid var(--line); }

/* Advogado */
.bio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
.bio__text { grid-column: 1 / span 6; }
.bio__text p { color: var(--muted); }
.bio__aside { grid-column: 8 / span 5; }
.bio__photo { margin-bottom: 32px; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 0; line-height: 1.5; }

.pull-quote { margin: 0; padding-block: clamp(56px, 7vw, 96px); border-block: 1px solid var(--line); }
.pull-quote p {
  max-width: 24ch;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  padding-bottom: 0.1em;
}
.pull-quote footer { margin-top: 24px; color: var(--muted); }

/* Atendimento */
.duty {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  background: var(--surface);
  border-radius: var(--r);
}
.duty .h2 { margin-bottom: 16px; }
.duty p { color: var(--muted); }
.duty .check-list li { color: var(--ink); }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}
.split__media { grid-column: 1 / span 6; }
.split__text { grid-column: 8 / span 5; }
.split__text .h2 { margin-bottom: 18px; }
.split__text p { color: var(--muted); }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; }
.contact__channels { grid-column: 1 / span 5; }
.contact__form { grid-column: 7 / span 6; }
.channel { padding: 22px 0; border-top: 1px solid var(--line); }
.channel:last-child { border-bottom: 1px solid var(--line); }
.channel__title { display: block; margin-bottom: 6px; font-size: 0.875rem; color: var(--muted); }
.channel p { margin: 0; line-height: 1.55; }
.channel__main { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.channel .actions { margin-top: 14px; }

.form-card { padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--couro); border-radius: var(--r); }
.form-card .h3 { margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; font-size: 0.96875rem; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #6E7F7A; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { min-height: 0; font-size: 0.875rem; color: var(--error); }
.field__error:empty { display: none; }
.field__hint { font-size: 0.8125rem; color: var(--muted); }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-note { margin-top: 18px; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.form-status { margin-top: 16px; font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status a { text-decoration: underline; text-decoration-color: var(--couro-hi); text-underline-offset: 4px; }

/* ---------- Página 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; }

/* ---------- Detalhes em dourado ocre (como no Freire) ----------
   --couro-hi é dourado: mais fechado no claro (#9A7D45), mais vivo nos blocos verdes (#C2A56C). */
:root { --ouro-fio: rgba(194, 165, 108, 0.6); }

/* Fio duplo dourado onde um bloco verde encontra o champanhe. */
.hero, .page-hero--image { border-bottom: 4px double var(--ouro-fio); }
.site-footer { border-top: 4px double var(--ouro-fio); }
.marquee { border-bottom: 1px solid var(--ouro-fio); }
.marquee__list li::after { background: var(--ouro); opacity: 0.7; }

/* Abertura: palavra em destaque e linha de cima (OAB, grupo) em dourado, com um traço antes. */
.display em { color: var(--couro-hi); }
.on-deep .eyebrow, .hero .eyebrow, .page-hero--image .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--couro-hi);
}
.hero .eyebrow::before, .page-hero--image .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero .btn--ghost, .page-hero--image .btn--ghost { border-color: var(--ouro-fio); }

/* Títulos de seção: traço dourado curto em cima. */
.section-head .h2::before, .group__head .h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--couro-hi);
}

/* Topo: contorno e item atual em dourado. */
.site-header__bar { border-color: rgba(194, 165, 108, 0.32); }
.nav__link[aria-current="page"], .nav__link.is-current { text-decoration: underline; text-decoration-color: var(--couro-hi); text-decoration-thickness: 1px; text-underline-offset: 8px; }
.tabbar__item[aria-current="page"], .tabbar__item.is-current { color: var(--couro-hi); }

/* Cartões no champanhe: fio dourado no alto (como o cartão de serviços do Freire). */
.related a, .area-card:not(.leather), .group-links a:not(.leather), .how-list li { border-top: 2px solid var(--couro-hi); }
.form-card { border-top-color: var(--couro-hi); }

/* Fotos com moldura fina dourada. */
.photo { box-shadow: 0 0 0 1px var(--couro-hi); }
/* Nos cartões com foto a moldura vai como contorno (a foto cobriria uma sombra interna); o foco do teclado continua valendo. */
.group-card--photo:not(:focus-visible) { outline: 1px solid rgba(194, 165, 108, 0.45); outline-offset: -1px; }

/* Citações com fio dourado à esquerda. */
.lawyer-feature__quote, .pull-quote p { border-left: 2px solid var(--couro-hi); padding-left: clamp(18px, 2vw, 28px); }

/* Rodapé: títulos das colunas e a divisória de baixo em dourado. */
.footer__title { color: var(--couro-hi); }
.footer__legal { border-top-color: rgba(194, 165, 108, 0.35); }

/* ---------- Revelações ao rolar ----------
   Só quando o JavaScript está ativo (classe .js no <html>). Sem JS, tudo aparece normalmente. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal].d1 { transition-delay: 70ms; }
.js [data-reveal].d2 { transition-delay: 140ms; }
.js [data-reveal].d3 { transition-delay: 210ms; }
.js [data-reveal].d4 { transition-delay: 280ms; }

.js [data-reveal-img] { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
.js [data-reveal-img] img { transform: scale(1.06); transition: transform 1500ms var(--ease-out); }
.js [data-reveal-img].is-visible { clip-path: inset(0 0 0 0); }
.js [data-reveal-img].is-visible img { transform: none; }

.js .step::after { transform: scaleX(0); transition: transform 700ms var(--ease-out) 200ms; }
.js .step.is-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .js [data-reveal-img] { clip-path: none; opacity: 0; transition: opacity 300ms ease; }
  .js [data-reveal-img].is-visible { opacity: 1; }
  .js [data-reveal-img] img { transform: none; transition: none; }
  .js .step::after { transform: none; transition: none; }
  .btn, .btn__icon, .link .icon, .related .icon, .area-card .icon { transition: none; }
  .faq details[open] .faq__answer { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav, .site-header__end, .mega { display: none; }
  /* No lugar da barra larga, uma bolha pequena com a logo, fixa no canto superior esquerdo (leva ao início). */
  :root { --header-h: 50px; }
  .site-header__bar {
    display: inline-flex;
    width: auto;
    height: var(--header-h);
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(12, 47, 44, 0.82);
    box-shadow: 0 8px 24px rgba(3, 14, 13, 0.35);
  }
  .site-header__logo img { width: 118px; }
  /* Barra de abas no lugar do menu; o conteúdo ganha espaço embaixo para ela. */
  .tabbar { display: grid; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* O WhatsApp fica sempre na barra de abas, então as aberturas não repetem o botão. */
  .hero__content .actions .btn--primary, .page-hero .actions .btn--primary { display: none; }
}

@media (max-width: 1023px) {
  /* Em telas estreitas, as grades de 12 colunas viram uma coluna só (os espaços entre colunas não cabem). */
  .lawyer-feature .photo, .lawyer-feature__text { grid-column: 1 / -1; }
  .site-footer--compact .footer__grid { grid-template-columns: 1fr 1fr; }
  .lawyer-feature, .bio, .split, .contact, .area-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Abertura: o retrato vai para o alto, ocupando a largura, e o texto fica embaixo, sobre o degradê. */
  .hero__bg img { width: 100%; height: 64%; object-position: 50% 16%; }
  .hero__bg::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, var(--bg) 40%, rgba(12, 47, 44, 0.7) 54%, rgba(12, 47, 44, 0) 72%),
      linear-gradient(180deg, rgba(12, 47, 44, 0.55) 0%, rgba(12, 47, 44, 0) 22%);
  }
  .hero--page { min-height: min(100svh, 900px); }
  .instances__grid { grid-template-columns: 1fr; gap: 28px; }
  .instances__list li:first-child { border-left: 0; padding-left: 0; }
  .instances__list li:first-child::before { left: 0; }
  
  
  
  
  
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .band__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .toc { display: none; }
  .area-article { grid-column: 1 / -1; }
  .related { grid-template-columns: 1fr; }
  .group-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio__text, .bio__aside { grid-column: 1 / -1; }
  .duty { grid-template-columns: 1fr; }
  .split__media, .split__text { grid-column: 1 / -1; }
  .contact__channels, .contact__form { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .site-footer--compact .footer__grid { grid-template-columns: 1fr; }
  /* A abertura ocupa a tela até a barra de abas. */
  .hero, .hero--page { min-height: min(calc(100svh - 64px - env(safe-area-inset-bottom)), 860px); padding-bottom: 48px; }
  .hero__content .actions { display: none; }
  .page-hero--image { min-height: 0; }
  /* Escritório: a foto vira uma faixa no alto e o cartão sobe por cima dela. */
  .feature { padding-top: 0; }
  .feature .media-bg { position: relative; height: 280px; }
  .media-bg--photo::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(12, 47, 44, 0) 60%); }
  .feature__card { margin-top: -72px; }
  /* Celular: 2×2, com os fios formando uma cruz entre as quatro. */
  .instances__list {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
  }
  .instances__list li, .instances__list li:first-child {
    padding: 24px 16px 22px;
    border-left: 0;
    background: var(--bg-deep);
  }
  .instances__list li::before, .instances__list li:first-child::before { left: 16px; }
  .instances__short { font-size: 1.875rem; }
  .instances__name { font-size: 0.8125rem; }
  
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .office__info { grid-template-columns: 1fr; gap: 24px; }
  
  .how-list { grid-template-columns: 1fr; }
  .area-cards { grid-template-columns: 1fr; }
  .group-links { grid-template-columns: 1fr; }
  .area-card { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .faq summary { padding-right: 40px; }
  .faq__answer { padding-right: 0; }
  .band .btn { width: 100%; }
  .band__actions { justify-items: stretch; }
}

/* ---------- Assinatura "Feito pela Melius" (/stigma) ----------
   Dentro da linha legal do rodapé: herda tamanho e cor dela; só "Melius" muda de fonte. */
.melius-credito { white-space: nowrap; }
.melius-credito a {
  font-family: "Melius Assinatura", Georgia, serif;
  font-weight: 400;
  font-size: 1.55em;
  line-height: 1;
  letter-spacing: 0.03em;
  -webkit-text-stroke: 0.5px currentColor;
  vertical-align: -0.06em;
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.2s ease;
}
.melius-credito a:hover, .melius-credito a:focus-visible { background-size: 100% 1px; }
.melius-credito a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .melius-credito a { transition: none; } }
