/* ==========================================================================
   Design System - Casa SG
   ========================================================================== */

/* Importação de Fontes Premium */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Cores Luxo */
  --color-gold: #b8936c;
  --color-gold-light: #d1b494;
  --color-gold-dark: #96744f;
  --color-green: #2b3d2d;
  --color-green-dark: #1b281d;
  --color-green-light: #445c47;
  
  /* Escala de Cinzas & Fundo */
  --bg-primary: #0a0c0a;
  --bg-secondary: #121613;
  --bg-glass: rgba(18, 22, 19, 0.7);
  --border-glass: rgba(184, 147, 108, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.05);
  
  /* Textos */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Tipografia */
  --font-title: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Efeitos e Transições */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.2);
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  
  /* Limitação do Layout */
  --max-width: 1200px;
}

/* Reset Moderno */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Estilos Globais de Tipografia
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin-top: 0.75rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Foco de Acessibilidade */
*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

/* ==========================================================================
   Componentes Utilitários e Layout
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--bg-primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 147, 108, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--color-gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 147, 108, 0.15);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  gap: 0.5rem;
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Header & Navegação
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: clamp(40px, 6vw, 60px);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu a:hover, .nav-menu a:focus {
  color: var(--color-gold);
}

/* Hamburguer para mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.75rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 30%, var(--bg-primary) 100%),
              linear-gradient(to bottom, transparent 50%, var(--bg-primary) 100%),
              rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  animation: fadeIn 1.2s ease-out;
}

/* Coluna Esquerda: Título Principal */
.hero-title-col {
  flex: 1;
}

.hero-title-col h1 {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

/* Coluna Direita: Card de Informações */
.hero-card {
  width: 380px;
  flex-shrink: 0;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-premium);
}

.hero-location {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-price {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: block;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Especificações & Contadores
   ========================================================================== */
.specs {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: revealUp 0.8s ease-out;
}

.spec-icon {
  font-size: 2.25rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.spec-number {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.spec-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ==========================================================================
   Seção Detalhes (Removido - Absorvido pela Hero)
   ========================================================================== */

/* ==========================================================================
   Estrutura & Slider
   ========================================================================== */
.estrutura-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.estrutura-info p {
  margin-bottom: 1.5rem;
}

.estrutura-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.5rem;
  margin-top: 2rem;
}

.feat-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.feat-item:hover {
  transform: translateX(6px);
}

.feat-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(184, 147, 108, 0.08);
  border: 1px solid rgba(184, 147, 108, 0.35);
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: var(--transition-smooth);
}

.feat-item:hover .feat-icon-container {
  background-color: var(--color-gold);
  color: var(--bg-primary);
  border-color: var(--color-gold);
  box-shadow: 0 4px 10px rgba(184, 147, 108, 0.2);
}

.feat-icon {
  font-size: 0.8rem;
  font-weight: bold;
}

.feat-info {
  display: flex;
  flex-direction: column;
}

.feat-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.feat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Slider Customizado */
.slider-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-subtle);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition-slow);
  background-size: cover;
  background-position: center;
}

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

/* Zoom do Carrossel */

.slide-zoom-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.slider-wrapper:hover .slide-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.slide-zoom-btn:hover, .slide-zoom-btn:focus-visible {
  opacity: 1;
  background-color: var(--color-gold);
  color: var(--bg-primary);
  border-color: var(--color-gold);
  transform: scale(1.05);
}

.slider-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-btn {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-btn:hover, .slider-btn:focus-visible {
  background-color: var(--color-gold);
  color: var(--bg-primary);
  border-color: var(--color-gold);
}

/* ==========================================================================
   Planta & Vídeo (Tabs Component)
   ========================================================================== */
.tabs-section {
  background-color: var(--bg-secondary);
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.tab-trigger {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-trigger:hover {
  color: var(--text-primary);
}

.tab-trigger.active {
  color: var(--color-gold);
}

.tab-trigger.active::after {
  content: '';
  position: absolute;
  bottom: -1.05rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.5s ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.planta-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.planta-img-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-subtle);
}

.planta-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.planta-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
}

.planta-detail-card h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.planta-detail-card p {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-subtle);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Seção Localização Personalizada & Mapa Interativo
   ========================================================================== */
.localizacao-secao {
  position: relative;
  background-image: linear-gradient(rgba(10, 12, 10, 0.88), rgba(10, 12, 10, 0.88)), url('images/fundo-felicita.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.localizacao-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.localizacao-content h2 {
  margin-bottom: 1.5rem;
}

.localizacao-content h2::after {
  margin: 0.75rem auto 0;
}

.localizacao-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.map-layout-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.map-header {
  width: 100%;
  max-width: 1000px;
  text-align: left;
}

.map-header h2 {
  margin-bottom: 0.5rem;
}

.map-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
}

.map-bottom-content {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.map-bottom-content .map-locations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.map-bottom-content .map-action {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.interactive-map {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-subtle);
}

.map-pins {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pin {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.pin-btn {
  background-color: var(--color-gold);
  color: var(--bg-primary);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(184, 147, 108, 0.3);
  transition: var(--transition-smooth);
}

.pin-btn:hover, .pin-btn.active {
  background-color: var(--text-primary);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

/* Tooltip Customizada */
.pin-tooltip {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-gold);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-premium);
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 10;
}

.pin-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-gold);
}

.pin:hover .pin-tooltip, .pin-btn.active + .pin-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pin-tooltip-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.15rem;
}

