:root {
  --ink: #0d0d0d;
  --ink-2: #1c1c1b;
  --paper: #f7f6f3;
  --white: #ffffff;
  --grey-1: #e7e6e2;
  --grey-2: #b9b8b3;
  --grey-3: #75746f;
  --line: rgba(13, 13, 13, .14);
  --line-light: rgba(255, 255, 255, .22);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --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; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; font-variation-settings: "SOFT" 30; }
h1 { font-size: clamp(48px, 8.4vw, 132px); line-height: .95; }
h2 { font-size: clamp(38px, 5.4vw, 80px); line-height: 1; }
h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 13px; color: var(--grey-3); }

/* Botões: cantos retos, borda fina */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; border: 1px solid currentColor; border-radius: 0;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.hero .btn:focus-visible, .final .btn:focus-visible { outline-color: var(--white); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav-logo { position: relative; display: block; width: 46px; height: 52px; flex: none; }
.nav-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s; }
.logo-dark { opacity: 0; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; opacity: .85; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.btn-nav { min-height: 40px; padding: 0 18px; font-size: 14px; color: var(--white); }
.btn-nav:hover { background: var(--white); color: var(--ink); }
.nav.is-solid { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
.nav.is-solid .logo-light { opacity: 0; }
.nav.is-solid .logo-dark { opacity: 1; }
.nav.is-solid .btn-nav { color: var(--white); background: var(--ink); border-color: var(--ink); }
.nav.is-solid .btn-nav:hover { background: transparent; color: var(--ink); }

/* HERO */
.hero { position: relative; height: 460vh; background: var(--ink); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--white); }
.hero-canvas, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { display: none; }
.hero-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .34); }
.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(72px, 12vh, 140px);
  max-width: 980px;
}
.hero-copy .lead { margin-top: 26px; max-width: 560px; font-size: clamp(16px, 1.35vw, 19px); color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-line {
  position: absolute; left: var(--gutter); bottom: clamp(72px, 14vh, 160px);
  max-width: 15ch; font-family: var(--serif); font-size: clamp(34px, 4.6vw, 72px); line-height: 1.04;
  opacity: 0;
}
.beat-3 { left: auto; right: var(--gutter); text-align: right; max-width: 13ch; }
.hero-hint {
  position: absolute; right: var(--gutter); bottom: 34px;
  display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255, 255, 255, .8);
}
.hero-hint i { display: block; width: 1px; height: 46px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.hero-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--white); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .14); }
.hero-progress i { display: block; height: 100%; width: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }

/* AMBIENTES: trilho horizontal */
.ambientes { background: var(--paper); padding-top: clamp(96px, 14vh, 160px); }
.amb-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vh, 72px); }
.amb-head p { max-width: 420px; justify-self: end; color: var(--grey-3); }
.amb-pin { overflow: hidden; }
.amb-track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter) clamp(80px, 12vh, 140px); width: max-content; will-change: transform; }
.amb-panel { width: min(74vw, 980px); display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: end; }
.amb-media { margin: 0; overflow: hidden; height: min(68vh, 640px); background: var(--grey-1); }
.amb-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.amb-text { padding-bottom: 6px; border-top: 1px solid var(--ink); padding-top: 18px; }
.amb-n { display: block; font-family: var(--serif); font-size: 15px; color: var(--grey-3); margin-bottom: 18px; }
.amb-text p { margin-top: 14px; color: #3b3b39; max-width: 34ch; }

/* COMO FUNCIONA */
.como { background: var(--ink); color: var(--white); padding: clamp(96px, 16vh, 180px) 0; }
.steps { list-style: none; padding: 0; margin: clamp(48px, 8vh, 96px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.step { padding: 30px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-light); }
.step-n { display: block; font-family: var(--serif); font-size: clamp(64px, 7vw, 112px); line-height: 1; color: var(--grey-2); margin-bottom: 26px; }
.step p { margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: 16px; }
.como-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: clamp(56px, 9vh, 100px); padding-top: 28px; border-top: 1px solid var(--line-light); }
.como-notes p { color: rgba(255, 255, 255, .78); max-width: 46ch; }

/* SIMULAÇÕES */
.sim { background: var(--paper); padding-top: clamp(96px, 14vh, 160px); }
.sim-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vh, 72px); }
.sim-head p { max-width: 440px; justify-self: end; color: var(--grey-3); }
.morph { position: relative; height: 300vh; }
.morph-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.morph-canvas, .morph-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.morph-fallback { display: none; }
.morph-caption {
  position: absolute; left: var(--gutter); bottom: 36px; right: var(--gutter);
  display: flex; align-items: center; gap: 20px; color: var(--white);
}
.morph-caption p { font-size: 15px; background: rgba(13, 13, 13, .55); padding: 10px 14px; }
.morph-state { font-family: var(--serif); font-size: clamp(34px, 4vw, 60px); line-height: 1; min-width: 4.5ch; text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }

.gallery { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(96px, 14vh, 160px); }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 14px 18px 14px 0; margin-right: 22px; font: 500 15px/1 var(--sans); color: var(--grey-3); cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.viewer { position: relative; aspect-ratio: 16 / 9; background: var(--grey-1); overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s var(--ease); }
.slide.is-on img { transform: scale(1); }
.slide figcaption { position: absolute; left: 0; bottom: 0; padding: 14px 18px; background: var(--paper); font-size: 15px; max-width: 80%; }
.sim-note { margin-top: 14px; font-size: 13px; color: var(--grey-3); }

