/* Conceito: o losango da marca é a lente do site — abre a casa, amplia os detalhes, revela as fotos.
   Imagem em primeiro plano, texto mínimo, sem molduras. Visual único da marca (navy + creme). */
:root {
  --navy: #0D1B3E; --navy-700: #1A2B55; --navy-500: #3A4A73;
  --gold: #C9A84C; --gold-700: #7D5F17; --gold-300: #E3CF95; --gold-100: #F5EDD6;
  --cream: #F7F3EC; --stone: #E6DCCB; --white: #FFFFFF;
  --ink: #0D1B3E; --muted: #4A5468; --line: #DED7CA; --on-navy: #C5CBD8;
  --sans: "Jost", "Futura PT", Futura, "Century Gothic", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --gl: max(20px, env(safe-area-inset-left, 0px)); --gr: max(20px, env(safe-area-inset-right, 0px));
  --max: 1240px; --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.kicker { font: 400 12px/16px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-700); display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.dark .kicker { color: var(--gold-300); }
.title { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.012em; }
.title em { font-style: normal; color: var(--gold-700); }
.dark .title em { color: var(--gold); }
.head { display: grid; gap: 18px; max-width: 900px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/20px var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 15px 26px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .3s, color .3s; }
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-300); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--navy { background: var(--navy); color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tbc { border-bottom: 1px dashed var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Revelação em losango: a imagem nasce de um losango no centro */
.dia { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); transition: clip-path 1.3s var(--ease); }
.dia.in { clip-path: polygon(50% -60%, 160% 50%, 50% 160%, -60% 50%); }


/* ---------- Cabeçalho ---------- */
.top { position: fixed; z-index: 50; top: env(safe-area-inset-top, 0px); left: 0; right: 0; transition: background .4s, transform .4s; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; max-width: var(--max); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.top__logo { height: 36px; width: auto; transition: opacity .4s; }
.top__logo--pos { display: none; }
.top nav { display: flex; gap: 30px; font: 400 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; color: var(--gold); }
.top .btn { padding: 10px 16px; font-size: 11px; }
.top.hide-logo .top__logo { opacity: 0; }
.top.solid { background: rgba(247,243,236,.94); backdrop-filter: blur(10px); }
.top.solid .top__logo--neg { display: none; }
.top.solid .top__logo--pos { display: block; }
.top.solid nav, .top.solid .btn--ghost { color: var(--ink); }
.top.solid .btn--ghost { border-color: var(--ink); }
@media (max-width: 860px) { .top nav { display: none; } .top__in { height: 62px; } .top__logo { height: 30px; } }

/* ---------- 1 Abertura: o losango se abre ---------- */
.iris { position: relative; height: 230vh; background: var(--navy); }
.iris__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--white); }
.iris__img { position: absolute; inset: 0; will-change: clip-path; clip-path: polygon(50% 42%, 50% 42%, 50% 42%, 50% 42%); opacity: 0; }
.iris__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(calc(1.18 - var(--p, 0) * .14)); transform-origin: 50% 45%; }
.iris__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,62,.5), rgba(13,27,62,0) 30%, rgba(13,27,62,0) 50%, rgba(13,27,62,.9)); opacity: var(--p, 0); }
.iris__edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.iris__edge polygon { fill: var(--gold); stroke: var(--gold); stroke-width: 1.5; }
.iris__mark { position: absolute; left: 50%; width: clamp(260px, 40vw, 560px); max-width: 82vw; transform: translate(-50%, calc(var(--p, 0) * 60px)); opacity: calc(1 - var(--p, 0) * 3); }
.iris__hint { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-300); opacity: calc(1 - var(--p, 0) * 4); }
.iris__hint i { display: block; margin: 12px auto 0; width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.iris__copy { position: absolute; left: 0; right: 0; bottom: clamp(40px, 8vh, 88px); opacity: clamp(0, calc((var(--p, 0) - .7) * 4), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - .7) * 4), 1)) * 24px)); }
.iris__copy .wrap { display: grid; gap: 22px; }
.iris__copy h1 { font-family: var(--serif); font-size: clamp(44px, 8vw, 112px); line-height: .98; letter-spacing: -.015em; max-width: 11ch; }
.iris__copy h1 em { font-style: normal; color: var(--gold); }
.iris__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.iris__note { position: absolute; right: var(--gr); bottom: 16px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); opacity: var(--p, 0); }

