:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #ECE7DD;
  --dark: #111111;
  --muted: #6E6A63;
  --line: rgba(17, 17, 17, .10);
  --gold: #B99A5B;
  --gold-2: #D9C48F;
  --green: #17320B;
  --green-2: #203D35;
  --sand: #D8C8AD;
  --shadow: 0 24px 80px rgba(17, 17, 17, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  /* clip corta na horizontal sem virar container de rolagem — ao contrário de
     hidden, que forçava overflow-y:auto e atrapalhava o sticky do subnav */
  overflow-x: clip;
}

html { overflow-x: clip; }

body.loading-active { overflow: hidden; }

.display-font { font-family: 'Playfair Display', Georgia, serif; }

.page { display: none; }
.page.active { display: block; }

.brand-subtitle {
  letter-spacing: .12em;
  font-size: .68rem;
}

.letter-space { letter-spacing: .12em; }

.text-muted-custom { color: var(--muted); }
.text-gold { color: var(--gold); }
.rounded-xl { border-radius: var(--radius); }
.shadow-soft { box-shadow: var(--shadow); }

.image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LOADING */
#siteLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(185,154,91,.20), transparent 28%),
    radial-gradient(circle at 75% 80%, rgba(23,50,11,.22), transparent 30%),
    #111111;
  color: white;
  transition: opacity .55s ease, visibility .55s ease;
}

#siteLoader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-box {
  width: min(420px, calc(100% - 40px));
  text-align: center;
}

.loader-mark {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--gold));
  box-shadow: 0 30px 90px rgba(185,154,91,.28);
  position: relative;
  animation: loaderFloat 1.4s ease-in-out infinite alternate;
}

.loader-mark::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.16);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-line {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  margin-top: 24px;
}

.loader-line span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), white, var(--green-2));
  animation: loaderLine 1.1s ease-in-out infinite;
}

@keyframes loaderFloat {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes loaderPulse {
  0% { transform: scale(.92); opacity: .35; }
  100% { transform: scale(1.12); opacity: 0; }
}

@keyframes loaderLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s ease, transform .75s ease;
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }

.float-soft { animation: floatSoft 4.5s ease-in-out infinite alternate; }
.float-delay { animation-delay: .9s; }

