/* CASA 77 — Private Real Estate. Protótipo cinematográfico seguindo o prompt à risca. */

:root {
  --font-heading: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --bg-site: #f7f4e9;
  --bg-escuro: #14100E;
  --bg-creme: #f5f2e6;
  --marrom-texto: #2c231d;
  --marrom-medio: #5e4a3d;
  --dourado: #cda87c;
  --cinematic-grade: sepia(0.18) saturate(0.82) contrast(1.06) brightness(0.97);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  background: var(--bg-site);
  color: var(--marrom-texto);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* ===== FILM GRAIN ===== */
.film-grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grao 0.5s steps(1) infinite;
}
@keyframes grao {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ===== CURSOR PERSONALIZADO ===== */
.cursor {
  position: fixed;
  top: -8px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.25s ease, height 0.25s ease, top 0.25s ease, left 0.25s ease, background 0.25s ease, border 0.25s ease;
  display: none;
}
.cursor.hover {
  width: 60px;
  height: 60px;
  top: -30px;
  left: -30px;
  background: transparent;
  border: 1px solid #fff;
}
@media (hover: hover) and (pointer: fine) {
  body.cursor-ativo, body.cursor-ativo a, body.cursor-ativo button { cursor: none; }
  body.cursor-ativo .cursor { display: block; }
}

/* ===== 1. HERO ===== */
.hero-wrapper {
  background: #f7f5ee;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.hero-section {
  position: relative;
  width: calc(100vw - 2rem);
  height: calc(100vh - 2rem);
  border-radius: 1.5rem;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75) contrast(1.15) saturate(1.1);
  opacity: 0;
  z-index: 1;
}
.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grao 0.6s steps(1) infinite;
}
.light-leak {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(60% 45% at 70% 0%, rgba(255, 190, 120, 0.35), transparent 70%);
  mix-blend-mode: screen;
  animation: lightPulse 8s ease-in-out infinite alternate;
}
@keyframes lightPulse {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 0.9; transform: scale(1.08); }
}
.giant-title {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 11vw;
  letter-spacing: -0.04em;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  will-change: transform;
}
.mansion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  filter: brightness(0.75) saturate(1.1);
  opacity: 0;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 18, 14, 0.62), transparent 45%),
    radial-gradient(125% 115% at 50% 38%, transparent 52%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 32%);
}
.luxury-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  opacity: 0;
}
.brand { display: flex; flex-direction: column; gap: 0.3rem; }
.brand-logo { font-family: var(--font-heading); font-weight: 500; letter-spacing: 0.22em; }
.brand-kicker { font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.hero-nav { display: flex; gap: 2.5rem; }
.hero-nav a {
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}
.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.hero-nav a:hover { color: #fff; }
.hero-nav a:hover::after { transform: scaleX(1); }
.hero-slogan {
  position: absolute;
  bottom: calc(4rem + 5.5rem);
  left: 6vw;
  z-index: 5;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 4rem);
  line-height: 1.05;
  opacity: 0;
}
.slogan-linha { display: block; }
.slogan-topo { display: flex; align-items: baseline; gap: 1.5rem; }
.ano { font-size: 0.55em; opacity: 0.8; }
.explore-btn {
  position: absolute;
  bottom: 4rem;
  left: 6vw;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-creme);
  color: var(--bg-escuro);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 3rem;
  padding: 1.1rem 2.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}
.explore-btn svg { width: 16px; height: 16px; }
.explore-btn:hover { transform: scale(0.97); background: #ffffff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.promo-card {
  position: absolute;
  bottom: 4rem;
  right: 2rem;
  z-index: 5;
  width: 460px;
  max-width: calc(100vw - 4rem);
  display: flex;
  gap: 1.1rem;
  background: var(--bg-creme);
  border-radius: 1.5rem;
  padding: 1rem;
  transition: transform 0.35s ease;
  opacity: 0;
}
.promo-card:hover { transform: translateY(-6px); }
.promo-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 1rem; filter: var(--cinematic-grade); }
.promo-card h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.4rem; }
.promo-card p { font-size: 0.88rem; letter-spacing: 0.04em; color: var(--marrom-medio); }

