/*
 * LP do imóvel (Agência Automática, W2c). Estrutura portada do template "novo site com animação"; os dados
 * vêm do config.js e o index.html já chega pré-renderizado. As fontes são opcionais: sem os woff2 em
 * vendor/fontes, a página usa as fontes do sistema (Georgia e Segoe UI/system-ui).
 *
 * Lições que valem aqui (medidas no site de tour que serviu de referência):
 * - texto sobre foto: mover o texto para a faixa escura da foto em vez de escurecer a imagem inteira;
 * - o latão (--brass) não serve sobre foto (contraste 1,5:1); sobre foto, só marfim;
 * - trilha do tour em svh, palco em dvh.
 */

:root {
  --ink: #0e0d0b;
  --ink-2: #16140f;
  --ink-3: #221f19;
  --ivory: #f2ede4;
  --ivory-dim: rgba(242, 237, 228, .72);
  --ivory-faint: rgba(242, 237, 228, .14);
  --brass: #b8965a;
  --brass-soft: #d2b683;
  --erro: #f4a99c;
  --ok: #a9d5b5;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { padding-inline: var(--gutter); }

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

.h2 {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 2rem;
  font: inherit;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn--sm { padding: .7rem 1.1rem; font-size: .64rem; }
.btn--solid { background: var(--brass); color: var(--ink); }
.btn--solid:hover { background: var(--brass-soft); }
.btn--ghost { border-color: rgba(242, 237, 228, .42); color: var(--ivory); background: transparent; }
.btn--ghost:hover { border-color: var(--brass-soft); color: var(--brass-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 1px solid var(--brass-soft); outline-offset: 4px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem var(--gutter);
  transition: background .6s var(--ease), padding .6s var(--ease), transform .6s var(--ease);
}
.topbar.is-solid {
  background: rgba(14, 13, 11, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-block: .8rem;
}
.topbar.is-hidden { transform: translateY(-100%); }
.brand {
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topnav { display: flex; gap: 2.2rem; }
.topnav a {
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-dim);
  transition: color .4s;
}
.topnav a:hover { color: var(--ivory); }
.topbar .btn { flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Véu só na faixa de baixo, onde fica o texto: a foto continua clara em cima. */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,13,11,.45) 0%, rgba(14,13,11,0) 18%, rgba(14,13,11,0) 46%, rgba(14,13,11,.72) 74%, rgba(14,13,11,.95) 100%);
}
.hero__content {
  position: relative;
  align-self: end;
  padding-top: 8rem;
  padding-bottom: 2.4rem;
}
.hero .eyebrow { color: var(--ivory); text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.hero__title {
  margin: 0;
  max-width: 16em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7.4vw, 7.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  overflow-wrap: anywhere;
}
.hero__title, .hero__price, .stats dd, .spec__table dd, .tour__name { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.hero__price {
  margin: 1.6rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: .02em;
}

.stats {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(var(--aa-stats, 4), 1fr);
  border-top: 1px solid var(--ivory-faint);
}
.stats > div { padding: 1.4rem 0 2.1rem; min-width: 0; }
.stats > div + div { padding-left: clamp(1rem, 2.5vw, 2.5rem); border-left: 1px solid var(--ivory-faint); }
.stats dt {
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.stats dd {
  margin: .35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 1;
}
.stats small { font-size: .45em; color: var(--ivory-dim); }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 9.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory);
  writing-mode: vertical-rl;
}
.scroll-cue i {
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--ivory), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Intro ---------- */
.intro {
  max-width: 1400px;
  margin: 0 auto;
  padding-block: clamp(6rem, 16vw, 14rem);
}
.intro__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 3.4rem);
  line-height: 1.24;
  max-width: 34ch;
}
.reveal-lines .w { display: inline-block; opacity: .16; transition: opacity .2s linear; }

/* ---------- Passeio (tour) ----------
 * Sem JS, sem GSAP, no celular ou com movimento reduzido: cartões empilhados (.is-stacked, o padrão do HTML).
 * No desktop com GSAP, o main.js troca para .is-scrub: palco preso e fotos em fusão pela rolagem. */
.tour { position: relative; }
.tour.is-scrub { height: calc((var(--aa-tour-n, 6) * 1.15 + 1) * 100vh); height: calc((var(--aa-tour-n, 6) * 1.15 + 1) * 100svh); }
.tour__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}
.tour__clips { position: absolute; inset: 0; z-index: 0; isolation: isolate; margin: 0; padding: 0; list-style: none; }
.tour__clip {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.tour__clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,13,11,.55) 0%, rgba(14,13,11,.08) 40%, transparent 62%, transparent 80%, rgba(14,13,11,.45) 100%),
    linear-gradient(180deg, rgba(14,13,11,.4) 0%, transparent 20%, transparent 58%, rgba(14,13,11,.86) 100%);
}
.tour__head { position: absolute; top: 2.2rem; left: 0; z-index: 2; }
.tour__head .eyebrow { color: var(--ivory); }
.tour__captions {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: var(--gutter);
  bottom: clamp(3rem, 9vh, 6rem);
  z-index: 2;
  width: min(42rem, 80vw);
}
.tour__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}
.tour__num {
  display: block;
  margin-bottom: .9rem;
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--ivory-dim);
}
.tour__name {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.2vw, 6rem);
  line-height: .98;
  letter-spacing: -.015em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .4);
}
.tour__text {
  display: block;
  margin-top: 1.1rem;
  max-width: 36ch;
  font-size: 1rem;
  color: var(--ivory);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
}

