/*
 * Matriz Imobiliária - Ultra-Luxury Tech
 * Custom CSS for specific dopamine glows and 3D architectural effects.
 */

/* Light Mode Clássico (Matriz Oficial) */
:root, [data-theme="light"] {
  --electric-gold: #CFAA6D; /* Ouro Matriz */
  --electric-blue: #151A28; /* Substituição do Neon por Azul Navy Matriz no tema claro */
  --forest-green: #151A28;  /* Azul Navy profundo */
  --muted-gold: #CFAA6D;
  --bg-deep: #FAFAFA;
  
  --bg-main: #F4F5F7; /* Cinza Gelo Ultra-Luxo */
  --bg-surface: #FFFFFF;
  --bg-input: #FFFFFF;
  --border-subtle: rgba(21, 26, 40, 0.08); /* Borda Navy sutil */
  
  --text-primary: #151A28; /* Texto Navy ao invés de preto puro */
  --text-secondary: #64748B;

  /* RGB Variables for Tailwind Opacity */
  --rgb-surface: 255 255 255;
  --rgb-main: 244 245 247;
  --rgb-primary: 21 26 40;
  --rgb-border: 21 26 40;
}

/* Dark Mode (Matriz Oficial Navy/Gold) */
[data-theme="dark"] {
  --electric-gold: #D8B555; /* Ouro Brilhante Matriz */
  --electric-blue: #E7CB74; /* Ouro Champagne em substituição ao Azul Neon para monocromia Gold */
  --forest-green: #151A28;  /* Azul Navy Fundo Logo */
  --muted-gold: #B39A5D;
  --bg-deep: #0B0E14; /* Navy quase preto */
  
  --bg-main: #0B0E14; /* Fundo principal Navy Profundo */
  --bg-surface: #151A28; /* Fundo de componentes usando o Azul exato do Logo */
  --bg-input: #1C2237; /* Field de Inputs ligeiramente mais claro que o surface */
  --border-subtle: rgba(216, 181, 85, 0.2); /* Bordas douradas ultra finas e elegantes */

  --text-primary: #F8F9FA;
  --text-secondary: #94A3B8;

  /* RGB Variables for Tailwind Opacity */
  --rgb-surface: 21 26 40; /* 151A28 -> 21 26 40 */
  --rgb-main: 11 14 20;    /* 0B0E14 -> 11 14 20 */
  --rgb-primary: 248 249 250;
  --rgb-border: 216 181 85; 
}

body {
  background-color: var(--bg-main) !important;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Global SVG theme transition — ensures all icons smoothly adapt */
svg, svg * {
  transition: fill 0.4s ease, stroke 0.4s ease, color 0.4s ease;
}

/* Tipografia Colossal com tracking mais apertado */
.title-colossal {
  font-family: 'Noto Serif', serif;
  font-size: 10vw; /* Responsivo */
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .title-colossal {
    font-size: 130px; 
  }
}

/* Ouro Neon Text / Glow Effect */
.text-electric-gold {
  color: var(--electric-gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.glow-word {
  color: var(--electric-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
  100% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

/* Feedback Tátil e Bento Grid - Semântico */
.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 2rem;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
  /* Dopamine Glow Azul e Dourado */
  box-shadow: 0 20px 40px -10px rgba(0, 229, 255, 0.15), 
              0 0 20px rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.2);
}

.bento-card.glowing {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* CTAs Híbridos minimalistas e de toque suave */
.btn-electric {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 1rem 2.5rem;
  border-radius: 4rem;
  text-transform: uppercase;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.1em;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-electric:hover {
  background: var(--electric-gold);
  color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  border-color: var(--electric-gold);
}

.btn-electric-blue {
    border-color: rgba(0, 229, 255, 0.4);
}

.btn-electric-blue:hover {
    background: var(--electric-blue);
    color: var(--bg-deep);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    border-color: var(--electric-blue);
}

/* Acessibilidade de foco avançada */
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--electric-gold), 0 0 0 6px var(--bg-main) inset !important;
}

/* Hologram Effect on Hero Mockup */
.hologram-effect {
  position: relative;
}

.hologram-effect::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,229,255,0.0) 0%, rgba(0,229,255,0.1) 50%, rgba(0,229,255,0.0) 100%);
  z-index: 10;
  pointer-events: none;
  animation: scanline 4s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Utility to hide elements before scroll reveal */
.reveal-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Forçar herança de tema no Dropdown Nativo do OS para todos os Selects */
select option {
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px; /* Appears only in some browsers, but helps fallback */
}

/* Permitir que o OS saiba qual o color-schema global da página (Dark/Light) */
:root {
  color-scheme: light;
}
[data-theme="dark"] {
  color-scheme: dark;
}

/* ═══════════════════════════════════════════════════════════ */
/* TRUST BAR — Métricas de Credibilidade com Count-Up         */
/* ═══════════════════════════════════════════════════════════ */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}

.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.03), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
  text-align: center;
  transition: background 0.5s ease;
}