@keyframes floatSoft {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

/* NAV */
.navbar-glass {
  background: rgba(246, 244, 239, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: .25s ease;
}

.navbar-glass.nav-scrolled {
  background: rgba(246, 244, 239, .96);
  box-shadow: 0 16px 45px rgba(17,17,17,.08);
}

.nav-container {
  max-width: 1640px;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.navbar-brand {
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(220px, 18vw, 330px);
  height: auto;
}

#mainMenu .navbar-nav {
  align-items: center;
  gap: clamp(1rem, 1.55vw, 1.8rem);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: white;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 12px 35px rgba(23, 50, 11, .25);
}

.nav-link-custom {
  color: var(--dark);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  opacity: .78;
  white-space: nowrap;
}

.nav-link-custom:hover {
  color: var(--gold);
  opacity: 1;
}

/* DROPDOWN EMPREENDIMENTOS */
.navbar-glass .dropdown-menu {
  background: rgba(246, 244, 239, .97);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(17,17,17,.14);
  padding: .5rem;
  margin-top: .9rem;
  min-width: 19rem;
}

.navbar-glass .dropdown-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: 14px;
  padding: .6rem .8rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
  transition: .18s ease;
}

.navbar-glass .dropdown-item:hover,
.navbar-glass .dropdown-item:focus {
  background: rgba(185,154,91,.15);
  color: var(--dark);
}

.navbar-glass .dropdown-divider {
  border-top-color: var(--line);
  opacity: 1;
  margin: .4rem .8rem;
}

/* selo de status — empurrado para a direita para o texto alinhar */
.nav-tag {
  margin-left: auto;
  border-radius: 999px;
  padding: .22rem .62rem;
  border: 1px solid transparent;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-tag-sold  { background: rgba(150,28,28,.10);  color: #8E1C1C;     border-color: rgba(150,28,28,.20); }
.nav-tag-avail { background: rgba(23,50,11,.10);   color: var(--green); border-color: rgba(23,50,11,.18); }
.nav-tag-work  { background: rgba(185,154,91,.18); color: #7C5E22;     border-color: rgba(185,154,91,.34); }
.nav-tag-soon  { background: rgba(17,17,17,.05);   color: var(--muted); border-color: var(--line); }

/* BUTTONS */
.btn-pestana {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: .9rem 1.35rem;
  font-weight: 700;
  transition: .25s ease;
  white-space: nowrap;
}

.btn-pestana:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-outline-pestana {
  border: 1px solid rgba(255,255,255,.65);
  color: white;
  border-radius: 999px;
  padding: .9rem 1.35rem;
  font-weight: 700;
  transition: .25s ease;
}

.btn-outline-pestana:hover {
  background: white;
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-soft {
  background: rgba(23, 50, 11, .08);
  color: var(--green);
  border: 1px solid rgba(23, 50, 11, .12);
  border-radius: 999px;
  font-weight: 700;
  padding: .8rem 1.2rem;
}

.btn-soft:hover {
  background: var(--green);
  color: white;
}

/* TITLES */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* HERO */
.hero-home {
  min-height: calc(100vh - 80px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.1s ease, transform 6s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,17,17,.88) 0%, rgba(17,17,17,.55) 43%, rgba(17,17,17,.18) 100%),
    radial-gradient(circle at 75% 70%, rgba(185,154,91,.28), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3.3rem, 7vw, 7.6rem);
  line-height: .9;
  letter-spacing: -.055em;
}

.hero-lead {
  color: rgba(255,255,255,.78);
  max-width: 680px;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.75;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: white;
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero-floating-card {
  position: absolute;
  right: 7vw;
  bottom: 7vh;
  width: min(420px, 90vw);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  color: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  z-index: 3;
  box-shadow: 0 35px 110px rgba(0,0,0,.22);
}

.hero-thumb {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  overflow: hidden;
  flex: 0 0 auto;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero-dot {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.28);
  overflow: hidden;
  padding: 0;
}

.hero-dot span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 999px;
}

.hero-dot.active span {
  animation: dotProgress 5.8s linear forwards;
}

@keyframes dotProgress {
  from { width: 0; }
  to { width: 100%; }
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: white;
  backdrop-filter: blur(12px);
  transition: .2s ease;
}

.hero-arrow:hover {
  background: white;
  color: var(--dark);
}

/* CARDS */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px rgba(17,17,17,.08);
  transition: .25s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 90px rgba(17,17,17,.14);
}

.project-image {
  height: 290px;
  position: relative;
  overflow: hidden;
}

.project-image img {
  transition: .55s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.status-pill {
  position: absolute;
  left: 1rem;
  top: 1rem;
  border-radius: 999px;
  padding: .5rem .85rem;
  font-size: .78rem;
  font-weight: 800;
  color: white;
  backdrop-filter: blur(10px);
}

.status-ready {
  background: rgba(23,50,11,.88);
}

.status-work {
  background: rgba(185,154,91,.92);
  color: var(--dark);
}

.status-future {
  background: rgba(17,17,17,.78);
}

.status-sold {
  background: rgba(150,28,28,.92);
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 10px 26px rgba(150,28,28,.32);
}

.project-card.is-sold .project-image img { filter: grayscale(.45) brightness(.94); }

.dark-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(185,154,91,.22), transparent 32%),
    var(--dark);
  color: white;
}

.green-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(217,196,143,.22), transparent 30%),
    var(--green);
  color: white;
}

.soft-section {
  background: var(--surface-2);
}

.gallery-main {
  min-height: 610px;
}

.video-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(185,154,91,.16);
  color: var(--gold);
  font-size: 1.3rem;
}