.pin-tooltip-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Lista Lateral de Pontos do Mapa */
.map-locations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.location-card:hover, .location-card.active {
  background-color: rgba(184, 147, 108, 0.05);
  border-color: var(--color-gold);
}

.location-num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--color-gold);
  line-height: 1;
}

.location-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.location-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Imobiliárias Parceiras
   ========================================================================== */
.imobiliarias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.imobiliaria-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.imobiliaria-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-premium);
}

.imobiliaria-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 268;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.imobiliaria-card:hover img {
  transform: scale(1.03);
}

.imobiliaria-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.imobiliaria-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Dúvidas Frequentes (FAQ)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 3rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-trigger:hover, .faq-trigger:focus {
  color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: var(--transition-smooth);
}

/* Linha horizontal */
.faq-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

/* Linha vertical */
.faq-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.faq-trigger.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.faq-content strong {
  color: var(--text-primary);
}

.faq-content ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.faq-content li {
  margin-bottom: 0.5rem;
}

.faq-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ==========================================================================
   Páginas de Cluster (Topic Clusters)
   ========================================================================== */
.cluster-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.cluster-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 20%, var(--bg-primary) 100%),
              rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.cluster-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cluster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.cluster-card-detalhe {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
}

.cluster-card-detalhe h3 {
  color: var(--color-gold);
}

.cluster-card-detalhe ul {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.cluster-card-detalhe li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.cluster-card-detalhe strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Footer & Assinatura de Autoria
   ========================================================================== */
.site-footer {
  background-color: #050605;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 3rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.footer-col p, .footer-col ul {
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-signature-link {
  display: inline-flex;
  align-items: center;
}

.footer-signature-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--transition-smooth);
}

.footer-signature-link:hover .footer-signature-img {
  opacity: 0.95;
}


/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
}

.whatsapp-float-btn {
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  font-size: 1.75rem;
  position: relative;
  transition: var(--transition-smooth);
}

.whatsapp-float-btn:hover, .whatsapp-float-btn:focus {
  transform: scale(1.1);
  background-color: #20ba5a;
}

.whatsapp-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: var(--color-gold);
  border: 2px solid #25d366;
  border-radius: 50%;
}

/* ==========================================================================
   Responsividade (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: block;
    z-index: 101;
  }
  
  .estrutura-container, .planta-panel, .map-layout, .cluster-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .slider-wrapper {
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .detalhes-secao {
    justify-content: center;
  }
  
  .detalhes-content {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .planta-details-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Lightbox de Imagens (Tela Cheia)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 8, 6, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 3.5rem;
  cursor: pointer;
  z-index: 1010;
  line-height: 1;
  transition: var(--transition-smooth);
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-premium);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  transition: var(--transition-smooth);
  font-size: 1.25rem;
}

.lightbox-nav:hover {
  background-color: var(--color-gold);
  color: var(--bg-primary);
  border-color: var(--color-gold);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
  }
  
  .lightbox-content {
    max-width: 95%;
    max-height: 70%;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  
  .lightbox-prev {
    left: 1rem;
  }
  
  .lightbox-next {
    right: 1rem;
  }
}

/* Tabela de Especificações de Ambientes (Foco em WCAG e IA) */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.specs-table th, .specs-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
}

.specs-table th {
  background-color: var(--bg-secondary);
  font-family: var(--font-body);
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-subtle);
  font-size: 0.8rem;
}

.specs-table td {
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.6;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .specs-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Seção de Diferenciais Exclusivos */
.diferenciais-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  line-height: 1.6;
  font-weight: 300;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.diferencial-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform var(--transition-smooth);
}

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

.diferencial-num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--color-gold);
  line-height: 1;
  font-weight: 500;
  opacity: 0.85;
}

