/* ==========================================================================
   Yachthouse | Mercatto Praia Brava
   Tokens de marca no :root. Tudo em caminhos relativos (GitHub Pages).
   ========================================================================== */

/* ---------- Fontes (auto-hospedadas, subconjunto latin, OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* Fallbacks com métricas ajustadas: a troca de fonte não empurra o layout (CLS) */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 84%; ascent-override: 110%; descent-override: 34%; line-gap-override: 0%; }
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 112%; ascent-override: 94%; descent-override: 31%; line-gap-override: 9%; }

:root {
  --ink: #171614;          /* preto da marca */
  --paper: #F6F3EE;        /* off-white de base */
  --linen: #EAE4DA;        /* areia, fundos secundários */
  --champagne: #C9A76E;    /* acento: só em fundo escuro e detalhes */
  --bronze: #7A5C30;       /* dourado legível sobre fundo claro (AA) */
  --bronze-deep: #5E4521;  /* texto dos placeholders: AA também sobre areia */
  --mute: #5E5A53;         /* texto secundário sobre claro (AA) */
  --on-dark: #EDE8E0;      /* texto sobre escuro */
  --on-dark-mute: #B3ACA1; /* texto secundário sobre escuro (AA) */
  --line: rgba(23, 22, 20, .16);
  --line-dark: rgba(237, 232, 224, .18);
  --wa: #0B6B5F;          /* verde WhatsApp escurecido para contraste AA com texto branco */

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Poppins", "Poppins Fallback", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 11vw, 152px);
  --header-h: 76px;
  --bar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }
a { color: var(--bronze); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.section-dark :focus-visible, .hero :focus-visible, .lightbox :focus-visible { outline-color: var(--champagne); }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: .75rem 1rem; }
.skip-link:focus { top: 16px; }

