/* Mascarenhas Brandão Advogados Associados — site institucional
   Cores e tipografia do design system do escritório. */

:root {
  --navy-950: #0B0E39;
  --navy-900: #11144A;
  --navy-800: #181C5E;
  --navy-400: #606691;
  --navy-200: #C9CBDD;
  --navy-100: #E6E7F0;
  --gold-700: #9C8457;
  --gold-600: #B89E6E;
  --gold-500: #D1B98A;
  --gold-300: #E3D4B4;
  --gold-100: #F3ECDD;
  --bronze-800: #5B4731;
  --white: #FFFFFF;
  --ivory: #FBF9F5;
  --stone-100: #F2EFE9;
  --stone-200: #E5E0D7;
  --stone-600: #6E685E;
  --text: #2B2D45;
  --gradient-navy: linear-gradient(180deg, #181C5E 0%, #0B0E39 100%);
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Montserrat", "Gill Sans", "Segoe UI", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--gold-700); }
::selection { background: var(--gold-300); color: var(--navy-950); }

:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(209,185,138,.75); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--bronze-800);
}
.eyebrow-claro { color: var(--gold-500); }

.serif-italico {
  font-family: var(--serif); font-size: 30px; line-height: 1.3;
  font-style: italic; color: var(--navy-400);
}