/* ---------- 2 Anoitecer ---------- */
.dusk { position: relative; background: var(--navy); }
.dusk__stick { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--white); }
.dusk__stick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.dusk__night { opacity: var(--d, 0); }
.dusk__line { transition: opacity .6s; }
.dusk__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,62,.45), transparent 30%, transparent 55%, rgba(13,27,62,.8)); }
.dusk__ui { position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px); }
.dusk__ui .wrap { display: grid; gap: 20px; }
.dusk__line { font-family: var(--serif); font-size: clamp(30px, 4.8vw, 60px); line-height: 1.08; max-width: 16ch; min-height: 2.2em; }
.dusk__line em { font-style: normal; color: var(--gold); }
.clock { display: flex; align-items: center; gap: 16px; font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-300); }
.clock b { font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; min-width: 4.4ch; }
.clock__bar { flex: 1; max-width: 340px; height: 1px; background: rgba(255,255,255,.3); position: relative; }
.clock__bar span { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--d, 0) * 100%); background: var(--gold); }
.clock__bar span::after { content: ""; position: absolute; right: -6px; top: -6px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--gold); }

/* ---------- 3 Empreendimentos: índice ---------- */
.idx { position: relative; min-height: max(100svh, 680px); background: var(--navy); color: var(--white); overflow: hidden; display: grid; }
.idx__bg { position: absolute; inset: 0; clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); }
.idx__bg.on { z-index: 2; }
.idx__bg.top { z-index: 3; }
.idx__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s var(--ease); }
.idx__bg.on img, .idx__bg.top img { transform: scale(1); }
.idx__bg--next { display: grid; place-items: center end; padding-right: 12vw; background: var(--navy-700); }
.idx__bg--next svg { width: min(46vw, 520px); height: auto; }
.idx__shade { position: absolute; inset: 0; z-index: 4; background: linear-gradient(90deg, rgba(13,27,62,.92) 0%, rgba(13,27,62,.55) 38%, rgba(13,27,62,0) 70%), linear-gradient(0deg, rgba(13,27,62,.7), transparent 40%); pointer-events: none; }
.idx__in { position: relative; z-index: 5; align-self: stretch; display: grid; grid-template-rows: auto 1fr auto; gap: 32px; padding-block: clamp(96px, 12vh, 140px) clamp(32px, 6vh, 64px); }
.idx__list { list-style: none; margin: 0; padding: 0; align-self: center; display: grid; gap: 0; }
.idx__list a { display: grid; grid-template-columns: 56px auto; align-items: baseline; gap: 4px 18px; padding: 10px 0; text-decoration: none; color: inherit; width: fit-content; }
.idx__list .n { font: 400 13px/1 var(--sans); letter-spacing: .16em; color: var(--gold-300); font-variant-numeric: tabular-nums; opacity: .7; }
.idx__list b { font: 400 clamp(40px, 6.2vw, 92px)/1 var(--serif); letter-spacing: -.015em; color: rgba(255,255,255,.34); transition: color .45s, transform .45s var(--ease); display: inline-flex; align-items: center; gap: 22px; }
.idx__list b::before { content: ""; width: 0; height: 0; background: var(--gold); transform: rotate(45deg); transition: width .45s var(--ease), height .45s var(--ease); flex: none; }
.idx__list .meta { grid-column: 2; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .45s; }
.idx__list li.on b { color: var(--white); transform: translateX(6px); }
.idx__list li.on b::before { width: .28em; height: .28em; }
.idx__list li.on .meta { max-height: 2em; opacity: 1; }
.idx__list li.on .n { opacity: 1; color: var(--gold); }
.idx__list .phs { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(130px, 170px)); gap: 12px 22px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .5s, margin .5s; }
.idx__list li.on .phs { max-height: 140px; opacity: 1; margin-top: 14px; }
.idx__list .ph { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; }
.idx__list .ph em { font: 400 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--on-navy); }
.idx__list .ph strong { font: 400 15px/1 var(--serif); color: var(--white); font-variant-numeric: tabular-nums; }
.idx__list .ph i { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,.14); position: relative; display: block; }
.idx__list .ph u { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); transition: width 1.2s var(--ease) calc(.3s + var(--d)); }
.idx__list li.on .ph u { width: calc(var(--v) * 1%); }
@media (max-width: 720px) { .idx__list .phs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .idx__list li.on .phs { max-height: 200px; } }
.idx__foot { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.idx__count { font: 400 13px/1 var(--sans); letter-spacing: .24em; color: var(--gold-300); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 14px; }
.idx__count i { width: 120px; height: 1px; background: rgba(255,255,255,.25); position: relative; display: block; }
.idx__count i span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); }
.idx__count i span.run { animation: fill 6s linear forwards; }
@keyframes fill { to { width: 100%; } }
.idx__note { position: absolute; z-index: 5; right: var(--gr); bottom: 14px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- 8 Como comprar ---------- */
.buy { background: var(--navy); color: var(--white); padding-block: clamp(80px, 11vw, 140px); }
.big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); margin-top: clamp(40px, 6vw, 72px); }
.big3 div { display: grid; gap: 8px; }
.big3 b { font: 400 clamp(56px, 9vw, 128px)/.95 var(--serif); color: var(--gold); }
.big3 span { font-size: 15px; color: var(--on-navy); max-width: 22ch; }
.sim { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.sim__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.field--wide { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; }
.field label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy); }
.field input, .field select { font: 400 22px/1.3 var(--sans); color: var(--white); background: transparent; border: 0; border-bottom: 1px solid var(--navy-500); padding: 8px 0; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; border-radius: 0; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.chips button { font: 500 15px/1 var(--sans); color: var(--on-navy); background: transparent; border: 1px solid var(--navy-500); width: 52px; height: 44px; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .25s, color .25s, border-color .25s; }
.chips button:hover { border-color: var(--gold); color: var(--white); }
.chips button[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.cub { display: grid; grid-template-columns: auto minmax(110px, 160px); align-items: end; gap: 10px 28px; border-top: 1px solid var(--navy-500); padding-top: 18px; }
.cub__sw { display: flex !important; align-items: center; gap: 12px; cursor: pointer; font-size: 13px !important; color: var(--white) !important; }
.cub__sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cub__box { width: 18px; height: 18px; border: 1px solid var(--gold); transform: rotate(45deg); display: inline-grid; place-items: center; flex: none; margin: 0 4px; }
.cub__box::after { content: ""; width: 8px; height: 8px; background: var(--gold); opacity: 0; transition: opacity .2s; }
.cub__sw input:checked + .cub__box::after { opacity: 1; }
.cub__sw input:focus-visible + .cub__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.cub__rate { display: grid; gap: 4px; transition: opacity .3s; }
.cub:not(.on) .cub__rate { opacity: .35; pointer-events: none; }
.cub__hint { grid-column: 1 / -1; font-size: 12px; color: var(--on-navy); }
.sim__out { display: grid; gap: 0; border-left: 1px solid var(--navy-500); padding-left: clamp(24px, 3vw, 48px); }
.sim__out > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--navy-500); }
.sim__out small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy); }
.sim__out b { font: 400 28px/1.15 var(--serif); color: var(--white); font-variant-numeric: tabular-nums; }
.sim__out span { font-size: 13px; color: var(--on-navy); }
.sim__out .hl b { font-size: clamp(36px, 4vw, 52px); color: var(--gold); }
.sim__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; border-top: 1px solid var(--navy-500); padding-top: 20px; }
.sim__foot small { font-size: 12px; color: var(--on-navy); max-width: 70ch; }
@media (max-width: 860px) { .big3 { grid-template-columns: 1fr; } .big3 div { grid-template-columns: auto 1fr; align-items: end; gap: 16px; } .sim { grid-template-columns: 1fr; } .sim__out { border-left: 0; padding-left: 0; } }

