/* =========================================================
   Welber Imóveis — Landing Page
   Paleta: grafite quente, marfim e bronze
   ========================================================= */

:root {
  --ink: #14130f;
  --ink-soft: #2a2823;
  --ivory: #f6f2ea;
  --ivory-deep: #ece5d8;
  --stone: #8a8478;
  --bronze: #a8865a;
  --bronze-light: #c9ab80;
  --line: rgba(20, 19, 15, 0.12);
  --line-light: rgba(246, 242, 234, 0.2);
  --error: #a14a3b;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}
h1 em, h2 em { font-style: italic; color: var(--bronze); }
/* Evita palavra sozinha na última linha de títulos e parágrafos */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(880px, 100% - 48px); }
.section { padding: clamp(96px, 12vw, 160px) 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 24px;
}
.eyebrow.center { text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn-sm { padding: 12px 22px; }
.btn-block { width: 100%; }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: var(--bronze); color: var(--ivory); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--bronze); }
.btn-outline { border-color: currentColor; }
.btn-outline:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.link-arrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(0); }

/* ---------- Placeholders de imagem ---------- */
.media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #3a352c 0%, #1d1b17 60%, #2b2720 100%);
}
.media::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.35);
}
.media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--ivory);
  transition: background .5s var(--ease), color .5s var(--ease), height .5s var(--ease);
}
.site-header.scrolled {
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(12px);
  color: var(--ink);
  height: 70px;
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled .btn-outline:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}
.brand-name { font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: 0.04em; white-space: nowrap; }
.brand-name em { font-style: italic; color: var(--bronze-light); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a:not(.btn) {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .3s;
}
.nav a:not(.btn):hover { opacity: 1; }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  background: none; border: 0; padding: 0;
  flex-direction: column; justify-content: center; gap: 8px;
}
.nav-toggle span { display: block; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(72px, 11vh, 128px);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,19,15,.6) 0%, rgba(20,19,15,.2) 55%, rgba(20,19,15,0) 80%),
    linear-gradient(180deg, rgba(20,19,15,.5) 0%, rgba(20,19,15,.1) 35%, rgba(20,19,15,.8) 100%);
}
.hero-content { position: relative; }
.hero .eyebrow { color: var(--bronze-light); }
.hero h1 { font-size: clamp(44px, 5.8vw, 88px); }
.hero h1 em { color: var(--bronze-light); }
.hero-lead { max-width: 480px; margin: 32px 0 44px; font-size: 17px; opacity: .88; }
.hero-actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  right: 48px; bottom: 48px;
  width: 1px; height: 72px;
  background: var(--line-light);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute; inset: 0;
  background: var(--ivory);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- Manifesto ---------- */
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
  margin: 0 0 80px;
}
.manifesto-text em { color: var(--bronze); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stats div { padding: 36px 16px 0; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: 52px; font-weight: 300; line-height: 1; }
.stats span { display: block; margin-top: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }

/* ---------- Imóveis ---------- */
.imovel { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.imovel--alt { background: var(--ivory-deep); }

.imovel-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.imovel--alt .imovel-gallery { order: 2; }

.imovel-gallery[data-total] .media { cursor: zoom-in; }
.gallery-main { aspect-ratio: 4 / 3; }
.gallery-all {
  position: absolute;
  right: 16px; bottom: 16px;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(6px);
  border: 0;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.gallery-all:hover { background: var(--ink); color: var(--ivory); }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.gallery-thumbs .media { aspect-ratio: 4 / 3; cursor: pointer; }
.gallery-thumbs .media::before { font-size: 8px; }
.gallery-thumbs .media:hover img { transform: scale(1.06); }

.imovel-info { position: relative; }
.imovel-num {
  position: absolute;
  top: -0.55em; right: 0;
  font-family: var(--serif);
  font-size: clamp(100px, 12vw, 180px);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}
.imovel-info h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 28px; }
.imovel-desc { color: var(--ink-soft); max-width: 46ch; margin: 0 0 40px; }

.specs {
  list-style: none; margin: 0 0 32px; padding: 28px 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.specs li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.specs strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1; }
.specs span { display: block; margin-top: 8px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }

.features {
  list-style: none; margin: 0 0 44px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  font-size: 14px; color: var(--ink-soft);
}
.features li { position: relative; padding-left: 20px; }
.features li::before {
  content: "";
  position: absolute; left: 0; top: 0.8em;
  width: 8px; height: 1px;
  background: var(--bronze);
}

.imovel-cta { display: flex; align-items: center; gap: 28px; }
.codigo { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }

/* ---------- Turismo em Bertioga ---------- */
.turismo { border-top: 1px solid var(--line); }
.turismo-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}
.turismo-head h2 { font-size: clamp(40px, 5vw, 68px); }
.turismo-lead { margin: 0; max-width: 46ch; color: var(--ink-soft); font-size: 17px; }

.atracoes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.atracao {
  position: relative;
  min-width: 0;
  padding: 40px 36px 44px 0;
  border-bottom: 1px solid var(--line);
}
.atracao:not(:nth-child(3n + 1)) { padding-left: 36px; border-left: 1px solid var(--line); }
.atracao-foto { margin: 0 0 28px; }
.atracao-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ivory-deep);
}
.atracao-foto figcaption {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atracao-foto figcaption a { text-decoration: underline; text-decoration-color: var(--line); }
.swipe-hint { display: none; }
.atracao-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--bronze);
  margin-bottom: 28px;
}
.atracao-tag {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}
.atracao h3 { font-size: 28px; margin-bottom: 14px; }
.atracao p:not(.atracao-tag) { margin: 0; font-size: 15px; color: var(--ink-soft); }
.atracao .atracao-meta {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bronze);
}
.turismo-nota { margin: 32px 0 0; font-size: 13px; color: var(--stone); }