/* ===== 2. MANIFESTO + CARROSSEL ===== */
.s2-space { height: 150vh; }
.section-2 {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5vh;
  padding: 6vh 6vw 4vh;
  background:
    repeating-linear-gradient(to right, rgba(44, 35, 29, 0.045) 0 1px, transparent 1px 9vw),
    var(--bg-creme);
  overflow: hidden;
  will-change: transform;
}
.s2-sub { font-size: 0.85rem; letter-spacing: 0.08em; color: var(--marrom-medio); opacity: 0; }
.s2-quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 1.05;
  color: var(--marrom-texto);
  opacity: 0;
}
.s2-quote em { font-style: italic; }
.text-line {
  display: block;
  background: linear-gradient(to right, #2c231d 50%, #978b80 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.s2-info {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--marrom-medio);
}
.s2-carousel { overflow: hidden; margin-inline: -6vw; opacity: 0; }
.s2-track { display: flex; width: max-content; animation: s2rolar 60s linear infinite; }
.s2-carousel:hover .s2-track { animation-play-state: paused; }
@keyframes s2rolar { to { transform: translateX(-50%); } }
.s2-track img {
  height: 28vh;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  margin-right: 1rem;
  filter: var(--cinematic-grade) saturate(0.4);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.s2-track img:hover { filter: var(--cinematic-grade); transform: scale(1.03); }

/* ===== 3. SPLIT-SCREEN ===== */
.split-screen-pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-creme);
  position: relative;
  z-index: 2;
  will-change: opacity, filter;
}
.split-top-video { position: relative; height: 40vh; overflow: hidden; }
.split-top-video video, .split-top-video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--cinematic-grade);
}
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.split-video-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.split-labels {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
}
.split-video-texto { position: absolute; left: 3rem; bottom: 1.5rem; color: #fff; }
.split-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(4rem, 10vw, 8rem); line-height: 0.95; }
.split-sub { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; margin-top: 0.6rem; }
.split-bottom { height: 60vh; overflow: hidden; }
.s4-scroll-track { display: flex; width: max-content; height: 100%; will-change: transform; }
.s4-slide {
  width: 100vw;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 3rem;
  padding: 0 5vw;
}
.s4-divisor { width: 1px; height: 70%; background: rgba(44, 35, 29, 0.15); }
.s4-img-wrap { border-radius: 12px; overflow: hidden; height: 40vh; }
.s4-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--cinematic-grade);
  transform: scale(1.02);
  transition: transform 0.6s ease, filter 0.6s ease;
  will-change: transform;
}
.s4-img-wrap:hover img { transform: scale(1.08); filter: none; }
.s4-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.05; }
.s4-title em { color: var(--marrom-medio); }
.s4-desc { margin-top: 1.2rem; color: var(--marrom-medio); max-width: 46ch; }
.s4-hr { border: 0; border-top: 1px solid rgba(44, 35, 29, 0.15); margin: 1.6rem 0; }
.s4-features { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.s4-features li { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
.s4-features span { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--marrom-medio); }
.s4-features strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; }

/* ===== 4. EXPERIÊNCIA ===== */
.exp-section {
  position: relative;
  z-index: 3;
  background: var(--bg-escuro);
  border-radius: 2rem 2rem 0 0;
  margin-top: -8vh;
  color: var(--bg-creme);
}
.exp-card { height: 100vh; display: grid; grid-template-columns: 40% 60%; }
.exp-esquerda { position: relative; display: flex; align-items: center; padding: 0 4vw; }
.exp-progress {
  position: absolute;
  left: 4vw;
  top: 15vh;
  bottom: 15vh;
  width: 2px;
  background: rgba(245, 242, 230, 0.15);
}
.exp-progress-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--dourado); transform: scaleY(0); transform-origin: top; }
.exp-chapters { display: grid; margin-left: 3rem; }
.exp-chapter { grid-area: 1 / 1; opacity: 0; }
.exp-chapter[data-cap="0"] { opacity: 1; }
.exp-chapter h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.02;
}
.exp-chapter p { margin-top: 1.4rem; color: rgba(245, 242, 230, 0.8); max-width: 44ch; }
.exp-direita { position: relative; overflow: hidden; }
.exp-big {
  position: absolute;
  top: 12vh;
  bottom: 12vh;
  left: 20%;
  right: 4vw;
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
}
.exp-big .slice {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: var(--cinematic-grade);
  will-change: transform;
}
.exp-small {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  filter: var(--cinematic-grade);
  opacity: 0;
  z-index: 2;
}
.exp-small[data-cap="0"] { opacity: 1; }