/* ---------- 9 Contato ---------- */
.contact { position: relative; padding-block: clamp(80px, 11vw, 140px); overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__img { aspect-ratio: 4 / 5; overflow: hidden; }
.contact__img img { width: 100%; height: 100%; object-fit: cover; }
.form { display: grid; gap: 22px; margin-top: 28px; }
.form .field label { color: var(--muted); }
.form .field input, .form .field select { color: var(--ink); border-bottom-color: #8C93A3; font-size: 19px; }
.form .field input:focus, .form .field select:focus { border-bottom-color: var(--gold-700); }
.check { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.check input { accent-color: var(--navy); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.form__msg { font-size: 14px; padding: 10px 14px; background: #E7F1EA; color: #2F6B4F; }
.form__msg.err { background: #FBEBEB; color: #8A1F1F; }
.contact__line { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.contact__line b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } .contact__img { aspect-ratio: 16/10; } }

/* ---------- Rodapé, WhatsApp ---------- */
.foot { background: var(--navy); color: var(--on-navy); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; }
.foot img { height: 38px; width: auto; }
.wa { position: fixed; z-index: 55; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; display: grid; place-items: center; text-decoration: none; }
.wa::before { content: ""; position: absolute; inset: 7px; transform: rotate(45deg); background: var(--navy); border: 1px solid var(--gold); box-shadow: 0 10px 28px rgba(13,27,62,.35); transition: background .3s; }
.wa:hover::before { background: var(--gold); }
.wa svg { position: relative; width: 24px; height: 24px; color: var(--gold); }
.wa:hover svg { color: var(--navy); }
/* .proto removido */ .proto-x { position: fixed; z-index: 55; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); font: 400 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); background: var(--gold-100); border: 1px solid var(--gold); padding: 7px 10px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .iris { height: auto; }
  .iris__stick { position: relative; min-height: 100svh; }
  .dia { clip-path: none !important; transition: none; }
  .iris__hint i, .spot::before { animation: none; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check a { color: var(--ink); }
.contact__line a { color: inherit; text-decoration: none; }
