/* ==========================================================================
   PALOMA ASSUNÇÃO ADVOCACIA — Design System
   Síntese: ousadia editorial (Bick Law) + elegância matricial (Kümmerlein)
            + Legal Design e compliance (Baptista Luz)
   ========================================================================== */

/* Transição suave entre páginas (View Transitions API nativa do navegador).
   Progressive enhancement puro: navegadores sem suporte navegam normalmente,
   sem nenhum efeito visual perdido. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Tokens ---- */
:root {
  /* Cor — base neutra */
  --bg: #F9F9FB;
  --bg-raised: #FFFFFF;
  --bg-dark: #121417;
  --bg-dark-raised: #1A1D21;

  /* Cor — autoridade */
  --authority: #0A2540;      /* azul petróleo profundo */
  --authority-700: #082036;
  --authority-100: #E7ECF1;

  /* Cor — acento energético (uso estrito: microinterações, links ativos, dados) */
  --accent: #B5652D;         /* terracota aquecida */
  --accent-600: #9A5324;
  --accent-700: #7A4119;
  --accent-100: #F3E3D6;
  --accent-200: #DDA47A;    /* tinta clara p/ texto de acento sobre fundos escuros (AA) */
  --authority-ink-soft: #AEC5E3; /* texto secundário sobre --authority: tingido de azul, não cinza neutro */

  /* Texto */
  --ink: #171A1D;
  --ink-soft: #4A5157;
  --ink-inverse: #F5F6F7;
  --ink-inverse-soft: #B9C1C8;

  /* Bordas / linhas */
  --line: rgba(10, 37, 64, 0.12);
  --line-dark: rgba(249, 249, 251, 0.14);

  /* Tipografia */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Ritmo */
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;      /* cantos de inputs, tags pequenas, itens de lista */
  --radius-lg: 24px;   /* cards, painéis, molduras de imagem */
  --radius-pill: 999px; /* botões, nav flutuante, badges — curva total */
  --max: 1240px;

  /* Movimento */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset leve ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; text-underline-offset: 0.14em; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
main p { max-width: 68ch; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Superfícies que o navegador desenha por padrão — tingidas da paleta em vez
   de deixadas no azul/cinza genérico do sistema. */
::selection { background: var(--accent-100); color: var(--authority); }
.section--dark ::selection, .section--authority ::selection, .site-footer ::selection {
  background: var(--accent-600); color: var(--ink-inverse);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--authority-100); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--authority); }
html { scrollbar-color: var(--authority-100) var(--bg); scrollbar-width: thin; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 112px); }
.section--dark {
  background: var(--bg-dark);
  color: var(--ink-inverse);
}
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--authority { background: var(--authority); color: var(--ink-inverse); }
.section--panel { background: var(--bg-raised); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 0.05s; }
.btn-primary { background: var(--authority); color: var(--ink-inverse); }
.btn-primary:hover { background: var(--authority-700); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--authority); color: var(--ink-inverse); border-color: var(--authority); }
.btn-accent { background: var(--accent-600); color: var(--ink-inverse); } /* accent-600, não accent: garante AA com texto claro */
.btn-accent:hover { background: var(--accent-700); }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }

/* ==========================================================================
   Header / Navegação
   ========================================================================== */
/* Header flutuante em cápsula, com vidro — não mais uma barra reta colada
   no topo. O blur/transparência vivem no ::before do .container (não no
   .site-header em si): backdrop-filter no próprio header criaria um
   containing block para descendentes position:fixed — inclusive o menu
   mobile — prendendo-o dentro da caixa do header em vez de cobrir a tela
   toda. position:relative no .container não tem esse efeito colateral. */