/* ===== 5. FAQ ===== */
.faq-section { background: var(--bg-escuro); border-radius: 0 0 2rem 2rem; padding: 12vh 5vw; position: relative; z-index: 3; }
.faq-lista { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(245, 242, 230, 0.1); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: left;
  padding: 2.2rem 0;
  color: var(--bg-creme);
}
.faq-q > span:first-child { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.faq-icone { font-size: 2rem; color: var(--dourado); transition: transform 0.35s ease; flex-shrink: 0; }
.faq-item.ativo .faq-icone { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.faq-a p { padding: 0 0 2.2rem; color: rgba(245, 242, 230, 0.75); max-width: 65ch; }
.faq-item.ativo .faq-a { max-height: 500px; }

/* ===== 6. PRIVATE SELECTION ===== */
.private-selection {
  background: var(--bg-creme);
  color: var(--bg-escuro);
  text-align: center;
  padding: 15vw 5vw;
}
.private-selection h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3rem, 6vw, 5rem); }
.private-selection p { max-width: 60ch; margin: 1.8rem auto 2.6rem; color: var(--marrom-medio); }
.vip-btn {
  display: inline-block;
  border: 1px solid var(--bg-escuro);
  border-radius: 3rem;
  padding: 1.1rem 2.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.35s ease, color 0.35s ease;
}
.vip-btn:hover { background: var(--bg-escuro); color: var(--bg-creme); }

/* ===== 7. FOOTER MONUMENTAL ===== */
.footer-mon {
  position: relative;
  height: 100vh;
  background: var(--bg-escuro);
  color: var(--bg-creme);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 22vw;
  white-space: nowrap;
  opacity: 0.03;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.footer-mon.local-ativo .watermark { opacity: 0; }
.local-fotos img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  height: 60vh;
  object-fit: cover;
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: var(--cinematic-grade);
  pointer-events: none;
}
.local-fotos img.ativo { opacity: 0.4; }
.locais { position: relative; z-index: 2; list-style: none; text-align: center; }
.locais li {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.35;
  opacity: 0.5;
  transition: opacity 0.35s ease;
  cursor: pointer;
}
.locais li:hover { opacity: 1; }
.footer-base {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  right: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-base span, .footer-base a { opacity: 0.5; transition: opacity 0.3s ease; }
.footer-base a:hover { opacity: 1; }
.footer-base nav { display: flex; gap: 2rem; }

/* ===== RESPONSIVO ===== */
.aviso-prototipo { opacity: 0.35; font-size: 0.65rem; }

@media (max-width: 900px) {
  .luxury-header { padding: 1.5rem; }
  .hero-nav { display: none; }
  .giant-title { font-size: 15vw; }
  .promo-card { display: none; }
  .hero-slogan { bottom: 18vh; }
  .s2-quote { font-size: clamp(2rem, 8vw, 3rem); }
  .s2-info { flex-wrap: wrap; }
  .s4-slide { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.5rem 6vw; align-content: center; }
  .s4-divisor { width: 70%; height: 1px; justify-self: center; }
  .s4-img-wrap { height: 26vh; }
  .s4-features strong { font-size: 1.15rem; }
  .split-video-texto { left: 1.5rem; }
  .exp-card { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .exp-esquerda { padding: 2rem 6vw; }
  .exp-progress { left: 2vw; }
  .exp-chapters { margin-left: 1.5rem; }
  .exp-chapter h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .exp-big { left: 6vw; right: 6vw; top: 4vh; bottom: 4vh; }
  .exp-small { display: none; }
  .footer-base { left: 1.5rem; right: 1.5rem; flex-wrap: wrap; gap: 1rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .film-grain, .noise-overlay, .light-leak, .cursor { display: none !important; }
  .s2-track { animation: none; }
  .hero-bg, .mansion, .giant-title, .hero-slogan, .explore-btn, .promo-card, .luxury-header,
  .s2-sub, .s2-quote, .s2-carousel { opacity: 1 !important; }
  .giant-title { transform: translate(-50%, -50%) !important; }
  .text-line { background-position: 0 0; }
  .light-leak { display: none; }
  .kenburns { animation: none; }
}
