/* Aristoteles 576: landing page da cobertura.
   Direcao: "split stage" (foto fixa de um lado, leitura do outro). Paleta de pedra, como o revestimento da fachada;
   o acento e o latao das pecas de madeira do terraco e do dourado do anuncio. Cantos retos em tudo. */

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --field: #cdc3b6;
  --ink: #2b2a28;
  --muted: #5d5954;
  --dark: #1f1e1c;
  --dark-ink: #efedea;
  --dark-muted: #bdb8b1;
  --accent: #7a5c38;
  --accent-hover: #62492b;
  --accent-ink: #ffffff;
  --erro: #9b2c1f;

  --m: clamp(20px, 2.2vw, 32px);
  --coluna-pad: clamp(32px, 6vw, 96px);
  --gap-secao: clamp(96px, 13vw, 200px);

  /* cinco tamanhos */
  --t-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --t-head: clamp(2rem, 1.2rem + 2.2vw, 3rem);
  --t-mark: clamp(5.5rem, 17vw, 16.5rem);

  --serif: "Boska", Georgia, "Times New Roman", serif;
  --sans: "Switzer", "Segoe UI", system-ui, sans-serif;
  --entrar: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.etapa-a :focus-visible, .rodape :focus-visible { outline-color: var(--field); }
[tabindex="-1"]:focus { outline: none; }

.pular { position: absolute; left: -9999px; top: 0; }
.pular:focus { left: var(--m); top: var(--m); z-index: 60; background: var(--bg); color: var(--ink); padding: 12px 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
h2 { font-size: var(--t-head); }
h3 { font-size: var(--t-lead); }

/* botoes e links: retos, uma cor */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--t-body)/1 var(--sans);
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.botao:hover { background: var(--accent-hover); }
.botao:active { transform: translateY(1px); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1px; transition: color 0.2s; }
.link:hover { color: var(--accent); }

/* ---------- topo ---------- */
.topo { position: absolute; top: var(--m); right: var(--m); left: var(--m); z-index: 20; }
.topo-nav { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.topo-links { display: flex; gap: 28px; }
.topo-links a { color: var(--dark-ink); text-decoration: none; font-size: var(--t-small); font-weight: 500; transition: color 0.2s; }
.topo-links a:hover { color: var(--field); text-decoration: underline; text-underline-offset: 0.3em; }
.botao-topo { min-height: 44px; padding: 0 20px; font-size: var(--t-small); }
.menu { display: none; }

/* ---------- etapas: foto fixa + coluna ---------- */
.etapa { position: relative; }
.etapa-a { background: var(--dark); }
.etapa-b { background: var(--bg); }
.palco-fotos { position: relative; height: 100%; overflow: hidden; background: var(--dark); }
.palco-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.palco-fotos img.ativa { opacity: 1; }
.etapa-a .palco-fotos::after {
  /* escurecimento neutro so na base da foto, para o nome grande ficar legivel */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient( /* taste-skill-ignore: escurecimento neutro sobre a foto */rgba(20, 19, 18, 0), rgba(20, 19, 18, 0.55));
  pointer-events: none;
}

@media (min-width: 900px) {
  .etapa { display: grid; grid-template-columns: 47% 53%; }
  .palco { position: sticky; top: 0; align-self: start; height: 100svh; padding: 20px 0 20px 20px; }
}

/* ---------- primeira tela ---------- */
.hero { color: var(--dark-ink); }
.marca {
  font-family: var(--serif); font-weight: 400; font-size: var(--t-mark);
  letter-spacing: -0.045em; line-height: 0.78; white-space: nowrap;
  color: var(--dark-ink); z-index: 5; pointer-events: none;
  transform-origin: 100% 100%;
}
.hero-frase { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.22; max-width: 26ch; }
.hero-preco { font-family: var(--sans); font-weight: 500; font-size: var(--t-head); line-height: 1; letter-spacing: -0.035em; margin-top: 28px; font-variant-numeric: lining-nums tabular-nums; }
.hero-entrada { margin-top: 12px; color: var(--dark-muted); max-width: 36ch; }
.hero-acoes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.hero-acoes .link { color: var(--dark-ink); }
.hero-acoes .link:hover { color: var(--field); }
.hero-fatos { margin-top: 28px; font-weight: 500; }

@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding: 120px var(--m) calc(var(--t-mark) * 0.78 + 64px) var(--coluna-pad); }
  .marca { position: absolute; right: var(--m); top: calc(100svh - 34px - 0.78em); }
}