.subnav {
  position: sticky;
  top: 80px;
  z-index: 20;
  background: rgba(246,244,239,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.subnav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
  opacity: .75;
}

.subnav a:hover {
  color: var(--gold);
  opacity: 1;
}

.landing-hero {
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  color: white;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,.82), rgba(17,17,17,.25));
  z-index: 1;
}

.landing-hero .container {
  position: relative;
  z-index: 2;
}

.metric-box {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 1rem;
}

.plan-card,
.update-card,
.contact-card,
.consultant-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.consultant-card {
  padding: 1.5rem;
}

.progress-modern {
  height: 14px;
  border-radius: 999px;
  background: rgba(17,17,17,.08);
}

.progress-modern .progress-bar {
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.form-control,
.form-select {
  min-height: 54px;
  border-radius: 18px;
  border-color: rgba(17,17,17,.14);
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .25rem rgba(185,154,91,.15);
}

.tour-box {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
}

.map-placeholder {
  height: 390px;
  background: var(--surface-2);
}

/* UNIDADES POR ANDAR */
.plantas-layout {
  align-items: start;
}

#pronto-plantas .contact-card {
  border-radius: 28px;
}

.building-map {
  top: 110px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
    radial-gradient(circle at 10% 10%, rgba(185,154,91,.18), transparent 28%);
}

.building-floor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: .8rem;
  background: rgba(246,244,239,.72);
  transition: .22s ease;
}

.building-floor.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateX(6px);
  box-shadow: 0 16px 40px rgba(23,50,11,.18);
}

.building-floor span {
  font-weight: 800;
}

.unit-mini {
  width: 48px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.12);
  background: #fff;
  font-size: .8rem;
  font-weight: 800;
  color: var(--dark);
  transition: .2s ease;
  margin-left: .35rem;
}

.unit-mini:hover,
.unit-mini.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.floor-tabs {
  gap: .55rem;
  flex-wrap: wrap;
}

.floor-tabs .nav-link {
  border-radius: 999px;
  background: rgba(23,50,11,.08);
  color: var(--green);
  font-weight: 800;
  border: 1px solid rgba(23,50,11,.10);
  padding: .9rem 1.2rem;
}

.floor-tabs .nav-link.active {
  background: var(--green);
  color: #fff;
}

.unit-option-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 28px;
  padding: 1.6rem;
  height: 100%;
  cursor: pointer;
  transition: .22s ease;
  position: relative;
  overflow: hidden;
}

.unit-option-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: .22s ease;
}

.unit-option-card:hover,
.unit-option-card.active {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(185,154,91,.48);
}

.unit-option-card.active::after {
  transform: scaleX(1);
}

