/* ==========================================================================
   IDENTIDADE VISUAL - AURORA LANÇAMENTO
   Luxo Premium | Conforto Acolhedor
   ========================================================================== */

/* --- VARIÁVEIS DE CORES E CONFIGURAÇÕES --- */
:root {
  /* Cores Primárias */
  --verde-floresta: #2D4A3E;
  --bege-areia: #D4C4A8;
  --marrom-cafe: #5C4033;
  
  /* Cores Neutras */
  --creme-quente: #FAF8F5;
  --off-white: #FFFFFF;
  --cinza-carvao: #2C2C2C;
  --cinza-medio: #6B6B6B;
  --cinza-claro: #8B8B8B;

  /* Tipografia */
  --fonte-titulos: 'Playfair Display', serif;
  --fonte-corpo: 'Montserrat', sans-serif;
  
  /* Espaçamento */
  --container-max: 1200px;
  --padding-section: 80px;
  --gap-cards: 32px;
  
  /* Bordas */
  --border-radius-card: 8px;
  --border-radius-btn: 4px;
  
  /* Sombras */
  --sombra-card: 0 4px 12px rgba(45, 74, 62, 0.08);
  --sombra-btn-hover: 0 8px 20px rgba(45, 74, 62, 0.2);
}

/* --- CORREÇÃO DO VAZAMENTO GLOBAL --- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Elimina o scroll horizontal permanentemente */
}
  
/* --- RESET BÁSICO UNIFICADO --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-corpo);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cinza-medio);
  background-color: var(--creme-quente);
  -webkit-font-smoothing: antialiased;
}

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-titulos);
  color: var(--verde-floresta);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem; /* 56px */
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: 3rem; /* 48px */
  font-weight: 700;
}

h3 {
  font-size: 2.25rem; /* 36px */
  font-weight: 600;
}

h4 {
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
}

p {
  margin-bottom: 1rem;
}

/* --- CONTAINER --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- SEÇÕES --- */
.section {
  padding: var(--padding-section) 20px;
}

.section-dark {
  background-color: var(--verde-floresta);
  color: var(--off-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--bege-areia);
}

.section-light {
  background-color: var(--off-white);
}

.section-alt {
  background-color: var(--creme-quente);
}

/* --- VIDEO HERO --- */
.hero-video {
  position: relative;
  width: 90%;            
  max-width: 1000px;     
  height: 500px;         
  margin: 40px auto;     
  border-radius: 12px;   
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background-color: var(--verde-floresta);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; 
  display: block;
}

/* --- BOTÕES --- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--border-radius-btn);
}

.btn-primary {
  background-color: var(--marrom-cafe);
  color: var(--off-white);
}

.btn-primary:hover {
  background-color: #4A352A;
  transform: translateY(-2px);
  box-shadow: var(--sombra-btn-hover);
}

.btn-secondary {
  background-color: var(--verde-floresta);
  color: var(--off-white);
}

.btn-secondary:hover {
  background-color: #243A30;
  transform: translateY(-2px);
  box-shadow: var(--sombra-btn-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--verde-floresta);
  border: 2px solid var(--verde-floresta);
}

.btn-outline:hover {
  background-color: var(--verde-floresta);
  color: var(--off-white);
}

/* --- HEADER / NAVBAR --- */
.header {
  background-color: var(--off-white);
  box-shadow: 0 2px 8px rgba(45, 74, 62, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  font-family: var(--fonte-titulos);
  font-size: 28px;
  font-weight: 700;
  color: var(--verde-floresta);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--cinza-carvao);
  text-decoration: none;
  font-family: var(--fonte-corpo);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--marrom-cafe);
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--creme-quente) 0%, #F0ECE6 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-family: var(--fonte-corpo);
  font-size: 18px;
  font-weight: 400;
  color: var(--marrom-cafe);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-description {
  font-size: 18px;
  color: var(--cinza-medio);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- CARDS DE INFORMAÇÕES --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-cards);
  margin-top: 48px;
}

