/* Advocacia, versão clara (27/11, Kaleb: a escura ficou "muito dark, full widget e com muitos travessões"). Marfim,
   azul noite e dourado escuro do logo. Sem cartões, sem etiquetas, sem tracinho antes dos títulos. Escura em _ref/v1-escura. */
:root {
  --bg: #fbf9f5;
  --alt: #f2eee5;
  --line: rgba(22, 32, 56, .13);
  --text: #162038;
  --muted: #545c70;
  --accent: #7d5d1f;       /* dourado escuro do logo, legível no claro */
  --on-accent: #ffffff;

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

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

  --btn-bg: #162038;
  --btn-bg-hover: #27365e;
  --btn-ink: #162038;
  --btn-light-hover: #f2eee5;
  --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: light; }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 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: #fff; }
.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: var(--radius); background: var(--text); color: #fff; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); line-height: 1.02; letter-spacing: -.015em; }
h1 em, h2 em { color: var(--accent); font-style: italic; display: inline-block; }
.eyebrow { margin-bottom: 1rem; color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.section-head { display: grid; justify-items: center; margin-bottom: clamp(2.75rem, 2rem + 2vw, 4rem); text-align: center; }
.section-lead { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); }
.section-foot { display: flex; justify-content: center; margin-top: clamp(2.75rem, 2rem + 2vw, 4rem); }
.link { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.link:hover { color: var(--accent); }
.link .maps-pin { width: auto; height: 1.3rem; }

/* Cabeçalho e menu ------------------------------------------------------- */
.header { position: fixed; inset: 0 0 auto; z-index: 60; border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s; }
.header.is-scrolled { border-color: var(--line); background: rgba(251, 249, 245, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100% - 2 * var(--gutter), 72rem); min-height: 5.25rem; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { width: auto; height: 2.7rem; }
.header-nav { display: flex; gap: 2rem; }
.header-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .95rem; font-weight: 500; white-space: nowrap; text-decoration: none; }
.header-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .25rem 0 .75rem; border: 0; background: none; color: var(--text); font: 600 .95rem/1 var(--body); cursor: pointer; }
.menu-lines { position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; }
.menu-lines span { position: absolute; width: 1.2rem; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.menu-lines span:first-child { transform: translateY(-3.5px); }
.menu-lines span:last-child { transform: translateY(3.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); }
.menu[hidden] { display: none; }
.menu-inner { display: grid; align-content: center; justify-items: center; gap: 2.5rem; width: min(100% - 2 * var(--gutter), 30rem); min-height: 100%; margin-inline: auto; padding-block: 6rem 3rem; text-align: center; }
.menu-nav { display: grid; }
.menu-nav a { padding-block: .45rem; font: 400 2.4rem/1.15 var(--display); text-decoration: none; }
.menu-side { display: grid; justify-items: center; gap: .25rem; color: var(--muted); font-size: .95rem; }
.menu-side a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; }
.menu-kicker { display: none; }

/* Hero ------------------------------------------------------------------- */
.hero { background: var(--alt); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 1rem + 5vw, 5rem); width: min(100% - 2 * var(--gutter), 72rem); min-height: max(100svh, 38rem); margin-inline: auto; padding-block: 7rem 3rem; }
.hero-copy { display: grid; justify-items: start; }
.hero-title { font: 400 clamp(3rem, 6.4vw, 5.8rem)/1 var(--display); letter-spacing: -.02em; text-wrap: initial; }
.hero-lead { max-width: 30rem; margin: 1.5rem 0 2.25rem; color: var(--muted); font-size: 1.15rem; text-wrap: balance; }
.hero-art { justify-self: end; width: min(100%, 28rem, calc((100svh - 10rem) * .8)); }
.hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -36px rgba(22, 32, 56, .55); }
[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 1s var(--ease) backwards; animation-delay: calc(.2s + var(--i) * .07s); }
@keyframes word-up { from { transform: translateY(110%); } }