/* ---------- Experiência ---------- */
.experiencia { background: var(--ink); color: var(--ivory); }
.section-head { max-width: 720px; margin-bottom: 80px; }
.section-head h2 { font-size: clamp(40px, 5vw, 68px); }
.section-head h2 em { color: var(--bronze-light); }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.pilar { padding: 48px 40px 0 0; }
.pilar + .pilar { padding-left: 40px; border-left: 1px solid var(--line-light); }
.pilar-num { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--bronze-light); }
.pilar h3 { font-size: 30px; margin: 20px 0 16px; }
.pilar p { margin: 0; color: rgba(246, 242, 234, 0.7); font-size: 15px; }

/* ---------- Formulário ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.contato-intro h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 28px; }
.contato-intro > p { color: var(--ink-soft); max-width: 40ch; }
.contato-garantias { list-style: none; padding: 0; margin: 40px 0 0; }
.contato-garantias li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.form {
  background: #fff;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 40px 80px -40px rgba(20, 19, 15, 0.25);
}
.field { position: relative; margin: 0 0 28px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field label, .field legend {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
  padding: 0;
}
.field input, .field select {
  width: 100%;
  padding: 10px 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8478'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.field input:focus, .field select:focus { border-color: var(--bronze); }

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: block;
  padding: 13px 12px;
  text-align: center;
  font-size: 13px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.chip span:hover { border-color: var(--bronze); }
.chip input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--stone); margin-bottom: 8px; cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--ink); }
.consent a { text-decoration: underline; }

.error-msg { display: none; font-size: 12px; color: var(--error); margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: var(--error); }
.field.invalid .error-msg, .consent-error.visible { display: block; }
.consent-error { margin: 0 0 16px; }
.form .btn-block { margin-top: 24px; }
.form-note { margin: 16px 0 0; font-size: 12px; text-align: center; color: var(--stone); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding: 72px 0 48px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.brand--footer .brand-mark { border-color: var(--bronze-light); color: var(--bronze-light); }
.footer-info, .footer-copy { margin: 0; font-size: 12px; letter-spacing: 0.08em; color: rgba(246, 242, 234, 0.55); }

/* ---------- Botão "Voltar" (galeria e janela de interesse) ---------- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
}
.back-btn span { font-size: 16px; letter-spacing: 0; }
.back-btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.back-btn--light { color: var(--ivory); border-color: var(--line-light); }
.back-btn--light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ---------- Visualizador de fotos ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #0f0e0b;
  color: var(--ivory);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }

.lb-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line-light);
}
.lb-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-counter {
  min-width: 72px;
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(246, 242, 234, 0.7);
  font-variant-numeric: tabular-nums;
}

.lb-stage { position: relative; flex: 1; min-height: 0; }
.lb-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-x;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 24px 96px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.lb-slide img { width: 100%; height: 100%; object-fit: contain; }

.lb-nav {
  position: absolute;
  top: 50%;
  width: 56px; height: 56px;
  margin-top: -28px;
  display: grid;
  place-items: center;
  padding: 0 0 6px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--ivory);
  background: rgba(15, 14, 11, 0.5);
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background .3s, color .3s, opacity .3s;
}
.lb-nav:hover { background: var(--ivory); color: var(--ink); }
.lb-nav:disabled { opacity: 0; pointer-events: none; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-foot {
  display: flex;
  justify-content: center;
  padding: 16px 24px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light);
}

/* ---------- Janela de interesse ---------- */
.interest {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.interest[hidden] { display: none; }
.interest-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 15, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.interest-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.interest.open .interest-backdrop { opacity: 1; }
.interest.open .interest-panel { opacity: 1; transform: none; }

.interest-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 20px 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.interest-imovel { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.interest-thumb { flex: none; width: 112px; aspect-ratio: 4 / 3; }
.interest-thumb::before { content: none; }
.interest-imovel .eyebrow { margin: 0 0 6px; font-size: 10px; }
.interest-imovel h2 { font-size: 30px; margin-bottom: 4px; }
.interest-body { padding: 8px 40px 40px; }
.interest .form { padding: 24px 0 0; box-shadow: none; background: none; }
.interest .field-imovel { display: none; }

/* ---------- Botão flutuante ---------- */
.fab {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 40;
  padding: 16px;
  text-align: center;
  background: var(--ink);
  color: var(--ivory);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  transform: translateY(140%);
  transition: transform .5s var(--ease);
}
.fab.visible { transform: none; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 41;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(20, 19, 15, 0.45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -12px rgba(20, 19, 15, 0.5); }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .turismo-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .atracoes { grid-template-columns: repeat(2, 1fr); }
  .atracao:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .atracao:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
  .imovel-grid, .contato-grid { grid-template-columns: 1fr; }
  .imovel--alt .imovel-gallery { order: 0; }
  .imovel-num { top: -0.4em; }
  .pilares { grid-template-columns: 1fr; }
  .pilar, .pilar + .pilar { padding: 40px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .container, .narrow { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .eyebrow { font-size: 10px; letter-spacing: 0.24em; margin-bottom: 18px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    background: var(--ink);
    color: var(--ivory);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s var(--ease);
    z-index: -1;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { font-size: 14px; }
  .site-header.menu-open { color: var(--ivory); background: transparent; border-color: transparent; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 34px; height: 34px; font-size: 19px; }

  /* Abertura: no retrato a foto mostra mais prédios atrás do texto, então o
     degradê escurece mais a metade de baixo para o texto ficar legível */
  .hero { align-items: center; padding-top: calc(var(--header-h) + 32px); padding-bottom: 96px; }
  .hero-media img { object-position: 46% 50%; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(20,19,15,.5) 0%, rgba(20,19,15,.4) 25%, rgba(20,19,15,.6) 55%, rgba(20,19,15,.88) 100%);
  }
  .hero h1 { font-size: clamp(32px, 9.2vw, 46px); line-height: 1.08; }
  .hero-lead { font-size: 15px; margin: 20px 0 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-actions .link-arrow { align-self: center; }
  .scroll-cue { display: none; }

  /* Apresentação */
  .manifesto-text { margin-bottom: 48px; }
  .stats div { padding: 24px 6px 0; }
  .stats strong { font-size: 36px; }
  .stats span { font-size: 9px; letter-spacing: 0.14em; line-height: 1.5; }

  /* Imóveis */
  .imovel { padding: 64px 0 72px; }
  .imovel-grid { gap: 36px; }
  .gallery-main { margin-inline: -16px; }
  .gallery-thumbs { gap: 8px; margin-top: 8px; }
  .gallery-all { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 10px; letter-spacing: 0.14em; }
  .imovel-num { font-size: 96px; top: -0.3em; }
  .imovel-info h2 { font-size: 34px; margin-bottom: 20px; }
  .imovel-desc { margin-bottom: 32px; }
  .specs { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 24px 0; }
  .specs li:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs strong { font-size: 30px; }
  .features { grid-template-columns: 1fr; margin-bottom: 36px; }
  .imovel-cta { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }

  /* Turismo: carrossel horizontal */
  .turismo-lead { font-size: 15px; }
  .atracoes {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    border-top: 0;
  }
  .atracoes::-webkit-scrollbar { display: none; }
  .atracao,
  .atracao:not(:nth-child(3n + 1)),
  .atracao:nth-child(even) {
    flex: 0 0 82%;
    min-width: 0;
    padding: 0 22px 28px;
    background: #fff;
    border: 1px solid var(--line);
    scroll-snap-align: start;
  }
  .atracao-foto { margin: 0 -22px 20px; }
  .atracao-foto figcaption { padding: 0 22px; }
  .atracao-num { margin-bottom: 14px; }
  .swipe-hint {
    display: block;
    margin: -24px 0 16px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stone);
  }
  .swipe-hint span { color: var(--bronze); }
  .atracao h3 { font-size: 24px; }
  .turismo-nota { margin-top: 20px; font-size: 12px; }

  /* Experiência e contato */
  .section-head { margin-bottom: 40px; }
  .pilar, .pilar + .pilar { padding: 32px 0; }
  .contato-grid { gap: 40px; }
  .form { padding: 28px 20px; margin-inline: -4px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .chip span { padding: 12px 8px; }

  /* Barra "Agendar visita" divide o rodapé da tela com o WhatsApp */
  .fab { display: block; right: 80px; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
  .site-footer { padding-bottom: 100px; }

  /* Galeria em tela cheia */
  .lb-bar { padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); gap: 12px; }
  .lb-title { display: none; }
  .lb-counter { flex: 1; min-width: 0; }
  .lb-slide { padding: 0; }
  .lb-nav { display: none; }
  .lb-foot { padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .lb-cta { width: 100%; }

  /* Janela de interesse ocupa a tela inteira */
  .interest { padding: 0; align-items: stretch; }
  .interest-panel { width: 100%; height: 100dvh; max-height: none; transform: translateY(40px); }
  .interest-head { padding: 10px 16px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .interest-imovel { gap: 14px; margin-top: 14px; }
  .interest-thumb { width: 84px; }
  .interest-imovel h2 { font-size: 22px; }
  .interest-body { padding: 0 16px 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .interest .form { padding-top: 20px; margin: 0; }
}

@media (hover: none) {
  .lb-nav { display: none; }
}