.card {
  background-color: var(--off-white);
  padding: 32px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--sombra-card);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--bege-areia);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(45, 74, 62, 0.12);
}

.card-icon {
  font-size: 42px; 
  color: var(--verde-floresta);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.destaque-icon {
  font-size: 28px; 
  color: var(--verde-floresta);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--verde-floresta);
  margin-bottom: 8px;
  font-family: var(--fonte-titulos);
}

.card-text {
  font-size: 15px;
  color: var(--cinza-medio);
}

/* --- CARROSSEL DE IMAGENS --- */
.carousel {
  position: relative;
  height: 600px;
  border-radius: var(--border-radius-card);
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(45, 74, 62, 0.9));
  color: var(--off-white);
  padding: 24px;
}

/* --- CARROSSEL DE VÍDEO VERTICAL EM 3D --- */
.video-carousel-container {
  position: relative;
}

.video-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 600px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-3d {
  position: absolute;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--border-radius-card);
  text-align: center;
  color: var(--off-white);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}

.video-card-title {
  font-size: 1.4rem;
  margin-top: 16px;
  margin-bottom: 6px;
  color: var(--bege-areia);
  font-family: var(--fonte-titulos);
}

.video-card-text {
  font-size: 13px;
  color: var(--bege-areia);
  opacity: 0.8;
}

.card-3d.active {
  transform: translateX(0) scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 10;
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(214, 196, 168, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-3d.next {
  transform: translateX(260px) scale(0.82);
  opacity: 0.3;
  filter: blur(2.5px);
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.card-3d.prev {
  transform: translateX(-260px) scale(0.82);
  opacity: 0.3;
  filter: blur(2.5px);
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.card-3d.next:hover, .card-3d.prev:hover {
  opacity: 0.55;
  filter: blur(1px);
}

.video-nav-btn {
  position: absolute;
  top: 45%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--off-white);
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  user-select: none;
}

.video-nav-btn:hover {
  background-color: var(--bege-areia);
  color: var(--verde-floresta);
  border-color: var(--bege-areia);
  transform: scale(1.08);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.phone-mockup {
  width: 200px;
  height: 350px;
  border: 8px solid #1a1a1a;
  border-radius: 28px;
  margin: 0 auto;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
  background: #000;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.play-btn-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45, 74, 62, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.card-3d.active .phone-mockup:hover .play-btn-overlay {
  background: rgba(45, 74, 62, 0.2);
}

.play-icon {
  background: var(--off-white);
  color: var(--verde-floresta);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  width: auto;
  height: 85vh;
  max-width: 95vw;
}

.lightbox-content video {
  height: 100%;
  width: auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(212, 196, 168, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--bege-areia);
}

/* --- ÁREAS DE LAZER --- */
.leisure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.leisure-item {
  background-color: var(--off-white);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: transform 0.3s ease;
}

.leisure-item:hover {
  transform: scale(1.02);
}

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

.leisure-content {
  padding: 20px;
}

.leisure-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--verde-floresta);
  margin-bottom: 8px;
  font-family: var(--fonte-titulos);
}

.leisure-description {
  font-size: 14px;
  color: var(--cinza-medio);
}

/* --- FORMULÁRIO DE CONTATO --- */
.form {
  background-color: var(--off-white);
  padding: 40px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--sombra-card);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 14px;
  color: var(--cinza-carvao);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--fonte-corpo);
  font-size: 15px;
  border: 1px solid #E0DED8;
  border-radius: 4px;
  background-color: var(--off-white);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--verde-floresta);
}

