/* PROTÓTIPO DESCARTÁVEL :: Variante C, "Imersiva de mirante".
   Noite azulada, fotos de ponta a ponta, texto sempre sobre área sólida ou degradê com opacidade mínima conhecida.
   Tipo: Archivo variável, largo (font-stretch 125%) nos títulos para dar horizonte; normal (100%) no texto.
   Forma: a lente do logo vira arco de borda de seção, cúpula do mapa, círculos das fotos e o anel aberto em laranja.
   Contraste medido (WCAG, pior caso = degradê sobre pixel branco):
   text/night 17,51; text-2/night 9,09; text/night-2 15,85; text-2/night-2 8,23; night/orange 6,02;
   orange (texto)/night 6,02; orange/night-2 5,45; night/text (pílula clara) 17,51; night/folha 17,51; text-3/folha 5,52;
   text sobre degradê 0,84: 11,17; text-2 sobre 0,84: 5,80; text sobre vidro 0,78: 8,98.
   Laranja nunca com texto branco. */

@font-face { font-family: "Archivo C"; src: url("../assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
/* Fallback métrico: o Arial com a largura média da Archivo em cada faixa de largura (font-stretch) e peso, medida por tools/medir-fallback.mjs.
   Assim o texto quebra nas mesmas linhas antes e depois do woff2 chegar e o hero não pula (CLS). */
@font-face { font-family: "Archivo C fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 549; font-stretch: 50% 110%; size-adjust: 98.3%; }
@font-face { font-family: "Archivo C fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 550 900; font-stretch: 50% 110%; size-adjust: 100%; }
@font-face { font-family: "Archivo C fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 549; font-stretch: 111% 200%; size-adjust: 122%; }
@font-face { font-family: "Archivo C fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 550 900; font-stretch: 111% 200%; size-adjust: 124.9%; }

:root {
  color-scheme: dark;
  --night: #0B0E12;
  --night-2: #141A21;
  --line: #26303A;
  --text: #F1F4F6;
  --text-2: #A9B3BD;
  --folha: #F1F4F6;
  --text-3: #5B636C;
  --orange: #DD7239;
  --orange-h: #E4834F;
  --f: "Archivo C", "Archivo C fallback", system-ui, sans-serif;
  --g: clamp(16px, 5vw, 64px);
  --sec: clamp(72px, 10vw, 144px);
  --arco: clamp(56px, 9vw, 160px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sh-lg: 0 2.8px 2.2px rgba(0, 0, 0, 0.034), 0 6.7px 5.3px rgba(0, 0, 0, 0.048), 0 12.5px 10px rgba(0, 0, 0, 0.06), 0 22.3px 17.9px rgba(0, 0, 0, 0.072), 0 41.8px 33.4px rgba(0, 0, 0, 0.086), 0 100px 80px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.6 var(--f); font-stretch: 100%; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-stretch: 125%; font-weight: 650; letter-spacing: -0.015em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 40; padding: 12px 16px; background: var(--text); color: var(--night); border-radius: 999px; }
.skip:focus { top: 12px; }
.sub { margin-top: 14px; color: var(--text-2); max-width: 46ch; font-size: 1.125rem; }
h2 { font-size: clamp(1.875rem, 3.8vw, 3.5rem); line-height: 1.04; }

/* ---- Botões (pílula) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 650 1rem/1 var(--f); font-stretch: 110%; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: transform 150ms ease-out; }
.btn-pri { background: var(--orange); color: var(--night); }
.btn-sec { border-color: var(--text); color: var(--text); }
.btn:active { transform: scale(0.96); }
@media (hover: hover) { .btn-pri:hover { background: var(--orange-h); } .btn-sec:hover { background: var(--text); color: var(--night); } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---- Navegação: ilha de vidro flutuante ---- */
.nav { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 30; }
.nav-ilha { position: relative; max-width: 1200px; margin: 0 auto; height: 60px; padding: 0 8px 0 20px; display: flex; align-items: center; justify-content: space-between; border-radius: 999px; background: rgb(11 14 18 / 0.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }
.brand { color: var(--text); margin-right: auto; }
.brand svg { width: 112px; height: auto; }
.nav-toggle { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--text); color: var(--night); font: 650 0.9375rem/1 var(--f); cursor: pointer; }
.nav-links { display: none; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav.is-open .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 24px; border-radius: 28px; background: var(--night-2); }
.nav.is-open .nav-links a:not(.btn) { font-size: 1.375rem; font-stretch: 120%; font-weight: 600; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; align-items: center; gap: 26px; }
  .nav-links .btn { min-height: 44px; padding: 0 20px; }
  @media (hover: hover) { .nav-links a:not(.btn):hover { color: var(--text-2); } }
}
@media (prefers-reduced-transparency: reduce) { .nav-ilha { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ---- Hero: foto de tela cheia, texto num bloco sólido com o canto em arco ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; }
.hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ---- Vídeos: o pôster (img, com o texto alternativo) fica embaixo; o vídeo entra por cima só quando dispara "playing".
   Pôster = primeiro quadro, então a troca não dá pulo. Só opacidade, curta, ease-out. Sem reduced-motion nenhum vídeo toca. ---- */
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--ease-out); pointer-events: none; }
.vid.is-on { opacity: 1; }
.hero-video { object-position: 50% 40%; }
.hero-txt { position: relative; z-index: 1; background: var(--night); padding: 36px var(--g) 40px; border-top-right-radius: 96px; margin-right: 0; }
.hero h1 { font-size: clamp(1.875rem, 3.9vw, 3.5rem); line-height: 1.06; }
.hero-sub { margin-top: 16px; color: var(--text-2); max-width: 44ch; }
@media (max-width: 899px) {
  .hero { min-height: 0; grid-template-rows: 58svh auto; align-items: stretch; }
  .hero-foto { position: relative; height: 58svh; grid-row: 1; }
  .hero-video { grid-row: 1; grid-column: 1; }
  .hero-txt { grid-row: 2; margin-top: -88px; border-top-right-radius: 88px; }
}
@media (min-width: 900px) {
  .hero-txt { width: min(720px, 60%); padding: 48px 56px 56px var(--g); border-top-right-radius: 200px; }
}

/* ---- Arco: a seção sobe sobre a anterior com o topo curvo da lente ---- */
.arco { position: relative; z-index: 2; background: var(--night); margin-top: calc(-1 * var(--arco)); border-radius: 50% 50% 0 0 / var(--arco) var(--arco) 0 0; padding-top: calc(var(--arco) + 24px); }

/* ---- Rooftop ---- */
.roof { margin-top: 0; border-radius: 0; padding: var(--sec) 0; }
.roof-cab { padding: 0 var(--g); }
.roof h2 { font-size: clamp(2.25rem, 6vw, 6rem); line-height: 0.98; max-width: 12em; }
.roof-lead { margin-top: 18px; color: var(--text-2); font-size: 1.25rem; max-width: 34ch; }
.roof-lente { position: relative; margin-top: clamp(32px, 4vw, 56px); clip-path: ellipse(78% 50% at 50% 50%); }
.roof-lente img { width: 100%; height: clamp(320px, 46vw, 680px); object-fit: cover; object-position: 50% 85%; }
.roof-lente .vid { object-position: 50% 85%; }
.roof-painel { position: relative; margin: -72px var(--g) 0; padding: clamp(28px, 4vw, 56px); border-radius: 40px; background: var(--night-2); display: grid; gap: 32px; box-shadow: var(--sh-lg); }
.roof-lista { list-style: none; margin: 0; padding: 0; counter-reset: amb; }
.roof-lista li { counter-increment: amb; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; padding: 7px 0; break-inside: avoid; }
.roof-lista li::before { content: counter(amb, decimal-leading-zero); color: var(--orange); font-weight: 700; font-stretch: 125%; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.roof-imp { justify-self: center; width: 100%; max-width: 380px; }
.roof-imp img { width: 100%; border-radius: 24px; background: #fff; }
.roof-imp figcaption { margin-top: 10px; color: var(--text-2); font-size: 0.875rem; }
@media (min-width: 900px) {
  .roof-painel { margin-top: -140px; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .roof-lista { columns: 2; column-gap: 40px; }
}

/* ---- Pronto para morar: a lente ---- */
.pronto { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 120px var(--g) calc(var(--arco) + 72px); overflow: hidden; }
.pronto-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.pronto-lente { position: relative; z-index: 1; width: min(600px, 100%); }
.pronto-txt { background: var(--night); border-radius: 50% 50% 28px 28px / 120px 120px 28px 28px; padding: 72px 28px 36px; text-align: center; }
.pronto h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1; }
.pronto-perda { margin-top: 18px; font-size: 1.1875rem; font-weight: 500; line-height: 1.45; }
.pronto-apoio { margin-top: 12px; color: var(--text-2); }
.anel { display: none; }
@media (min-width: 900px) {
  .pronto { justify-items: end; padding-right: clamp(48px, 8vw, 140px); }
  .pronto-lente { width: 600px; aspect-ratio: 1; }
  .pronto-txt { position: absolute; inset: 0; border-radius: 50%; display: grid; align-content: center; padding: 0 88px; }
  .anel { display: block; position: absolute; inset: -22px; border-radius: 50%; border: 3px solid var(--orange); -webkit-mask: conic-gradient(from 0deg, #000 0 300deg, transparent 300deg 330deg, #000 330deg); mask: conic-gradient(from 0deg, #000 0 300deg, transparent 300deg 330deg, #000 330deg); }
}

/* ---- Localização ---- */
.loc { padding-bottom: var(--sec); }
.loc-grid { display: grid; gap: 40px; padding: 0 var(--g); }
.loc-lead { margin-top: 20px; font-size: 1.375rem; font-weight: 600; font-stretch: 112%; }
.loc-end { margin-top: 16px; color: var(--text-2); }
.loc-sub { margin-top: 28px; font-size: 0.875rem; color: var(--text-2); }
.loc-refs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.loc-refs li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9375rem; }
.mapa-cupula { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 50% 50% 32px 32px / 50% 50% 32px 32px; background: #C9E5D6; }
.mapa-tela { position: absolute; width: 263.16%; height: 147.93%; left: -65.79%; top: -32.54%; }
.mapa-img { width: 100%; height: 100%; max-width: none; }
.pins { list-style: none; margin: 0; padding: 0; }
.pin { position: absolute; width: 0; height: 0; }
.pin-dot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 3px var(--folha); transform: translate(-50%, -50%); }
.pin-nome { position: absolute; left: 14px; top: 0; transform: translateY(-50%); padding: 4px 10px; border-radius: 999px; background: var(--folha); color: var(--night); font: 650 0.8125rem/1.2 var(--f); white-space: nowrap; }
.pin-acima .pin-nome { left: -8px; top: -12px; transform: translateY(-100%); }
.pin-vision .pin-dot { width: 22px; height: 22px; background: var(--orange); box-shadow: 0 0 0 3px var(--night); }
.pin-vision .pin-nome { left: 20px; background: var(--night); color: var(--text); }
.mapa figcaption { margin-top: 10px; color: var(--text-2); font-size: 0.875rem; text-align: center; }
@media (min-width: 900px) {
  .loc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
  .mapa { max-width: 600px; justify-self: end; width: 100%; }
}

/* ---- Áreas comuns ---- */
.areas { padding: 0 0 var(--sec); }
.areas-cab { padding: 0 var(--g); margin-bottom: 32px; }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--g); scroll-padding: 0 var(--g); scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 auto; width: min(88vw, 1080px); scroll-snap-align: start; }
.carousel-slide figure { position: relative; }
.carousel-slide img { width: 100%; height: clamp(300px, 64vh, 680px); object-fit: cover; border-radius: 32px; }
.carousel-slide figcaption { position: absolute; left: 16px; bottom: 16px; padding: 10px 18px; border-radius: 999px; background: var(--night); color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.carousel-ctrl { display: flex; gap: 10px; padding: 20px var(--g) 0; }
.carousel-btn { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid var(--text); border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: transform 150ms ease-out; }
.carousel-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:active { transform: scale(0.96); }
.carousel-btn[aria-disabled="true"] { border-color: var(--line); color: var(--text-3); cursor: default; }
.carousel-btn[aria-disabled="true"]:active { transform: none; }

/* ---- Apartamento ---- */
.apto { padding-bottom: var(--sec); }
.apto-palco { position: relative; display: grid; align-items: end; min-height: clamp(460px, 86vh, 860px); }
.apto-living { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 55%; }
@media (max-width: 899px) { .apto-palco { min-height: 72svh; } .plantas-abas { border-radius: 28px; } .fech { min-height: 88svh; } }
.apto-palco::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(11 14 18 / 0.92) 0%, rgb(11 14 18 / 0.84) 50%, rgb(11 14 18 / 0) 78%); }
.apto-cab { position: relative; z-index: 1; padding: 0 var(--g) 120px; }
.apto-cab .sub { color: var(--text-2); }
.apto-lentes { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 16px; padding: 0 var(--g); margin-top: -96px; }
.lente { width: min(42vw, 300px); text-align: center; }
.lente-midia { position: relative; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--night); overflow: hidden; background: var(--night); }
.lente-midia img { width: 100%; height: 100%; object-fit: cover; }
.lente figcaption { margin-top: 8px; color: var(--text-2); font-size: 0.875rem; }
.lente-nota { order: -1; flex: 1 1 100%; color: var(--text-2); font-size: 0.875rem; text-align: start; display: none; }
.grupos { display: grid; gap: 32px; padding: 56px var(--g) 0; }
.grupo h3 { font-size: 1.375rem; font-stretch: 118%; font-weight: 650; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.grupo ul { list-style: none; margin: 12px 0 0; padding: 0; }
.grupo li { padding: 6px 0; }
@media (min-width: 900px) {
  .apto-cab { padding-bottom: 160px; max-width: 820px; }
  .apto-lentes { margin-top: -190px; gap: 28px; }
  .lente { width: 300px; }
  .lente:nth-child(2) { margin-top: 72px; }
  .grupos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 72px; }
}

/* ---- Plantas: folha clara na grade; na planta ampliada o desenho vai sem fundo, com contorno claro ---- */
.plantas { padding: 0 var(--g) var(--sec); }
.plantas-abas { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 28px 0 24px; padding: 6px; border-radius: 999px; background: var(--night-2); }
.plantas-abas[hidden] { display: none; }
.plantas-abas [role="tab"] { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--text); font: 600 0.9375rem/1 var(--f); font-stretch: 110%; cursor: pointer; }
.plantas-abas [aria-selected="true"] { background: var(--text); color: var(--night); }
.plantas-folha { background: var(--folha); color: var(--night); border-radius: 50% 50% 32px 32px / clamp(40px, 7vw, 120px) clamp(40px, 7vw, 120px) 32px 32px; padding: clamp(56px, 8vw, 128px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 48px); }
.painel-tit { font-size: 1.5rem; font-stretch: 120%; font-weight: 650; margin: 0 0 24px; }
.plantas-painel + .plantas-painel .painel-tit { margin-top: 56px; }
.is-tabs .painel-tit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.plantas-grupo + .plantas-grupo { margin-top: 48px; }
.plantas-grupo h4 { font-size: 1.375rem; font-stretch: 115%; font-weight: 650; margin: 0 0 20px; }
.plantas-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 900px) { .plantas-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; } }
.planta-img, .planta-abrir { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.planta-img img, .planta-abrir img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; mix-blend-mode: multiply; }
.planta-ampliar { position: absolute; right: 6px; bottom: 6px; padding: 7px 12px; border-radius: 999px; background: var(--night); color: var(--text); font: 650 0.8125rem/1 var(--f); }
.planta-info { margin-top: 12px; }
.planta-final { font-size: 1.25rem; font-stretch: 120%; font-weight: 650; }
.planta-tipo { font-size: 0.875rem; color: var(--text-3); margin-top: 2px; }
.planta-area { margin-top: 4px; font-size: 0.9375rem; }
.plantas-fim { margin-top: 48px; padding-top: 24px; border-top: 1px solid #C9CED4; }
.plantas-fim p { max-width: 50ch; }

/* ---- Condomínio ---- */
.cond { position: relative; padding-bottom: var(--sec); }
.cond-midia { position: relative; }
.cond-foto { display: block; width: 100%; height: clamp(320px, 78vh, 820px); object-fit: cover; }
.cond-placa { position: relative; margin: -120px var(--g) 0; padding: clamp(28px, 4vw, 56px); border-radius: 40px; background: var(--night-2); box-shadow: var(--sh-lg); }
.cond-lista { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px 32px; }
.cond-lista li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.cond-lista .ti { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--night); fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .cond-placa { margin-top: -260px; margin-left: auto; width: min(880px, calc(100% - 2 * var(--g))); margin-right: var(--g); }
  .cond-lista { grid-template-columns: 1fr 1fr; }
}

/* ---- Qualidade ---- */
.qual { padding: 0 var(--g) var(--sec); }
.qual h2 { font-size: 0.9375rem; font-stretch: 112%; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.qual-selos { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px clamp(32px, 6vw, 96px); }
.qual-selos strong { display: block; font-size: clamp(2.25rem, 6.4vw, 6rem); line-height: 1; font-stretch: 125%; font-weight: 700; letter-spacing: -0.02em; }
.qual-selos span { display: block; margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; }

/* ---- Fechamento: o garden com topo em arco ---- */
.fech { position: relative; z-index: 2; margin-top: calc(-1 * var(--arco)); display: grid; align-items: end; min-height: 100svh; overflow: hidden; border-radius: 50% 50% 0 0 / var(--arco) var(--arco) 0 0; }
.fech-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; }
.fech::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(11 14 18 / 0.94) 0%, rgb(11 14 18 / 0.84) 56%, rgb(11 14 18 / 0) 84%); }
.fech-grid { position: relative; z-index: 1; display: grid; gap: 40px; padding: 0 var(--g) clamp(48px, 7vw, 96px); }
.fech h2 { font-size: clamp(2.25rem, 6vw, 6rem); line-height: 0.98; max-width: 11em; }
.escassez { margin-top: 20px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; font-stretch: 112%; }
/* Celular: a foto aparece no alto (16svh limpos, 30svh de transição) e o texto começa só onde o degradê já é >= 0,84 */
@media (max-width: 899px) {
  .fech { padding-top: 50svh; }
  .fech::after { background: linear-gradient(to top, rgb(11 14 18 / 0.94) 0, rgb(11 14 18 / 0.84) calc(100% - 46svh), rgb(11 14 18 / 0) calc(100% - 16svh)); }
}
@media (min-width: 900px) {
  .fech-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: end; gap: clamp(40px, 5vw, 80px); padding-top: 140px; }
}

