/* Layout: rounded sheets stacked on a stone-grey ground; the hero photo fills the first sheet, the golden hour carries the accent */
:root {
  --ground: #E8E7E4;
  --panel: #F5F4F1;
  --card: #FFFFFF;
  --ink: #16181A;
  --ink-2: #4A4E51;
  --ink-3: #7E8285;
  --line: #E1DFDA;
  --accent: #E8733A;          /* pôr do sol no Arpoador */
  --accent-ink: #AD4A17;      /* accent for small text on light grounds */
  --on-accent: #1C120C;
  --btn-bg: #16181A;
  --btn-fg: #F5F4F1;
  --hero-ink: #F7F4EF;
  --hero-ink-2: #DAD4CC;
  --hero-veil: linear-gradient(100deg, rgba(12,13,14,.82) 0%, rgba(12,13,14,.55) 36%, rgba(12,13,14,.05) 70%);
  --hero-veil-m: linear-gradient(180deg, rgba(12,13,14,.86) 0%, rgba(12,13,14,.64) 55%, rgba(12,13,14,.2) 100%);
  --chip-bg: rgba(18,20,22,.5);
  --pattern: #1E2022;
  --pattern-bg: #F5F4F1;
  /* over photography: same in both themes */
  --on-photo: #FFFFFF;
  --on-photo-2: rgba(255,255,255,.74);
  --glass-bg: rgba(20,22,24,.36);
  --glass-line: rgba(255,255,255,.2);
  --band-bg: #121416;
  --accent-on-dark: #F49A62;
  --light-pill: #F5F4F1;
  --light-pill-ink: #16181A;

  --f-display: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sheet: 28px;
  --r-card: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0D0F10;
    --panel: #151819;
    --card: #1B1F21;
    --ink: #EFEDE9;
    --ink-2: #B4B7B8;
    --ink-3: #7E8386;
    --line: #2A2F31;
    --accent: #F0844A;
    --accent-ink: #F59C68;
    --on-accent: #1C120C;
    --btn-bg: #EFEDE9;
    --btn-fg: #121416;
    --hero-ink: #F7F4EF;
    --hero-ink-2: #DAD4CC;
    --hero-veil: linear-gradient(100deg, rgba(12,13,14,.82) 0%, rgba(12,13,14,.55) 36%, rgba(12,13,14,.05) 70%);
    --hero-veil-m: linear-gradient(180deg, rgba(12,13,14,.88) 0%, rgba(12,13,14,.66) 55%, rgba(12,13,14,.2) 100%);
    --chip-bg: rgba(18,20,22,.5);
    --pattern: #E9E6E0;
    --pattern-bg: #151819;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0D0F10;
  --panel: #151819;
  --card: #1B1F21;
  --ink: #EFEDE9;
  --ink-2: #B4B7B8;
  --ink-3: #7E8386;
  --line: #2A2F31;
  --accent: #F0844A;
  --accent-ink: #F59C68;
  --on-accent: #1C120C;
  --btn-bg: #EFEDE9;
  --btn-fg: #121416;
  --hero-ink: #F7F4EF;
  --hero-ink-2: #DAD4CC;
  --hero-veil: linear-gradient(100deg, rgba(12,13,14,.82) 0%, rgba(12,13,14,.55) 36%, rgba(12,13,14,.05) 70%);
  --hero-veil-m: linear-gradient(180deg, rgba(12,13,14,.88) 0%, rgba(12,13,14,.66) 55%, rgba(12,13,14,.2) 100%);
  --chip-bg: rgba(18,20,22,.5);
  --pattern: #E9E6E0;
  --pattern-bg: #151819;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.page {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 16px;
  padding-block: 16px 28px;
  display: grid;
  gap: 16px;
}