.tour__index {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}
.tour__index ol { list-style: none; margin: 0; padding: 0; }
.tour__index button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .9rem;
  width: 100%;
  padding: .32rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, .66);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  transition: color .4s;
}
.tour__index button::after {
  content: "";
  box-shadow: 0 0 6px rgba(0, 0, 0, .4);
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width .5s var(--ease);
}
.tour__index button:hover, .tour__index button.is-active { color: var(--ivory); }
.tour__index button.is-active::after { width: 44px; }
.tour__index .label { opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .4s var(--ease); }
.tour__index:hover .label, .tour__index button.is-active .label, .tour__index button:focus-visible .label { opacity: 1; transform: none; }

.tour__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 3;
  background: var(--ivory-faint);
}
.tour__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ivory);
  transform-origin: left;
  transform: scaleX(0);
}

/* Modo empilhado (padrão) */
.tour.is-stacked .tour__stage { position: relative; height: auto; overflow: visible; }
.tour.is-stacked .tour__clips { position: static; }
.tour.is-stacked .tour__shade,
.tour.is-stacked .tour__index,
.tour.is-stacked .tour__progress,
.tour.is-stacked .tour__captions { display: none; }
.tour.is-stacked .tour__head { position: static; padding-top: 2rem; }
.tour.is-stacked .tour__head .eyebrow { color: var(--brass-soft); }
.tour.is-stacked .tour__clip {
  position: relative;
  opacity: 1;
  height: 78vh;
  height: 78svh;
  min-height: 420px;
  margin-bottom: 4px;
}
.tour.is-stacked .tour__clip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(14,13,11,.9) 100%);
}
.tour__card { display: none; }
.tour.is-stacked .tour__card {
  display: block;
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2rem;
}
.tour.is-stacked .tour__card .tour__name { font-size: clamp(2.2rem, 10vw, 3.4rem); }
.tour.is-stacked .tour__card .tour__text { font-size: .92rem; }

/* ---------- Destaques ---------- */
.feature {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: center;
  padding-block: clamp(5rem, 11vw, 10rem);
}
.feature--flip .feature__media { order: 2; }
.feature__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background: var(--ink-3);
}
.feature__media img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}
.feature__body { min-width: 0; }
.feature__body p { color: var(--ivory-dim); max-width: 46ch; }
.list {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.2rem;
}
.list li {
  padding: .85rem 0;
  border-top: 1px solid var(--ivory-faint);
  font-size: .92rem;
  line-height: 1.45;
}

/* ---------- Localização (capítulo) ---------- */
.place {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--ivory-faint);
}
.place__body { min-width: 0; }
.place__body p { max-width: 46ch; color: var(--ivory-dim); }
.place__body .place__local {
  margin-top: 2rem;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.map {
  --map-miolo: var(--ink-2);
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--brass-soft);
  border: 1px solid var(--ivory-faint);
  background: radial-gradient(120% 120% at 50% 45%, #1d1a13 0%, var(--ink-2) 55%, var(--ink) 100%);
}
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__ruas { opacity: .3; }
.map__aneis { opacity: .55; }
.map__pulso { transform-box: fill-box; transform-origin: center; animation: pulso 3.2s var(--ease) infinite; }
@keyframes pulso { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(3.2); opacity: 0; } }
.map figcaption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1rem;
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ---------- Ficha ---------- */
.spec {
  background: var(--ink-2);
  padding-block: clamp(5rem, 10vw, 9rem);
}
.spec .wrap { max-width: 1500px; margin: 0 auto; }
.spec__table {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ivory-faint);
}
.spec__table > div {
  min-width: 0;
  padding: 2.2rem 0 2.4rem;
  border-bottom: 1px solid var(--ivory-faint);
}
.spec__table > div:not(:nth-child(3n + 1)) { padding-left: 2.4rem; border-left: 1px solid var(--ivory-faint); }
.spec__table dt {
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.spec__table dd {
  margin: .6rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.spec__table small { font-size: .5em; color: var(--ivory-dim); }

/* ---------- Galeria ---------- */
.gallery {
  max-width: 1600px;
  margin: 0 auto;
  padding-block: clamp(5rem, 11vw, 10rem);
}
.gallery__head { margin-bottom: 3rem; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(140px, 16vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1vw, 14px);
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--ink-3);
  overflow: hidden;
  cursor: zoom-in;
  grid-column: span 2;
}
.gallery__item.is-wide { grid-column: span 4; grid-row: span 2; }
.gallery__item.is-tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s;
}
.gallery__item:hover img { transform: scale(1.045); }