/* ---------- Placeholders (visíveis de propósito) ---------- */
.pf {
  font-family: var(--sans);
  font-size: min(.8em, 1rem);
  font-weight: 400;
  color: var(--bronze-deep);
  background: rgba(201, 167, 110, .16);
  outline: 1px dashed rgba(122, 92, 48, .55);
  outline-offset: -1px;
  padding: .05em .4em;
  white-space: normal;
}
.pf-dark { color: var(--champagne); background: rgba(201, 167, 110, .12); outline-color: rgba(201, 167, 110, .5); }
.pf-block {
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bronze-deep);
  border: 1px dashed rgba(122, 92, 48, .55);
  background: rgba(201, 167, 110, .1);
  padding: .75rem .9rem;
  margin-top: 1rem;
}
.section-dark .pf-block { color: var(--champagne); border-color: rgba(201, 167, 110, .45); background: rgba(201, 167, 110, .07); }

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background: linear-gradient(150deg, #E4DCCF 0%, #D6CCBC 100%);
  color: var(--mute);
  text-align: center;
}
.ph-label { font-size: .75rem; font-weight: 400; letter-spacing: .02em; border: 1px dashed currentColor; padding: .4rem .7rem; max-width: 26ch; line-height: 1.4; }
.ph-dark { background: radial-gradient(120% 90% at 70% 20%, #3A332B 0%, #221F1B 55%, #171614 100%); color: var(--on-dark-mute); }
.ph-fill { position: absolute; inset: 0; align-items: flex-start; justify-content: flex-end; padding: 1.25rem; }
.ph-plan { aspect-ratio: 4 / 3; background: #EFEAE2; }
.ph-tall { aspect-ratio: 4 / 5; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .875rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #3A332B; color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--champagne); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: rgba(237, 232, 224, .5); }
.btn-outline-light:hover { border-color: var(--champagne); color: var(--champagne); }
.btn-block { width: 100%; }
.btn-small { min-height: 44px; padding: .6rem 1.1rem; font-size: .875rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.trust { font-size: .8125rem; color: var(--mute); margin: .75rem 0 0; }
.section-dark .trust { color: var(--on-dark-mute); }

.cta-row { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: clamp(48px, 6vw, 72px); }
.cta-row-left { align-items: flex-start; text-align: left; margin-top: 2.5rem; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); height: var(--header-h); display: flex; align-items: center; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand-mark { width: 14px; height: 26px; background: var(--ink); transform: skewX(-18deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--sans); font-weight: 500; font-size: 1.05rem; letter-spacing: .32em; text-transform: uppercase; }
.brand-tagline { font-size: .625rem; font-weight: 400; letter-spacing: .02em; margin-top: .3rem; color: var(--ink); }
.header-cta { min-height: 44px; padding: .55rem 1.2rem; font-size: .875rem; }

/* ---------- 1. Hero ---------- */
.hero { padding: 0 clamp(8px, 1.6vw, 24px); }
.hero-frame {
  position: relative;
  min-height: max(620px, calc(100svh - var(--header-h) - clamp(8px, 1.6vw, 24px)));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18, 17, 15, .85) 0%, rgba(18, 17, 15, .45) 40%, rgba(18, 17, 15, 0) 70%),
    linear-gradient(to right, rgba(18, 17, 15, .45) 0%, rgba(18, 17, 15, 0) 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  gap: 3rem;
  padding-block: 4rem clamp(2rem, 4vw, 3.5rem);
}
.hero-logo { width: clamp(150px, 15vw, 210px); height: auto; margin-bottom: 1.75rem; }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 5.75rem); line-height: 1; letter-spacing: -.015em; max-width: 13ch; }
.hero-sub { font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 46ch; margin: 1.5rem 0 0; color: var(--on-dark); }
.hero-sub strong { color: #fff; font-weight: 500; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }
.hero-mobile-cta { display: none; }
.link-wa { color: var(--on-dark); font-size: .9375rem; font-weight: 400; text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: .35em; }
.link-wa:hover { color: var(--champagne); }

.hero-form-card { background: var(--paper); color: var(--ink); padding: 2rem 2rem 1.5rem; animation: rise 1s .25s var(--ease) both; }
/* O texto do hero só desliza (sem opacidade), para não atrasar o LCP */
.hero-copy { animation: settle 1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: translateY(12px); } to { transform: none; } }

/* ---------- Formulário ---------- */
.form-title { font-size: 1.75rem; margin-bottom: 1.25rem; }
.lead-form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .8125rem; font-weight: 500; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid rgba(23, 22, 20, .3);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color .2s var(--ease);
}
.field input:hover { border-color: rgba(23, 22, 20, .55); }
.field input:focus-visible { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #A0322A; }
.field-error { margin: 0; min-height: 0; font-size: .78rem; font-weight: 400; color: #A0322A; }
.field-error:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .2rem .6rem; }
.field-check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--ink); }
.field-check label { font-size: .78rem; font-weight: 400; line-height: 1.5; color: var(--mute); }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .trust { text-align: center; margin-top: 0; }
.form-status { font-size: .875rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status .wa-fallback { margin-top: .75rem; }
.lead-form.is-sent > :not(.form-status) { display: none; }
.lead-form.is-sent .form-status { padding: .5rem 0; }
.form-status h3 { font-size: 1.6rem; margin-bottom: .5rem; }

/* ---------- 2. Ficha técnica ---------- */
.spec { padding-block: clamp(40px, 5vw, 64px) 0; }
.spec-sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.spec-item { padding: 1.4rem 1.25rem 1.6rem; border-left: 1px solid var(--line); }
.spec-item:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.spec-item:nth-child(n+4) { border-top: 1px solid var(--line); }
.spec-item dt { font-size: .8125rem; color: var(--mute); margin-bottom: .6rem; }
.spec-item dd { margin: 0; font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.1; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark a:not(.btn) { color: var(--champagne); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-lead { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--mute); max-width: 56ch; margin-top: 1.25rem; }
.section-dark .section-lead { color: var(--on-dark-mute); }

/* 3. Por que */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px); }
.why-item { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.why-item h3 { margin-bottom: .9rem; }
.why-item p { max-width: 48ch; color: #3A3732; }

/* 4. Galeria */
.gallery { background: var(--linen); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 22vw, 320px); gap: clamp(8px, 1.2vw, 16px); }
.gallery-item { position: relative; padding: 0; border: 0; background: none; overflow: hidden; display: block; width: 100%; height: 100%; }
.gallery-item.g-wide { grid-column: span 2; }
.gallery-item img, .gallery-item .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img, .gallery-item:hover .ph { transform: scale(1.025); }
.note { font-size: .78rem; color: var(--mute); margin-top: 1rem; }

/* 5. Plantas */
.tabs { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 56px); overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: .9rem 0;
  min-height: 48px;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--mute);
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 8px; }
.plan-media { position: relative; display: block; background: #fff; border: 1px solid var(--line); }
.plan-media img { width: 100%; height: auto; }
.plan-zoom { position: absolute; right: .75rem; bottom: .75rem; background: var(--ink); color: var(--paper); font-size: .8125rem; font-weight: 500; padding: .45rem .8rem; }
.plan-media:hover .plan-zoom { background: var(--bronze); }
.plan-info h3 { margin-bottom: 1.5rem; }
.plan-features { list-style: none; padding: 0; margin: -0.75rem 0 2rem; font-size: .9rem; color: #3A3732; }
.plan-features li { display: flex; gap: .75rem; padding: .35rem 0; }
.plan-features li::before { content: ""; flex: none; width: 14px; height: 1px; margin-top: .8em; background: var(--bronze); }
.plan-specs { margin: 0 0 2rem; border-top: 1px solid var(--line); }
.plan-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.plan-specs dt { color: var(--mute); font-size: .9rem; }
.plan-specs dd { margin: 0; font-weight: 400; text-align: right; }

/* 5b. Unidades em destaque */
.units { background: var(--linen); }
.units-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.unit-card { grid-column: span 2; display: flex; flex-direction: column; background: #fff; }
.unit-card-lg { grid-column: span 3; }
.unit-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #DCD3C5; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.unit-card-lg .unit-media { aspect-ratio: 16 / 10; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.unit-media:hover img { transform: scale(1.03); }
.unit-count { position: absolute; left: .75rem; bottom: .75rem; background: rgba(23, 22, 20, .8); color: var(--paper); font-size: .8125rem; font-weight: 500; padding: .4rem .75rem; }
.unit-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.unit-tag { align-self: flex-start; font-size: .75rem; font-weight: 500; color: var(--bronze-deep); border: 1px solid rgba(122, 92, 48, .4); padding: .2rem .6rem; margin-bottom: 1rem; }
.unit-body h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.unit-meta { font-size: .875rem; color: var(--mute); margin: .35rem 0 1rem; }
.unit-specs { display: flex; gap: 2.5rem; margin: 0 0 1rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.unit-specs dt { font-size: .75rem; color: var(--mute); }
.unit-specs dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.unit-desc { font-size: .9rem; color: #3A3732; margin-bottom: 1.5rem; }
.unit-body .btn { margin-top: auto; align-self: flex-start; }
.units-more { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.units-more > p:first-child { max-width: 52ch; font-size: 1.0625rem; margin: 0; }
.units-more .trust { margin: 0; }

/* 6. Localização */
.location { background: var(--paper); }
.location-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.place-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.place-list li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.distances { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.distances div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.distances dd { margin: 0; white-space: nowrap; }
.map { position: relative; aspect-ratio: 1 / 1; background: var(--linen); color: var(--ink); overflow: hidden; }
.map-art { width: 100%; height: 100%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.map-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 14px rgba(23, 22, 20, .08), 0 0 0 30px rgba(23, 22, 20, .04); margin-bottom: .5rem; }
.map-pin-label { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin: 0; }
.map-msg { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; margin: 0; font-size: .8rem; text-align: center; color: var(--mute); }

/* 7. Lazer */
.leisure { background: var(--linen); }
.leisure-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.leisure-grid { align-items: start; }
.leisure-media { position: sticky; top: 24px; }
.leisure-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.floors { margin-top: 2rem; border-top: 1px solid var(--line); }
.floor { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.floor h3 { font-size: 1.375rem; line-height: 1.3; }
.floor ul { list-style: none; padding: 0; margin: 0; }
.floor li { padding: .2rem 0; color: #3A3732; }
.leisure-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.leisure-list li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.leisure-list li::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--bronze); }

/* 8. Investimento */
.invest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.invest-item { border-top: 1px solid var(--champagne); padding-top: 1.75rem; }
.invest-item h3 { color: var(--on-dark); margin-bottom: .9rem; }

/* 9. Sobre */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.about-tagline { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--bronze); margin-top: .75rem; }
.about-copy > p:first-child { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.65; max-width: 52ch; }
.about-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.about-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: #3A3732; }
.about-list strong { color: var(--ink); }

/* 10. CTA final */
.final-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.final h2 { max-width: 16ch; }
.final-alt { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--on-dark); }
.final-form-card { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); }
.final-form-card .trust { color: var(--mute); }
.final-form-card a:not(.btn) { color: var(--bronze); }

/* 11. FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  min-height: 48px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.5rem; max-width: 60ch; color: #3A3732; }

/* ---------- 12. Rodapé ---------- */
.site-footer { background: var(--linen); padding-block: 56px; font-size: .8125rem; color: var(--mute); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem 4rem; }
.footer-brand .brand-name { color: var(--ink); font-size: .875rem; letter-spacing: .2em; margin-bottom: .25rem; }
.footer-brand p { margin-bottom: .25rem; }
.footer-legal p { max-width: 70ch; }
.site-footer .pf-dark { color: var(--bronze-deep); background: rgba(201, 167, 110, .16); outline-color: rgba(122, 92, 48, .55); }
.privacy { margin-top: 1rem; }
.privacy summary { cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; display: inline-block; padding: .5rem 0; }
.privacy p { margin-top: .5rem; }

/* ---------- WhatsApp flutuante + barra mobile ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(11, 107, 95, .6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { color: #fff; transform: translateY(-3px); }

.mobile-bar { display: none; }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(23, 22, 20, .72); }
body.has-dialog { overflow: hidden; }

.form-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100svh - 32px); background: var(--paper); padding: 2.25rem 2rem 1.75rem; overflow: auto; }
.form-dialog[open] { animation: rise .45s var(--ease) both; }
.form-dialog .form-title { margin-bottom: .35rem; padding-right: 2rem; }
.dialog-sub { font-size: .875rem; color: var(--mute); margin-bottom: 1.25rem; }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; background: rgba(18, 17, 15, .97); color: var(--on-dark); }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.lb-figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; padding: 64px 0 24px; }
.lb-stage { min-height: 0; display: grid; place-items: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; width: auto; height: auto; }
.lb-stage .ph { width: min(100%, 1100px); height: auto; aspect-ratio: 16 / 10; }
.lb-caption { text-align: center; font-size: .875rem; color: var(--on-dark-mute); padding-top: 1rem; }
.lb-nav, .lb-close { background: none; border: 0; color: var(--on-dark); width: 56px; height: 56px; display: grid; place-items: center; justify-self: center; }
.lb-nav:hover, .lb-close:hover { color: var(--champagne); }
.lb-close { position: absolute; top: 12px; right: 12px; }

/* ---------- Revelação no scroll (só com JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; --bar-h: calc(64px + env(safe-area-inset-bottom)); }
  .header-cta { display: none; }
  .brand-name { font-size: .95rem; }

  .hero { padding: 0; }
  .hero-frame { min-height: calc(100svh - var(--header-h) - var(--bar-h)); }
  .hero-grid { grid-template-columns: 1fr; padding-block: 3rem 2rem; }
  .hero-form-card { display: none; }
  .hero-mobile-cta { display: inline-flex; }
  .hero-actions .btn { flex: 1 1 100%; }

  .spec-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-item, .spec-item:nth-child(3n+1) { padding: 1.1rem 1rem 1.2rem; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .spec-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec-item:nth-child(-n+2) { border-top: 0; }
  .spec-item dd { font-size: 1.6rem; }

  .why-grid, .invest-grid, .tab-panel, .location-grid, .leisure-grid, .about-grid, .final-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .gallery-item.g-wide:last-child { grid-column: auto; }
  .leisure-list { grid-template-columns: 1fr; }
  .units-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .units-grid::-webkit-scrollbar { display: none; }
  .unit-card, .unit-card-lg { flex: 0 0 85%; scroll-snap-align: start; }
  .unit-card-lg .unit-media { aspect-ratio: 4 / 3; }
  .units-more .btn { width: 100%; }
  .tabs { flex-wrap: wrap; gap: 0 1.5rem; overflow: visible; }
  .map { aspect-ratio: 4 / 3; }
  .leisure-media { order: 2; position: static; }
  .floor { grid-template-columns: 1fr; gap: .5rem; }
  .hero-media img { object-position: 40% 50%; }
  .cta-row, .cta-row-left { align-items: stretch; text-align: center; }
  .cta-row .btn { width: 100%; }

  .wa-float { display: none; }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 2fr 3fr;
    height: var(--bar-h);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
  }
  .mobile-bar a, .mobile-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    font: 500 .9375rem var(--sans);
    text-decoration: none;
  }
  .mobile-bar-wa { background: var(--wa); color: #fff; }
  .mobile-bar-cta { background: var(--ink); color: var(--paper); }

  .form-dialog { width: 100%; max-width: none; max-height: 92svh; margin: auto 0 0; padding: 2rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); }
  .lightbox[open] { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .lb-nav { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