/* ---------- numeros ---------- */
.numeros { background: var(--bg); color: var(--ink); padding: clamp(96px, 18vh, 200px) var(--m) clamp(96px, 18vh, 200px) var(--coluna-pad); }
.numeros h2 { font-size: var(--t-head); margin-left: calc(172px + 24px); margin-bottom: 56px; }
.linhas > div { display: grid; grid-template-columns: 172px minmax(0, 40ch); column-gap: 24px; align-items: baseline; }
.linhas > div + div { margin-top: 28px; }
.linhas dt { font-family: var(--serif); font-size: var(--t-head); line-height: 1; text-align: right; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.linhas dd { color: var(--ink); }

/* ---------- galeria ---------- */
.ambientes { background: var(--bg); padding: var(--gap-secao) 0 calc(var(--gap-secao) * 0.7); }
.ambientes-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 0 var(--m) 32px; }
.ambientes-nota { color: var(--muted); font-size: var(--t-small); text-align: right; }
.trilho {
  --alt: 68svh;
  display: flex; gap: 12px; height: var(--alt);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 0 var(--m); scroll-padding-left: var(--m);
  scrollbar-width: none; cursor: grab;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho.arrastando { cursor: grabbing; scroll-snap-type: none; }
.trilho.arrastando img { pointer-events: none; }
.mod { flex: none; height: 100%; scroll-snap-align: start; }
.mod img { width: 100%; height: 100%; object-fit: cover; }
.alto { aspect-ratio: 3 / 4; }
.largo { aspect-ratio: 16 / 10; }
.par { display: flex; flex-direction: column; gap: 12px; width: calc((var(--alt) - 12px) / 2 * 4 / 3); }
.par figure { flex: 1; min-height: 0; }

/* ---------- terraco ---------- */
.terraco { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; background: var(--field); }
.terraco-foto { display: flex; align-items: center; justify-content: center; padding: 40px; }
.terraco-foto img { width: 100%; max-width: calc(88svh - 80px); aspect-ratio: 1; object-fit: cover; transition: opacity 0.35s; }
.terraco-foto img.trocando { opacity: 0; }
.terraco-texto { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 48px var(--m) 40px 40px; }
.abas { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.abas button { background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer; font-size: var(--t-body); font-weight: 500; color: #45423d; transition: color 0.2s; }
.abas button:hover { color: var(--ink); }
.abas button[aria-selected="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 2px; }
.terraco-painel p { margin-top: 32px; max-width: 34ch; font-size: var(--t-lead); line-height: 1.35; font-family: var(--serif); }
.terraco-acoes { display: grid; grid-template-columns: 1fr; }
.celula { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: 0 16px; text-decoration: none; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
.celula.escura { background: var(--ink); color: var(--bg); }
.celula.escura:hover { background: #000; }
.celula.clara { background: var(--surface); color: var(--ink); }
.celula.clara:hover { background: var(--bg); }

/* ---------- valores ---------- */
.valores { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--gap-secao) var(--m); background: var(--bg); }
.valores-cab { grid-column: 1 / 4; }
.valores-cab img { margin-top: 40px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.valores-lista { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-content: start; }
.grupo h3 { margin-bottom: 8px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; margin-top: 22px; }
.item .nome { font-weight: 500; }
.item .preco { font-weight: 500; font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.item .desc { grid-column: 1 / -1; color: var(--muted); font-size: var(--t-small); max-width: 36ch; }

.simulador { grid-column: 1 / -1; margin-top: 88px; background: var(--surface); padding: clamp(28px, 4vw, 48px); }
.sim-linha { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.sim-linha label { font-weight: 500; }
.sim-linha output { font-family: var(--sans); font-weight: 500; font-size: var(--t-head); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: lining-nums tabular-nums; }
.sim-resultado { margin-top: 16px; max-width: 60ch; }
.simulador .botao { margin-top: 24px; line-height: 1.2; text-align: center; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 12px 0 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--field); }
input[type="range"]::-moz-range-track { height: 6px; background: var(--field); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; background: var(--accent); border: 0; border-radius: 0; transition: transform 0.15s; }
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; background: var(--accent); border: 0; border-radius: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }

/* ---------- visita ---------- */
.visita { padding: var(--gap-secao) var(--m) var(--gap-secao) var(--coluna-pad); }
.visita > * { max-width: 34rem; }
.visita-intro { margin-top: 24px; }
.form { margin-top: 40px; display: grid; gap: 32px; }
.campo { border: 0; padding: 0; min-width: 0; }
.campo > label:not(.opcao), .campo legend { display: block; padding: 0; margin-bottom: 12px; font-weight: 700; }
.campo input[type="text"] { width: 100%; height: 54px; padding: 0 16px; background: var(--surface); border: 2px solid var(--surface); border-radius: 0; transition: border-color 0.2s; }
.campo input[type="text"]:hover { border-color: var(--field); }
.campo input[type="text"]:focus-visible { outline: none; border-color: var(--accent); }
.campo input[aria-invalid="true"] { border-color: var(--erro); }
.opcao { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 16px; background: var(--surface); cursor: pointer; transition: background-color 0.2s; }
.opcao + .opcao { margin-top: 6px; }
.opcao:hover { background: var(--field); }
.opcao:has(input:checked) { background: var(--field); font-weight: 700; }
.opcao input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.erro { margin-top: 8px; color: var(--erro); font-size: var(--t-small); font-weight: 500; }
.form .botao { justify-self: start; }
.form-aviso:empty { display: none; }
.form-aviso { background: var(--surface); padding: 16px; }
.form-nota { color: var(--muted); font-size: var(--t-small); }
.form-nota a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- perguntas ---------- */
.perguntas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; background: var(--surface); padding: 0 var(--m) 80px; }
.perguntas-texto { grid-column: 1 / 6; padding-top: var(--gap-secao); }
.fatos { margin-top: 32px; }
.fatos li { font-size: var(--t-body); font-weight: 500; }
.fatos li + li { margin-top: 4px; }
.faq { margin-top: 48px; }
.faq details + details { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 6px 0; font-family: var(--serif); font-size: var(--t-lead); line-height: 1.2; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--entrar); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 4px 0 16px; max-width: 46ch; }
.perguntas-acoes { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.perguntas-fotos { grid-column: 7 / 13; position: relative; }
.perguntas-fotos .alta { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-top: -10vh; position: relative; z-index: 1; }
.perguntas-fotos .quadrada { position: absolute; z-index: 2; left: -40px; bottom: -40px; width: 34%; aspect-ratio: 1; object-fit: cover; }

/* ---------- endereco ---------- */
.endereco { background: var(--bg); padding-top: 120px; }
.endereco .linha {
  display: flex; align-items: flex-end; min-height: clamp(84px, 7.5vw, 116px);
  padding: 0 var(--m) 0.28em; margin: 0;
  font-family: var(--serif); font-weight: 400; font-size: var(--t-head); line-height: 1; letter-spacing: -0.02em;
}
.endereco .linha:nth-of-type(even) { background: var(--surface); }
.endereco .linha a { display: inline-block; padding: 6px 0; text-decoration: none; transition: color 0.2s; }
.endereco .linha a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 2px; }
.endereco h2.linha { font-size: var(--t-head); }
.saudacao { gap: 24px; }
.saudacao .seta { display: inline-flex; align-items: center; justify-content: center; width: 1.1em; height: 1.1em; background: var(--accent); color: var(--accent-ink); align-self: flex-end; margin-bottom: -0.1em; transition: background-color 0.2s, transform 0.2s var(--entrar); }
.saudacao .seta svg { width: 55%; height: 55%; }
.saudacao .seta:hover { background: var(--accent-hover); transform: translateX(6px); color: var(--accent-ink); text-decoration: none; }
.mapa { margin-top: 0; }
.mapa iframe { display: block; width: 100%; height: clamp(320px, 46vh, 480px); border: 0; filter: grayscale(1) contrast(0.95); }

/* ---------- rodape ---------- */
.rodape { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--dark); color: var(--dark-ink); }
.rodape-foto { position: relative; min-height: 50svh; }
.rodape-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 18% 82%; }
.rodape-menu { display: flex; flex-direction: column; padding: 80px var(--m) 32px 8vw; }
.rodape-nome { font-family: var(--serif); font-size: var(--t-lead); }
.rodape nav ul { margin-top: 48px; display: grid; gap: 22px; justify-items: start; }
.rodape nav a { display: inline-block; font-family: var(--serif); font-size: var(--t-head); line-height: 1; text-decoration: none; transition: transform 0.3s var(--entrar), color 0.2s; }
.rodape nav ul:hover a { color: var(--dark-muted); }
.rodape nav ul a:hover, .rodape nav ul a:focus-visible { color: var(--dark-ink); transform: translateX(12px); }
.rodape-blocos { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--t-small); line-height: 1.7; }
.rodape-blocos a { text-decoration: none; }
.rodape-blocos a:hover { text-decoration: underline; }
.legal { margin-top: auto; padding-top: 48px; font-size: var(--t-small); color: var(--dark-muted); max-width: 60ch; }

/* ---------- barra de acao no celular ---------- */
.barra { display: none; }

/* ---------- celular ---------- */
@media (max-width: 899px) {
  .topo { top: 24px; left: 24px; right: 24px; }
  .topo-links { display: none; }
  .topo-nav { justify-content: space-between; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--dark); color: var(--dark-ink); font-size: var(--t-small); font-weight: 500; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu ul { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--dark); padding: 8px 0; outline: 1px solid rgba(239, 237, 234, 0.14); outline-offset: 0; }
  .menu a { display: block; padding: 12px 18px; color: var(--dark-ink); text-decoration: none; font-weight: 500; }

  .palco { position: sticky; top: 0; height: 46svh; padding: 12px 12px 0; z-index: 0; }
  .coluna { position: relative; z-index: 2; }
  .etapa-b .palco { position: relative; height: 46svh; }
  .palco-fotos img:first-child { opacity: 1; }
  .palco-fotos img:not(:first-child) { display: none; }

  .hero { background: var(--dark); padding: 0 20px 48px; }
  .marca { display: block; font-size: 21vw; margin: -0.34em 0 0 0; position: relative; }
  .hero-texto { margin-top: 22px; }
  .hero-frase { font-size: 1.1875rem; font-family: var(--sans); line-height: 1.45; max-width: none; }
  .hero-preco { margin-top: 18px; }
  .hero-acoes { margin-top: 20px; }
  .hero-fatos { margin-top: 20px; }

  .numeros { padding: 88px 20px; }
  .numeros h2 { margin-left: calc(88px + 16px); margin-bottom: 40px; }
  .linhas > div { grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; }
  .linhas dt { font-size: var(--t-lead); }

  .ambientes-topo { flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 20px 24px; }
  .ambientes-nota { text-align: left; }
  .trilho { --alt: 62svh; gap: 8px; padding: 0 20px; scroll-padding-left: 20px; scroll-snap-type: x mandatory; }
  .alto { width: 72vw; aspect-ratio: auto; }
  .par { width: 64vw; gap: 8px; }
  .largo { width: 88vw; height: calc(88vw * 10 / 16); align-self: center; aspect-ratio: auto; }

  .terraco { grid-template-columns: 1fr; min-height: 0; }
  .terraco-foto { padding: 16px 16px 0; }
  .terraco-foto img { max-width: none; }
  .terraco-texto { padding: 24px 20px 20px; gap: 28px; }
  .abas button { font-size: 1.0625rem; }
  .terraco-acoes { grid-template-columns: 1fr; }
  .celula { min-height: 60px; }

  .valores { display: block; padding: 96px 20px; }
  .valores-cab img { width: 60%; margin-top: 28px; }
  .valores-lista { display: block; }
  .grupo { margin-top: 48px; }
  .simulador { margin-top: 56px; }
  .simulador .botao { width: 100%; }

  .visita { padding: 64px 20px 96px; }
  .form .botao { justify-self: stretch; }

  .perguntas { display: flex; flex-direction: column-reverse; padding: 0 0 80px; }
  .perguntas-fotos { margin: 0 0 32px; }
  .perguntas-fotos .alta { margin-top: 0; aspect-ratio: 4 / 5; }
  .perguntas-fotos .quadrada { left: auto; right: 20px; bottom: -32px; width: 38%; }
  .perguntas-texto { padding: 32px 20px 0; }
  .perguntas-acoes .botao { width: 100%; }

  .endereco { padding-top: 64px; }
  .endereco .linha { min-height: 84px; padding: 0 16px 0.3em; font-size: 8.4vw; }
  .endereco h2.linha { font-size: 8.4vw; }
  .saudacao { background: var(--accent) !important; color: var(--accent-ink); justify-content: space-between; }
  .saudacao .seta { width: 56px; height: 56px; background: var(--dark); }

  .rodape { grid-template-columns: 1fr; min-height: 0; }
  .rodape-foto { min-height: 50svh; }
  .rodape-menu { padding: 48px 20px 120px; }
  .rodape nav a { font-size: 8vw; padding: 7px 0; }
  .rodape nav ul { gap: 6px; }
  .rodape-blocos { grid-template-columns: 1fr; gap: 8px; }
  .rodape-blocos a { display: inline-flex; align-items: center; min-height: 44px; }

  .js .barra {
    display: grid; grid-template-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom); background: var(--dark);
    transform: translateY(110%); transition: transform 0.35s var(--entrar);
  }
  .js .barra.visivel { transform: none; }
  .barra .botao { min-height: 56px; }
}

/* textos divididos em palavras pelo script */
.palavra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.palavra > span { display: inline-block; }

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