/* ---------- Agendar (CTA + formulário) ---------- */
.cta { background: var(--ink-2); }
.cta__photo {
  position: relative;
  height: 62vh;
  height: 62svh;
  min-height: 360px;
  overflow: hidden;
}
.cta__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* O título fica na faixa de baixo, que escurece; o resto da foto continua inteiro. */
.cta__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,20,15,0) 40%, rgba(22,20,15,.72) 75%, var(--ink-2) 100%);
}
.cta__head {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1500px;
  margin: 0 auto;
}
.cta__head .eyebrow { color: var(--ivory); }
.cta__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 5.4vw, 5.2rem);
  line-height: 1.02;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .4);
  overflow-wrap: anywhere;
}
.cta__body {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 34rem);
  gap: clamp(2.5rem, 7vw, 8rem);
  padding-block: clamp(3rem, 6vw, 6rem) clamp(5rem, 9vw, 8rem);
}
.cta__aside p { color: var(--ivory-dim); max-width: 40ch; margin: 0 0 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.form {
  display: grid;
  gap: 1.3rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--ivory-faint);
  background: var(--ink);
}
.form__campo { display: grid; gap: .45rem; }
.form__campo label, .form__legenda {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.form__opcional { letter-spacing: .08em; text-transform: none; color: rgba(242, 237, 228, .5); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  width: 100%;
  padding: .9rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ivory);
  background: var(--ink-2);
  border: 1px solid rgba(242, 237, 228, .26);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form input:focus { border-color: var(--brass-soft); outline: none; }
.form input[aria-invalid="true"] { border-color: var(--erro); }
.form__erro { margin: 0; font-size: .84rem; line-height: 1.4; color: var(--erro); }
.form__consentimento { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.form__consentimento input {
  width: 1.15rem;
  height: 1.15rem;
  margin: .2rem 0 0;
  accent-color: var(--brass);
}
.form__consentimento label { font-size: .86rem; line-height: 1.5; color: var(--ivory-dim); }
.form__consentimento a { color: var(--ivory); }
.form__consentimento .form__erro { grid-column: 1 / -1; }
.form .btn--solid { width: 100%; }
.form__status { margin: 0; min-height: 1.4em; font-size: .88rem; color: var(--ivory-dim); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-resultado {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--ivory-faint);
  background: var(--ink);
}
.form-resultado h3 {
  margin: 0 0 .8rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}
.form-resultado p { margin: 0 0 1.4rem; color: var(--ivory-dim); }
.form-resultado--ok h3 { color: var(--ok); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--ivory);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.whatsapp svg { width: 20px; height: 20px; flex: none; }
.whatsapp.aguardando { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- Rodapé ---------- */
.footer {
  padding-block: 3rem 6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
  font-size: .8rem;
  color: var(--ivory-dim);
  border-top: 1px solid var(--ivory-faint);
}
.footer p { margin: 0; }
.footer__creci { color: var(--ivory); }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 4rem 5rem;
  background: rgba(10, 9, 8, .96);
}
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: .6rem 1rem;
  opacity: .75;
  transition: opacity .3s;
}
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1.2rem; margin: 0; font-size: .7rem; letter-spacing: .3em; color: var(--ivory-dim); }

@media (max-width: 1024px) {
  .topnav { display: none; }
  .feature, .place { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media { aspect-ratio: 4 / 3; }
  .spec__table { grid-template-columns: repeat(2, 1fr); }
  .spec__table > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .spec__table > div:nth-child(2n) { padding-left: 1.6rem; border-left: 1px solid var(--ivory-faint); }
  .cta__body { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .brand { font-size: 1.2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 1.1rem 0 1.3rem; }
  .stats > div + div { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(2n) { padding-left: 1.2rem; border-left: 1px solid var(--ivory-faint); }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--ivory-faint); }
  .scroll-cue { display: none; }
  .list { grid-template-columns: 1fr; }
  .spec__table dd { font-size: 1.7rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item, .gallery__item.is-tall { grid-column: span 1; grid-row: span 1; }
  .gallery__item.is-wide { grid-column: span 2; grid-row: span 2; }
  .lightbox { padding: 3.5rem .5rem; }
  .whatsapp span { display: none; }
  .whatsapp { padding: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-lines .w { opacity: 1; }
}