/* ---------- shared type ---------- */
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
h2 { font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.018em; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.sec-text { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 7px 7px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-light { background: var(--light-pill); color: var(--light-pill-ink); padding-left: 26px; font-size: 15px; }
.circle {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.circle svg { width: 15px; height: 15px; }
.btn-primary .circle, .btn-light .circle { background: var(--accent); color: var(--on-accent); }
.btn-ghost .circle { border: 1px solid var(--line); }
.btn-ghost:hover .circle { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 21px; letter-spacing: .2em;
  text-decoration: none;
}
.logo svg { width: 30px; height: 18px; flex: none; }
.mark-sun { fill: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-sheet);
  min-height: clamp(620px, 52vw, 760px);
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  padding: clamp(20px, 2.6vw, 34px) clamp(20px, 4vw, 56px) clamp(20px, 3vw, 40px);
  color: var(--hero-ink);
  background: var(--panel);
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  transform: scale(1.12); transform-origin: 50% 60%; will-change: transform;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 55% at 60% 2%, rgba(255,190,110,.38), rgba(255,160,90,.1) 45%, transparent 70%);
  mix-blend-mode: screen; opacity: .6;
}
.hero-dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero-veil { position: absolute; inset: 0; z-index: -1; background: var(--hero-veil); }
.hero .btn-primary { background: var(--light-pill); color: var(--light-pill-ink); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav-links a { text-decoration: none; padding-block: 4px; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1.5px; transition: background-size .25s ease; }
.nav-links a:hover { background-size: 100% 1.5px; }

.hero-body { align-self: center; max-width: 660px; display: grid; gap: 24px; justify-items: start; }
.sun-chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--chip-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em;
}
.sun-chip .dot { width: 18px; height: 12px; flex: none; }
.sun-chip strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.hero h1 { font-weight: 400; font-size: clamp(38px, 4.5vw, 64px); line-height: 1.03; letter-spacing: -0.028em; }
.lede { margin: 0; max-width: 46ch; font-size: 16.5px; color: var(--hero-ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.play { display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; text-decoration: none; }
.play .ring {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.play .ring svg { width: 14px; height: 14px; margin-left: 2px; }
.play:hover .ring { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.glass {
  display: flex; align-items: center; gap: 16px;
  max-width: 380px; padding: 10px 22px 10px 10px;
  border-radius: 20px; border: 1px solid var(--glass-line);
  background: var(--glass-bg); color: var(--on-photo);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  text-decoration: none;
}
.glass img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.glass-text { display: grid; gap: 8px; font-size: 13.5px; line-height: 1.4; min-width: 0; }
.glass-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--on-photo-2); }
.glass-link svg { width: 13px; height: 13px; }
.glass:hover .glass-link { color: var(--on-photo); }
.photo-cap {
  margin: 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .03em;
  color: var(--on-photo); text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

/* ---------- sheets ---------- */
.sheet {
  background: var(--panel);
  border-radius: var(--r-sheet);
  padding: clamp(32px, 4.6vw, 60px) clamp(20px, 4vw, 56px);
}
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end; gap: 24px 64px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-head.with-action { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.why-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 24px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  min-width: 0;
}
.why-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); margin-bottom: 14px;
}
.why-icon svg { width: 21px; height: 21px; }
.why-card h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.005em; }
.why-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 32ch; }
.why-card .stat { margin-top: auto; padding-top: 36px; display: grid; gap: 6px; }
.stat-num {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(42px, 4vw, 56px);
  line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat-unit { font-size: .4em; font-weight: 400; letter-spacing: 0; margin-left: .35em; color: var(--accent-ink); }
.why-card .stat-label { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------- listings ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prop {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
}
.prop-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--line); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 11px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  background: var(--glass-bg); color: var(--on-photo);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tag.is-accent { background: var(--accent); color: var(--on-accent); }
.prop-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 20px; flex: 1; }
.prop h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.prop-note { margin: 0; font-size: 14px; color: var(--ink-2); }
.specs {
  display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 4px 0 0; padding: 0;
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-3);
}
.specs li + li::before { content: "·"; margin-inline: 10px; }
.prop-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.specs { margin-bottom: 14px; }
.price { margin: 0; display: grid; gap: 2px; }
.price small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.price span { white-space: nowrap; font-family: var(--f-display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.more { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.more .circle { width: 32px; height: 32px; border: 1px solid var(--line); }
.prop:hover .more .circle, .more:focus-visible .circle { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- bairros ---------- */
.bairros-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 4.5vw, 64px); align-items: start; }
.bairro-photo {
  position: relative; margin: 0; aspect-ratio: 4 / 3.5; max-width: 100%;
  border-radius: var(--r-card); overflow: hidden; background: var(--line);
}
.bairro-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.bairro-photo img.is-on { opacity: 1; }
.bairro-photo figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content; max-width: calc(100% - 28px);
  padding: 7px 12px; border-radius: 10px;
  background: var(--glass-bg); color: var(--on-photo);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em;
}
.bairro-cols, .bairro {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px 140px; align-items: center; gap: 16px;
}
.bairro-cols {
  padding: 0 4px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.bairro-cols span:not(:first-child) { text-align: right; }
.bairro-list { list-style: none; margin: 0; padding: 0; }
.bairro {
  width: 100%; padding: 20px 4px;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color .25s ease;
}
.bairro:hover { background: linear-gradient(90deg, transparent, var(--card) 30%, var(--card) 70%, transparent); }
.b-main { min-width: 0; display: grid; gap: 4px; }
.b-name {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15;
}
.b-name::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--ink-3); transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.b-desc { padding-left: 24px; font-size: 13.5px; color: var(--ink-3); }
.b-count, .b-price { text-align: right; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bairro[aria-pressed="true"] .b-name::before { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.bairro[aria-pressed="true"] .b-price { color: var(--accent-ink); font-weight: 500; }
.bairro-hint { margin: 16px 4px 0; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------- band ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 360px; display: flex; align-items: center;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
  border-radius: var(--r-sheet);
  background: var(--band-bg); color: var(--on-photo);
}
.band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 64%; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,11,12,.9) 0%, rgba(10,11,12,.66) 40%, rgba(10,11,12,.08) 78%);
}
.band-body { display: grid; gap: 20px; justify-items: start; max-width: 560px; }
.band h2 { font-size: clamp(30px, 3.4vw, 46px); }
.band h2 em { font-style: normal; color: var(--accent-on-dark); }
.band p { margin: 0; color: var(--on-photo-2); max-width: 44ch; }
.band .btn { margin-top: 8px; }
.band-meta { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .03em; }

