/* Modelo: Advocacia Clássica — escuro, dourado e serifado */
@font-face { font-family: "Playfair"; src: url("/assets/fontes/playfair-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --ouro: #c8a96a;
  --ouro-claro: #e3cf9f;
  --noite: #0b1222;
  --noite-2: #111c33;
  --papel: #f7f4ee;
  --tinta: #1b2234;
  --texto: #4a5163;
  --linha: #e4ddcf;
  --fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serifa: "Playfair", Georgia, "Times New Roman", serif;
  --largura: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); color: var(--texto); background: #fff; line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serifa); font-weight: 600; color: var(--tinta); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); color: #fff; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 4px; }
.conteiner { width: min(var(--largura), 100% - 40px); margin-inline: auto; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--ouro); color: var(--noite); padding: 10px 16px; z-index: 100; }
.pular:focus { left: 8px; }

.sobretitulo { display: flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ouro); margin-bottom: 18px; }
.sobretitulo::before { content: ""; width: 42px; height: 1px; background: currentColor; transition: width .9s ease .2s; }
.centro .sobretitulo { justify-content: center; }
.revelar:not(.visivel) .sobretitulo::before, .sobretitulo.revelar:not(.visivel)::before { width: 0; }

.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; background: var(--ouro); color: var(--noite); font-weight: 700; letter-spacing: .04em; text-decoration: none; position: relative; overflow: hidden; transition: color .3s; isolation: isolate; }
.botao::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateX(-101%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); z-index: -1; }
.botao:hover::after { transform: none; }
.botao-contorno { background: transparent; color: var(--ouro); border: 1px solid var(--ouro); min-height: 46px; padding: 0 20px; font-size: .92rem; }
.botao-contorno::after { background: var(--ouro); }
.botao-contorno:hover { color: var(--noite); }
.link-seta { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.link-seta::after { content: "→"; color: var(--ouro); transition: transform .3s; }
.link-seta:hover::after { transform: translateX(6px); }

/* Topo: transparente sobre a capa, sólido ao rolar */
.topo { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, box-shadow .4s, height .4s; }
.topo.rolou { background: rgba(11, 18, 34, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(200, 169, 106, .25); }
.topo-linha { display: flex; align-items: center; gap: 28px; height: 92px; transition: height .4s; }
.topo.rolou .topo-linha { height: 74px; }
.marca img { height: 46px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .95rem; padding: 10px 14px; position: relative; }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--ouro); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.menu a:hover { color: #fff; }
.menu a:hover::after { transform: none; }
.abrir-menu { display: none; }

/* Capa */
.hero { min-height: clamp(640px, 100svh, 960px); display: flex; align-items: center; position: relative; background-color: var(--noite); background-size: cover; background-position: center; padding: 140px 0 90px; color: rgba(255, 255, 255, .78); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 18, 34, .92) 0%, rgba(11, 18, 34, .6) 55%, rgba(11, 18, 34, .25) 100%); }
.hero-conteudo { position: relative; max-width: 760px; margin-left: max(20px, (100% - var(--largura)) / 2); }
.hero-texto { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 36em; }
.hero-botoes { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 36px; }
.hero .sobretitulo, .hero h1, .hero-texto, .hero-botoes { animation: subir 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .12s; }
.hero-texto { animation-delay: .24s; }
.hero-botoes { animation-delay: .36s; }
@keyframes subir { from { opacity: 0; transform: translateY(30px); } }
.rolar { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1px solid rgba(200, 169, 106, .6); border-radius: 20px; transform: translateX(-50%); }
.rolar span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ouro); animation: rolar 1.8s infinite; }
@keyframes rolar { to { transform: translateY(14px); opacity: 0; } }

/* Números */
.numeros { background: var(--noite-2); color: #fff; border-top: 1px solid rgba(200, 169, 106, .2); }
.numeros-grade { display: grid; grid-template-columns: repeat(4, 1fr); }
.numeros-grade > div { padding: 46px 20px; text-align: center; border-left: 1px solid rgba(200, 169, 106, .18); }
.numeros-grade > div:first-child { border-left: 0; }
.numeros strong, .numeros span { font-family: var(--serifa); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--ouro); font-weight: 600; line-height: 1; }
.numeros p { margin: 10px 0 0; color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* Seções */
.secao { padding: clamp(80px, 10vw, 140px) 0; }
.secao-clara { background: var(--papel); }
.secao-escura { background: var(--noite); color: rgba(255, 255, 255, .75); }
.secao-escura h2 { color: #fff; }
.secao-topo { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.secao-topo.centro { margin-inline: auto; text-align: center; }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linha); border-left: 1px solid var(--linha); }
.area { padding: 42px 36px 40px; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); position: relative; transition: background .4s; }
.area::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--ouro); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.area:hover { background: var(--papel); }
.area:hover::before { transform: none; }
.area-num { display: block; font-family: var(--serifa); color: var(--ouro); font-size: 1.1rem; margin-bottom: 26px; }
.area p { margin: 0; }