/* botões */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 13px;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s cubic-bezier(.2,.6,.2,1), color .2s, transform .15s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primario { background: var(--navy-800); color: #fff; }
.btn-primario:hover { background: var(--navy-950); color: #fff; }
.btn-ouro { background: var(--gold-500); color: var(--navy-950); }
.btn-ouro:hover { background: var(--gold-600); color: var(--navy-950); }
.btn-contorno { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-contorno:hover { background: var(--navy-100); color: var(--navy-800); }
.btn-contorno-claro { background: transparent; color: #fff; border-color: rgba(209,185,138,.6); }
.btn-contorno-claro:hover { background: rgba(209,185,138,.15); color: #fff; }
.btn-sm { padding: 11px 18px; font-size: 12px; }
.btn-bloco { display: block; width: 100%; }

/* cabeçalho */
.topo { background: var(--gradient-navy); border-bottom: 1px solid rgba(209,185,138,.35); position: sticky; top: 0; z-index: 50; }
.topo .wrap { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.topo img.marca { height: 38px; width: auto; display: block; }
.menu { flex-grow: 1; display: flex; align-items: center; justify-content: flex-end; gap: 26px; flex-wrap: wrap; }
.menu a { font-size: 14px; color: var(--navy-100); }
.menu a:hover { color: var(--gold-500); }
.menu a.ativo { color: var(--gold-500); border-bottom: 2px solid var(--gold-500); padding-bottom: 2px; }
.abrir-menu { display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.abrir-menu span { display: block; width: 22px; height: 2px; background: var(--gold-500); }

/* seções */
section { padding: 96px 0; }
.fundo-suave { background: var(--ivory); }
.fundo-navy { background: var(--gradient-navy); }
.fundo-navy h1, .fundo-navy h2, .fundo-navy h3 { color: #fff; }
.fundo-navy p { color: var(--navy-200); }
.titulo-secao { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: 19px; line-height: 1.6; }
.filete { width: 32px; height: 2px; background: var(--gold-500); }

.duas-colunas { display: flex; gap: 64px; align-items: center; flex-wrap: wrap; }
.coluna-texto { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; }
.coluna-foto { flex: 0 1 420px; position: relative; }
.coluna-foto img { display: block; width: 100%; height: 540px; object-fit: cover; }
.tracinho-ouro { position: absolute; left: -16px; top: -16px; width: 160px; height: 3px; background: var(--gold-500); }
.tracinho-ouro.direita { left: auto; right: -16px; }

/* faixa de números */
.faixa-numeros { background: var(--stone-100); border-top: 1px solid var(--stone-200); border-bottom: 1px solid var(--stone-200); padding: 32px 0; }
.faixa-numeros .wrap { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.faixa-numeros div { flex: 1 1 200px; }
.faixa-numeros .numero { font-family: var(--serif); font-size: 28px; color: var(--navy-800); }
.faixa-numeros .rotulo { font-size: 14px; color: var(--stone-600); }

/* grade de cards */
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--stone-200); border-radius: 4px;
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 18px rgba(11,14,57,.08); transform: translateY(-2px); }
.card .filete { margin-bottom: 4px; }
.card h3 { font-size: 24px; }
.card p { font-size: 15px; line-height: 1.7; }

/* passos */
.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.passo { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--gold-500); padding-top: 20px; }
.passo .n { font-family: var(--serif); font-size: 36px; color: var(--navy-400); }
.passo h3 { font-size: 22px; }
.passo p { font-size: 15px; line-height: 1.7; }

/* artigos */
.artigo-card { display: flex; flex-direction: column; border: 1px solid var(--stone-200); border-radius: 4px; overflow: hidden; background: #fff; }
.artigo-card img { display: block; width: 100%; height: 200px; object-fit: cover; }
.artigo-card .corpo { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.artigo-card h3 { font-size: 24px; }
.artigo-card .tempo { font-size: 12px; color: var(--stone-600); }
.bloco-marca { height: 200px; background: var(--navy-800); display: flex; align-items: center; justify-content: center; }
.bloco-marca img { height: 200px; width: auto; }
.etiquetas { display: flex; gap: 10px; flex-wrap: wrap; }
.etiqueta {
  display: inline-block; font-size: 13px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--stone-200); color: var(--text); background: #fff;
}
.etiqueta.ativa { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.link-ver-todos {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid var(--gold-500); padding-bottom: 4px; align-self: flex-start;
}

/* perguntas */
.pergunta { border-bottom: 1px solid var(--stone-200); }
.pergunta summary {
  list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative;
  font-family: var(--serif); font-size: 22px; color: var(--navy-800); line-height: 1.3;
}
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 1px solid var(--gold-500); border-radius: 50%;
  color: var(--gold-700); font-family: var(--sans); font-size: 18px; line-height: 30px; text-align: center;
}
.pergunta[open] summary::after { content: "\00d7"; }
.pergunta .resposta { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.7; }

/* contato */
.cartao-contato { flex: 1 1 420px; background: #fff; border-top: 3px solid var(--gold-500); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-800); }
.campo input, .campo select, .campo textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text); padding: 12px 14px;
  border: 1px solid var(--stone-200); border-radius: 2px; background: #fff; width: 100%;
}
.campo textarea { resize: vertical; min-height: 110px; }
.nota { font-size: 12px; line-height: 1.6; color: var(--stone-600); }
.dados-contato { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(209,185,138,.35); }
.dados-contato p { color: #fff; }
.dados-contato p.secundario { color: var(--navy-200); }

/* rodapé */
footer { background: var(--navy-950); padding: 72px 0 48px; }
footer .colunas { display: flex; gap: 64px; flex-wrap: wrap; }
footer .marca-rodape { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
footer .marca-rodape img { width: 230px; height: auto; align-self: flex-start; }
footer .coluna { flex: 0 1 220px; display: flex; flex-direction: column; gap: 12px; }
footer p, footer a { font-size: 14px; color: var(--navy-200); }
footer a:hover { color: var(--gold-500); }
footer .rodape-legal { border-top: 1px solid rgba(209,185,138,.35); margin-top: 40px; padding-top: 24px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer .rodape-legal p, footer .rodape-legal a { font-size: 12px; line-height: 1.7; }

/* botão flutuante do whatsapp */
.zap-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-800); color: #fff; padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 18px 40px rgba(11,14,57,.24); font-size: 14px; font-weight: 600;
}
.zap-flutuante:hover { background: var(--navy-950); color: #fff; }
.zap-flutuante svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* página de texto corrido */
.texto-corrido { max-width: 760px; }
.texto-corrido h2 { font-size: 28px; margin-top: 40px; }
.texto-corrido p { margin-top: 16px; line-height: 1.8; }
.texto-corrido ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.texto-corrido li { position: relative; padding-left: 22px; line-height: 1.7; }
.texto-corrido li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }

.migalhas { font-size: 12px; color: var(--stone-600); }
.migalhas a { color: var(--stone-600); }

@media (max-width: 860px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  .serif-italico { font-size: 22px; }
  .lead { font-size: 17px; }
  .duas-colunas { gap: 32px; }
  .coluna-foto img { height: 380px; }
  .tracinho-ouro { display: none; }
  .menu { display: none; }
  .menu.aberto { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 14px; padding-top: 12px; }
  .abrir-menu { display: flex; margin-left: auto; }
  .topo .wrap { flex-wrap: wrap; gap: 0; }
  .cartao-contato { padding: 28px; }
  footer .colunas { gap: 32px; }
  .pergunta summary { font-size: 19px; }
}
