/* Sistema visual compartilhado: catálogo impresso de imobiliária.
   Ver DESIGN.md. Tema único claro (material impresso), cantos retos. */
:root {
  --paper: #F3F2EE;
  --paper-2: #E8E6E0;
  --ink: #1F2528;
  --ink-2: #41484C;
  --muted: #5B6266;
  --rule: #CFCBC2;
  --rule-strong: #1F2528;
  --accent: #9C3B1E;
  --accent-dark: #7A2D16;
  --on-ink: #F3F2EE;
  --on-ink-muted: #B9B6AE;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; }
.sec + .sec { padding-top: 0; }
.sec.tint { background: var(--paper-2); padding-top: var(--sec); }
.sec.tint + .sec { padding-top: var(--sec); }
main { overflow-x: clip; }

/* ---------- tipografia ---------- */
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.012em; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); max-width: 20ch; }
h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); line-height: 1.12; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.body { color: var(--ink-2); max-width: 60ch; }
.small { font-size: .86rem; color: var(--muted); }
.label { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--accent); }
.num {
  font-family: var(--sans); font-stretch: 72%; font-weight: 600;
  letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- cabeçalho ---------- */
.mast { border-bottom: 1px solid var(--rule-strong); background: var(--paper); }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.mark { text-decoration: none; line-height: 1.1; }
.mark b { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -.01em; display: block; }
.mark span { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.mast-nav { display: flex; gap: 26px; font-size: .92rem; }
.mast-nav a { text-decoration: none; color: var(--ink-2); }
.mast-nav a:hover { color: var(--accent); }
.mast-tel { font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.mast-tel:hover { color: var(--accent); }
.mast-tel small { font-weight: 400; color: var(--muted); font-size: .8rem; margin-right: 6px; }
@media (max-width: 900px) { .mast-nav { display: none; } }
@media (max-width: 520px) { .mark span { display: none; } .mast-tel small { display: none; } }

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: 16px 22px; min-height: 52px;
  border-radius: 2px; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn .tel { font-weight: 400; opacity: .78; font-stretch: 85%; }
.btn svg { flex: none; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.go {
  font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s var(--ease);
}
.go:hover { color: var(--accent); }
.go svg { transition: transform .2s var(--ease); }
.go:hover svg { transform: translateX(3px); }

/* ---------- figuras ---------- */
figure img { width: 100%; }
figcaption { font-size: .84rem; color: var(--muted); margin-top: 10px; line-height: 1.45; max-width: 70ch; }
.bleed { width: 100%; }
.bleed img { width: 100%; object-fit: cover; }

/* ---------- ficha (números de catálogo) ---------- */
.ficha { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.ficha > div { padding: 18px 20px 4px 0; }
.ficha > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.ficha dt { font-size: .84rem; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.ficha dd { font-family: var(--sans); font-stretch: 72%; font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.01em; }
.ficha dd small { font-size: .6em; font-weight: 500; }
@media (max-width: 760px) {
  .ficha { grid-template-columns: 1fr 1fr; }
  .ficha > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ficha > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- passos (prosa numerada) ---------- */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: p; }
.passos > li { list-style: none; counter-increment: p; }
.passos > li::before {
  content: counter(p); display: block; font-family: var(--serif); font-style: italic;
  font-size: 3.2rem; line-height: 1; color: var(--accent); margin-bottom: 12px;
}
.passos h3 { font-size: 1.3rem; margin-bottom: 8px; }
.passos p { color: var(--ink-2); font-size: .98rem; }
.passos.quatro { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .passos, .passos.quatro { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- perguntas ---------- */
.faq { max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans);
  font-size: 1.6rem; font-weight: 300; color: var(--accent); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; }

/* ---------- contato (bloco escuro, único por página) ---------- */
.contato { background: var(--ink); color: var(--on-ink); padding: var(--sec) 0; }
.contato-in { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contato-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; }
.contato-foto figcaption { color: var(--on-ink-muted); }
.contato h2 { max-width: 18ch; }
.contato p { color: var(--on-ink-muted); max-width: 52ch; margin-top: 18px; }
.contato .btn { background: var(--paper); color: var(--ink); margin-top: 30px; }
.contato .btn:hover { background: var(--accent); color: var(--on-ink); }
.contato .btn-line { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--on-ink-muted); }
.contato .btn-line:hover { background: var(--paper); color: var(--ink); }
.contato .acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.contato .acoes .btn { margin-top: 30px; }
@media (max-width: 700px) {
  .contato-in { grid-template-columns: 1fr; }
  .contato-foto { max-width: 160px; }
}

/* ---------- rodapé ---------- */
.rodape { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: .9rem; }
.rodape-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; border-top: 1.5px solid var(--ink); padding-top: 24px; }
.rodape strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-bottom: 4px; }
.rodape p { color: var(--muted); }
.rodape a:hover { color: var(--accent); }
.aviso { margin-top: 32px; font-size: .78rem; color: var(--muted); max-width: 80ch; line-height: 1.55; }
@media (max-width: 700px) { .rodape-in { grid-template-columns: 1fr; } }

/* ---------- barra de WhatsApp no celular ---------- */
.barra-wa { display: none; }
@media (max-width: 700px) {
  .barra-wa {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    align-items: center; justify-content: center; gap: 10px;
    background: var(--ink); color: var(--on-ink); text-decoration: none;
    font-weight: 600; font-size: .98rem; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 3px solid var(--accent);
  }
  .barra-wa span { font-weight: 400; opacity: .75; }
  body { padding-bottom: 58px; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-ink); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
