/* Carvalho Monteiro & Monteiro: estilo único do site */
:root {
  --escuro: #17120e;
  --escuro-2: #231b15;
  --bronze: #83664d;
  --bronze-escuro: #6b523d;
  --dourado: #c9a87c;
  --dourado-hover: #b8966a;
  --creme: #fffaf3;
  --branco: #ffffff;
  --texto: #2b231d;
  --texto-suave: #5f544b;
  --linha: #e9dfd1;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --largura: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--branco);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); }
a:hover { color: var(--bronze-escuro); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--escuro); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; }

.pular { position: absolute; left: -9999px; top: 0; background: var(--dourado); color: var(--escuro); padding: .6em 1em; z-index: 100; }
.pular:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Topo */
.faixa-topo { background: #0f0b08; color: #cfc3b5; font-size: .82rem; }
.faixa-topo .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; }
.faixa-topo a { color: var(--dourado); text-decoration: none; }
@media (max-width: 640px) { .faixa-topo span { display: none; } .faixa-topo .container { justify-content: center; } }
.topo { background: var(--escuro); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(201,168,124,.18); }
.topo .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.logo img { width: 190px; }
.menu-botao { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid rgba(201,168,124,.5); color: var(--creme); padding: .55rem .8rem; font: inherit; font-size: .9rem; cursor: pointer; }
.menu-botao span { display: block; width: 18px; height: 2px; background: var(--dourado); box-shadow: 0 6px 0 var(--dourado), 0 -6px 0 var(--dourado); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--escuro); padding: .5rem 16px 1.25rem; border-bottom: 1px solid rgba(201,168,124,.25); }
.nav.aberto { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--creme); text-decoration: none; display: block; padding: .7rem 0; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--dourado); }
.nav .sub a { padding: .45rem 0 .45rem 1rem; font-size: .92rem; color: #cfc3b5; }
.nav .botao { margin-top: .75rem; }
@media (min-width: 1024px) {
  .menu-botao { display: none; }
  .nav { display: flex !important; position: static; padding: 0; border: 0; align-items: center; gap: 1.6rem; background: none; }
  .nav > ul { display: flex; gap: 1.6rem; align-items: center; }
  .nav a { padding: .4rem 0; font-size: .92rem; }
  .nav .tem-sub { position: relative; }
  .nav .sub { display: none; position: absolute; top: 100%; left: -1rem; background: var(--escuro-2); min-width: 300px; padding: .6rem 1rem; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .nav .tem-sub:hover .sub, .nav .tem-sub:focus-within .sub { display: block; }
  .nav .sub a { padding: .5rem 0; }
  .nav .botao { margin-top: 0; }
}

/* Botões: cantos retos */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.6rem; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer; text-align: center; }
.botao-dourado { background: var(--dourado); color: var(--escuro); }
.botao-dourado:hover { background: var(--dourado-hover); color: var(--escuro); }
.botao-bronze { background: var(--bronze); color: var(--branco); }
.botao-bronze:hover { background: var(--bronze-escuro); color: var(--branco); }
.botao-contorno { border-color: rgba(255,250,243,.7); color: var(--creme); }
.botao-contorno:hover { background: var(--creme); color: var(--escuro); }
.botao-pequeno { padding: .65rem 1.1rem; font-size: .82rem; }
.botao svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { background: var(--escuro); color: var(--creme); position: relative; overflow: hidden; }
.hero .container { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3.5rem; position: relative; z-index: 1; }
.hero h1 { color: var(--creme); }
.hero h1 em { font-style: normal; color: var(--dourado); }
.hero .sub { font-size: 1.2rem; color: #e8ddcf; max-width: 36em; }
.hero p { color: #cfc3b5; max-width: 38em; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-foto { position: relative; }
.hero-foto img { width: 100%; max-width: 520px; margin: 0 auto; }
.hero-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,18,14,0) 60%, var(--escuro) 100%); }
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 4.5rem; padding-bottom: 5rem; }
  .hero-foto::after { background: linear-gradient(90deg, var(--escuro) 0%, rgba(23,18,14,0) 35%), linear-gradient(180deg, rgba(23,18,14,0) 70%, var(--escuro) 100%); }
}
.hero-pagina .container { grid-template-columns: 1fr !important; padding-top: 3rem; padding-bottom: 3rem; }
.hero-pagina h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22em; }

