:root {
  --tinta: #1f2a33;
  --texto: #2b3640;
  --texto-2: #55616b;
  --papel: #ffffff;
  --nevoa: #f2f4f5;
  --linha: #d9dee2;
  --ouro: #a07f3c;
  --ouro-texto: #7a5e2a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --largura: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinta); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--tinta); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.envoltorio { width: min(var(--largura), 100% - 2.5rem); margin-inline: auto; }
.pular { position: absolute; left: -999px; }
.pular:focus { left: 1rem; top: 1rem; background: var(--tinta); color: #fff; padding: .5rem 1rem; z-index: 99; }

/* Cabeçalho */
.topo { border-bottom: 1px solid var(--linha); background: var(--papel); }
.topo .envoltorio { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.marca { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.marca img { width: 44px; }
.marca span { font-family: var(--serif); font-size: 1.3rem; color: var(--tinta); line-height: 1.1; }
.marca small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--ouro-texto); letter-spacing: .02em; }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { text-decoration: none; font-size: 1rem; color: var(--texto-2); }
.nav a:hover { color: var(--tinta); }
.nav a.botao, .nav a.botao:hover { color: #fff; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--tinta); color: #fff; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 6px; font-weight: 600; font-size: 1.05rem;
}
.botao:hover { background: #2d3b47; }
.botao svg { width: 20px; height: 20px; flex: none; }
.botao.secundario { background: transparent; color: var(--tinta); border: 1.5px solid var(--tinta); }

/* Página inicial */
.abertura { padding-block: clamp(3rem, 8vw, 6rem) 2rem; }
.abertura h1 { max-width: 18ch; }
.abertura .intro { font-size: 1.25rem; color: var(--texto-2); max-width: 46ch; }

.portas { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--linha); }
.portas li { border-bottom: 1px solid var(--linha); }
.portas a {
  display: grid; grid-template-columns: 1fr auto; gap: .4rem 2rem; align-items: center;
  padding: 1.8rem .25rem 1.8rem 1.25rem; text-decoration: none; position: relative;
}
.portas a::before { content: ""; position: absolute; left: 0; top: 1.8rem; bottom: 1.8rem; width: 3px; background: var(--ouro); transform: scaleY(.35); transition: transform .25s ease; }
.portas a:hover::before, .portas a:focus-visible::before { transform: scaleY(1); }
.portas .pergunta { font-family: var(--serif); font-size: clamp(1.45rem, 3.4vw, 2.1rem); color: var(--tinta); line-height: 1.2; }
.portas .resumo { grid-column: 1; color: var(--texto-2); font-size: 1.05rem; max-width: 60ch; }
.portas .ir { grid-row: 1 / span 2; grid-column: 2; font-weight: 600; color: var(--ouro-texto); white-space: nowrap; font-size: 1rem; }

.faixa { background: var(--nevoa); padding-block: clamp(3rem, 7vw, 5rem); }
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: passo; }
.passos li { counter-increment: passo; }
.passos li::before { content: counter(passo); display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--ouro); line-height: 1; margin-bottom: .6rem; }
.passos h3 { margin-bottom: .3rem; }
.passos p { color: var(--texto-2); margin: 0; }

