/* =========================================================
   Praxedes Ribeiro Sociedade de Advogados
   Folha de estilo única do site
   ========================================================= */

/* ---------- Fontes hospedadas no próprio site ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fontes/cormorant-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fontes/cormorant-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fontes/public-sans-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --tinta:        #12171f;   /* fundo principal */
  --tinta-alta:   #171d27;   /* faixa alternada */
  --marinho:      #1f2839;   /* azul da marca (logotipo) */
  --ouro:         #b69d74;   /* dourado da marca */
  --ouro-claro:   #d2bc98;
  --papel:        #f2f0ec;
  --papel-suave:  rgba(242, 240, 236, 0.74);
  --papel-tenue:  rgba(242, 240, 236, 0.52);
  --linha:        rgba(182, 157, 116, 0.26);
  --linha-tenue:  rgba(242, 240, 236, 0.10);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --largura: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 330;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ouro); text-decoration: none; }
a:hover { color: var(--ouro-claro); }

:focus-visible {
  outline: 2px solid var(--ouro);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pular {
  position: absolute; left: -9999px;
}
.pular:focus {
  left: var(--gutter); top: 10px; z-index: 200;
  background: var(--ouro); color: var(--tinta);
  padding: 10px 18px; border-radius: 3px; font-weight: 600;
}

/* ---------- Tipografia ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.004em;
  margin: 0 0 .6em;
  color: var(--papel);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 300; letter-spacing: 0.008em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; max-width: 68ch; }
.centro p { margin-inline: auto; }

.sobrelinha {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ouro);
  margin: 0 0 .9rem;
}

.linha-fina {
  width: 56px; height: 1px;
  background: var(--ouro);
  border: 0; margin: 0 0 1.6rem;
}
.centro .linha-fina { margin-inline: auto; }

.chamada {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.5;
  color: var(--papel-suave);
  max-width: 54ch;
}

.centro { text-align: center; }

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .85rem 1.7rem;
  border-radius: 2px;
  border: 1px solid var(--ouro);
  background: var(--ouro);
  color: #12171f;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.botao:hover { background: var(--ouro-claro); border-color: var(--ouro-claro); color: #12171f; }

.botao--vazado { background: transparent; color: var(--ouro); }
.botao--vazado:hover { background: rgba(182, 157, 116, .12); color: var(--ouro-claro); }

.botoes { display: flex; flex-wrap: wrap; gap: 1rem; }
.centro .botoes { justify-content: center; }

/* ---------- Cabeçalho ---------- */

.topo {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 23, 31, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha-tenue);
}

.topo__interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.topo__marca { color: var(--ouro); display: block; flex: 0 0 auto; }
.topo__marca svg, .topo__marca img { height: 40px; width: auto; }

.menu { display: flex; align-items: center; gap: 1.6rem; }

.menu__lista {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}

