/* Casa+ | Página de casas disponíveis. Primeiro o celular, depois o desktop. */
:root {
  --bordo: #722020;
  --preto: #000000;
  --cinza: #CCCACA;
  --branco: #FFFFFF;
  --fonte-titulo: "Neue Gothama", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --fonte-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --m: 24px;
  --suave: cubic-bezier(.16, 1, .3, 1);
  --seguro: env(safe-area-inset-bottom, 0px);
}
html, body { margin: 0; background: #000; }
.hub *, .hub *::before, .hub *::after { box-sizing: border-box; }
:where(.hub) :where(h1, h2, p, ul) { margin: 0; padding: 0; }
:where(.hub) :where(ul) { list-style: none; }
:where(.hub) :where(img, svg) { display: block; }
:where(.hub) :where(a) { color: inherit; text-decoration: none; }

.hub {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  background: #000;
  color: #fff;
  font-family: var(--fonte-texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
.hub a:focus-visible { outline: 2px solid var(--branco); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tinta-bordo { fill: var(--bordo); }
.icone { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Topo */
.topo { position: relative; overflow: hidden; padding: 28px var(--m) 40px; }
.grafismo { position: absolute; right: -78vw; top: -8vw; width: 132vw; height: 132vw; fill: none; stroke: var(--cinza); stroke-width: .42; opacity: .4; pointer-events: none; }
.topo__inicio { position: relative; display: inline-block; }
.logo { position: relative; width: 148px; height: auto; fill: #fff; }
.topo__titulo { position: relative; margin-top: 64px; font-family: var(--fonte-titulo); font-weight: 800; font-size: clamp(50px, 15.4vw, 132px); line-height: .98; letter-spacing: -.035em; }
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln__t { display: inline-block; animation: sobe 1.5s var(--suave) both; }
.ln__t[data-i="1"] { animation-delay: .1s; }
@keyframes sobe { from { transform: translateY(116%); } to { transform: translateY(0); } }
.topo__texto { position: relative; margin-top: 18px; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--cinza); animation: surge 1.4s .3s var(--suave) both; }
@keyframes surge { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Lista */
.lista { display: grid; gap: 16px; padding: 0 16px 88px; }
.casa { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--cinza); color: var(--preto); }
.anima .casa { opacity: 0; transform: translateY(70px); transition: opacity 1.3s var(--suave), transform 1.5s var(--suave); }
.anima .casa.visivel { opacity: 1; transform: translateY(0); }
.casa__foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.casa__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--suave); }
.casa__situacao { position: absolute; left: 14px; top: 14px; padding: 7px 11px 8px; border-radius: 10px; background: #000; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.1; }
.casa__situacao--pronta { background: var(--bordo); }
.casa__faixa { position: absolute; left: 14px; bottom: 14px; padding: 7px 11px 8px; border-radius: 10px; background: var(--bordo); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.1; }
.casa__faixa abbr { text-decoration: none; font-weight: 700; }
.casa__corpo { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 20px; }
.casa__nome { font-family: var(--fonte-titulo); font-weight: 800; font-size: clamp(36px, 10.6vw, 44px); line-height: 1; letter-spacing: -.04em; color: var(--bordo); }
.casa__nome span { display: block; }
.casa__dados { flex: 1; display: grid; align-content: start; gap: 5px; margin-top: 16px; font-size: 15px; line-height: 1.35; }
.casa__rodape { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--preto); }
.casa__valor span { display: block; font-size: 13px; line-height: 1.3; }
.casa__valor strong { display: block; margin-top: 2px; font-family: var(--fonte-titulo); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -.035em; white-space: nowrap; }
.casa__valor small { margin-right: 5px; font-size: .5em; font-weight: 700; letter-spacing: 0; }
.casa__ver { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px 8px 14px; border-radius: 14px; background: var(--bordo); color: #fff; font-family: var(--fonte-titulo); font-weight: 700; font-size: 14px; line-height: 1.15; letter-spacing: -.01em; }
.casa__ver .icone { width: 18px; height: 18px; transition: transform .8s var(--suave); }
.casa:active { transform: scale(.992); }
@media (hover: hover) {
  .casa:hover .casa__foto img { transform: scale(1.05); }
  .casa:hover .casa__ver .icone { transform: translate(3px, -3px); }
}

/* Rodapé */
.rodape { position: relative; background: var(--bordo); color: #fff; }
.serra { position: absolute; left: 0; top: -23.5px; width: 100%; height: 24px; pointer-events: none; }
.rodape__corpo { padding: 48px var(--m) calc(36px + var(--seguro)); }
.rodape__chamada { font-family: var(--fonte-titulo); font-weight: 800; font-size: clamp(36px, 10.6vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
.rodape__acoes { display: grid; gap: 12px; margin-top: 26px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 10px 20px 10px 22px; border-radius: 16px; font-family: var(--fonte-titulo); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.012em; }
.cta--branco { background: #fff; color: var(--bordo); }
.cta--contorno { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); color: #fff; }
.rodape__obs { margin-top: 18px; font-size: 13px; line-height: 1.4; }
.rodape__obs + .rodape__obs { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .ln__t, .topo__texto { animation: none; }
  .casa__foto img, .casa__ver .icone { transition: none; }
}

/* Desktop */
@media (min-width: 900px) {
  :root { --m: 56px; }
  .topo { padding: 40px var(--m) 72px; }
  .grafismo { right: -12vw; top: -14vw; width: 58vw; height: 58vw; }
  .logo { width: 190px; }
  .topo__titulo { margin-top: 88px; font-size: clamp(84px, 9.4vw, 150px); }
  .topo__texto { margin-top: 30px; font-size: 20px; }
  .lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1480px; padding: 0 var(--m) 120px; }
  .casa__nome { font-size: clamp(38px, 3.8vw, 60px); }
  .casa__foto { aspect-ratio: 16 / 10; }
  .casa__corpo { padding: 26px 26px 24px; }
  .casa__valor strong { font-size: clamp(30px, 2.8vw, 42px); }
  .rodape__corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 64px; align-items: center; padding: 72px var(--m) 56px; }
  .rodape__acoes { margin-top: 0; }
  .rodape__obs { grid-column: 1 / -1; }
  .rodape__obs:first-of-type { margin-top: 32px; }
}

@media (min-width: 900px) {
  .lista:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lista:has(> :nth-child(3):last-child) .casa__nome { font-size: clamp(34px, 3.1vw, 52px); }
}