.selos { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(201,168,124,.25); font-size: .85rem; color: #cfc3b5; }
.selos strong { color: var(--dourado); font-weight: 600; }

/* Seções */
.secao { padding: 4.5rem 0; }
.secao-creme { background: var(--creme); }
.secao-escura { background: var(--escuro); color: #e8ddcf; }
.secao-escura h2, .secao-escura h3 { color: var(--creme); }
.rotulo { display: block; font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin-bottom: .9rem; }
.secao-escura .rotulo, .hero .rotulo { color: var(--dourado); }
.risco { width: 80px; height: 4px; background: var(--dourado); border: 0; margin: 0 0 1.6rem; }
.centro { text-align: center; }
.centro .risco { margin-left: auto; margin-right: auto; }
.intro { color: var(--texto-suave); max-width: 44em; }
.centro .intro { margin-left: auto; margin-right: auto; }
.secao-escura .intro { color: #cfc3b5; }

.grade { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
@media (min-width: 700px) { .grade-2 { grid-template-columns: repeat(2, 1fr); } .grade-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grade-3 { grid-template-columns: repeat(3, 1fr); } }

.cartao { background: var(--branco); padding: 2rem 1.8rem; box-shadow: 0 2px 14px rgba(43,35,29,.07); transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.cartao:hover { box-shadow: 0 14px 36px rgba(43,35,29,.14); transform: translateY(-3px); }
.cartao .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-bottom: .6rem; }
.cartao p { color: var(--texto-suave); font-size: .98rem; }
.cartao .mais { margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none; letter-spacing: .03em; }
.cartao .mais::after { content: " →"; }

.lista-espelho { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.lista-espelho li { background: var(--branco); padding: 1.1rem 1.3rem 1.1rem 3.2rem; position: relative; border-left: 3px solid var(--dourado); }
.lista-espelho li::before { content: "“"; position: absolute; left: 1rem; top: .3rem; font-family: var(--serif); font-size: 2.4rem; color: var(--dourado); }
@media (min-width: 860px) { .lista-espelho { grid-template-columns: repeat(2, 1fr); } }

.passos { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1.4rem; counter-reset: passo; }
@media (min-width: 860px) { .passos { grid-template-columns: repeat(3, 1fr); } }
.passos li { counter-increment: passo; padding: 2rem 1.6rem; background: var(--escuro-2); border-top: 3px solid var(--dourado); }
.secao-creme .passos li, .secao .passos li.claro { background: var(--branco); }
.passos li::before { content: counter(passo); font-family: var(--serif); font-size: 2.6rem; color: var(--dourado); display: block; line-height: 1; margin-bottom: .8rem; }
.passos h3 { font-size: 1.2rem; }
.passos p { margin: 0; color: inherit; opacity: .9; font-size: .98rem; }

.duas-colunas { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .duas-colunas { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.moldura { position: relative; max-width: 460px; margin: 0 auto; }
.moldura::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--dourado); }
.moldura img { position: relative; }

.numeros { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin: 2rem 0; }
.numeros div { display: flex; flex-direction: column; }
.numeros strong { font-family: var(--serif); font-size: 2.6rem; color: var(--bronze); line-height: 1; font-weight: 600; }
.secao-escura .numeros strong { color: var(--dourado); }
.numeros span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); margin-top: .4rem; }
.secao-escura .numeros span { color: #cfc3b5; }

/* Sócios */
.socio { display: grid; gap: 1.6rem; background: var(--branco); padding: 1.6rem; box-shadow: 0 2px 14px rgba(43,35,29,.07); }
.socio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.socio h3 { margin-bottom: .2rem; }
.socio .oab { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-bottom: .9rem; }
.socio p { color: var(--texto-suave); font-size: .98rem; }
@media (min-width: 700px) { .socio { grid-template-columns: 220px 1fr; align-items: start; } }

/* Unidades */
.unidade { background: var(--branco); padding: 1.6rem; border-top: 3px solid var(--bronze); box-shadow: 0 2px 14px rgba(43,35,29,.07); }
.unidade h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.unidade address { font-style: normal; color: var(--texto-suave); font-size: .96rem; margin-bottom: 1rem; }
.unidade a { font-weight: 600; font-size: .9rem; }

/* Página de área */
.resposta { font-size: 1.15rem; background: var(--creme); border-left: 4px solid var(--dourado); padding: 1.4rem 1.6rem; margin: 0 0 2.4rem; color: var(--texto); }
.conteudo { max-width: 780px; }
.conteudo h2 { margin-top: 2.6rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.conteudo h2 + .risco { margin-bottom: 1.2rem; }
.conteudo li { margin-bottom: .5rem; }
.destaque { background: var(--escuro); color: #e8ddcf; padding: 1.8rem; margin: 2rem 0; }
.destaque strong { color: var(--dourado); }
.fonte { font-size: .86rem; color: var(--texto-suave); }

.faq details { border-bottom: 1px solid var(--linha); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 2rem; color: var(--escuro); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -.1rem; font-size: 1.5rem; color: var(--bronze); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--texto-suave); }

.migalhas { font-size: .82rem; color: #cfc3b5; margin-bottom: 1.2rem; }
.migalhas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.migalhas li + li::before { content: "/"; margin-right: .4rem; color: var(--dourado); }
.migalhas a { color: #cfc3b5; }

/* CTA final */
.cta-final { background: var(--escuro); color: #e8ddcf; text-align: center; padding: 4.5rem 0; }
.cta-final h2 { color: var(--creme); max-width: 20em; margin-left: auto; margin-right: auto; }
.cta-final p { max-width: 36em; margin: 0 auto 1.8rem; color: #cfc3b5; }

/* Blog */
.blog-vazio { background: var(--creme); padding: 2.4rem; text-align: center; color: var(--texto-suave); }
.post-cartao img { aspect-ratio: 16 / 9; object-fit: cover; margin: -2rem -1.8rem 1.4rem; width: calc(100% + 3.6rem); max-width: none; }

/* Rodapé */
.rodape { background: #0f0b08; color: #b9ad9f; font-size: .92rem; padding: 3.5rem 0 2rem; }
.rodape h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dourado); margin-bottom: 1rem; }
.rodape a { color: #e8ddcf; text-decoration: none; }
.rodape a:hover { color: var(--dourado); }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin-bottom: .5rem; }
.rodape address { font-style: normal; margin-bottom: .8rem; }
.rodape-grade { display: grid; gap: 2.2rem; }
@media (min-width: 860px) { .rodape-grade { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.rodape .logo img { width: 200px; margin-bottom: 1rem; }
.rodape-base { border-top: 1px solid rgba(201,168,124,.18); margin-top: 2.6rem; padding-top: 1.4rem; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }

/* WhatsApp flutuante */
.whats-flutuante { position: fixed; right: 18px; bottom: 18px; width: 64px; height: 64px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); z-index: 60; transition: transform .2s; }
.whats-flutuante:hover { transform: scale(1.06); }
.whats-flutuante svg { width: 34px; height: 34px; fill: #fff; }

/* Entrada suave (só com JS e sem preferência por menos movimento) */
@media (prefers-reduced-motion: no-preference) {
  .js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .revelar.visivel { opacity: 1; transform: none; }
}
