/* =========================================================
   Saldanha Garcia Advogados — folha de estilo única
   Sem build step. CSS puro, custom properties, mobile-first.
   ========================================================= */

:root {
  /* Paleta */
  --azul: #1f3a5f;
  --azul-escuro: #16293f;
  --azul-claro: #33557f;
  --dourado: #a8792f;
  --dourado-claro: #c9964a;
  --fundo: #eef1ee;
  --fundo-alt: #e4e8e4;
  --papel: #f8faf8;
  --texto: #22282c;
  --texto-suave: #4d565d;
  --linha: #d3d9d3;

  /* Tipografia */
  --serif: "Lora", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Métrica */
  --largura: 68rem;
  --largura-texto: 44rem;
  --gap: clamp(1.25rem, 3vw, 2rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Tipografia ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--azul);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
}

p,
li {
  max-width: var(--largura-texto);
  text-wrap: pretty;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--azul);
  text-decoration-color: var(--dourado);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--dourado);
}

strong {
  font-weight: 600;
  color: var(--azul-escuro);
}

/* Foco de teclado sempre visível */
:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.medida {
  max-width: var(--largura-texto);
}

.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;
}

.pular-para-conteudo {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--azul);
  color: #fff;
  padding: 0.75rem 1.25rem;
}

.pular-para-conteudo:focus {
  left: 0;
}

.olho {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.9rem;
  display: block;
}

.regua {
  border: 0;
  border-top: 1px solid var(--linha);
  margin: 3rem 0;
}

/* ---------- Cabeçalho ---------- */
.cabecalho {
  background: var(--azul);
  color: #fff;
  border-bottom: 3px solid var(--dourado);
}

.cabecalho__interno {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem;
}

.marca {
  color: #fff;
  text-decoration: none;
  display: block;
  line-height: 1.15;
}

.marca:hover {
  color: #fff;
}

.marca__nome {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  display: block;
}

.marca__nome em {
  font-style: normal;
  color: var(--dourado-claro);
}

.marca__sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9c6d6;
  display: block;
  margin-top: 0.28rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  align-items: center;
}

.nav a {
  color: #dbe4ee;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--dourado);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--azul);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* composição tipográfica: filete decorativo, sem imagem */
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(168, 121, 47, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  max-width: 20ch;
  margin-bottom: 1.2rem;
}

.hero p {
  color: #cfdae7;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  max-width: 52ch;
}

.hero .olho {
  color: var(--dourado-claro);
}

/* ---------- Seções ---------- */
.secao {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.secao--papel {
  background: var(--papel);
  border-block: 1px solid var(--linha);
}

.secao__titulo {
  margin-top: 0;
}

/* ---------- Grades ---------- */
.grade {
  display: grid;
  gap: var(--gap);
  margin-top: 2rem;
}

@media (min-width: 46rem) {
  .grade--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grade--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cartao {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-top: 3px solid var(--azul);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.secao--papel .cartao {
  background: #fff;
}

.cartao h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.cartao p {
  color: var(--texto-suave);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.cartao p:last-of-type {
  margin-bottom: 0;
}

.cartao__link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--azul);
}

.cartao__link::after {
  content: " →";
  color: var(--dourado);
}

.cartao__link:hover {
  color: var(--dourado);
}

/* Lista de praças / dados */
.lista-simples {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.lista-simples li {
  padding-left: 1.4rem;
  position: relative;
}

.lista-simples li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--dourado);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  padding-left: 1.9rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--dourado);
}

/* Etapas numeradas */
.etapas {
  list-style: none;
  counter-reset: etapa;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.etapas li {
  counter-increment: etapa;
  padding-left: 3.25rem;
  position: relative;
  max-width: var(--largura-texto);
}

.etapas li::before {
  content: counter(etapa, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--dourado);
  border-bottom: 1px solid var(--linha);
  padding-bottom: 0.1rem;
  width: 2.25rem;
}

.etapas h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.etapas p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.98rem;
}

/* ---------- Perguntas frequentes ---------- */
.faq {
  margin-top: 1.75rem;
  max-width: var(--largura-texto);
}

.faq details {
  border-bottom: 1px solid var(--linha);
}

.faq summary {
  cursor: pointer;
  padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 600;
  color: var(--azul);
  position: relative;
  list-style: none;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dourado);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0;
  padding-bottom: 1.1rem;
  color: var(--texto-suave);
}

