/* Advocacia premium: escritório boutique, versão escura (pegada Framer). Preto quente, texto marfim e champanhe só nos destaques.
   Identidade do cliente: trocar só este :root (cores, fontes, raio) e "cores"/"fontes" no _ref/site.json. */
:root {
  --bg: #0d0e11;           /* fundo */
  --surface: #15161b;      /* cartões */
  --surface-2: #1b1d23;
  --line: rgba(236, 232, 225, .12);
  --text: #ece8e1;
  --muted: #a39e95;
  --accent: #dc7d84;       /* rubi claro: destaques */
  --accent-deep: #9e2f3d;
  --on-accent: #17090b;

  --display: "Instrument Serif", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 1rem;
  --radius-lg: 1.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Botões */
  --btn-bg: #9e2f3d;
  --btn-bg-hover: #b43a49;
  --btn-ink: #fff;
  --btn-light-hover: #f3ede3;
  --btn-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; color-scheme: dark; }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; border-radius: .5rem; background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }
.section { padding-block: clamp(5rem, 3rem + 7vw, 10rem); }

h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5.2rem); line-height: .98; letter-spacing: -.02em; }
h1 em, h2 em, .brand em, .footer-word em { color: var(--accent); font-style: italic; display: inline-block; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; color: var(--muted); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--accent); }
.section-head { display: grid; justify-items: start; margin-bottom: clamp(2.75rem, 2rem + 3vw, 5rem); }
.section-lead { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.08rem; }
.section-head-row { grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.section-head-row .section-lead { margin: 0; max-width: 24rem; }

/* Marca (texto na fonte de título; trocar pela logo do cliente) */
.brand { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; font: 400 1.6rem/1 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }

/* Cabeçalho e menu em tela inteira ------------------------------------- */

.header { position: fixed; inset: 0 0 auto; z-index: 60; transition: background-color .5s, backdrop-filter .5s, border-color .5s; border-bottom: 1px solid transparent; }
.header.is-scrolled { border-color: var(--line); background: rgba(13, 14, 17, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 2 * var(--gutter), 80rem); min-height: 4.75rem; margin-inline: auto; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: 0 .5rem 0 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 14, 17, .35); color: var(--text); font: 500 .92rem/1 var(--body); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, background-color .3s; }
.menu-btn:hover { border-color: var(--accent); }
.menu-lines { position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--text); }
.menu-lines span { position: absolute; width: .85rem; height: 1.5px; background: var(--bg); transition: transform .5s var(--ease); }
.menu-lines span:first-child { transform: translateY(-2.5px); }
.menu-lines span:last-child { transform: translateY(2.5px); }
.menu-btn[aria-expanded="true"] .menu-lines span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines span:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; overflow-y: auto; background: var(--bg); animation: menu-in .7s var(--ease) both; }
.menu[hidden] { display: none; }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); align-items: end; gap: 3rem; width: min(100% - 2 * var(--gutter), 80rem); min-height: 100%; margin-inline: auto; padding-block: 7rem 3rem; }
.menu-nav { display: grid; }
.menu-nav a { display: flex; align-items: baseline; gap: 1.25rem; padding-block: .35rem; border-bottom: 1px solid var(--line); font: 400 clamp(2.4rem, 1.2rem + 5vw, 5.4rem)/1.05 var(--display); letter-spacing: -.02em; text-decoration: none; transition: color .3s, padding-left .5s var(--ease); animation: menu-item .8s var(--ease) backwards; }
.menu-nav a:nth-child(2) { animation-delay: .06s; } .menu-nav a:nth-child(3) { animation-delay: .12s; } .menu-nav a:nth-child(4) { animation-delay: .18s; } .menu-nav a:nth-child(5) { animation-delay: .24s; }
@keyframes menu-item { from { opacity: 0; transform: translateY(40px); } }
.menu-nav a:hover { padding-left: 1rem; color: var(--accent); }
.menu-nav span { color: var(--muted); font: 500 .85rem/1 var(--body); letter-spacing: .1em; }
.menu-side { display: grid; gap: .35rem; color: var(--muted); }
.menu-side a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; }
.menu-side a:hover { color: var(--accent); }
.menu-kicker { margin-bottom: .5rem; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }

/* Hero em tela cheia ------------------------------------------------------ */

.hero { position: relative; overflow: hidden; min-height: max(100svh, 40rem); }
.hero-bg { --y: 0px; position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform: translateY(var(--y)) scale(1.04); animation: ken 2.8s var(--ease) both; }
@keyframes ken { from { transform: scale(1.2); filter: brightness(.4); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(13, 14, 17, .6) 0%, rgba(13, 14, 17, .05) 30%, rgba(13, 14, 17, .55) 62%, var(--bg) 100%),
  linear-gradient(90deg, rgba(13, 14, 17, .6) 0%, rgba(13, 14, 17, 0) 60%); }
.hero-content { position: relative; z-index: 1; display: grid; align-content: end; justify-items: start; width: min(100% - 2 * var(--gutter), 80rem); min-height: max(100svh, 40rem); margin-inline: auto; padding-block: 7rem clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero-title { font: 400 clamp(3rem, 8.2vw, 8.6rem)/.92 var(--display); letter-spacing: -.025em; text-wrap: initial; }
.hero-foot { display: flex; align-items: end; justify-content: space-between; gap: 2rem; width: 100%; margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero-foot p { max-width: 31rem; color: rgba(236, 232, 225, .82); font-size: 1.08rem; }
[data-words] .w { display: inline-block; overflow: clip; padding: 0 .16em .1em; margin: 0 -.16em -.1em; vertical-align: top; }
[data-words] .w > span { display: inline-block; animation: word-up 1.2s var(--ease) backwards; animation-delay: calc(.5s + var(--i) * .08s); }
@keyframes word-up { from { transform: translateY(110%); filter: blur(6px); } }

/* O escritório (manifesto) ---------------------------------------------- */

.manifesto-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(2.5rem, 1rem + 6vw, 7rem); align-items: start; }
.manifesto-side { display: grid; justify-items: start; }
.manifesto-photo { width: 100%; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.manifesto-photo img { width: 100%; height: 100%; object-fit: cover; }
.manifesto-text { font-size: clamp(2rem, 1.2rem + 2.7vw, 3.75rem); line-height: 1.1; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.facts div { display: grid; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.facts dd { font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--display); }

/* Áreas em lista, foto seguindo o mouse ---------------------------------- */

.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1fr) 3.25rem; align-items: center; gap: 1.5rem; padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-bottom: 1px solid var(--line); text-decoration: none; transition: opacity .4s; }
.row-n { color: var(--muted); font-size: .85rem; letter-spacing: .1em; }
.row h3 { font: 400 clamp(2rem, 1.2rem + 3vw, 4rem)/1 var(--display); letter-spacing: -.02em; transition: transform .6s var(--ease), color .3s; }
.row p { max-width: 24rem; color: var(--muted); font-size: 1rem; }
.row-go { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 1px solid var(--line); border-radius: 50%; transition: background-color .3s, color .3s, transform .5s var(--ease), border-color .3s; }
.row-go .icon { width: 1.1rem; height: 1.1rem; }
.row:hover h3, .row:focus-visible h3 { transform: translateX(1rem); color: var(--accent); }
.row:hover .row-go, .row:focus-visible .row-go { border-color: var(--accent); background: var(--accent); color: var(--on-accent); transform: rotate(45deg); }
@media (hover: hover) { .rows:hover .row:not(:hover) { opacity: .4; } }
.cursor-img { --x: 0px; --y: 0px; position: fixed; top: 0; left: 0; z-index: 30; width: 17rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); pointer-events: none; opacity: 0; translate: var(--x) var(--y); scale: .85; rotate: -3deg; transition: opacity .35s, scale .5s var(--ease), rotate .5s var(--ease); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7); }
.cursor-img.is-on { opacity: 1; scale: 1; rotate: 0deg; }
.cursor-img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse), (max-width: 64em) { .cursor-img { display: none; } }

/* Diferenciais com brilho que acompanha o mouse --------------------------- */