.site-header {
  position: sticky;
  top: clamp(10px, 2.5vw, 18px);
  z-index: 500;
  padding-inline: var(--gutter);
}
.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: clamp(18px, 3vw, 30px);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 34px -16px rgba(10, 37, 64, 0.28);
}
.site-header .container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(249, 249, 251, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--authority);
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.nav-primary a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.nav-primary a.is-active,
.nav-primary a:hover { color: var(--authority); }
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-primary a.is-active::after { transform: scaleX(1); }
.nav-primary a:hover::after { transform: scaleX(1); }
/* Mega-menu de "Áreas de Atuação" — abre no hover (mouse) ou no foco por
   teclado; em toque, o link simplesmente navega para a página (que já lista
   as 5 áreas), sem depender de hover. */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { width: 9px; height: 6px; color: var(--ink-soft); transition: transform 0.2s var(--ease); }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 38px); /* limpa a base da cápsula do header, sem sobrepor */
  left: 50%;
  transform: translate(-50%, -6px);
  width: 280px;
  background: rgba(249, 249, 251, 0.78); /* mesmo vidro do header */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 46px -18px rgba(10, 37, 64, 0.32);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-dropdown-panel a:hover { background: var(--authority-100); color: var(--authority); }
.nav-dropdown-panel a::after { content: none; } /* não herda o sublinhado do nav principal */
.nav-dropdown-icon { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--accent-600); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--authority);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-primary { position: fixed; inset: 92px 0 0 0; z-index: 600; background: var(--bg); border-radius: 28px 0 0 0; flex-direction: column; align-items: flex-start; padding: 28px var(--gutter); gap: 22px; transform: translateX(100%); transition: transform 0.3s var(--ease); overflow-y: auto; }
  .nav-primary.is-open { transform: translateX(0); }
  .nav-primary a { font-size: 1.15rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  /* Mega-menu simplifica para link direto no mobile — a própria página já
     lista as 5 áreas, e hover não existe em toque. */
  .nav-dropdown-panel { display: none; }
  .nav-caret { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Hero fotográfico em tela cheia — retrato real da Dra. Paloma (não vídeo,
   não ilustração abstrata). Scrim em gradiente garante legibilidade do
   texto sem escurecer a foto inteira; luz e composição ficam intactas do
   lado direito, onde o rosto dela aparece. */
.hero--photo {
  position: relative;
  z-index: 0; /* cria stacking context próprio: sem isso, o filho z-index:-1 escapa e pinta atrás do próprio background da seção */
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding-top: clamp(140px, 16vw, 200px); /* respiro sob o header flutuante */
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
  color: var(--ink-inverse);
  background-color: var(--authority); /* base sólida: texto continua legível mesmo se a foto não carregar */
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,37,64,0.9) 0%, rgba(10,37,64,0.62) 36%, rgba(10,37,64,0.16) 62%, transparent 80%),
    linear-gradient(0deg, rgba(10,37,64,0.55) 0%, transparent 42%);
}
.hero-overlay { width: 100%; }
.hero--photo .hero-copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-block: 0 24px; max-width: 16ch; color: var(--ink-inverse); }
.hero--photo .hero-copy .lede { font-size: 1.15rem; color: var(--authority-ink-soft); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero--photo .hero-note { margin-top: 28px; font-size: 0.8rem; color: var(--authority-ink-soft); max-width: 46ch; }
.btn-ghost--onphoto { border-color: rgba(255, 255, 255, 0.7); color: var(--ink-inverse); }
.btn-ghost--onphoto:hover { background: var(--ink-inverse); color: var(--authority); border-color: var(--ink-inverse); }

.scroll-cue {
  position: absolute;
  bottom: 8px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--authority-ink-soft);
}
.scroll-cue .line { width: 34px; height: 1px; background: var(--authority-ink-soft); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent-200);
  animation: cue 1.8s var(--ease) 3; /* roda 3x ao carregar, depois para — não é um loop contínuo */
}
@keyframes cue { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .line::after { animation: none; }
}

@media (max-width: 760px) {
  .hero--photo { min-height: 94vh; padding-top: clamp(120px, 30vw, 160px); }
  .hero-bg-img { object-position: 78% 15%; } /* empurra o rosto pro canto, sob o texto sobra fundo desfocado */
  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(10,37,64,0.94) 0%, rgba(10,37,64,0.74) 48%, rgba(10,37,64,0.42) 74%, rgba(10,37,64,0.22) 100%);
  }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   Declaração de Autoridade — uma frase editorial, não um grid de estatísticas
   ========================================================================== */
.statement { border-top: 1px solid var(--line-dark); }
.statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.55;
  color: var(--ink-inverse);
  max-width: 66ch;
}
.statement-text strong {
  font-weight: 700;
  color: var(--accent-200); /* tinta clara p/ contraste AA sobre --authority */
}