/* ---- Formulário (dentro do fechamento). Painel sólido: nenhum texto do form fica sobre a foto ---- */
.lead { padding: clamp(24px, 3vw, 36px); border-radius: 32px; background: var(--night-2); box-shadow: var(--sh-lg); }
.lead-form { display: grid; gap: 18px; }
.lead-form[hidden] { display: none; }
.campo { display: grid; gap: 8px; }
.campo label { font-weight: 600; font-size: 0.9375rem; }
.campo-opc { font-weight: 400; color: var(--text-2); }
.campo input:not([type="checkbox"]), .campo select { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid #7A8591; border-radius: 14px; background: var(--night); color: var(--text); font: 400 1rem/1.2 var(--f); font-stretch: 100%; }
.campo input::placeholder { color: var(--text-2); opacity: 1; }
.campo input[type="tel"] { font-variant-numeric: tabular-nums; }
.campo select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1F4F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.campo select option { background: var(--night-2); color: var(--text); }
.campo [aria-invalid="true"] { border-color: #FF8F8F; }
.campo-err { color: #FF8F8F; font-size: 0.875rem; line-height: 1.4; }
.campo-err[hidden] { display: none; }
.campo .aceite { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; padding-top: 2px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.aceite input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.aceite a { color: var(--text); text-underline-offset: 3px; }
.lead-btn { width: 100%; margin-top: 4px; }
.lead-ok { display: grid; gap: 8px; }
.lead-ok[hidden] { display: none; }
.lead-ok-tit { font-size: 1.375rem; font-weight: 650; font-stretch: 115%; }
.lead-ok p:not(.lead-ok-tit) { color: var(--text-2); }

/* ---- Rodapé ---- */
.footer { padding: clamp(48px, 6vw, 80px) var(--g) 112px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 40px; }
.footer-logo { width: 180px; height: auto; color: var(--text); }
.footer-slogan { margin-top: 14px; font-size: 1.25rem; font-weight: 600; font-stretch: 118%; }
.footer-frase { margin-top: 6px; color: var(--text-2); max-width: 38ch; }
.footer-cidades img { width: 150px; height: auto; }
.footer-cidades p { margin: 14px 0 10px; color: var(--text-2); }
.footer-link { color: var(--text); text-underline-offset: 4px; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 0.875rem; color: var(--text-2); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }

/* ---- Botão flutuante ---- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--orange); color: var(--night); font: 650 1rem/1 var(--f); font-stretch: 110%; text-decoration: none; box-shadow: var(--sh-lg); transition: transform 150ms ease-out, opacity 200ms ease-out, visibility 0s; }
.wa-float.is-oculto { opacity: 0; transform: translateY(8px); visibility: hidden; pointer-events: none; transition: transform 200ms ease-out, opacity 200ms ease-out, visibility 0s 200ms; }
.wa-float svg { width: 22px; height: 22px; }
.wa-float:active { transform: scale(0.96); }
@media (hover: hover) { .wa-float:hover { background: var(--orange-h); } }

/* ---- Lightbox ---- */
.lightbox { margin: 0; padding: 64px 16px 16px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; overscroll-behavior: contain; background: rgb(11 14 18 / 0.96); color: var(--text); touch-action: pan-y pinch-zoom; }
.lightbox[open] { display: grid; grid-template: minmax(0, 1fr) auto / minmax(0, 1fr); gap: 16px; }
/* As duas camadas de imagem ocupam a mesma célula; o crossfade é só de opacidade, curto (160ms) */
.lb-palco { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; }
/* Contorno claro fino que segue o recorte (a parede externa é preta e sumiria no escuro): 4 sombras de 1px sem desfoque, cor do texto */
.lb-img { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; filter: drop-shadow(1px 0 0 var(--text)) drop-shadow(-1px 0 0 var(--text)) drop-shadow(0 1px 0 var(--text)) drop-shadow(0 -1px 0 var(--text)); opacity: 0; transition: opacity 160ms var(--ease-out); }
.lb-img.is-on { opacity: 1; }
.lightbox.sem-fade .lb-img { transition: none; }
.lb-barra { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; max-width: 760px; width: 100%; justify-self: center; }
.lb-leg { display: grid; gap: 2px; text-align: center; font-size: 0.9375rem; line-height: 1.4; }
.lb-nome { font-weight: 600; }
.lb-pos { color: var(--text-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.lb-seta { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid var(--text); border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: transform 150ms ease-out; -webkit-tap-highlight-color: transparent; }
.lb-seta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-seta:not([aria-disabled="true"]):active { transform: scale(0.96); }
.lb-seta[aria-disabled="true"] { border-color: var(--line); color: var(--text-3); cursor: default; }
@media (hover: hover) { .lb-seta:not([aria-disabled="true"]):hover { background: var(--text); color: var(--night); } }
.lightbox-fechar { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--text); color: var(--night); cursor: pointer; }
.lightbox-fechar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
html.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .btn, .wa-float, .carousel-btn, .lb-seta { transition: none; }
  .btn:active, .wa-float:active, .carousel-btn:active, .lb-seta:not([aria-disabled="true"]):active { transform: none; }
  /* Troca de planta instantânea e nenhum vídeo aparece (o JS nem dá play) */
  .lb-img, .vid { transition: none; }
  .wa-float.is-oculto { transform: none; transition: none; }
}

/* Anel de foco sobre a folha clara das plantas: o anel claro do resto da página sumiria (#F1F4F6 sobre #F1F4F6) */
.plantas-folha :focus-visible { outline-color: var(--night); }

/* Perguntas frequentes: respostas sempre abertas; duas colunas a partir de 900 px, medida de leitura curta */
.faq { padding: 0 var(--g) calc(var(--sec) + var(--arco)); }
.faq-lista { display: grid; gap: 32px; margin-top: clamp(28px, 4vw, 48px); max-width: 1200px; }
@media (min-width: 900px) { .faq-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(40px, 6vw, 96px); } }
.faq-item { padding-top: 20px; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.25rem; line-height: 1.25; font-stretch: 115%; font-weight: 650; text-wrap: balance; }
.faq-item p { margin-top: 10px; max-width: 52ch; color: var(--text-2); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
.faq-item a { color: var(--text); text-underline-offset: 3px; }

/* Sem JS o formulário não funciona: some, e o contato vira o botão do WhatsApp */
.contato-semjs { margin: 0; }
.contato-semjs .btn { width: 100%; }
.js .contato-semjs { display: none; }
html:not(.js) .lead-form { display: none; }
.lead-ok .btn { margin-top: 8px; justify-self: start; }

/* Botão de pausar os vídeos (WCAG 2.2.2), na ilha do cabeçalho */
.vid-pausa { flex: none; width: 44px; height: 44px; margin-left: 8px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: transform 160ms var(--ease-out); }
.vid-pausa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.vid-pausa[aria-pressed="true"] svg { fill: currentColor; }
.vid-pausa:active { transform: scale(0.96); }
@media (hover: hover) { .vid-pausa:hover { border-color: var(--text-2); } }
@media (min-width: 900px) { .vid-pausa { margin-left: 18px; } }
@media (prefers-reduced-motion: reduce) { .vid-pausa { display: none; transition: none; } }

/* Mapa a 320 px: o rótulo do Floripa Shopping vai para a esquerda do pino para não sair da cúpula */
@media (max-width: 359px) { .pin-esq .pin-nome { left: auto; right: 14px; } }