.glow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.glow { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; gap: .85rem; min-height: 16rem; padding: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(220, 125, 132, .16), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.glow:hover::before { opacity: 1; }
.glow-wide { grid-column: span 2; }
.glow .icon { width: 2rem; height: 2rem; color: var(--accent); }
.glow h3 { margin-top: auto; font: 500 1.3rem/1.25 var(--body); letter-spacing: -.01em; }
.glow p { max-width: 30rem; color: var(--muted); font-size: 1rem; }
.glow-wide h3 { font: 400 clamp(2rem, 1.4rem + 1.6vw, 2.8rem)/1.05 var(--display); letter-spacing: -.02em; }

/* Como trabalhamos: cartões que se empilham ------------------------------ */

.method-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.method-head { position: sticky; top: 7rem; display: grid; justify-items: start; }
.stack { display: grid; gap: 1.25rem; }
.stack-card { position: sticky; top: calc(7rem + var(--i, 0) * 1.4rem); display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.5rem; min-height: 17rem; padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 -24px 50px -20px rgba(0, 0, 0, .65); }
.stack-card:nth-child(1) { --i: 0; } .stack-card:nth-child(2) { --i: 1; background: var(--surface-2); } .stack-card:nth-child(3) { --i: 2; } .stack-card:nth-child(4) { --i: 3; background: var(--surface-2); }
.stack-n { color: var(--accent); font: italic 400 clamp(3.5rem, 2.5rem + 3vw, 5.5rem)/.8 var(--display); }
.stack-card h3 { font: 400 clamp(2rem, 1.5rem + 1.5vw, 2.8rem)/1 var(--display); letter-spacing: -.02em; }
.stack-card p { max-width: 30rem; margin-top: 1rem; color: var(--muted); }

/* Sócios ---------------------------------------------------------------- */

.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.partner { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.partner figure { overflow: hidden; aspect-ratio: 1 / 1; }
.partner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(.25); transition: filter .8s, transform 1.2s var(--ease); }
.partner:hover img { filter: none; transform: scale(1.03); }
.partner-body { display: grid; gap: .9rem; padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.partner-role { color: var(--accent); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.partner h3 { font: 400 clamp(2.2rem, 1.6rem + 1.6vw, 3rem)/1 var(--display); letter-spacing: -.02em; }
.partner-body > p:not(.partner-role) { color: var(--muted); }
.partner-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.partner-meta li { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }

/* Avaliações (bloco opcional, oculto por padrão) ------------------------- */

.g-score { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; color: var(--muted); }
.g-score img { width: auto; height: 1.3rem; }
.g-score .g-word { height: 1.15rem; }
.g-score strong { color: var(--text); font-size: 1.2rem; }
.reviews-marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews-track { display: flex; flex: none; gap: 1rem; padding-right: 1rem; animation: ticker-full 40s linear infinite; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes ticker-full { to { transform: translateX(-100%); } }
.review { display: grid; gap: 1.25rem; width: min(26rem, 80vw); height: 100%; margin: 0; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.review footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.review cite { font-style: normal; font-weight: 600; }
.review footer img { width: auto; height: 1rem; }

/* Atendimento ----------------------------------------------------------- */

.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: stretch; }
.visit-copy { display: grid; justify-items: start; align-content: start; }
.info { width: 100%; margin: 2rem 0 1rem; border-top: 1px solid var(--line); }
.info li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.info span { padding-top: .2rem; color: var(--muted); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.info a { text-decoration: none; }
.info a:hover { color: var(--accent); }
.link { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; font-weight: 500; text-decoration: none; }
.link:hover { color: var(--accent); }
.link .maps-pin { width: auto; height: 1.3rem; }
.link > .icon { width: 1rem; height: 1rem; }
.map-ph { display: grid; place-content: center; justify-items: center; gap: .6rem; min-height: 24rem; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--muted); font-size: .9rem;
  background: radial-gradient(circle at 50% 50%, rgba(220, 125, 132, .1), transparent 55%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(236, 232, 225, .05) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(236, 232, 225, .05) 39px 40px), var(--surface); }
.map-ph .icon { width: 2.25rem; height: 2.25rem; color: var(--accent); }

/* Dúvidas --------------------------------------------------------------- */

.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.faq-head { position: sticky; top: 7rem; display: grid; justify-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 0; font-size: 1.15rem; font-weight: 500; line-height: 1.35; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 2.3rem; height: 2.3rem; padding: .6rem; border: 1px solid var(--line); border-radius: 50%; transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.faq-list details p { max-width: 40rem; padding-bottom: 1.6rem; color: var(--muted); animation: faq-in .5s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* Chamada final --------------------------------------------------------- */

.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 70%, rgba(220, 125, 132, .14), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.cta-inner .eyebrow { margin-bottom: 0; }
.cta-title { font-size: clamp(3.6rem, 1.5rem + 9vw, 11rem); line-height: .9; letter-spacing: -.03em; }
.cta-lead { max-width: 32rem; color: var(--muted); font-size: 1.1rem; }
.cta-inner .button { margin-top: .75rem; }

/* Rodapé ---------------------------------------------------------------- */

.footer { padding: clamp(3.5rem, 3rem + 3vw, 5.5rem) 0 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: grid; justify-items: start; gap: 1rem; max-width: 22rem; }
.footer-brand .brand { color: var(--text); }
.footer-col { display: grid; align-content: start; justify-items: start; }
.footer-col a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.socials { display: flex; gap: .5rem; margin-top: .75rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: background-color .3s, color .3s, border-color .3s, transform .5s var(--ease); }
.socials a:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.socials .icon { width: 1.25rem; height: 1.25rem; }
.footer-word { margin: clamp(3rem, 2rem + 4vw, 5rem) 0 1.5rem; color: var(--text); font: 400 10.6vw/.9 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom a { color: var(--text); }

/* Botão flutuante (celular) */
.float-wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: none; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(1rem) scale(.9); transition: opacity .4s, transform .5s var(--ease); }
.float-wa .icon { width: 1.75rem; height: 1.75rem; }
.float-wa.is-visible { opacity: 1; transform: none; }

/* Revelação no scroll (só com JS e sem reduce-motion) */
.js [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Responsivo ------------------------------------------------------------ */

@media (max-width: 64em) {
  .row { grid-template-columns: 3rem minmax(0, 1fr) 3.25rem; }
  .row p { grid-column: 2; grid-row: 2; }
  .row-go { grid-column: 3; grid-row: 1 / 3; }
  .glow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-inner { grid-template-columns: 1fr; align-content: end; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile centralizado (regra 12) */
@media (max-width: 48em) {
  body { font-size: 1rem; }
  .header .header-cta { display: none; }
  .brand { font-size: 1.4rem; }
  .hero-content { justify-items: center; text-align: center; }
  .hero-title { font-size: clamp(2.1rem, 10.4vw, 4rem); }
  .hero .eyebrow { letter-spacing: .16em; }
  .hero .eyebrow::before { display: none; }
  .hero-foot { flex-direction: column; align-items: center; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(13, 14, 17, .55) 0%, rgba(13, 14, 17, .2) 30%, rgba(13, 14, 17, .75) 60%, var(--bg) 100%); }
  .section-head, .section-head-row, .method-head, .faq-head, .visit-copy, .manifesto-side { justify-items: center; text-align: center; grid-template-columns: 1fr; }
  .section-head-row .section-lead { margin-top: 1.25rem; }
  .manifesto-grid, .method-grid, .faq-grid, .visit-grid, .partner-grid { grid-template-columns: 1fr; }
  .manifesto-photo { aspect-ratio: 3 / 2; }
  .manifesto-text { text-align: center; }
  .facts { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .facts div { padding-block: 1.1rem; }
  .row { grid-template-columns: minmax(0, 1fr) 2.75rem; gap: .4rem 1rem; }
  .row-n { grid-column: 1; grid-row: 1; }
  .row h3 { grid-column: 1; grid-row: 2; }
  .row p { grid-column: 1; grid-row: 3; }
  .row-go { grid-column: 2; grid-row: 1 / 4; width: 2.75rem; height: 2.75rem; }
  .glow-grid { grid-template-columns: 1fr; }
  .glow-wide { grid-column: auto; }
  .method-head, .faq-head { position: static; }
  .stack-card { top: calc(5.5rem + var(--i, 0) * .9rem); grid-template-columns: 1fr; min-height: 0; }
  .info { text-align: left; }
  .info li { grid-template-columns: 1fr; gap: .25rem; }
  .map-ph { min-height: 16rem; }
  .footer { text-align: center; padding-bottom: 6rem; }
  .footer-top { grid-template-columns: 1fr; justify-items: center; }
  .footer-brand, .footer-col { justify-items: center; }
  .footer-col:first-of-type { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .float-wa { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-words] .w > span, .hero-bg img, .menu, .menu-nav a, .faq-list details p { animation: none; }
  .hero-bg img { transform: none; }
  .reviews-track { animation-duration: 0s; animation-play-state: paused; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .row h3, .partner img, .cursor-img { transition: none; }
}

/* Botões (nunca quebram linha) ------------------------------------------- */

.button {
  --pad-x: 1.6rem; --pad-icon: .45rem; --icon: 2.1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 3.1rem; padding: .85rem var(--pad-x); border: 0; border-radius: 999px;
  background: var(--btn-bg); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--btn-ease), background-color .3s, box-shadow .5s var(--btn-ease);
}
.button:hover { background: var(--btn-bg-hover); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
/* Ícone de botão sempre dentro de um círculo, encostado na borda */
.button > .icon {
  flex: none; width: var(--icon); height: var(--icon); padding: calc(var(--icon) * .24); border-radius: 50%;
  background: rgba(255, 255, 255, .2); fill: currentColor; transition: transform .5s var(--btn-ease), background-color .3s;
}
/* Encosta pelo padding do botão, não por margem negativa: com margem o Chrome calcula a largura curta e o texto entra embaixo do círculo.
   O texto fica com a folga cheia (--pad-x) e o círculo a --pad-icon da borda. button-lead = ícone antes do texto (WhatsApp) */
.button:has(> .icon) { padding: var(--pad-icon) var(--pad-icon) var(--pad-icon) var(--pad-x); }
.button.button-lead { padding: var(--pad-icon) var(--pad-x) var(--pad-icon) var(--pad-icon); }
.button:not(.button-lead):hover > .icon { transform: translateX(3px); }
.button-sm { --pad-x: 1.15rem; --pad-icon: .4rem; --icon: 1.75rem; min-height: 2.6rem; padding-block: .55rem; font-size: .94rem; }
.button-lg { --pad-x: clamp(1.6rem, 1.4rem + .6vw, 1.95rem); --pad-icon: .5rem; --icon: 2.45rem; min-height: 3.6rem; padding-block: 1rem; font-size: clamp(1rem, .96rem + .15vw, 1.06rem); }
/* Largura total: texto no centro e círculo encostado na borda. O pseudo do outro lado faz o contrapeso
   do círculo e encolhe quando falta espaço (320px), então o rótulo nunca aperta */
.button.button-block { width: 100%; justify-content: space-between; gap: 0; padding-inline: var(--pad-icon); }
.button-block > .icon { margin-left: .8rem; }
.button-block.button-lead > .icon { margin: 0 .8rem 0 0; }
.button-block:not(.button-lead)::before, .button-block.button-lead::after { content: ""; flex: 0 1 calc(var(--icon) + .8rem); min-width: .7rem; }
.button-light { background: #fff; color: var(--btn-ink); }
.button-light:hover { background: var(--btn-light-hover); }
.button-light > .icon { background: var(--btn-bg); color: #fff; }

/* Mobile (regra 12): botão principal de cada seção vira largura total; no tablet, limitado e centralizado */
@media (max-width: 48em) {
  .button.button-fluid { display: flex; width: min(100%, 26rem); margin-inline: auto; justify-content: space-between; gap: 0; padding-inline: var(--pad-icon); }
  .button-fluid > .icon { margin-left: .8rem; }
  .button-fluid::before { content: ""; flex: 0 1 calc(var(--icon) + .8rem); min-width: .7rem; }
}

/* Botão champanhe com texto escuro (o bloco acima vem com texto branco) */
body .button { color: var(--on-accent); font-weight: 600; }
body .button > .icon { background: rgba(20, 17, 12, .14); }
body .button-light > .icon { color: var(--on-accent); }

/* Pop-up "Conte seu caso" (base do split-fixo, claro sobre a página escura) */

.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; }
.rq-dialog {
  --rq-paper: #f3efe8; --rq-ink: #14110c; --rq-muted: #6b665d; --rq-line: #e0d9cc;
  --rq-brand: #8a6a3a; --rq-brand-deep: #6f552d; --rq-tint: #efe5d3; --rq-soft: #efe5d3;
  --rq-error: #b3261e; --rq-backdrop: rgba(0, 0, 0, .72); --rq-radius: var(--radius-lg);
  --rq-display: var(--display); --rq-display-weight: 400;
}
/* Dentro do pop-up claro o botão principal fica escuro */
.rq .button { --btn-bg: #14110c; --btn-bg-hover: #2b261d; color: #fff; }
.rq .button > .icon { background: rgba(255, 255, 255, .2); }
.rq h3 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
html:has(.rq-dialog[open]) { overflow: hidden; }
.rq-dialog { width: min(35rem, calc(100% - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: var(--rq-radius); background: transparent; color: var(--rq-ink); scrollbar-width: none; }
.rq-dialog::-webkit-scrollbar { display: none; }
.rq-dialog::backdrop { background: var(--rq-backdrop); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rq-dialog[open] { animation: rq-dialog-in .5s var(--ease) both; }
.rq-dialog[open]::backdrop { animation: rq-fade .35s var(--ease) both; }
@keyframes rq-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes rq-fade { from { opacity: 0; } }
.rq-dialog-inner { position: relative; }
.rq-close { position: absolute; z-index: 1; top: 1rem; right: 1rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--rq-line); border-radius: 50%; background: #fff; color: var(--rq-ink); cursor: pointer; transition: background-color .2s, transform .3s var(--ease); }
.rq-close:hover { background: var(--rq-soft); transform: rotate(90deg); }
.rq-close .icon { width: 1.1rem; height: 1.1rem; }

.rq { position: relative; width: 100%; padding: clamp(1.4rem, 3.2vw, 2.25rem); border-radius: var(--rq-radius); background: var(--rq-paper); color: var(--rq-ink); text-align: left; }
.rq-top { margin-bottom: 1.6rem; }
.rq-kicker { min-height: 2.75rem; display: flex; align-items: center; margin: -.3rem 3.25rem .7rem 0; color: var(--rq-brand); font-size: .95rem; font-weight: 600; }
.rq-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.rq-progress li { color: var(--rq-muted); font-size: .9rem; font-weight: 500; }
.rq-progress li.is-current { color: var(--rq-ink); }
.rq-progress li.is-done { color: var(--rq-brand); }
.rq-progress button, .rq-step-label { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.rq-progress button { cursor: pointer; border-radius: 999px; }
.rq-progress button:hover { color: var(--rq-brand-deep); }
.rq-dot { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid var(--rq-line); border-radius: 50%; background: #fff; font-size: .78rem; font-variant-numeric: tabular-nums; transition: background-color .35s, border-color .35s, color .35s; }
.rq-dot .icon { width: .85rem; height: .85rem; }
.is-current .rq-dot { border-color: var(--rq-ink); background: var(--rq-ink); color: #fff; }
.is-done .rq-dot { border-color: var(--rq-brand); background: var(--rq-brand); color: #fff; }
.rq-bar { height: 4px; margin-top: .85rem; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--rq-ink) 8%, transparent); }
.rq-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rq-brand), var(--rq-tint)); transform-origin: left; transition: transform .7s var(--ease); }

.rq-panel { display: grid; gap: 1.35rem; animation: rq-in .55s var(--ease) both; }
.rq.is-still .rq-panel { animation: none; }
@keyframes rq-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
.rq h3 { margin: 0; font-family: var(--rq-display); font-size: clamp(1.45rem, 2.4vw, 1.75rem); font-weight: var(--rq-display-weight); letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.rq h3:focus { outline: none; }
.rq-group { display: grid; gap: .7rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.rq-group legend, .rq-field label { display: flex; align-items: baseline; gap: .5rem; padding: 0; font-size: .95rem; font-weight: 600; }
.rq-group legend { margin-bottom: .7rem; }
.rq-optional { color: var(--rq-muted); font-size: .8rem; font-weight: 400; }

/* Cards de serviço: radio escondido, o cartão inteiro é o alvo */
.rq-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.rq-service { position: relative; display: flex; align-items: flex-start; gap: .7rem; min-height: 4.6rem; padding: .9rem 2rem .9rem .9rem; border: 1px solid var(--rq-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s var(--ease); }
.rq-service:hover { border-color: color-mix(in srgb, var(--rq-brand) 45%, transparent); transform: translateY(-1px); }
.rq-service input, .rq-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rq-service-icon { flex: none; width: 1.6rem; height: 1.6rem; fill: var(--rq-brand); }
.rq-service-text { display: grid; gap: .2rem; min-width: 0; }
.rq-service-name { font-size: .92rem; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.rq-service-hint { color: var(--rq-muted); font-size: .8rem; line-height: 1.3; }
.rq-check { position: absolute; top: .7rem; right: .7rem; width: 1.15rem; height: 1.15rem; padding: .2rem; border-radius: 50%; background: var(--rq-brand); fill: #fff; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .45s var(--ease); }
.rq-service:has(input:checked) { border-color: var(--rq-brand); background: var(--rq-soft); box-shadow: 0 0 0 1px var(--rq-brand), 0 14px 26px -18px color-mix(in srgb, var(--rq-brand) 70%, transparent); }
.rq-service:has(input:checked) .rq-check { opacity: 1; transform: scale(1); }
.rq-service:has(input:focus-visible), .rq-chip:has(input:focus-visible) { outline: 2px solid var(--rq-brand); outline-offset: 2px; }

/* Chips de objetivo e período */
.rq-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.rq-chip { position: relative; cursor: pointer; }
.rq-chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .95rem; border: 1px solid var(--rq-line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s; }
.rq-chip:hover span { border-color: color-mix(in srgb, var(--rq-brand) 45%, transparent); }
.rq-chip input:checked + span { border-color: var(--rq-ink); background: var(--rq-ink); color: #fff; }

/* Campos de texto */
.rq-field { display: grid; gap: .45rem; min-width: 0; }
.rq-field input, .rq-field textarea { width: 100%; min-height: 3rem; padding: .7rem .95rem; border: 1px solid var(--rq-line); border-radius: 12px; background: #fff; color: var(--rq-ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.rq-field textarea { resize: vertical; min-height: 4.5rem; line-height: 1.45; }
.rq-field input::placeholder, .rq-field textarea::placeholder { color: color-mix(in srgb, var(--rq-muted) 70%, #fff); }
.rq-field input:focus, .rq-field textarea:focus { border-color: var(--rq-brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--rq-brand) 16%, transparent); }
.rq-field [aria-invalid="true"] { border-color: var(--rq-error); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rq-error) 12%, transparent); }
.rq-error { display: flex; align-items: center; gap: .35rem; margin: 0; color: var(--rq-error); font-size: .86rem; font-weight: 500; animation: rq-in .3s var(--ease) both; }
.rq-error .icon { width: 1rem; height: 1rem; }

/* Resumo antes de enviar */
.rq-summary { display: grid; margin: 0; border: 1px solid var(--rq-line); border-radius: 14px; background: #fff; }
.rq-summary > div { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .75rem; align-items: start; padding: .9rem 1rem; }
.rq-summary dt { padding-top: .1rem; color: var(--rq-muted); font-size: .85rem; font-weight: 500; }
.rq-summary dd { display: grid; gap: .15rem; margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.rq-summary dd span { color: var(--rq-muted); font-weight: 400; }
.rq-edit { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.6rem -.6rem 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--rq-brand); cursor: pointer; transition: background-color .2s; }
.rq-edit:hover { background: var(--rq-soft); }
.rq-edit .icon { width: 1.05rem; height: 1.05rem; }

/* Navegação entre etapas */
.rq-nav { display: flex; align-items: center; gap: .75rem; padding-top: .35rem; }
.rq-next { margin-left: auto; }
/* Voltar: ícone no círculo encostado na borda, texto com folga */
.rq-ghost { display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .45rem 1rem; border: 0; white-space: nowrap; border-radius: 999px; background: none; color: var(--rq-muted); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; transition: color .2s, background-color .2s; }
.rq-ghost:hover { background: #fff; color: var(--rq-ink); }
.rq-ghost:has(> .icon) { padding-left: .45rem; }
.rq-ghost .icon { width: 2.1rem; height: 2.1rem; padding: .5rem; border: 1.5px solid var(--rq-line); border-radius: 50%; }

/* Pedido pronto */
.rq-done { justify-items: center; padding-block: 1rem .5rem; text-align: center; }
.rq-done-icon { width: 3.5rem; height: 3.5rem; fill: var(--rq-brand); animation: rq-pop .6s var(--ease) both; }
@keyframes rq-pop { from { opacity: 0; transform: scale(.5); } }
.rq-done p { max-width: 24rem; margin: 0; color: var(--rq-muted); }
.rq-done p strong { color: var(--rq-ink); font-weight: 600; }
.rq-done-actions { display: grid; justify-items: center; gap: .5rem; }

@media (max-width: 40em) {
  .rq-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .rq { padding: 1.25rem; }
  .rq-close { top: .75rem; right: .75rem; }
  .rq-progress li { font-size: .82rem; }
  .rq-progress button, .rq-step-label { gap: .35rem; }
  .rq-services { gap: .5rem; }
  .rq-service { flex-direction: column; gap: .5rem; min-height: 0; padding: .8rem 1.6rem .8rem .8rem; }
  .rq-service-icon { width: 1.4rem; height: 1.4rem; }
  .rq-service-name { font-size: .88rem; }
  .rq-check { top: .55rem; right: .55rem; }
  .rq-summary > div { grid-template-columns: 1fr auto; }
  .rq-summary dt { grid-column: 1; grid-row: 1; }
  .rq-summary dd { grid-row: 2; }
  .rq-summary .rq-edit { grid-row: 1 / 3; grid-column: 2; align-self: center; margin: 0 -.5rem 0 0; }
  .rq-nav { flex-wrap: wrap; }
  /* botão do pop-up em largura total: texto no centro, círculo na borda e contrapeso do outro lado (igual ao button-block) */
  .button.rq-next { flex: 1; justify-content: space-between; gap: 0; padding-inline: var(--pad-icon); }
  .rq-next > .icon { margin-left: .8rem; }
  .rq-next.button-lead > .icon { margin: 0 .8rem 0 0; }
  .rq-next:not(.button-lead)::before, .rq-next.button-lead::after { content: ""; flex: 0 1 calc(var(--icon) + .8rem); min-width: .7rem; }
}

/* Telas bem estreitas: as 3 etapas do pop-up cabem na linha */
@media (max-width: 23em) {
  .rq-progress { gap: .3rem; }
  .rq-progress li { font-size: .75rem; }
  .rq-progress button, .rq-step-label { gap: .25rem; }
  .rq-dot { width: 1.4rem; height: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rq-dialog[open], .rq-dialog[open]::backdrop, .rq-panel, .rq-error, .rq-done-icon { animation: none; }
  .rq-bar span, .rq-close, .rq-service, .rq-check { transition: none; }
}

/* Ajustes do site: um advogado só, mapa de verdade e foto à direita no hero */
.partner-grid.partner-solo { grid-template-columns: 1fr; }
.partner-solo .partner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.partner-solo .partner figure { aspect-ratio: 4 / 5; }
.manifesto-photo img { object-position: 50% 35%; }
.map-frame { overflow: hidden; min-height: 24rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 24rem; border: 0; filter: grayscale(1) invert(.9) contrast(.9); }
.footer-word { font-size: 14vw; text-align: center; }
@media (max-width: 48em) {
  .hero-bg img { object-position: 84% 0; }
  .partner-solo .partner { grid-template-columns: 1fr; text-align: center; }
  .partner-solo .partner-meta { justify-content: center; }
  .manifesto-photo { aspect-ratio: 4 / 5; }
}

/* Rubi: texto branco no botão (o modelo usava texto escuro sobre champanhe) e rosado no pop-up */
body .button { color: #fff; }
body .button > .icon { background: rgba(255, 255, 255, .18); }
body .button-light { color: #17090b; }
body .button-light > .icon { color: #fff; }
.rq { --rq-brand: #9e2f3d; --rq-brand-deep: #7d2430; --rq-tint: #f4e1e2; --rq-soft: #f4e1e2; }
body .rq .button { --btn-bg: #9e2f3d; --btn-bg-hover: #7d2430; color: #fff; }
