/* ─────────────────────────────────────────────────────────────────────────────
   Estilos das páginas de serviço (arquiteto, engenheiro, construtor,
   projeto de arquitetura, projeto de casa, legalização).

   Ficam num arquivo só para que as seis páginas sejam leves e mudem juntas.
   O visual foi copiado de financiamento.html, que continua com o CSS embutido.

   ATENÇÃO: o .htaccess manda o navegador guardar .css por um ano. Ao alterar
   este arquivo, troque o ?v= do <link> nas seis páginas, senão quem já visitou
   continuará vendo a versão antiga.
   ───────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif; background: #140707; color: #f0ede8;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
:root {
  --grena: #8b1a1a;
  --grena-hover: #a52020;
  --gold: #c9a84c;
  --charcoal: #140707;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #e0c374; }
img { max-width: 100%; }

/* ── revelação ao rolar ─────────────────────────────────── */
[data-reveal] { transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
[data-reveal]:not([data-seen]) { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal]:not([data-seen]) { opacity: 1; transform: none; }
}

/* ── nav ────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 150; height: 74px;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(20,7,7,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.14);
}
nav .brand { display: flex; align-items: center; }
nav .brand img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.88; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.nav-links a.jump { color: rgba(240,237,232,0.6); font-size: 12.5px; letter-spacing: 0.05em; }
.nav-links a.jump:hover { color: var(--gold); }
@media (max-width: 620px) { .nav-links a.jump { display: none; } }

/* ── botões ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--grena); color: #fff; padding: 15px 34px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  transition: background .2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--grena-hover); color: #fff; }
.btn-primary.sm { padding: 11px 22px; font-size: 11.5px; white-space: nowrap; }
.btn-ghost {
  display: inline-block; color: var(--gold); padding: 15px 34px;
  border: 1px solid rgba(201,168,76,0.35);
  font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase;
  transition: border-color .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── trilha (breadcrumb) ────────────────────────────────── */
.trilha {
  padding: 14px clamp(24px,6vw,48px);
  font-size: 12px; color: rgba(240,237,232,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.trilha a { color: rgba(240,237,232,0.5); }
.trilha a:hover { color: var(--gold); }

/* ── hero ───────────────────────────────────────────────── */
header.hero {
  position: relative; overflow: hidden;
  padding: clamp(58px,9vw,96px) clamp(24px,6vw,48px) clamp(52px,7vw,76px);
  background: radial-gradient(120% 90% at 50% 0%, #2a0f0f 0%, #0d0404 70%);
}
header.hero .grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent);
}
header.hero .inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 5.8vw, 62px);
  font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 24px;
}
h1 em { font-style: italic; color: var(--gold); }
.lede { color: rgba(240,237,232,0.62); font-size: 16px; line-height: 1.8; max-width: 660px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: rgba(201,168,76,0.16); border: 1px solid rgba(201,168,76,0.16);
  max-width: 760px; margin: 0 auto;
}
.stats > div { background: #160707; padding: 22px 16px; }
.stats .n { font-family: 'Cormorant Garamond', serif; font-size: 32px; color: var(--gold); line-height: 1; }
.stats .l { font-size: 11.5px; color: rgba(240,237,232,0.5); letter-spacing: 0.06em; margin-top: 6px; }

/* ── seções ─────────────────────────────────────────────── */
section {
  padding: clamp(54px,7.5vw,84px) clamp(24px,6vw,48px);
  border-top: 1px solid rgba(255,255,255,0.05);
}
section.alt { background: #1b0909; }
section[id] { scroll-margin-top: 74px; }
.wrap { max-width: 920px; margin: 0 auto; }
.wrap.faq { max-width: 860px; }
.eyebrow {
  color: var(--gold); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}
h2 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 4vw, 40px);
  font-weight: 300; margin-top: 10px;
}
h2 em { font-style: italic; color: var(--gold); }
.divider { width: 44px; height: 1px; background: var(--gold); margin: 18px 0 30px; }
.body-text { color: rgba(240,237,232,0.68); font-size: 15.5px; line-height: 1.85; max-width: 780px; }
.body-text + .body-text { margin-top: 18px; }
.body-text strong { color: #f0ede8; font-weight: 600; }
.note-text { color: rgba(240,237,232,0.5); font-size: 13.5px; line-height: 1.8; max-width: 760px; margin-top: 20px; }

/* ── cartões ────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 28px; }
.card {
  background: #1f0d0d; padding: 28px 28px 30px; border-top: 2px solid rgba(201,168,76,0.4);
  transition: transform .3s, background .3s;
}
.card:hover { transform: translateY(-4px); background: #251111; }
.card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 21px; margin-bottom: 10px; }
.card p { color: rgba(240,237,232,0.62); font-size: 14px; line-height: 1.75; }

/* ── lista de itens ─────────────────────────────────────── */
ul.list { list-style: none; margin-top: 24px; }
ul.list li {
  color: rgba(240,237,232,0.68); font-size: 15px; line-height: 1.75;
  padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.06);
}
ul.list li strong { color: #f0ede8; font-weight: 600; }

/* ── etapas numeradas ───────────────────────────────────── */
ol.etapas { list-style: none; counter-reset: etapa; margin-top: 26px; }
ol.etapas li {
  counter-increment: etapa; position: relative;
  padding: 20px 0 20px 60px; border-top: 1px solid rgba(255,255,255,0.06);
}
ol.etapas li::before {
  content: counter(etapa, decimal-leading-zero);
  position: absolute; left: 0; top: 20px;
  font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--gold);
}
ol.etapas h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 21px; margin-bottom: 8px; }
ol.etapas p { color: rgba(240,237,232,0.62); font-size: 14.5px; line-height: 1.8; }