/* --- CONTROLE ACESSIBILIDADE VÍDEO --- */
.video-toggle {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  background-color: rgba(45, 74, 62, 0.7);
  color: var(--off-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}

.video-toggle:hover {
  background-color: rgba(45, 74, 62, 0.95);
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video video, .video-toggle { display: none; }
}

/* --- SEÇÃO DE LOCALIZAÇÃO --- */
.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.localizacao-destaques {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.destaque-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.destaque-titulo {
  font-family: var(--fonte-titulos);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--verde-floresta);
  margin-bottom: 4px;
}

.destaque-texto {
  font-size: 14px;
  color: var(--cinza-medio);
  margin-bottom: 0;
  line-height: 1.5;
}

.localizacao-mapa {
  height: 420px;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  border: 1px solid #E0DED8;
}

.localizacao-mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   BOTÕES FLUTUANTES (ESTRUTURA BASE - DESKTOP)
   ========================================================================== */
.instagram-float {
  position: fixed;
  bottom: 96px; 
  right: 28px;  
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 14px; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: var(--sombra-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.instagram-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px; 
  right: 28px;  
  z-index: 999;
  background-color: #128C7E; 
  color: var(--off-white);
  border-radius: 50px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--fonte-corpo);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  background-color: #075E54; 
}

.whatsapp-icon-vector {
  font-size: 28px;
}

.whatsapp-float span {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.whatsapp-float span small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

/* --- ESTILIZAÇÃO DO RODAPÉ --- */
.site-footer {
  background-color: var(--verde-floresta); 
  color: var(--off-white);
  padding: 40px 0 20px 0;
  font-family: var(--fonte-corpo);
  margin-top: 60px; 
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-info h3 {
  font-family: var(--fonte-titulos);
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-info p {
  font-size: 14px;
  opacity: 0.8;
  max-width: 400px;
}

.footer-copyright {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  opacity: 0.7;
}

.developer-credit {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.designer-name {
  color: var(--bege-areia); 
  font-weight: 600;
}


/* ==========================================================================
   BLOCOS DE RESPONSIVIDADE UNIFICADOS (CLEAN CSS)
   ========================================================================== */

/* --- TABLETS E DISPOSITIVOS MÓVEIS GERAIS --- */
@media (max-width: 768px) {
  /* Menu responsivo e coeso para não quebrar "O Imóvel" */
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 15px 10px;
  }

  .nav-menu {
    gap: 20px;
    padding: 0;
    justify-content: center;
    width: 100%;
  }

  .nav-link {
    font-size: 14px;
    white-space: nowrap; 
  }

  .hero {
    padding-top: 150px; /* Compensa o menu em duas linhas */
  }

  .hero-video {
    width: 95%;
    height: 400px;
    margin: 24px auto;
  }

  .localizacao-grid { grid-template-columns: 1fr; }
  .localizacao-mapa { height: 300px; }
  .video-3d-wrapper { height: 520px; }
  
  .card-3d.next { transform: translateX(140px) scale(0.8); opacity: 0.2; }
  .card-3d.prev { transform: translateX(-140px) scale(0.8); opacity: 0.2; }
  .prev-btn { left: 5px; }
  .next-btn { right: 5px; }
  
  .site-footer { padding: 30px 20px 15px 20px; }
}

/* --- EXCLUSIVO SMARTPHONES --- */
@media (max-width: 480px) {
  .card-3d.next, .card-3d.prev { 
    display: none !important; /* Foco total no ativo */
  }

  /* Ajuste Fino Instagram */
  .whatsapp-float {
  position: fixed !important;  /* Força o comportamento fixo na tela */
  bottom: 28px; 
  right: 28px;  
  z-index: 99999 !important;  /* IGUAL AO INSTAGRAM: Força o botão a ir para a camada mais alta da página */
  background-color: #128C7E !important; /* Garante a cor de fundo oficial */
  color: var(--off-white) !important;
  border-radius: 50px;
  padding: 12px 22px;
  display: flex !important;    /* Garante a existência do bloco flexível */
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--fonte-corpo);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  background-color: #075E54; 
}

.whatsapp-icon-vector {
  font-size: 28px;
}

.whatsapp-float span {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.whatsapp-float span small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

  
  .instagram-float {
  position: fixed !important; /* Força o comportamento fixo */
  bottom: 96px; 
  right: 28px;  
  z-index: 99999 !important; /* Camada máxima para não sumir */
  width: 52px;
  height: 52px;
  border-radius: 14px; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: var(--sombra-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.instagram-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}

}