.sobre { padding-block: clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.retrato { aspect-ratio: 3 / 4; background: var(--nevoa); border-radius: 4px; position: relative; overflow: hidden; display: grid; place-items: center; }
.retrato .mono { width: 42%; opacity: .55; }
.retrato .foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sobre .dados { color: var(--texto-2); font-size: 1rem; }

/* Páginas de tema */
.cabeca-tema { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.cabeca-tema .voltar { font-size: 1rem; color: var(--texto-2); }
.cabeca-tema h1 { max-width: 22ch; margin-top: 1rem; }
.cabeca-tema .intro { font-size: 1.25rem; color: var(--texto-2); max-width: 52ch; }

.tema { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: 4rem; align-items: start; }
.texto-tema { max-width: 68ch; }
.texto-tema h2 { margin-top: 2.2rem; }
.texto-tema ul { padding-left: 1.2rem; }
.texto-tema li { margin-bottom: .5rem; }
.texto-tema .nota { border-left: 3px solid var(--ouro); padding: .2rem 0 .2rem 1.1rem; color: var(--texto-2); }
.ref { font-size: .95rem; color: var(--texto-2); }

.lateral { position: sticky; top: 1.5rem; background: var(--nevoa); border-radius: 6px; padding: 1.6rem; }
.lateral h2 { font-size: 1.35rem; margin-top: 0; }
.lateral ul { padding-left: 1.1rem; margin: 0 0 1.4rem; font-size: 1rem; }
.lateral li { margin-bottom: .35rem; }
.lateral .botao { width: 100%; justify-content: center; }

.aviso { font-size: .92rem; color: var(--texto-2); border-top: 1px solid var(--linha); padding-top: 1.2rem; margin-top: 2.5rem; }

/* Rodapé */
.rodape { background: var(--tinta); color: #c9d1d7; padding-block: 3rem 2rem; font-size: .98rem; }
.rodape .envoltorio { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.rodape img { width: 230px; margin-bottom: 1rem; }
.rodape h2 { color: #fff; font-size: 1.15rem; }
.rodape a { color: #fff; }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin-bottom: .4rem; }
.rodape .final { grid-column: 1 / -1; border-top: 1px solid #3a4854; padding-top: 1.2rem; font-size: .88rem; color: #9aa6af; }

/* WhatsApp fixo no celular */
.whats-fixo { display: none; }

@media (max-width: 860px) {
  .nav a:not(.botao) { display: none; }
  .passos { grid-template-columns: 1fr; }
  .sobre { grid-template-columns: 1fr; }
  .retrato { max-width: 420px; }
  .tema { grid-template-columns: 1fr; }
  .lateral { position: static; }
  .rodape .envoltorio { grid-template-columns: 1fr; }
  .portas a { grid-template-columns: 1fr; }
  .portas .ir { grid-row: auto; grid-column: 1; }
}
@media (max-width: 560px) {
  .topo .botao { display: none; }
  .marca small { display: none; }
  .whats-fixo {
    display: flex; position: fixed; left: 1rem; right: auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    justify-content: center; z-index: 50; padding: .8rem 1.2rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(31, 42, 51, .28);
  }
  body { padding-bottom: 5.5rem; }
}

/* ===== Capa escura com foto do escritório ===== */
.capa {
  position: relative;
  color: #e6ebee;
  background:
    linear-gradient(180deg, rgba(17, 24, 31, .82) 0%, rgba(20, 29, 37, .70) 55%, rgba(17, 24, 31, .90) 100%),
    url("fundo.jpg") center 30% / cover no-repeat,
    #18212a;
}
.capa::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--ouro) 20%, var(--ouro) 80%, transparent); opacity: .7; }
.capa .topo { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.capa .marca span { color: #fff; }
.capa .marca small { color: #cfae6b; }
.capa .nav a { color: #c9d1d7; }
.capa .nav a:hover { color: #fff; }
.capa .nav a.botao { background: var(--ouro); color: #16202a; }
.capa .nav a.botao:hover { background: #b8944a; color: #16202a; }
.capa h1 { color: #fff; }
.capa .intro { color: #c4cdd3; }
.capa a { color: #fff; }
.capa .voltar { color: #cfae6b; }

.abertura { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3.5rem, 9vw, 6rem); }
.acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.botao.ouro { background: var(--ouro); color: #16202a; }
.botao.ouro:hover { background: #b8944a; }
.botao.contorno { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.botao.contorno:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.situacoes { padding-block: clamp(3rem, 7vw, 5rem) 1rem; }
.situacoes .portas { margin-top: 1.5rem; }
.capa .cabeca-tema { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.tema { padding-top: clamp(2rem, 5vw, 3.5rem); }

@media (max-width: 560px) {
  .acoes .botao { width: 100%; justify-content: center; }
}