.diferencial-content h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.diferencial-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Layout do FAQ na Home (2 Colunas com Card CTA) */
.faq-layout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: start;
}

.faq-left-col {
  width: 100%;
}

.faq-right-col {
  width: 100%;
  position: sticky;
  top: 100px;
}

.faq-cta-card {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
}

.faq-cta-card h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-cta-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
}

.faq-cta-card .btn {
  display: inline-block;
  text-align: center;
  width: 100%;
}

@media (max-width: 992px) {
  .faq-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .faq-right-col {
    position: static;
  }
}

/* ==========================================================================
   Responsivo: Hero 2 Colunas
   ========================================================================== */

/* Tela média: reduzir card */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .hero-title-col h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }

  .hero-card {
    width: 100%;
    max-width: 520px;
  }
}

/* Mobile: empilhar verticalmente */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background-attachment: scroll;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title-col h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-card {
    width: 100%;
    padding: 2rem;
  }
}


/* ==========================================================================
   Exit Intent Pop-up
   ========================================================================== */

/* Overlay (fundo escuro com blur) */
.exit-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.exit-popup-overlay.active {
  display: flex;
  animation: exitPopupFadeIn 0.4s ease forwards;
}

@keyframes exitPopupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Caixa do Pop-up */
.exit-popup {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(184, 147, 108, 0.1);
  transform: translateY(20px) scale(0.97);
  animation: exitPopupSlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
}

@keyframes exitPopupSlideIn {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Botão Fechar */
.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  line-height: 1;
}

.exit-popup-close:hover {
  background: rgba(184, 147, 108, 0.2);
  color: var(--color-gold-light);
  transform: rotate(90deg);
}

/* Imagem Lado Esquerdo */
.exit-popup-img {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.exit-popup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 8s ease;
}

.exit-popup:hover .exit-popup-img img {
  transform: scale(1.04);
}

.exit-popup-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exit-popup-badge {
  display: inline-block;
  background: var(--color-gold);
  color: #0a0c0a;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  width: fit-content;
}

.exit-popup-img-caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}

/* Conteúdo Lado Direito */
.exit-popup-content {
  padding: 2rem 2rem 2rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass) transparent;
}

.exit-popup-content::-webkit-scrollbar {
  width: 4px;
}

.exit-popup-content::-webkit-scrollbar-track {
  background: transparent;
}

.exit-popup-content::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}

.exit-popup-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
}

.exit-popup-title {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}

.exit-popup-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.exit-popup-subtitle strong {
  color: var(--text-primary);
}

/* Lista padrão */
.exit-popup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.exit-popup-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.exit-list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(45, 80, 50, 0.4);
  border: 1px solid rgba(100, 180, 110, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #7ecf7e;
  margin-top: 1px;
  font-weight: 700;
}

/* Lista de destaque */
.exit-popup-list--highlight {
  border-top: 1px solid var(--border-glass);
  padding-top: 0.85rem;
  margin-top: 0.2rem;
  gap: 0.75rem;
}

.exit-popup-list--highlight li {
  background: linear-gradient(135deg, rgba(184, 147, 108, 0.08) 0%, rgba(184, 147, 108, 0.03) 100%);
  border: 1px solid rgba(184, 147, 108, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  align-items: flex-start;
}

.exit-popup-list--highlight li strong {
  display: block;
  color: var(--color-gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.exit-popup-list--highlight li em {
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.exit-list-icon--gold {
  background: rgba(184, 147, 108, 0.15);
  border-color: rgba(184, 147, 108, 0.4);
  color: var(--color-gold);
  font-size: 0.7rem;
}

/* CTA WhatsApp no pop-up */
.exit-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.25rem;
  border-radius: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.exit-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.exit-popup-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.25rem;
}

/* ==========================================================================
   Responsivo: Pop-up Mobile
   ========================================================================== */
@media (max-width: 640px) {
  .exit-popup {
    grid-template-columns: 1fr;
    max-height: 92vh;
    border-radius: 16px;
  }

  .exit-popup-img {
    min-height: 180px;
    max-height: 200px;
  }

  .exit-popup-content {
    padding: 1.5rem;
    gap: 0.7rem;
  }

  .exit-popup-title {
    font-size: 1.25rem;
  }

  .exit-popup-list--highlight li {
    padding: 0.7rem 0.8rem;
  }
}

@media (max-width: 768px) and (min-width: 641px) {
  .exit-popup {
    grid-template-columns: 0.8fr 1fr;
  }

  .exit-popup-img {
    min-height: 380px;
  }
}