/* ── tabela ─────────────────────────────────────────────── */
.tabela-wrap { overflow-x: auto; margin-top: 26px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14.5px; }
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
th { color: var(--gold); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
td { color: rgba(240,237,232,0.68); line-height: 1.65; }
td strong { color: #f0ede8; font-weight: 600; }

/* ── bloco Freeman (grená) ──────────────────────────────── */
section.freeman { background: var(--grena); border-top: none; }
section.freeman .eyebrow { color: rgba(255,255,255,0.8); }
section.freeman h2, section.freeman h2 em { color: #fff; }
section.freeman .divider { background: rgba(255,255,255,0.5); }
section.freeman .body-text { color: rgba(255,255,255,0.8); }
section.freeman ul.list li { color: rgba(255,255,255,0.82); border-top-color: rgba(255,255,255,0.16); }
section.freeman ul.list li strong { color: #fff; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn-dark {
  display: inline-block; background: #140707; color: #fff; padding: 15px 34px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  transition: background .2s;
}
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline-light {
  display: inline-block; color: #fff; padding: 15px 34px;
  border: 1px solid rgba(255,255,255,0.42);
  font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase;
  transition: border-color .2s;
}
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* ── área atendida ──────────────────────────────────────── */
/* Lista de verdade, e não spans encostados: leitor de tela e extrator de
   texto precisam de fronteira entre um bairro e o seguinte. */
.bairros { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; padding: 0; }
.bairros li {
  border: 1px solid rgba(201,168,76,0.22); padding: 8px 15px;
  font-size: 12.5px; color: rgba(240,237,232,0.6);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item { border-top: 1px solid rgba(255,255,255,0.08); }
.faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-q {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  width: 100%; padding: 22px 0; background: none; border: none; cursor: pointer;
  font: inherit; text-align: left; color: #f0ede8;
}
.faq-q:hover { color: var(--gold); }
.faq-q:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.faq-q .q { font-size: 16px; line-height: 1.5; font-weight: 500; }
.faq-q .plus { flex: none; font-size: 22px; color: var(--gold); line-height: 1; transition: transform .3s; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
/* O texto da resposta fica escrito no HTML — é assim que o Google o lê, mesmo
   com o bloco recolhido. Daqui sai apenas a animação de altura. */
.faq-a { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s ease, opacity .3s ease; }
.faq-a p { color: rgba(240,237,232,0.64); font-size: 14.5px; line-height: 1.85; padding-bottom: 24px; max-width: 740px; }

/* ── páginas relacionadas ───────────────────────────────── */
.relacionadas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.relacionadas a {
  display: block; border: 1px solid rgba(255,255,255,0.09); padding: 22px 24px;
  color: #f0ede8; transition: border-color .25s, background .25s;
}
.relacionadas a:hover { border-color: rgba(201,168,76,0.45); background: #1f0d0d; color: #f0ede8; }
.relacionadas .t { font-family: 'Cormorant Garamond', serif; font-size: 19px; margin-bottom: 6px; }
.relacionadas .d { font-size: 13px; color: rgba(240,237,232,0.5); line-height: 1.6; }

/* ── CTA final ──────────────────────────────────────────── */
section.final {
  padding: clamp(56px,8vw,96px) clamp(24px,6vw,48px);
  background: #0d0404; border-top: 1px solid rgba(201,168,76,0.16); text-align: center;
}
section.final .inner { max-width: 640px; margin: 0 auto; }
section.final h2 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.15; margin-top: 0; }
section.final p { color: rgba(240,237,232,0.6); font-size: 15px; line-height: 1.8; margin: 20px auto 30px; max-width: 540px; }

/* ── footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 38px clamp(24px,6vw,48px);
  background: #0a0303; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
footer img { height: 24px; width: auto; opacity: 0.35; filter: brightness(0) invert(1); }
footer span { color: rgba(240,237,232,0.25); font-size: 12px; }

/* ── WhatsApp flutuante ─────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 20px; z-index: 9998;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.wa-float svg { width: 29px; height: 29px; fill: #fff; }