/* ==========================================================================
   Navegação Matricial
   ========================================================================== */
.matrix-head { max-width: 62ch; margin-bottom: 44px; }
.matrix-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--authority); margin-top: 14px; }
.matrix-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.02rem; }

.matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raised);
}
.matrix-col { padding: clamp(24px, 3vw, 36px); }
.matrix-col + .matrix-col { border-left: 1px solid var(--line); }
.matrix-col h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 18px;
}
.matrix-list { display: flex; flex-direction: column; gap: 4px; }
.matrix-item {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 34px 12px 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.matrix-item:hover { background: var(--authority-100); }
.matrix-item.is-selected { background: var(--authority); color: var(--ink-inverse); }
/* Confirmação de seleção desenhada em CSS puro, não emoji/unicode. */
.matrix-item::after {
  content: "";
  position: absolute;
  right: 15px; top: 50%;
  width: 6px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg) scale(0);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.matrix-item.is-selected::after { transform: translateY(-65%) rotate(45deg) scale(1); opacity: 1; }

.matrix-result {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3vw, 36px);
  background: var(--authority-100);
  display: none;
}
.matrix-result.is-visible { display: flex; }
.matrix-result { align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.matrix-result-text .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-600); font-weight: 700; }
.matrix-result-text p { margin-top: 6px; font-size: 1.05rem; color: var(--authority); max-width: 52ch; }

@media (max-width: 760px) {
  .matrix { grid-template-columns: 1fr; }
  .matrix-col + .matrix-col { border-left: none; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Cards genéricos (áreas, hubs de conteúdo, equipe)
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: var(--authority); box-shadow: 0 12px 32px -20px rgba(10,37,64,0.35); }
.card h3 { font-size: 1.2rem; color: var(--authority); }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Sequência real de etapas (ordem importa: consulta → resumo → decisão) —
   sem moldura de card, o numeral é parte do texto, não um selo decorativo. */
.process-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-steps li { padding-top: 20px; border-top: 2px solid var(--authority); }
.step-num { display: block; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--accent-600); margin-bottom: 10px; }
.process-steps h3 { font-size: 1.2rem; color: var(--authority); }
.process-steps p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 660px) { .process-steps { grid-template-columns: 1fr; } }
.card-link { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--authority); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.card:hover .card-link svg { transform: translateX(3px); }