.escritorio-grade { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.moldura { position: relative; }
.moldura::before { content: ""; position: absolute; inset: 26px -26px -26px 26px; border: 1px solid var(--ouro); z-index: 0; }
.moldura img { position: relative; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.lista-ouro { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.lista-ouro li { padding-left: 34px; position: relative; color: var(--tinta); font-weight: 600; }
.lista-ouro li::before { content: ""; position: absolute; left: 0; top: .78em; width: 20px; height: 1px; background: var(--ouro); }

.equipe { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.pessoa { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: end; }
.pessoa img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.35); transition: filter .5s; }
.pessoa:hover img { filter: none; }
.cargo { color: var(--ouro); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

.depoimentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.depoimento { border: 1px solid rgba(200, 169, 106, .3); padding: 58px 34px 40px; position: relative; }
.depoimento::before { content: "“"; position: absolute; top: -24px; left: 26px; font-family: var(--serifa); font-size: 5rem; line-height: .9; height: 62px; color: var(--ouro); background: var(--noite); padding: 0 8px; }
.depoimento blockquote { margin: 0 0 22px; font-family: var(--serifa); font-size: 1.18rem; line-height: 1.55; color: #fff; }
.depoimento figcaption { color: var(--ouro); font-size: .9rem; letter-spacing: .06em; }

.faq-grade { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 50px 24px 0; font-family: var(--serifa); font-size: 1.3rem; color: var(--tinta); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--ouro); font-size: 1.6rem; font-family: var(--fonte); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 22px; margin: 0; }

.contato-grade { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: stretch; }
.contato-dados { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; margin: 30px 0 36px; }
.contato-dados dt { font-weight: 700; color: var(--tinta); letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; padding-top: 4px; }
.contato-dados dd { margin: 0; }
.mapa { min-height: 400px; border: 1px solid var(--linha); }
.mapa iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; filter: grayscale(.6) contrast(1.05); }

.rodape { background: var(--noite); color: rgba(255, 255, 255, .6); padding: 72px 0 30px; font-size: .95rem; }
.rodape a { color: #fff; text-decoration: none; }
.rodape a:hover { color: var(--ouro); }
.rodape h2 { font-size: 1.1rem; color: var(--ouro); }
.rodape p { margin: 0 0 8px; }
.rodape img { height: 46px; width: auto; margin-bottom: 18px; }
.rodape-grade { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.rodape-fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(200, 169, 106, .18); font-size: .82rem; }

.whats-flutuante { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.whats-flutuante:hover { transform: scale(1.07); }

.revelar { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 980px) {
  .areas, .depoimentos { grid-template-columns: 1fr 1fr; }
  .equipe, .faq-grade, .contato-grade, .escritorio-grade { grid-template-columns: 1fr; }
  .numeros-grade { grid-template-columns: 1fr 1fr; }
  .numeros-grade > div:nth-child(3) { border-left: 0; }
  .numeros-grade > div { border-top: 1px solid rgba(200, 169, 106, .18); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .topo { background: rgba(11, 18, 34, .94); }
  .topo-linha, .topo.rolou .topo-linha { height: 70px; }
  .marca img { height: 40px; }
  .botao-topo { display: none; }
  .abrir-menu { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border: 1px solid rgba(200, 169, 106, .5); background: transparent; cursor: pointer; }
  .abrir-menu span, .abrir-menu span::before, .abrir-menu span::after { display: block; width: 20px; height: 1.5px; background: var(--ouro); position: relative; transition: transform .25s, background .25s; }
  .abrir-menu span::before, .abrir-menu span::after { content: ""; position: absolute; left: 0; }
  .abrir-menu span::before { top: -6px; }
  .abrir-menu span::after { top: 6px; }
  .abrir-menu[aria-expanded="true"] span { background: transparent; }
  .abrir-menu[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .abrir-menu[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--noite); padding: 8px 20px 24px; display: none; border-top: 1px solid rgba(200, 169, 106, .2); }
  .menu.aberto { display: flex; }
  .menu a { padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .hero { padding-top: 120px; min-height: 92svh; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 18, 34, .75), rgba(11, 18, 34, .92)); }
  .rolar { display: none; }
  .pessoa { grid-template-columns: 1fr; }
  .pessoa img { max-width: 320px; }
  .rodape-grade { grid-template-columns: 1fr; }
  .moldura::before { inset: 16px -12px -16px 12px; }
}
@media (max-width: 600px) {
  .areas, .depoimentos { grid-template-columns: 1fr; }
  .hero-botoes .botao { width: 100%; }
}
