/* === Tokens === */
:root {
  --bg: #F4EFE6;
  --paper: #FBF8F1;
  --ink: #1F1A14;
  --ink-2: #4A3F33;
  --muted: #7A6E5E;
  --line: #D8CFBE;
  --forest: #2C3E2E;
  --forest-deep: #1B2A1D;
  --clay: #8B6F47;
  --gold: #B89867;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --script: "Caveat", "Bradley Hand", cursive;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }

/* === Nav === */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  backdrop-filter: blur(8px);
  background: rgba(244, 239, 230, 0.0);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(244, 239, 230, 0.85);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; }
.nav__logo {
  height: 114px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .3s ease;
}
.nav.is-scrolled .nav__logo { filter: none; }
.nav__menu {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  transition: color .3s ease;
}
.nav.is-scrolled .nav__menu { color: var(--ink-2); }
.nav__menu a { position: relative; padding: 4px 0; }
.nav__menu a:hover { opacity: .7; }
@media (max-width: 720px) {
  .nav__menu { display: none; }
  .nav { justify-content: center; }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("assets/photos/IMG_8465.jpg") center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 0 var(--gutter);
  transform: translateY(-7vh);
}
.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 28px;
  opacity: 0.9;
}
.hero__eyebrow span + span::before {
  content: " · ";
  margin: 0 0.3em;
  opacity: 0.7;
}
@media (max-width: 720px) {
  .hero__eyebrow span { display: block; }
  .hero__eyebrow span + span { margin-top: 6px; }
  .hero__eyebrow span + span::before { content: ""; margin: 0; }
}
.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
@media (max-width: 720px) {
  .hero__title { font-size: clamp(73px, 18vw, 96px); }
}
.hero__title-script {
  font-family: var(--script);
  font-size: 0.5em;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  margin: -8px 0;
}
.hero__lede {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  margin: 36px auto 0;
  max-width: 540px;
  opacity: 0.95;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 13px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.hero__scroll span {
  width: 2px; height: 8px; background: #fff; border-radius: 1px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-6px); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* === Sections === */
.section {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0;
}
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.section--dark { background: var(--forest-deep); color: #EDE6D4; overflow: hidden; }
.section--dark .display { color: #FBF8F1; }
.section--cta { background: var(--forest-deep); color: #EDE6D4; overflow: hidden; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  margin: 0 0 20px;
}
.eyebrow--light { color: var(--gold); }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 32px;
}
.display--light { color: #FBF8F1; }
.lede { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 720px; }
.lede--light { color: #D6CDB8; }
.muted { color: var(--muted); font-size: 15px; }

/* === Two-column === */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.two-col--reverse .two-col__text { order: 2; }
.two-col--reverse .two-col__media { order: 1; }
.two-col__text p { color: var(--ink-2); margin: 0 0 18px; }
.two-col__text .pull {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin-top: 28px;
  border-left: 2px solid var(--clay);
  padding-left: 22px;
}
.two-col__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(1.02);
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse .two-col__text { order: 0; }
  .two-col--reverse .two-col__media { order: 0; }
  .two-col__media img { aspect-ratio: 4/3; }
}

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid rgba(216, 207, 190, 0.15);
}
.stat { text-align: center; }
.stat__value {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.stat__value span { font-size: 0.55em; margin-left: 4px; opacity: 0.8; }
.stat__label {
  font-size: 14px;
  line-height: 1.55;
  color: #C7BCA3;
  margin-top: 14px;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}
.section--dark .section__bg--canastra {
  position: absolute; inset: 0;
  background: url("assets/photos/IMG_8515.jpg") center/cover;
  opacity: 0.08;
  filter: grayscale(40%);
  z-index: 1;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 48px; }
}

/* === Distances + Awards === */
.distances {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.distances li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.distances__num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  min-width: 80px;
}

.awards {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.awards li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

/* === Poem === */
.section--poem {
  background: var(--paper);
  padding: clamp(96px, 13vw, 168px) 0;
  text-align: center;
}
.poem {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  border: none;
}
.poem p { margin: 0; }
.poem footer {
  margin-top: 36px;
  font-family: var(--body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
}
.poem--light { color: #FBF8F1; }
.poem--light footer { color: var(--gold); }

/* === Property grid === */
.section--property { background: var(--paper); }
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.property-card {
  text-align: center;
  padding: 48px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.property-card__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.property-card__unit {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 12px;
  font-weight: 500;
}
.property-card__label {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .property-grid { grid-template-columns: 1fr; }
}

/* === Exclusive (full-bleed) === */
.section--exclusive {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 90vh;
  background: var(--forest-deep);
  color: #EDE6D4;
}
.exclusive__media { position: relative; min-height: 60vh; }
.exclusive__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.exclusive__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 8vw, 120px) clamp(40px, 6vw, 80px);
}
.exclusive__text .display { margin-bottom: 24px; }
@media (max-width: 820px) {
  .section--exclusive { grid-template-columns: 1fr; }
  .exclusive__media { min-height: 50vh; }
}

/* === Works (benfeitorias) === */
.works {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.works__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.works__item--soon { background: transparent; border-style: dashed; }
.works__check {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.works__item--soon .works__check {
  background: transparent;
  color: var(--clay);
  border: 1px solid var(--clay);
}
.works__item strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.works__item span:not(.works__check) { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .works { grid-template-columns: 1fr; }
}

/* === CTA === */
.section--cta { padding: clamp(96px, 13vw, 160px) 0; text-align: center; }
.section__bg--cta {
  position: absolute; inset: 0;
  background: url("assets/photos/IMG_8515.jpg") center/cover;
  opacity: 0.12;
  filter: grayscale(50%);
}
.section--cta .eyebrow { margin-bottom: 28px; }
.cta { margin-top: 48px; }
.cta__lede {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: #D6CDB8;
  margin: 0 0 28px;
}
.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: #25D366;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.25);
}
.cta__button:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35); }
.cta__phone {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

/* === Footer === */
.footer {
  background: var(--ink);
  color: #BFB39C;
  padding: 64px var(--gutter) 48px;
  text-align: center;
}
.footer__inner { max-width: var(--max); margin: 0 auto; }
.footer__logo {
  height: 64px;
  width: auto;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer__brand {
  font-family: var(--display);
  font-size: 24px;
  color: #FBF8F1;
  margin: 0 0 6px;
}
.footer__sub {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 36px;
}
.footer__copy {
  font-size: 12px;
  color: #6B604F;
  margin: 0;
  letter-spacing: 0.06em;
}

/* === Floating WhatsApp === */
.float-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 60;
  transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.05); }

/* === Reveal on scroll === */
.section .display,
.section .lede,
.section .eyebrow,
.two-col__text p,
.two-col__media img,
.stat,
.property-card,
.works__item,
.poem {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.is-visible .display,
.is-visible .lede,
.is-visible .eyebrow,
.is-visible .two-col__text p,
.is-visible .two-col__media img,
.is-visible .stat,
.is-visible .property-card,
.is-visible .works__item,
.is-visible .poem {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero__bg { transform: none; }
}