.menu__link {
  font-size: .93rem;
  font-weight: 400;
  color: var(--papel-suave);
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.menu__link:hover { color: var(--papel); border-bottom-color: var(--ouro); }
.menu__link[aria-current="page"] { color: var(--papel); border-bottom-color: var(--ouro); }

.menu .botao { padding: .68rem 1.25rem; font-size: .88rem; white-space: nowrap; flex: 0 0 auto; }

.abrir-menu {
  display: none;
  background: transparent;
  border: 1px solid var(--linha);
  border-radius: 2px;
  color: var(--papel);
  width: 46px; height: 42px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.abrir-menu span {
  display: block; width: 20px; height: 1px; background: currentColor;
  position: relative;
}
.abrir-menu span::before,
.abrir-menu span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: currentColor;
}
.abrir-menu span::before { top: -6px; }
.abrir-menu span::after  { top: 6px; }

@media (max-width: 1180px) {
  .abrir-menu { display: inline-flex; }
  .menu {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--tinta);
    border-bottom: 1px solid var(--linha-tenue);
    padding: 1rem var(--gutter) 2rem;
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    display: none;
  }
  .menu[data-aberto="sim"] { display: flex; }
  .menu__lista { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__link {
    display: block; padding: .95rem 0;
    border-bottom: 1px solid var(--linha-tenue);
    font-size: 1.02rem;
  }
  .menu__link:hover, .menu__link[aria-current="page"] { border-bottom-color: var(--linha-tenue); }
  .menu .botao { margin-top: 1.4rem; justify-content: center; }
}

/* ---------- Topo de página (hero) ---------- */

.heroi {
  position: relative;
  padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(1100px 520px at 18% 8%, rgba(182, 157, 116, .13), transparent 62%),
    linear-gradient(180deg, var(--marinho) 0%, var(--tinta) 76%);
  border-bottom: 1px solid var(--linha-tenue);
  overflow: hidden;
}

.heroi::after {
  content: "";
  position: absolute; right: -9%; bottom: -34%;
  width: min(620px, 72vw); aspect-ratio: 1;
  background: currentColor;
  color: rgba(182, 157, 116, .05);
  -webkit-mask: url("../img/marca.svg") center / contain no-repeat;
          mask: url("../img/marca.svg") center / contain no-repeat;
  pointer-events: none;
}

.heroi__conteudo { position: relative; z-index: 1; max-width: 46rem; }
.heroi h1 { margin-bottom: .45em; }
.heroi .chamada { margin-bottom: 1.1em; }
.heroi .botoes { margin-top: 2.2rem; }

.heroi--interno { padding: clamp(3.8rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.heroi--interno::after {
  width: min(400px, 52vw);
  right: -5%; bottom: -26%;
  color: rgba(182, 157, 116, .035);
}
.heroi--interno h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }

/* ---------- Seções ---------- */

.secao { padding: clamp(3.6rem, 8vw, 6.5rem) 0; }
.secao--alta { background: var(--tinta-alta); }
.secao--fina { padding: clamp(2.4rem, 5vw, 3.6rem) 0; }

.secao__cabeca { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); max-width: 56rem; }
.secao__cabeca.centro { margin-inline: auto; }
.secao__cabeca h2 { margin-bottom: .35em; }

/* ---------- Grades ---------- */

.grade { display: grid; gap: 1.5rem; }
.grade--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grade--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.dupla {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .dupla { grid-template-columns: 1fr 1fr; }
  .dupla--texto-maior { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- Cartões de área ---------- */

.area {
  display: flex; flex-direction: column;
  padding: 1.9rem 1.7rem;
  background: rgba(242, 240, 236, .025);
  border: 1px solid var(--linha-tenue);
  border-top: 1px solid var(--linha);
  transition: background .2s ease, border-color .2s ease;
}
a.area:hover { background: rgba(182, 157, 116, .07); border-color: var(--linha); }

.area h3 { font-size: 1.32rem; margin-bottom: .5rem; }
.area p { font-size: .96rem; color: var(--papel-suave); margin-bottom: 1.3rem; }
.area__saiba {
  margin-top: auto;
  font-family: var(--sans);
  font-size: .86rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ouro);
}

/* ---------- Listas ---------- */

.lista-marcada { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.lista-marcada li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .85rem;
  color: var(--papel-suave);
}
.lista-marcada li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 10px; height: 1px; background: var(--ouro);
}
.lista-marcada strong { color: var(--papel); font-weight: 600; }

.lista-ordem { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: passo; }
.lista-ordem li {
  counter-increment: passo;
  position: relative;
  padding-left: 3.1rem;
  margin-bottom: 1.4rem;
  color: var(--papel-suave);
}
.lista-ordem li::before {
  content: counter(passo, decimal-leading-zero);
  position: absolute; left: 0; top: .05em;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ouro);
  opacity: .85;
}

.definicoes { margin: 0; }
.definicoes dt {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--papel);
  margin-bottom: .35rem;
}
.definicoes dd {
  margin: 0 0 1.7rem;
  color: var(--papel-suave);
  max-width: 64ch;
}

/* ---------- Clientes ---------- */

.clientes { display: flex; flex-wrap: wrap; gap: 2.2rem 3rem; align-items: center; justify-content: center; }
.clientes img { max-height: 54px; width: auto; opacity: .75; filter: grayscale(1) brightness(1.6); }
.clientes img:hover { opacity: 1; }

.aviso-interno {
  border: 1px dashed var(--linha);
  padding: 1.4rem 1.6rem;
  color: var(--papel-tenue);
  font-size: .92rem;
  max-width: 62ch;
  margin-inline: auto;
}

/* ---------- Depoimentos ---------- */

.depoimento {
  padding: 1.9rem 1.8rem;
  border-left: 1px solid var(--ouro);
  background: rgba(242, 240, 236, .025);
}
.depoimento blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--papel);
}
.depoimento cite { font-style: normal; font-size: .9rem; color: var(--ouro); letter-spacing: .04em; }

/* ---------- Dúvidas (FAQ) ---------- */

.duvida {
  border-bottom: 1px solid var(--linha-tenue);
}
.duvida summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--papel);
}
.duvida summary::-webkit-details-marker { display: none; }
.duvida summary::after {
  content: "+";
  position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  color: var(--ouro); font-family: var(--sans); font-size: 1.3rem; line-height: 1;
}
.duvida[open] summary::after { content: "–"; }
.duvida p { color: var(--papel-suave); padding-bottom: 1.2rem; margin: 0; }

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

.chamada-final {
  background:
    radial-gradient(760px 340px at 50% 0%, rgba(182, 157, 116, .14), transparent 68%),
    var(--marinho);
  border-top: 1px solid var(--linha);
  text-align: center;
}
.chamada-final h2 { margin-bottom: .3em; }
.chamada-final p { margin-inline: auto; color: var(--papel-suave); }
.chamada-final .botoes { margin-top: 2rem; justify-content: center; }
.chamada-final .local {
  margin-top: 2.4rem; font-size: .88rem; color: var(--papel-tenue); letter-spacing: .05em;
}

/* ---------- Formulário ---------- */