.trust-bar-item:hover {
  background: var(--bg-main);
}

.trust-bar-value {
  font-family: 'Noto Serif', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--electric-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-bar-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .trust-bar { grid-template-columns: 1fr; }
  .trust-bar-item { padding: 1rem; flex-direction: row; gap: 1rem; }
  .trust-bar-value { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════ */
/* SOCIAL PROOF — Depoimentos Rotativos Premium               */
/* ═══════════════════════════════════════════════════════════ */
.social-proof-section {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  background: var(--bg-surface);
  overflow: hidden;
}

.social-proof-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(212,175,55,0.04), transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .social-proof-section::before {
  background: radial-gradient(ellipse, rgba(184,150,15,0.03), transparent 70%);
}

.testimonial-slide {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.testimonial-quote {
  font-family: 'Noto Serif', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 400;
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--electric-gold);
}

.testimonial-author {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--electric-gold);
}

.testimonial-role {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.testimonial-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

.testimonial-dot.active {
  background: var(--electric-gold);
  border-color: var(--electric-gold);
  box-shadow: 0 0 10px rgba(212,175,55,0.3);
}

/* ═══════════════════════════════════════════════════════════ */
/* PREMIUM LOCAÇÃO CARDS — Layout Horizontal Editorial        */
/* ═══════════════════════════════════════════════════════════ */
.loc-card-premium {
  display: flex;
  flex-direction: row;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.loc-card-premium:hover {
  border-color: rgba(212,175,55,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 0 0 1px rgba(212,175,55,0.1);
  transform: translateY(-4px);
}

[data-theme="dark"] .loc-card-premium:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.15);
}

.loc-card-image {
  width: 280px;
  min-height: 240px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.loc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.loc-card-premium:hover .loc-card-image img {
  transform: scale(1.08);
}

.loc-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  min-width: 0;
}

.loc-card-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.loc-badge {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid;
}

.loc-badge-gold {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.3);
  color: var(--electric-gold);
}

.loc-badge-urgency {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
  color: #EF4444;
  animation: pulseUrgency 2.5s ease-in-out infinite;
}

@keyframes pulseUrgency {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.loc-card-title {
  font-family: 'Noto Serif', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.loc-card-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  font-weight: 500;
}

.loc-card-price {
  font-family: 'Noto Serif', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--electric-gold);
  margin: 0.75rem 0;
  letter-spacing: -0.01em;
}

.loc-card-price small {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.25rem;
}

.loc-card-specs {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.loc-spec {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.loc-spec-icon {
  width: 16px;
  height: 16px;
  color: var(--electric-gold);
  flex-shrink: 0;
  opacity: 0.7;
}

.loc-spec-text {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

.loc-card-ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.loc-cta-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 3rem;
  background: linear-gradient(135deg, var(--electric-gold), #B8960F);
  color: #0A0A0A;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  white-space: nowrap;
}

.loc-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}

[data-theme="light"] .loc-cta-primary {
  color: #FAFAF8;
}

.loc-cta-whatsapp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.loc-cta-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.loc-cta-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: #25D366;
  transition: fill 0.3s;
}

.loc-cta-whatsapp:hover svg {
  fill: #FFFFFF;
}

.loc-card-scarcity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F59E0B;
  background: rgba(245,158,11,0.05);
  border-radius: 0 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(245,158,11,0.1);
}

@media (max-width: 768px) {
  .loc-card-premium {
    flex-direction: column;
  }
  .loc-card-image {
    width: 100%;
    min-height: 200px;
    max-height: 220px;
  }
  .loc-card-body {
    padding: 1.25rem;
  }
  .loc-card-ctas {
    flex-direction: column;
  }
  .loc-cta-whatsapp {
    width: 100%;
    border-radius: 3rem;
    height: 44px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* CURADORIA OFF-MARKET CTA — Bloco de Conversão Final        */
/* ═══════════════════════════════════════════════════════════ */
.curadoria-cta-block {
  position: relative;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg-surface);
}

.curadoria-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.04) 0%, transparent 50%, rgba(212,175,55,0.02) 100%);
  pointer-events: none;
}

.curadoria-cta-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric-gold), transparent);
  opacity: 0.4;
}

.curadoria-title {
  font-family: 'Noto Serif', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.curadoria-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  position: relative;
  z-index: 1;
}

.curadoria-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 4rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(37,211,102,0.2);
}

.curadoria-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(37,211,102,0.35);
}

/* Shimmer animation for premium badges */
@keyframes shimmerGold {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-gold {
  background: linear-gradient(90deg, var(--electric-gold) 0%, #FFF2A8 25%, var(--electric-gold) 50%, #FFF2A8 75%, var(--electric-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 4s linear infinite;
}

/* Section separator line */
.section-gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--electric-gold), transparent);
  margin: 0 auto 2rem;
  border: none;
}

/* CRECI seal badge */
.creci-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--text-secondary);
}

.creci-seal svg {
  color: var(--electric-gold);
}