/* ---------- calçadão + footer ---------- */
.calcadao { height: 64px; border-radius: 18px; overflow: hidden; background: var(--pattern-bg); color: var(--pattern); }
.calcadao svg { display: block; width: 100%; height: 100%; }
.foot { display: grid; gap: 22px; padding-inline: clamp(4px, 3vw, 40px); padding-top: 12px; }
.foot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 20px 44px; }
.foot-tag { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.foot-meta { margin: 0; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.to-top {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel); text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.credits { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); max-width: 110ch; }

/* ---------- motion ---------- */
.is-loading .nav, .is-loading .hero-body, .is-loading .hero-foot { visibility: hidden; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }
.play .ring { position: relative; }
.ripple { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; pointer-events: none; }
.band-sun { width: 72px; height: 45px; color: var(--on-photo); }
.bairro[aria-pressed="true"] .b-name::before { animation: dot-pulse 2.2s ease-out infinite; }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .sec-head, .sec-head.with-action { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sec-head.with-action .btn { justify-self: start; }
  .cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 78%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
  }
  .prop { scroll-snap-align: start; }
  .more-text { display: none; }
  .bairros-grid { grid-template-columns: minmax(0, 1fr); }
  .bairro-photo { aspect-ratio: 16 / 10; }
  .foot-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .foot-meta { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; gap: 40px; }
  .hero-veil { background: var(--hero-veil-m); }
  .hero-body { padding-block: 24px 8px; }
  .photo-cap { display: none; }
  .glass { max-width: none; width: 100%; }
  .band { min-height: 0; }
  .band::before { background: linear-gradient(180deg, rgba(10,11,12,.86) 0%, rgba(10,11,12,.72) 60%, rgba(10,11,12,.35) 100%); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-card .stat { padding-top: 24px; }
  .nav-cta-text { display: none; }
  .nav-cta { padding-left: 7px; }
  .bairro-cols, .bairro { grid-template-columns: minmax(0, 1fr) auto; }
  .b-count, .bairro-cols span:nth-child(2) { display: none; }
  .b-desc { padding-left: 0; }
  .foot-row { grid-template-columns: minmax(0, 1fr) auto; }
  .foot-tag { grid-column: 1 / -1; grid-row: 2; }
  .foot-meta { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- cards clicáveis ---------- */
.prop { position: relative; }
.prop-link { text-decoration: none; }
.prop-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.prop .more { position: relative; z-index: 2; }