.formulario { display: grid; gap: 1.1rem; max-width: 34rem; }
.campo { display: grid; gap: .4rem; }
.campo label { font-size: .88rem; font-weight: 500; color: var(--papel-suave); letter-spacing: .03em; }
.campo input, .campo textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--papel);
  background: rgba(242, 240, 236, .04);
  border: 1px solid var(--linha-tenue);
  border-radius: 2px;
  padding: .8rem .95rem;
  width: 100%;
}
.campo input:focus, .campo textarea:focus { border-color: var(--ouro); outline: none; background: rgba(242,240,236,.06); }
.campo textarea { min-height: 150px; resize: vertical; }
/* Campo-armadilha: fica fora da tela para pessoas, mas visível para robôs
   que leem o HTML. Tudo dentro é recortado, para não ocupar espaço nenhum. */
.oculto {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}
.form-nota { font-size: .86rem; color: var(--papel-tenue); max-width: 34rem; }
.form-aviso { padding: .9rem 1.1rem; border: 1px solid var(--linha); font-size: .93rem; display: none; }
.form-aviso[data-estado="ok"]   { display: block; border-color: var(--ouro); color: var(--papel); }
.form-aviso[data-estado="erro"] { display: block; border-color: #a4564e; color: #e8b6b0; }

/* ---------- Blog ---------- */

.post-item {
  display: block;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--linha-tenue);
}
.post-item:hover h3 { color: var(--ouro-claro); }
.post-item h3 { margin-bottom: .4rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--papel); }
.post-item time { font-size: .86rem; color: var(--papel-tenue); letter-spacing: .05em; }

.artigo { max-width: 46rem; }
.artigo__data { font-size: .88rem; color: var(--papel-tenue); letter-spacing: .05em; margin-bottom: 2.4rem; display: block; }
.artigo h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.6rem; }
.artigo p { color: var(--papel-suave); margin-bottom: 1.35em; }
.artigo blockquote {
  margin: 1.8rem 0;
  padding: .2rem 0 .2rem 1.6rem;
  border-left: 1px solid var(--ouro);
  font-size: .96rem;
  color: var(--papel-tenue);
}
.artigo blockquote p { margin-bottom: .9em; color: inherit; }
.artigo__assinatura {
  margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid var(--linha);
  font-family: var(--serif); font-size: 1.15rem; color: var(--ouro);
}
.artigo__notas { margin-top: 2.6rem; font-size: .88rem; color: var(--papel-tenue); }
.artigo__notas p { color: inherit; font-size: inherit; margin-bottom: .7em; }

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

.rodape {
  background: #0e131a;
  border-top: 1px solid var(--linha-tenue);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .94rem;
}
.rodape__grade {
  display: grid; gap: 2.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px)  { .rodape__grade { grid-template-columns: 1.4fr 1fr 1fr; } }

.rodape__marca { color: var(--ouro); display: block; margin-bottom: 1.4rem; }
.rodape__marca svg, .rodape__marca img { height: 46px; width: auto; }
.rodape p { color: var(--papel-tenue); font-size: .92rem; max-width: 40ch; }

.rodape h4 {
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ouro);
  margin-bottom: 1.1rem;
}
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin-bottom: .62rem; }
.rodape a { color: var(--papel-suave); }
.rodape a:hover { color: var(--ouro); }

.redes { display: flex; gap: 1.1rem; margin-top: 1.4rem; }
.redes a { color: var(--papel-suave); }
.redes a:hover { color: var(--ouro); }
.redes svg { width: 20px; height: 20px; fill: currentColor; }

.rodape__fim {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--linha-tenue);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  justify-content: space-between;
  color: var(--papel-tenue); font-size: .85rem;
}

/* ---------- WhatsApp flutuante ---------- */

.zap {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #0b3d22;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .42);
}
.zap svg { width: 29px; height: 29px; fill: #fff; }
.zap:hover { background: #1fbe5a; }
@media (max-width: 520px) { .zap { right: 14px; bottom: 14px; } }

/* Título de artigo: os títulos são longos, então ficam menores que o h1 padrão */
.heroi--artigo h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.22; max-width: 24ch; }

/* ---------- Utilitários de espaçamento e cor ----------
   Usados no lugar de estilos embutidos, para que a política de
   segurança do site (CSP) possa proibir estilo dentro do HTML. */

.u-suave  { color: var(--papel-suave); }
.u-forte  { color: var(--papel); font-weight: 600; }
.u-tenue  { color: var(--papel-tenue); font-size: .95rem; }
.u-base   { margin-bottom: 1.35rem; }
.u-topo-p { margin-top: 1rem; }
.u-topo   { margin-top: 1.7rem; }
.u-topo-g { margin-top: 2.1rem; }
.u-topo-gg{ margin-top: 3rem; }
.u-estreito { max-width: 52ch; margin-inline: auto; }
.u-titulo-nota { font-size: 1.1rem; }
.rodape .u-topo { margin-top: 1.8rem; }
