:root {
  /* A paleta mora no site.css, que toda página carrega. Aqui fica só o que é da home. */
  --home-panel: rgba(21, 21, 21, .78);
}

.home-page { margin: 0; background: var(--home-black); color: var(--home-white); font-family: Inter, Arial, sans-serif; }
.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page a { color: inherit; text-decoration: none; }
.home-container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

.home-header {
  position: fixed; z-index: 100; inset: 0 0 auto; height: 82px; padding: 0 max(24px, calc((100vw - 1440px) / 2));
  display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 28px;
  background: rgba(5, 5, 5, .58); border-bottom: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.home-brand { display: inline-flex; width: 205px; height: 58px; align-items: center; overflow: hidden; }
.home-brand img { display: block; width: 100%; height: auto; }
.home-nav { display: flex; justify-content: center; gap: clamp(20px, 3vw, 48px); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.home-nav a { color: rgba(255,255,255,.78); transition: color .25s ease; }
.home-nav a:hover, .home-nav a:focus-visible { color: var(--home-orange); }
.home-header-cta { padding: 12px 18px; border: 1px solid rgba(255,106,0,.75); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: .25s ease; }
.home-header-cta:hover, .home-header-cta:focus-visible { background: var(--home-orange); color: #080808; }

.home-hero { position: relative; min-height: 780px; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.05); transform: scale(1.02); }
.home-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.77) 39%, rgba(0,0,0,.2) 74%), linear-gradient(0deg, #090909 0%, transparent 22%, rgba(0,0,0,.24) 100%); }
.home-hero-content { position: relative; z-index: 2; width: min(1280px, calc(100% - 48px)); margin: 68px auto 0; }
.home-kicker { color: var(--home-orange); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.home-hero h1 { max-width: 700px; margin: 18px 0 24px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(40px, 4.4vw, 64px); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.home-hero-content > p { max-width: 650px; margin: 0 0 38px; color: rgba(255,255,255,.76); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.7; }
.quick-search { width: min(1020px, 100%); display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1px; padding: 1px; background: rgba(255,255,255,.12); box-shadow: 0 28px 80px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.quick-search label { min-height: 76px; padding: 13px 18px; background: rgba(10,10,10,.72); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.quick-search label span, .property-filters label span { color: var(--home-orange-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.quick-search input, .quick-search select, .property-filters input, .property-filters select { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; }
.quick-search input::placeholder, .property-filters input::placeholder { color: #85817c; }
.quick-search select option, .property-filters select option { color: #111; }
.quick-search button { min-width: 185px; border: 0; padding: 0 26px; background: var(--home-orange); color: #0a0a0a; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.home-scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.home-scroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--home-orange), transparent); }

.home-section { padding: 112px 0; }
.highlights { background: radial-gradient(circle at 85% 10%, rgba(255,106,0,.12), transparent 31%), #0a0a0a; }
.home-section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr); align-items: end; gap: 48px; margin-bottom: 46px; }
.home-section-head h2, .home-contact h2 { margin: 12px 0 0; max-width: 760px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; line-height: 1.12; letter-spacing: -.025em; }
.home-section-head > p, .home-section-head > div > p { margin: 0; color: var(--home-muted); font-size: 16px; line-height: 1.75; }
.home-section-head--stacked { display: flex; max-width: 780px; margin-inline: auto; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.home-section-head--stacked p { margin-top: 18px; }
.home-section-head--compact { display: block; margin-bottom: 38px; }
.home-section-head--compact h2 { margin: 0; }

.highlight-stage, .property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* A home traz os 802 empreendimentos de uma vez, porque cada card é um link interno que o
   buscador precisa ver. O custo era o navegador montar 802 cards e 800 imagens antes de
   pintar qualquer coisa, e a home demorava a aparecer. `content-visibility` resolve os
   dois lados: o HTML continua completo para o robô, e o navegador só calcula o layout do
   que está entrando na tela. */
.property-card { content-visibility: auto; contain-intrinsic-size: auto 420px; min-width: 0; background: #131313; border: 1px solid var(--home-line); overflow: hidden; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.property-card:hover { transform: translateY(-6px); border-color: rgba(255,106,0,.7); box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.property-card-media { position: relative; aspect-ratio: 1.45; overflow: hidden; background: #1a1a1a; }
.property-card-media::after { content: ''; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.property-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.78); transition: transform .7s ease, filter .7s ease; }
.property-card:hover img { transform: scale(1.045); filter: saturate(.95); }
.property-card-media > span { position: absolute; z-index: 2; top: 16px; left: 16px; max-width: calc(100% - 32px); padding: 8px 11px; background: rgba(6,6,6,.72); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); color: #f4f0eb; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.property-card-content { padding: 22px 22px 24px; }
.property-card-location { margin: 0 0 8px; color: var(--home-orange); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.property-card h3 { min-height: 58px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 400; line-height: 1.12; }
.property-card-facts { min-height: 24px; margin: 16px 0 22px; color: var(--home-muted); font-size: 13px; }
.property-card-action { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.property-card-action::after { content: '→'; color: var(--home-orange); font-size: 17px; transition: transform .25s ease; }
.property-card:hover .property-card-action::after { transform: translateX(5px); }
.highlight-controls { display: flex; justify-content: center; align-items: center; gap: 17px; margin-top: 28px; }
.highlight-controls button { width: 44px; height: 44px; border: 1px solid var(--home-line); background: rgba(255,255,255,.03); color: #fff; cursor: pointer; font-size: 18px; transition: .25s ease; }
.highlight-controls button:hover, .highlight-controls button:focus-visible { border-color: var(--home-orange); color: var(--home-orange); }
.highlight-controls span { min-width: 64px; text-align: center; color: var(--home-muted); font-size: 11px; letter-spacing: .12em; }

.property-browser { background: #101010; border-block: 1px solid rgba(255,255,255,.06); }
.property-filters { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr) auto; gap: 1px; margin: 54px 0 28px; padding: 1px; background: rgba(255,255,255,.12); }
.property-filters label { min-width: 0; padding: 14px 15px; background: #181818; display: flex; flex-direction: column; gap: 7px; }
.property-filters input, .property-filters select { min-height: 25px; font-size: 13px; }
.filter-reset { border: 0; padding: 0 19px; background: rgba(255,106,0,.92); color: #080808; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.results-summary { margin: 0 0 18px; color: var(--home-muted); font-size: 13px; }
.results-summary strong { color: var(--home-white); }
.property-grid { row-gap: 28px; }
.property-empty { padding: 70px 24px; border: 1px solid var(--home-line); text-align: center; }
.property-empty h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.property-empty p { color: var(--home-muted); }
.load-more { display: block; margin: 42px auto 0; padding: 15px 25px; border: 1px solid rgba(255,106,0,.75); background: transparent; color: var(--home-white); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.load-more:hover { background: var(--home-orange); color: #080808; }

.home-contact { background: linear-gradient(125deg, #0b0b0b 48%, rgba(255,106,0,.13)); }
.home-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 80px; }
.home-contact h2 { max-width: 850px; }
.home-contact p { max-width: 760px; margin: 24px 0 0; color: var(--home-muted); line-height: 1.75; }
.home-contact-button { padding: 18px 26px; background: var(--home-orange); color: #090909 !important; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.home-footer { padding: 54px 0; border-top: 1px solid var(--home-line); background: #060606; }
.home-footer .home-container { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 44px; }
.home-footer img { width: 165px; height: auto; }
.home-footer p { color: #77736f; font-size: 12px; }
.home-footer div div { display: flex; gap: 22px; color: #8a8681; font-size: 11px; }

.home-reveal { opacity: 0; transform: translateY(25px); transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1); }
.home-reveal.is-revealed { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .home-header { grid-template-columns: 205px 1fr auto; }
  .home-nav { display: none; }
  .quick-search { grid-template-columns: 1fr 1fr; }
  .quick-search button { min-height: 58px; grid-column: 1 / -1; }
  .property-filters { grid-template-columns: repeat(3, 1fr); }
  .filter-reset { min-height: 56px; }
}

@media (max-width: 760px) {
  .home-container, .home-hero-content { width: min(100% - 30px, 1280px); }
  .home-header { height: 70px; grid-template-columns: 1fr auto; padding-inline: 15px; }
  .home-brand { width: 170px; height: 52px; }
  .home-header-cta { padding: 10px 12px; font-size: 9px; }
  .home-hero { min-height: 760px; }
  .home-hero-shade { background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.52)), linear-gradient(0deg, #090909, transparent 40%); }
  .home-hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .home-hero-content > p { font-size: 16px; line-height: 1.55; }
  .quick-search { grid-template-columns: 1fr; }
  .quick-search button { grid-column: auto; }
  .home-scroll-cue { display: none; }
  .home-section { padding: 78px 0; }
  .home-section-head { display: block; }
  .home-section-head > p { margin-top: 22px; }
  .highlight-stage, .property-grid { grid-template-columns: 1fr; }
  .highlight-stage .property-card:nth-child(n+2) { display: none; }
  .property-filters { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; }
  .home-contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .home-contact-button { justify-self: start; }
  .home-footer .home-container { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 440px) {
  .property-filters { grid-template-columns: 1fr; }
  .filter-search { grid-column: auto; }
  .home-header-cta { display: none; }
  .home-header { grid-template-columns: 1fr; }
  .property-card h3 { min-height: auto; }
}

/* Alvo de toque de 44 px no celular. Sem declarar display: mexer em display numa correção
   de tamanho faz reaparecer elemento que estava escondido (falha 29 do playbook). */
@media (max-width: 1080px) {
  .quick-search input, .quick-search select,
  .property-filters input, .property-filters select { min-height: 44px; }
  .quick-search label, .property-filters label { min-height: 44px; }
  .load-more, .filter-reset, .quick-search button { min-height: 48px; }
  .home-nav a, .home-footer div div a, .home-header-cta { min-height: 44px; align-items: center; }
}

/* Desliga o que se move sozinho, não a resposta ao toque e ao hover. */
@media (prefers-reduced-motion: reduce) {
  .home-page { scroll-behavior: auto; }
  .home-page .home-hero-image, .home-page .home-scroll-cue { animation: none !important; }
  .home-reveal { opacity: 1; transform: none; transition: none; }
}

.home-hubs { border-top: 1px solid var(--home-line); }
/* Cada cidade é um bloco com título próprio; os bairros dela ficam no grid abaixo. */
.home-hub-cidade + .home-hub-cidade { margin-top: 34px; }
.home-hub-cidade-titulo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--home-line); font-size: 20px; font-weight: 850; color: var(--home-white); }
.home-hub-cidade-link { color: var(--home-orange); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-hub-cidade-link:hover { text-decoration: underline; }

.home-hub-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.home-hub-links a { display: flex; min-height: 62px; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--home-line); gap: 12px; color: var(--home-white); transition: border-color .25s ease, background .25s ease; }
.home-hub-links a:hover { border-color: var(--home-orange); background: rgba(255,106,0,.06); }
.home-hub-links strong { font-size: 15px; font-weight: 800; }
.home-hub-links span { color: #8a8681; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Card de empreendimento sem foto: mesma ilustração de obra da landing, em escala de card. */
.property-card-obra { width: 100%; height: 100%; }
.property-card-obra svg { width: 100%; height: 100%; display: block; }

/* A hero alterna entre quatro empreendimentos a cada abertura. As imagens ficam empilhadas
   no mesmo lugar e o JavaScript decide qual aparece; sem ele, vale a primeira. */
.home-hero-fundo { position: absolute; inset: 0; }
.home-hero-fundo img[hidden] { display: none; }
