/*
 * Modelo "Galeria imersiva" (claro, serifado, fotos grandes, texto mínimo). Uma página em faixas: a foto manda e o texto
 * respira. Só CSS e um JS mínimo (sem GSAP, sem Lenis). Fontes auto-hospedadas e opcionais: sem os woff2 em
 * vendor/fontes, cai em Georgia e Segoe UI/system-ui.
 *
 * Contraste (medido): ink #1C1B18 sobre creme #F4F0E9 = 15:1; texto suave #5E584D sobre o creme = 6,2:1; bronze
 * #7A5C2E sobre o creme = 5,4:1. Sobre foto, só branco, sempre sobre um degradê escuro na base da foto.
 */

:root {
  --creme: #f4f0e9;
  --creme-2: #eae4d9;
  --papel: #fbf9f5;
  --ink: #1c1b18;
  --suave: #5e584d;
  --linha: rgba(28, 27, 24, .16);
  --bronze: #7a5c2e;
  --erro: #a3271b;
  --ok: #2c6b43;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(18px, 5vw, 80px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -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; }

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ---------- Barra do topo ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem var(--gutter);
  color: var(--ink);
  transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease), box-shadow .5s;
}
.topbar.is-solid {
  color: var(--ink);
  background: rgba(244, 240, 233, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding-block: .85rem;
  box-shadow: 0 1px 0 var(--linha);
}
.brand {
  min-width: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__cta {
  flex: none;
  padding: .55rem 0;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.topbar a:focus-visible { outline-color: currentColor; }

/* ---------- Capa: título grande no papel e a foto larga logo abaixo ---------- */
.hero { text-align: center; }
.hero__content { max-width: 66rem; margin: 0 auto; padding: clamp(6.5rem, 15vh, 9rem) var(--gutter) clamp(2rem, 5vh, 3.4rem); }
.hero .eyebrow { margin-bottom: 1.3rem; }
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.6vw, 6rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero__price { margin: 1.4rem 0 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: .04em; color: var(--bronze); }
.hero__media { position: relative; height: clamp(340px, 66vh, 760px); height: clamp(340px, 66svh, 760px); overflow: hidden; background: var(--creme-2); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Abertura ---------- */
.intro { padding: clamp(6rem, 15vw, 13rem) var(--gutter); }
.intro__inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.rule { display: block; width: 3.2rem; height: 1px; margin: 0 auto 2.6rem; background: var(--bronze); }
.intro__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.65rem, 3.3vw, 2.85rem);
  line-height: 1.28;
  letter-spacing: -.005em;
  text-wrap: balance;
}

/* ---------- Passeio: uma faixa por ambiente ---------- */
.bands { display: grid; gap: 6px; }
.band {
  position: relative;
  margin: 0;
  height: clamp(420px, 84vh, 940px);
  height: clamp(420px, 84svh, 940px);
  overflow: hidden;
  color: #fff;
  background: #2a2823;
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 7, 5, .78) 100%);
  pointer-events: none;
}
.band__cap {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.6rem, 5vh, 3.4rem);
  display: grid;
  gap: .35rem;
  max-width: 34rem;
}
.band--direita .band__cap { margin-left: auto; text-align: right; }
.band__num { font-size: .66rem; letter-spacing: .32em; color: rgba(255, 255, 255, .86); }
.band__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.band__text { font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .94); max-width: 38ch; }
.band--direita .band__text { margin-left: auto; }
@supports (animation-timeline: view()) {
  .band__media img { animation: desliza linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes desliza { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1) translateY(3%); } }
}

/* ---------- Destaques: texto curto no centro e uma foto larga ---------- */
.essay { padding: clamp(5rem, 11vw, 9rem) 0 0; }
.essay__text { max-width: 46rem; margin: 0 auto; padding-inline: var(--gutter); text-align: center; }
.essay__title {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.essay__text p:not(.eyebrow) { margin: 0 auto; max-width: 40rem; color: var(--suave); font-size: 1.04rem; }
.essay__itens {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.essay__itens li + li::before { content: "·"; margin: 0 .9rem; color: var(--bronze); }
.essay__photo {
  margin: clamp(2.6rem, 5vw, 4.2rem) auto 0;
  width: min(100% - 2 * var(--gutter), 1320px);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--creme-2);
}
.essay__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Números ---------- */
.numbers { margin-top: clamp(5rem, 11vw, 9rem); padding: clamp(4rem, 8vw, 6.5rem) var(--gutter); background: var(--creme-2); text-align: center; }
.numbers .eyebrow { margin-bottom: 2.6rem; }
.numbers__grid {
  margin: 0 auto;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 2.2rem 0;
}
.numbers__grid > div { padding: .4rem 1.2rem; min-width: 0; }
.numbers__grid > div + div { border-left: 1px solid var(--linha); }
.numbers__grid dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.numbers__grid small { font-size: .5em; color: var(--suave); }
.numbers__grid dt { margin-top: .6rem; font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--suave); }
.numbers__grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; }

