/* ============================================================
   BRANDÃO IMOBILIÁRIA — style.css
   Estrutura:
   1. Reset & Variáveis
   2. Base
   3. Navbar
   4. Hero
   5. Stats Bar
   6. Seção (shared)
   7. Diferenciais
   8. Galeria
   9. Localização
   10. CTA Final
   11. Footer
   12. Float WhatsApp
   13. Scroll Reveal
   14. Responsivo
============================================================ */

/* ─── 1. RESET & VARIÁVEIS ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:      #F7F4EF;
  --white:      #FDFCFA;
  --dark:       #141414;
  --charcoal:   #2A2A2A;
  --mid:        #6B6B6B;
  --light:      #C8C0B4;
  --gold:       #B89D6A;
  --gold-light: #D4B98A;
  --accent:     #1A1A2E;
}

/* ─── 2. BASE ─── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ─── 3. NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

nav.scrolled {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  padding: 16px 60px;
  border-bottom: 1px solid rgba(184, 157, 106, 0.2);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.4s;
}

nav.scrolled .nav-logo {
  color: var(--dark);
}

.nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 10px 26px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ─── 4. HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 20, 20, 0.25) 0%, rgba(20, 20, 20, 0.75) 100%),
    url('./assets/img/terraço-zionX2.jpeg') center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.00); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  max-width: 780px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 16px 36px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-ghost:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ─── 5. STATS BAR ─── */
.stats-bar {
  background: var(--dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(184, 157, 106, 0.25);
}

.stat-item {
  padding: 32px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── 6. SEÇÃO (SHARED) ─── */
section {
  padding: 100px 60px;
}

.section-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ─── 7. DIFERENCIAIS ─── */
#diferenciais {
  background: var(--white);
}

.dif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dif-left .section-desc {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 440px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s;
}

.feature-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.feature-text h4 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.6;
}

.dif-right {
  position: relative;
}

.dif-img-main {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.dif-img-float {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 55%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.gold-line {
  position: absolute;
  top: 40px;
  right: -20px;
  width: 2px;
  height: 60%;
  background: var(--gold);
  opacity: 0.4;
}

/* ─── 8. GALERIA ─── */
#galeria {
  background: var(--cream);
  padding-bottom: 60px;
}

.gallery-header {
  max-width: 540px;
  margin-bottom: 50px;
}

/*
  Grid dinâmico: auto-fill com colunas de no mínimo 280px.
  Adicionar mais .gallery-item no HTML é suficiente — sem ajuste de CSS.
  A primeira imagem recebe destaque (span 2 linhas) via :first-child.
*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 260px;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Overlay com label e ícone de zoom */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.72) 0%, rgba(14,14,14,0.1) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px 20px;
  gap: 6px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s;
}

.gallery-item:hover .gallery-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
  border-color: var(--gold-light);
}

.gallery-zoom-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transform: scale(0.95);
  transition: transform 0.35s ease;
  user-select: none;
}

.lightbox.active .lightbox-inner img {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
}

.lightbox-counter {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.2s;
}

.lightbox-close:hover {
  border-color: var(--gold);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
  z-index: 2;
}

.lightbox-nav:hover {
  border-color: var(--gold);
  background: rgba(184,157,106,0.1);
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

/* ─── 9. LOCALIZAÇÃO ─── */
#localizacao {
  background: var(--dark);
  color: var(--white);
}

#localizacao .section-title {
  color: var(--white);
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.loc-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin-bottom: 36px;
}

.loc-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.loc-point {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.loc-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.loc-point strong {
  color: var(--gold-light);
  font-weight: 500;
}

.map-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1e1e1e;
  position: relative;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(1.05) contrast(1.02);
}

.map-overlay {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 157, 106, 0.3);
  pointer-events: none;
}

/* ─── 10. CTA FINAL ─── */
#cta-final {
  background: var(--white);
  text-align: center;
  padding: 100px 60px;
}

#cta-final .section-title {
  margin: 0 auto 16px;
  max-width: 600px;
}

#cta-final p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 42px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-wpp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 16px 36px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-wpp:hover {
  background: #1ebe58;
  transform: translateY(-2px);
}

.btn-wpp svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ─── 11. FOOTER ─── */
footer {
  background: #0D0D0D;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(184, 157, 106, 0.15);
}

.footer-copy {
  text-align: center;
  flex: 1;
  line-height: 1.6;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
}

.footer-creci {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.footer-copy a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ─── 12. FLOAT WHATSAPP ─── */
.float-wpp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: wppPulse 2.5s 3s ease infinite;
}

.float-wpp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
  animation: none;
}

.float-wpp svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes wppPulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 6px 44px rgba(37, 211, 102, 0.75); }
}

.float-tooltip {
  position: absolute;
  right: 68px;
  bottom: 50%;
  transform: translateY(50%);
  background: var(--dark);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--dark);
}

.float-wpp:hover .float-tooltip {
  opacity: 1;
}

/* ─── 13. SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 14. RESPONSIVO ─── */
@media (max-width: 900px) {
  nav,
  nav.scrolled {
    padding: 20px 28px;
  }

  section {
    padding: 72px 28px;
  }

  .hero-content {
    padding: 0 28px 64px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .dif-grid,
  .loc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dif-img-float {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item:first-child {
    grid-row: span 1;
    grid-column: span 2;
    height: 200px;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .logo-img {
    height: 36px;
  }

}

@media (max-width: 768px) {
  nav,
  nav.scrolled {
    padding: 14px 16px;
    gap: 12px;
  }

  .nav-logo {
    display: none;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .logo-img {
    height: 32px;
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 22px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .stat-num {
    font-size: 1.75rem;
    line-height: 1.1;
    word-break: break-word;
  }

  .stat-label {
    font-size: 0.68rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
  }
}

#video {
  background: var(--white);
  text-align: center;
}

.video-frame {
  margin-top: 30px;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.num-fix {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 18px auto 28px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.countdown-item span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--dark);
}

.countdown-item small {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}