/* Quem atende ------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 1rem + 6vw, 6rem); align-items: center; }
.about-photo { justify-self: center; width: min(100%, 21rem); aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.025); }
.about-copy { display: grid; justify-items: start; gap: 1.25rem; }
.about-copy .eyebrow { margin-bottom: -.5rem; }
.about-copy > p:not(.eyebrow) { max-width: 36rem; color: var(--muted); }
.about-copy > .about-lead { color: var(--text); font: 400 clamp(1.5rem, 1.25rem + .8vw, 2rem)/1.3 var(--display); }

/* Áreas ------------------------------------------------------------------ */
.areas { background: var(--alt); }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 1.5rem + 2.5vw, 4rem) clamp(2rem, 1rem + 3vw, 4rem); text-align: center; }
.area-grid h3, .steps h3 { font: 400 1.85rem/1.15 var(--display); }
.area-grid p { max-width: 20rem; margin: .6rem auto 0; color: var(--muted); font-size: 1rem; }

/* Trajetória ------------------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2.5rem, 1rem + 6vw, 6rem); align-items: center; }
.story-copy { display: grid; justify-items: start; gap: 1.25rem; }
.story-copy .eyebrow { margin-bottom: -.5rem; }
.story-copy > p:not(.eyebrow) { max-width: 34rem; color: var(--muted); font-size: 1.12rem; }
.story-photo { justify-self: center; width: min(100%, 20rem); }
.story-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.story-photo figcaption { margin-top: .85rem; color: var(--muted); font: italic 400 1.25rem/1.3 var(--display); text-align: center; }

/* Etapas ----------------------------------------------------------------- */
.method { background: var(--alt); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 2vw, 3rem); text-align: center; }
.steps span { display: block; margin-bottom: .5rem; color: var(--accent); font: italic 400 2.6rem/1 var(--display); }
.steps p { max-width: 17rem; margin: .6rem auto 0; color: var(--muted); font-size: 1rem; }

/* Atendimento ------------------------------------------------------------ */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 1rem + 6vw, 6rem); align-items: center; }
.visit-copy { display: grid; justify-items: start; }
.info { display: grid; gap: 1.25rem; width: 100%; margin: 2rem 0 1rem; }
.info li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.info span { color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.info a { text-decoration: none; }
.visit-photo { justify-self: center; width: min(100%, 24rem); }
.visit-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }

/* Dúvidas ---------------------------------------------------------------- */
.faq { background: var(--alt); }
.faq-grid { width: min(100% - 2 * var(--gutter), 46rem); }
.faq-head { display: grid; justify-items: center; margin-bottom: 2.5rem; text-align: center; }
.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.4rem 0; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 1.1rem; height: 1.1rem; color: var(--accent); transition: transform .4s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.4rem; color: var(--muted); }

/* Chamada final ---------------------------------------------------------- */
.cta-inner { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.cta-inner .eyebrow { margin-bottom: -.25rem; }
.cta-title { font-size: clamp(2.8rem, 1.8rem + 4vw, 5rem); }
.cta-lead { max-width: 30rem; color: var(--muted); }

/* Rodapé ----------------------------------------------------------------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); background: var(--alt); color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 14rem; height: auto; }
.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; }
.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); }
.socials a:hover { border-color: var(--text); }
.socials .icon { width: 1.25rem; height: 1.25rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; 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(22, 32, 56, .5); 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(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Responsivo ------------------------------------------------------------- */
@media (max-width: 66em) {
  .header-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 62em) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile centralizado (regra 12) */
@media (max-width: 48em) {
  body { font-size: 1rem; }
  .header .header-cta { display: none; }
  .header-inner { min-height: 4.5rem; }
  .brand img { height: 2rem; }
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; min-height: 0; padding-block: 6.5rem 3rem; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-title { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .hero-lead { margin: 1.25rem 0 1.75rem; font-size: 1.05rem; }
  .hero-art { justify-self: center; width: min(100%, 24rem); }
  .about-grid, .story-grid, .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { width: min(70%, 16rem); }
  .about-copy, .story-copy, .visit-copy { justify-items: center; text-align: center; }
  .story-photo { width: min(100%, 17rem); }
  .area-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .info { text-align: center; }
  .info li { grid-template-columns: 1fr; gap: .2rem; }
  .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-logo img { width: 13rem; }
  .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 { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; 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; }
  .button.button-fluid:not(:has(> .icon)) { justify-content: center; padding: .85rem var(--pad-x); }
  .button-fluid:not(:has(> .icon))::before { content: none; }
}

/* Pop-up "Conte seu caso" (base do split-fixo, ) */

.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: #162038; --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(16, 24, 44, .55); --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 { 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; }
}