.unit-option-card.is-sold {
  background: linear-gradient(180deg, #ffffff, #faf8f4);
  opacity: .92;
}

.unit-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

.unit-status.available {
  background: rgba(23,50,11,.10);
  color: var(--green);
}

.unit-status.reserved {
  background: rgba(185,154,91,.18);
  color: #80612B;
}

/* EMBLEMA VENDIDO */
.unit-status.sold {
  background: linear-gradient(135deg, #4c4c4c, #1f1f1f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  position: relative;
}

.unit-status.sold::before {
  content: "●";
  font-size: .65rem;
  margin-right: .4rem;
  color: #d7b26d;
}

.unit-detail .bg-light {
  background: #f6f4ef !important;
  border-radius: 18px !important;
}

.unit-actions .btn {
  min-height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.unit-plan-preview {
  min-height: 380px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(23,50,11,.08), rgba(185,154,91,.14)),
    repeating-linear-gradient(90deg, rgba(17,17,17,.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(17,17,17,.035) 0 1px, transparent 1px 34px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(17,17,17,.08);
}

.environment-table {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.environment-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.environment-row:last-child {
  border-bottom: 0;
}

.unit-interest-modal {
  border: 0;
  border-radius: 28px;
  background: #F6F4EF;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.unit-interest-modal .modal-header {
  padding: 2rem 2rem 0;
}

.unit-interest-modal .section-tag::before {
  width: 24px;
}

.unit-interest-modal .btn-close {
  box-shadow: none;
}

#interestApartment {
  background: rgba(23,50,11,.08);
  color: var(--green);
  font-weight: 800;
}

.environment-row span {
  color: var(--muted);
}

.environment-row strong {
  color: var(--dark);
}

/* FOOTER */
.footer-premium {
  background:
    radial-gradient(circle at 12% 10%, rgba(185,154,91,.22), transparent 28%),
    radial-gradient(circle at 88% 80%, rgba(23,50,11,.32), transparent 26%),
    #111111;
  color: white;
  position: relative;
  overflow: hidden;
}

.footer-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
  pointer-events: none;
}

.footer-premium .container {
  position: relative;
  z-index: 2;
}

.footer-cta {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  backdrop-filter: blur(16px);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 35px 110px rgba(0,0,0,.22);
  margin-bottom: 4rem;
}

.footer-link {
  display: block;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  margin-bottom: .7rem;
  transition: .2s ease;
}

.footer-link:hover {
  color: var(--gold-2);
  transform: translateX(4px);
}

.footer-social {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: white;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  text-decoration: none;
  transition: .2s ease;
}

.footer-social:hover {
  color: var(--dark);
  background: var(--gold);
  transform: translateY(-3px);
}

.newsletter-box {
  display: flex;
  gap: .6rem;
  padding: .45rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.newsletter-box input {
  flex: 1;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  min-width: 0;
  padding: 0 .8rem;
}

.newsletter-box input::placeholder {
  color: rgba(255,255,255,.45);
}

/* RESPONSIVO */
@media (max-width: 1199.98px) {
  #mainMenu .navbar-nav {
    align-items: flex-start;
    gap: .35rem;
  }

  .navbar-nav .btn-pestana {
    margin-top: .65rem;
  }

  .building-map {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 991.98px) {
  /* sem folga lateral no mobile, o translateX do reveal joga o bloco pra fora
     da tela; anima só na vertical */
  .reveal-left,
  .reveal-right {
    transform: translateY(34px);
  }

  .hero-floating-card {
    left: 1rem;
    right: 1rem;
    bottom: 92px;
    width: auto;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .subnav {
    top: 72px;
  }

  .gallery-main {
    min-height: auto;
  }

  .unit-option-card {
    padding: 1.25rem;
  }

  .unit-plan-preview {
    min-height: 280px;
  }
}

@media (max-width: 575.98px) {
  .hero-floating-card {
    display: none;
  }

  .hero-controls {
    bottom: 22px;
  }

  .newsletter-box {
    border-radius: 24px;
    flex-direction: column;
    padding: .7rem;
  }

  .newsletter-box input {
    min-height: 44px;
  }

  .building-floor {
    align-items: flex-start;
    flex-direction: column;
  }

  .unit-mini {
    margin-left: 0;
    margin-right: .35rem;
  }
}

/* =================== LIGHTBOX =================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.93);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay #lb-img {
  max-width: min(90vw, 1200px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  width: 52px; height: 52px;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
#lb-close { top: 1.2rem; right: 1.2rem; }
#lb-prev  { left: .75rem; top: 50%; transform: translateY(-50%); }
#lb-next  { right: .75rem; top: 50%; transform: translateY(-50%); }
.lb-counter { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: 1rem; }

/* =================== GALLERY GRID =================== */
.gallery-grid .gallery-img {
  cursor: zoom-in;
  transition: transform .22s, opacity .22s;
}
.gallery-grid .gallery-img:hover { transform: scale(1.04); opacity: .86; }

.unit-mini-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.12);
  background: #fff;
  font-size: .8rem;
  font-weight: 800;
  color: var(--dark);
  margin-left: .35rem;
}

.unit-mini-static.sold {
  background: rgba(17,17,17,.05);
  border-color: transparent;
  color: rgba(17,17,17,.32);
  text-decoration: line-through;
}

.unit-mini-static.free {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* plantas: usa o lightbox da galeria, só muda o enquadramento */
.plan-img {
  width: 100%;
  height: auto;
  background: #fff;
  padding: .75rem;
}