/* ---------- Botões ---------- */
.botao {
  display: inline-block;
  background: var(--dourado);
  color: #fff;
  border: 1px solid var(--dourado);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.botao:hover {
  background: #8f6626;
  border-color: #8f6626;
  color: #fff;
}

.botao--claro {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.botao--claro:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.botao--secundario {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
}

.botao--secundario:hover {
  background: var(--azul);
  color: #fff;
}

/* ---------- Formulário ---------- */
.bloco-form {
  background: var(--azul);
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}

.bloco-form h2 {
  color: #fff;
  margin-top: 0;
}

.bloco-form > .container > p {
  color: #cfdae7;
  max-width: 56ch;
}

.formulario {
  max-width: 38rem;
  margin-top: 2rem;
  display: grid;
  gap: 1.15rem;
}

.campo {
  display: grid;
  gap: 0.4rem;
}

.campo > label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dbe4ee;
}

.campo .dica {
  font-size: 0.8rem;
  color: #a8bacd;
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--texto);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.7rem 0.85rem;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.6;
}

input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--dourado-claro);
  outline-offset: 2px;
}

.consentimento {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cfdae7;
  max-width: none;
}

.consentimento input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  accent-color: var(--dourado);
}

.consentimento a {
  color: #fff;
  text-decoration-color: var(--dourado-claro);
}

.formulario .botao {
  justify-self: start;
}

.form-erro {
  background: #fdecec;
  border-left: 3px solid #a4302c;
  color: #6d1f1c;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 0;
}

.form-erro[hidden] {
  display: none;
}

/* Aviso legal em destaque */
.aviso {
  border-left: 3px solid var(--dourado);
  background: var(--fundo-alt);
  padding: 1.1rem 1.35rem;
  font-size: 0.93rem;
  color: var(--texto-suave);
  margin: 2rem 0 0;
  max-width: var(--largura-texto);
}

.aviso p:last-child {
  margin-bottom: 0;
}

/* ---------- Tabela de dados (privacidade) ---------- */
.tabela-envolucro {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--linha);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.94rem;
  background: var(--papel);
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--linha);
  vertical-align: top;
}

th {
  background: var(--fundo-alt);
  font-weight: 600;
  color: var(--azul);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Perfil (equipe) ---------- */
.perfil {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

@media (min-width: 50rem) {
  .perfil {
    grid-template-columns: 18rem 1fr;
  }
}

.perfil__foto {
  aspect-ratio: 4 / 5;
  background: var(--fundo-alt);
  border: 1px solid var(--linha);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem;
}

.perfil__dados {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.perfil__dados dt {
  font-weight: 600;
  color: var(--azul);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.perfil__dados dd {
  margin: 0 0 0.9rem;
  color: var(--texto-suave);
}

/* ---------- Contato ---------- */
.mapa {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--linha);
  background: var(--fundo-alt);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Página de estado (obrigado / erro) ---------- */
.estado {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.estado h1 {
  max-width: 20ch;
}

.estado p {
  font-size: 1.1rem;
  color: var(--texto-suave);
}

.estado__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--azul-escuro);
  color: #b9c6d6;
  padding-block: 3rem 2rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.rodape__grade {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .rodape__grade {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.rodape h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dourado-claro);
  margin: 0 0 0.9rem;
}

.rodape p,
.rodape li {
  color: #b9c6d6;
  margin: 0 0 0.5rem;
  max-width: 38ch;
}

.rodape ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rodape a {
  color: #dbe4ee;
  text-decoration: none;
}

.rodape a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--dourado);
}

.rodape__identificacao {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.rodape__base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #92a3b6;
}

.rodape__base p {
  color: #92a3b6;
  max-width: 70ch;
}

/* ---------- Banner de cookies ---------- */
.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--azul-escuro);
  color: #dbe4ee;
  border-top: 3px solid var(--dourado);
  padding: 1.1rem 0;
  font-size: 0.9rem;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
}

.cookies[hidden] {
  display: none;
}

.cookies__interno {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookies p {
  margin: 0;
  max-width: 60ch;
  color: #dbe4ee;
}

.cookies a {
  color: #fff;
  text-decoration-color: var(--dourado);
}

.cookies__acoes {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookies .botao {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
}

/* ---------- Layout raiz ---------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* ---------- Impressão ---------- */
@media print {
  .cabecalho,
  .cookies,
  .bloco-form,
  .nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