/* ---------- Galeria em colunas ---------- */
.gallery { max-width: 1500px; margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
.gallery__head { text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.gallery__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; }
.gallery__grid { columns: 3; column-gap: 10px; }
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: var(--creme-2);
  break-inside: avoid;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: auto; transition: transform 1.1s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.04); }

/* ---------- Visita ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; background: var(--papel); }
.visit__photo { position: relative; min-height: 100vh; min-height: 100svh; }
.visit__photo img { position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; object-fit: cover; }
.visit__panel { align-self: center; max-width: 34rem; width: 100%; padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); }
.visit__title {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.visit__nota { margin: 0 0 2.2rem; color: var(--suave); }
.visit__ou { margin: 1.6rem 0 0; font-size: .92rem; color: var(--suave); }
.visit__ou a { color: var(--ink); text-underline-offset: 4px; }

/* Formulário: linhas finas, sem caixa */
.form { display: grid; gap: 1.5rem; }
.form__campo { display: grid; gap: .3rem; }
.form__campo label {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--suave);
}
.form__opcional { letter-spacing: .06em; text-transform: none; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  width: 100%;
  padding: .7rem 0;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(28, 27, 24, .5);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form input:focus { outline: none; border-bottom-color: var(--bronze); box-shadow: 0 1px 0 var(--bronze); }
.form input[aria-invalid="true"] { border-bottom-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.1rem; height: 1.1rem; margin: .22rem 0 0; accent-color: var(--ink); }
.form__consentimento label { font-size: .84rem; line-height: 1.55; color: var(--suave); }
.form__consentimento a { color: var(--ink); }
.form__consentimento .form__erro { grid-column: 1 / -1; }
.form__status { margin: 0; min-height: 1.4em; font-size: .88rem; color: var(--suave); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2rem;
  font: inherit;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn--solid { width: 100%; background: var(--ink); color: var(--creme); }
.btn--solid:hover { background: var(--bronze); border-color: var(--bronze); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-resultado { padding: 1.6rem 0; border-top: 1px solid var(--linha); }
.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(--suave); }
.form-resultado--ok h3 { color: var(--ok); }
.form-resultado .btn { width: auto; }

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

/* ---------- 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.2rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--creme);
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  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; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4rem 5rem; background: rgba(12, 11, 9, .96); }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-family: var(--serif); font-size: 2.6rem; line-height: 1; cursor: pointer; padding: .6rem 1rem; opacity: .8; transition: opacity .3s; }
.lightbox button:hover { opacity: 1; }
.lightbox button:focus-visible { outline-color: #fff; }
.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: rgba(255, 255, 255, .8); }

/* ---------- Aparição suave (só com JS e movimento permitido) ---------- */
.js .aparece { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .aparece.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .gallery__grid { columns: 2; }
  .essay__photo { aspect-ratio: 16 / 9; }
  .visit { grid-template-columns: 1fr; }
  .visit__photo { min-height: 0; height: 56vh; height: 56svh; }
  .visit__photo img { position: absolute; inset: 0; height: 100%; }
  .visit__panel { max-width: 38rem; margin: 0 auto; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .brand { font-size: 1.25rem; }
  .band { height: clamp(380px, 72svh, 640px); }
  .band--direita .band__cap { margin-left: 0; text-align: left; }
  .band--direita .band__text { margin-left: 0; }
  .essay__photo { aspect-ratio: 4 / 3; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__grid > div + div { border-left: 0; }
  .numbers__grid > div:nth-child(2n) { border-left: 1px solid var(--linha); }
  .gallery__grid { column-gap: 6px; }
  .gallery__item { margin-bottom: 6px; }
  .lightbox { padding: 3.5rem .5rem; }
  .whatsapp span { display: none; }
  .whatsapp { padding: .9rem; }
}

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