/* Hubs de conteúdo / Insights */
.insight-card { }
.insight-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--accent-600); font-weight: 600; }
.insight-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }
.insight-summary { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.insight-summary li { position: relative; padding-left: 16px; font-size: 0.9rem; color: var(--ink-soft); }
.insight-summary li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.insight-author { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.insight-author .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 22%; background: var(--authority-100); flex-shrink: 0; }
.insight-author a { font-weight: 700; color: var(--authority); }

/* ==========================================================================
   Section: Por que este posicionamento (dark)
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.pillar { padding-top: 20px; border-top: 1px solid var(--line-dark); }
.pillar h3 { font-size: 1.3rem; color: var(--ink-inverse); }
.pillar p { margin-top: 12px; color: var(--ink-inverse-soft); font-size: 0.96rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   Newsletter / Captação Passiva
   ========================================================================== */
.newsletter {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.newsletter-copy h2 { color: var(--authority); font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 14px; }
.newsletter-copy p { margin-top: 14px; color: var(--ink-soft); max-width: 42ch; }

.interest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 22px; }
.check-tile { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; }
.check-tile input { margin-top: 3px; accent-color: var(--authority); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--authority);
  box-shadow: 0 0 0 3px var(--authority-100);
  outline: none;
}
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 20px; }
.consent-row input { margin-top: 3px; accent-color: var(--authority); flex-shrink: 0; }
.consent-row a { color: var(--authority); font-weight: 600; text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-note { font-size: 0.76rem; color: var(--ink-soft); margin-top: 10px; }
.form-status { font-size: 0.85rem; margin-top: 12px; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { color: #1C3A27; }
.form-status.err { color: var(--accent-600); }

@media (max-width: 860px) {
  .newsletter { grid-template-columns: 1fr; }
  .interest-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-dark); color: var(--ink-inverse-soft); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: var(--ink-inverse); }
.footer-brand small { color: var(--ink-inverse-soft); }
.footer-brand p { margin-top: 16px; font-size: 0.86rem; max-width: 34ch; }
.footer-col h3 { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-inverse); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col address { font-size: 0.88rem; font-style: normal; }
.footer-col a:hover { color: var(--ink-inverse); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links button { background: none; border: none; color: var(--ink-inverse-soft); font-size: 0.78rem; text-decoration: underline; }
.footer-bottom-links button:hover, .footer-bottom-links a:hover { color: var(--ink-inverse); }
.footer-disclaimer { font-size: 0.74rem; color: var(--ink-inverse-soft); margin-top: 20px; max-width: 80ch; line-height: 1.6; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cookie Consent (CMP) — pesos visuais simétricos, ANPD-compliant
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2000;
  max-width: 780px;
  margin-inline: auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(10,37,64,0.4);
  padding: 24px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner p { font-size: 0.88rem; color: var(--ink-soft); }
.cookie-banner a { color: var(--authority); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
/* Pesos idênticos: mesmo tamanho/estilo para Aceitar e Rejeitar — nenhum "dark pattern" */
.cookie-actions .btn { flex: 1 1 160px; justify-content: center; }
.cookie-actions .btn-link { flex: 1 1 160px; justify-content: center; background: none; border: 1px solid var(--line); color: var(--ink); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(10,37,64,0.45);
  display: flex;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.cookie-modal.is-visible { opacity: 1; visibility: visible; transition: opacity 0.25s var(--ease); }
.cookie-modal-panel {
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 32px;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s var(--ease);
}
.cookie-modal.is-visible .cookie-modal-panel { transform: scale(1) translateY(0); }
.cookie-modal-panel h3 { color: var(--authority); font-size: 1.3rem; }
.cookie-modal-panel > p { margin-top: 10px; color: var(--ink-soft); font-size: 0.9rem; }
.cookie-pref-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cookie-pref-row:last-of-type { border-bottom: 1px solid var(--line); }
.cookie-pref-row h4 { font-size: 0.95rem; color: var(--ink); }
.cookie-pref-row p { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + .track { background: var(--authority); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:disabled + .track { background: var(--authority); opacity: 0.5; }
.cookie-modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.cookie-modal-actions .btn { flex: 1; justify-content: center; }

@media (max-width: 560px) {
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn, .cookie-actions .btn-link { flex: 1 1 auto; }
}

/* ==========================================================================
   Página interna — cabeçalho de página
   ========================================================================== */
.page-head { padding-block: clamp(48px, 8vw, 88px) 40px; background: var(--authority-100); }
.page-head h1 { color: var(--authority); font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 14px; max-width: 26ch; }
.page-head p { margin-top: 16px; color: var(--ink-soft); max-width: 60ch; font-size: 1.05rem; }
.breadcrumb { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 10px; }
.breadcrumb a { color: var(--authority); font-weight: 600; }

.placeholder-note {
  border: 1px dashed var(--accent);
  background: var(--accent-100);
  color: var(--accent-600);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.82rem;
  margin-block: 16px;
}

/* Perfil da advogada */
.profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile-photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--authority-100), var(--bg)); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
/* Fallback visual (sem foto ainda): mesma moldura tracejada usada em outros placeholders do site */
.profile-photo:has(img[src=""]), .profile-photo.is-empty { border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.85rem; text-align: center; padding: 24px; }
.profile-body h2 { color: var(--authority); font-size: 1.8rem; }
.profile-body .role { color: var(--accent-600); font-weight: 600; font-size: 0.9rem; margin-top: 6px; display: block; }
.profile-body p { margin-top: 16px; color: var(--ink-soft); }
.credential-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.credential-list li { display: flex; gap: 10px; font-size: 0.92rem; align-items: baseline; }
.credential-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile-photo { max-width: 320px; } }

/* Vitrine em destaque — carrossel de tela cheia com foto conceitual, overlay
   de cor e uma frase curta em destaque. Estrutura própria (autoral, com
   fotos que a banca ainda vai produzir), não conteúdo de terceiros. */
.showcase {
  position: relative;
  height: min(78vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-dark);
}
.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.showcase-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.showcase-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.showcase-slide.is-active .showcase-media { transform: scale(1.14); } /* Ken Burns lento enquanto o slide fica ativo */
.showcase-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  font-size: 0.85rem;
  color: var(--ink-inverse-soft);
  background: linear-gradient(160deg, var(--bg-dark-raised), var(--bg-dark));
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.showcase-overlay { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0.72; }
.showcase-overlay--authority { background: linear-gradient(160deg, var(--authority), #1C3A27); }
.showcase-overlay--accent { background: linear-gradient(160deg, var(--accent-600), var(--authority)); }
.showcase-text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(48px, 8vw, 96px);
}
.showcase-text h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
  color: var(--ink-inverse);
  max-width: 16ch;
  text-transform: uppercase;
}
.showcase-text h2 em { color: var(--accent-200); font-style: italic; }
.showcase-controls {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4vw, 32px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}
.showcase-toggle { background: none; border: none; padding: 6px; color: var(--ink-inverse); opacity: 0.8; }
.showcase-toggle:hover { opacity: 1; }
.showcase-toggle svg { width: 15px; height: 15px; }
.showcase-dots { display: flex; gap: 10px; }
.showcase-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.showcase-dots button.is-active { background: var(--accent-200); border-color: var(--accent-200); transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) {
  .showcase-media, .showcase-slide.is-active .showcase-media { transition: none; transform: scale(1.06); }
}
@media (max-width: 640px) {
  .showcase-text h2 { max-width: 14ch; }
}

/* Módulo "quem conduz o caso" — versão condensada do perfil, usada na home
   para humanizar a primeira dobra de conteúdo (influência Kümmerlein). */
.quote-block { display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.quote-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(10, 37, 64, 0.35); }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.quote-statement { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; color: var(--authority); max-width: 46ch; }
.quote-attribution { margin-top: 18px; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.quote-attribution br + br { display: none; }
.quote-block .btn { margin-top: 22px; }
@media (max-width: 640px) {
  .quote-block { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .quote-photo { width: 140px; }
  .quote-statement { max-width: 100%; }
}

/* Áreas de atuação — lista detalhada */
/* Nome da área faz as vezes de "running head" editorial na coluna esquerda —
   sem numeral: a ordem das cinco áreas não carrega informação. */
.area-detail {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  grid-template-rows: auto 1fr;
  column-gap: 32px;
  row-gap: 14px;
  scroll-margin-top: 110px; /* header flutuante fica por cima ao chegar via âncora */
}
.area-detail:last-child { border-bottom: 1px solid var(--line); }
.area-icon { grid-column: 1; grid-row: 1; width: 40px; height: 40px; stroke: var(--authority); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: transform 0.3s var(--ease), stroke 0.3s var(--ease); }
.area-detail:hover .area-icon { stroke: var(--accent-600); transform: scale(1.08); }
.area-detail h3 { grid-column: 1; grid-row: 2; align-self: start; color: var(--authority); font-size: 1.7rem; line-height: 1.15; }
.area-detail > div { grid-column: 2; grid-row: 1 / 3; }
.area-detail p { color: var(--ink-soft); }
.area-detail ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.area-detail ul li { font-size: 0.8rem; background: var(--authority-100); color: var(--authority); padding: 6px 12px; border-radius: 999px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.area-detail ul li:hover { background: var(--authority); color: var(--ink-inverse); }
@media (max-width: 700px) {
  .area-detail { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .area-icon, .area-detail h3, .area-detail > div { grid-column: 1; }
  .area-icon { grid-row: 1; } .area-detail h3 { grid-row: 2; } .area-detail > div { grid-row: 3; }
}

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.contact-info-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contact-info-card h2 { color: var(--authority); font-size: 1.05rem; }
.contact-info-item { display: flex; gap: 12px; margin-top: 18px; font-size: 0.92rem; }
.contact-info-item strong { display: block; color: var(--ink); }
.contact-info-item span { color: var(--ink-soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Insights / Hub listing */
.insights-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.insights-filter button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-raised); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.insights-filter button.is-active { background: var(--authority); color: var(--ink-inverse); border-color: var(--authority); }

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