/* RESERVE */
.reserve { background: var(--white); padding: clamp(96px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.reserve-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.reserve-intro p { margin-top: 22px; color: var(--grey-3); max-width: 36ch; }
.legend { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; font-size: 15px; }
.legend li { display: flex; align-items: center; gap: 12px; }
.dot { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--ink); }
.dot-free { background: var(--white); }
.dot-hold { background: repeating-linear-gradient(45deg, var(--ink) 0 1.5px, transparent 1.5px 5px); }
.dot-booked { background: var(--ink); }

.cal { border: 1px solid var(--ink); padding: 22px; }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-family: var(--serif); font-size: 26px; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; background: none; border: 1px solid var(--line); font-size: 18px; cursor: pointer; border-radius: 0; color: var(--ink); }
.cal-nav:hover:not(:disabled) { border-color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 12px; color: var(--grey-3); padding-bottom: 8px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font: 500 15px/1 var(--sans); background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0; cursor: pointer; padding: 0; position: relative;
  transition: background .2s, color .2s, border-color .2s;
}
.cal-day:hover:not(:disabled) { border-color: var(--ink); }
.cal-day.is-empty { border: 0; background: none; cursor: default; }
.cal-day.is-past { color: var(--grey-2); background: var(--paper); border-color: transparent; cursor: not-allowed; }
.cal-day.is-booked { background: var(--ink); color: var(--grey-3); border-color: var(--ink); cursor: not-allowed; text-decoration: line-through; }
.cal-day.is-hold { background: repeating-linear-gradient(45deg, rgba(13,13,13,.16) 0 1.5px, transparent 1.5px 6px), var(--white); cursor: not-allowed; color: var(--grey-3); }
.cal-day.is-selected { background: var(--ink); color: var(--white); border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; background: currentColor; }
.cal-status { margin-top: 14px; font-size: 13px; color: var(--grey-3); min-height: 1.4em; }
.cal.is-loading .cal-grid { opacity: .4; }

.booking { display: grid; gap: 14px; }
.booking-date { font-size: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.booking-date strong { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.booking label { display: grid; gap: 6px; font-size: 13px; color: var(--grey-3); }
.booking input, .booking select, .booking textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 12px; width: 100%;
}
.booking input:focus, .booking select:focus, .booking textarea:focus { border-color: var(--ink); outline: none; }
.booking .btn { margin-top: 6px; width: 100%; }
.form-msg { font-size: 14px; min-height: 1.2em; }

/* A CASA */
.casa { background: var(--paper); padding: clamp(96px, 14vh, 160px) 0; }
.casa-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.casa-img { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.casa-img img { width: 100%; height: 115%; object-fit: cover; }
.casa-text p { margin-top: 20px; color: #3b3b39; max-width: 46ch; }
.link-arrow { display: inline-block; margin-top: 30px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.link-arrow::after { content: " \2192"; }

/* CTA FINAL */
.final { position: relative; min-height: 90vh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--ink); }
.final-bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.final-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.final-copy { position: relative; }
.final-copy h2 { max-width: 12ch; font-size: clamp(48px, 7.6vw, 120px); line-height: .95; }
.final-copy p { margin: 24px 0 32px; font-size: 18px; color: rgba(255, 255, 255, .85); }

/* FOOTER */
.foot { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.foot address { font-style: normal; }
.foot-links { display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 12px; color: rgba(255, 255, 255, .5); }

/* Revelação de texto */
.reveal { opacity: 0; transform: translateY(28px); }

/* RESPONSIVO */
@media (max-width: 1080px) {
  .reserve-grid { grid-template-columns: 1fr 1fr; }
  .reserve-intro { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
  .nav-logo { width: 38px; height: 44px; }
  .hero { height: 380vh; }
  .hero-copy { bottom: 90px; }
  .hero-hint span { display: none; }
  .beat-3 { left: var(--gutter); right: var(--gutter); text-align: left; }
  .amb-head, .sim-head { grid-template-columns: 1fr; gap: 18px; }
  .amb-head p, .sim-head p { justify-self: start; }
  .amb-track { flex-direction: column; width: auto; gap: 56px; }
  .amb-panel { width: 100%; grid-template-columns: 1fr; gap: 18px; }
  .amb-media { height: auto; aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0 18px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line-light); }
  .step-n { font-size: 56px; margin-bottom: 14px; }
  .como-notes { grid-template-columns: 1fr; }
  .morph { height: 220vh; }
  .morph-caption { flex-direction: column; align-items: flex-start; gap: 10px; bottom: 24px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; }
  .viewer { aspect-ratio: 4 / 5; }
  .slide figcaption { position: static; max-width: none; padding: 12px 0 0; background: none; }
  .slide img { height: calc(100% - 52px); }
  .reserve-grid { grid-template-columns: 1fr; }
  .cal { padding: 16px; }
  .casa-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero, .morph { height: auto; }
  .hero-stage, .morph-stage { position: relative; }
  .hero-canvas, .morph-canvas { display: none; }
  .hero-fallback, .morph-b { display: block; }
  .hero-line { display: none; }
  .reveal { opacity: 1; transform: none; }
  .amb-media img { transform: none; }
}

.amb-media { position: relative; }
.amb-note { position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: rgba(13, 13, 13, .6); color: var(--white); font-size: 12px; }

@media (min-width: 821px) {
  .amb-head { grid-template-columns: auto 1fr; }
  .amb-head h2 { white-space: nowrap; }
}

.casa-img { aspect-ratio: 3 / 2; }
.casa-img img { height: 100%; }

.beat-3 { max-width: 17ch; }
