﻿/* ===== CENA 03 — IMÓVEIS (4 cards full-screen) ===== */

.secao-imoveis {
  position: relative;
  width: 100%;
  background: #0B1F3A; /* cor entre cards no momento do wipe */
}

.imovel-card {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #0B1F3A;
  will-change: transform;
}

/* CURTAIN — barra dourada que varre o card quando ele entra ativo */
.imovel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2E6FB8;
  z-index: 8;
  transform-origin: top;
  transform: scaleY(1);
  transition: transform .9s cubic-bezier(.7, 0, .25, 1);
  pointer-events: none;
}
.imovel-card.is-active::before {
  transform: scaleY(0);
  transform-origin: bottom;
}

/* Tag de transição: numerão "→ 02" gigante visível no momento do wipe */
.imovel-card::after {
  content: "0" attr(data-num);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-editorial, 'Fraunces'), serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32vw;
  color: #F5F2EA;
  z-index: 9;
  opacity: 1;
  transition: opacity .5s ease .15s;
  pointer-events: none;
  letter-spacing: -0.04em;
  line-height: 1;
}
.imovel-card.is-active::after { opacity: 0; }

.imovel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.imovel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  display: block;
}

.imovel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 24, 32, 0.85) 0%,
    rgba(15, 24, 32, 0.65) 40%,
    rgba(15, 24, 32, 0.25) 80%,
    rgba(15, 24, 32, 0.10) 100%
  );
}

.imovel-numero {
  position: absolute;
  left: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-editorial, 'Fraunces'), serif;
  font-style: italic;
  font-size: 35vw;
  color: rgba(245, 242, 234, 0.06);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  font-variation-settings: 'opsz' 144, 'wght' 300;
}

.imovel-content {
  position: relative;
  z-index: 2;
  padding: 0 8vw;
  max-width: 800px;
  box-sizing: border-box;
}

.imovel-label {
  display: block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  color: #5B9BD8;
  letter-spacing: 0.35em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.imovel-titulo {
  font-family: var(--font-editorial, 'Fraunces'), serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 76px);
  color: #F5F2EA;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px 0;
  font-variation-settings: 'opsz' 144, 'wght' 400;
}

.imovel-titulo em {
  font-style: italic;
  color: #5B9BD8;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'wght' 300;
}

.imovel-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.imovel-tags .tag {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  color: #F5F2EA;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  border: 1px solid rgba(245, 242, 234, 0.4);
  border-radius: 999px;
  text-transform: uppercase;
}

.imovel-desc {
  font-family: var(--font-body, 'Inter'), sans-serif;
  font-size: 14px;
  color: #F5F2EA;
  opacity: 0.7;
  line-height: 1.75;
  max-width: 480px;
  margin: 0;
}

.imovel-arrow {
  position: absolute;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #5B9BD8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.imovel-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  background: #1E5BAA;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .imovel-card {
    align-items: flex-end;
    padding-bottom: 40px;
  }

  .imovel-content {
    padding: 0 24px;
    margin-top: auto;
    margin-bottom: 120px;
  }

  .imovel-titulo {
    font-size: clamp(34px, 9vw, 56px);
  }

  .imovel-numero {
    font-size: 55vw;
    left: -5%;
  }

  .imovel-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 24, 32, 0.30) 0%,
      rgba(15, 24, 32, 0.60) 50%,
      rgba(15, 24, 32, 0.92) 100%
    );
  }

  .imovel-arrow {
    right: 24px;
    top: auto;
    bottom: 80px;
    transform: none;
    width: 52px;
    height: 52px;
  }

  .imovel-arrow:hover {
    transform: scale(1.05);
  }
}
