/* ==========================================================================
   VASCONCELLOS IMÓVEIS: DESIGN SYSTEM & ESTÉTICA DE ELITE (OURO + PRETO QUENTE)
   Tradição de 33 Anos · CRECI 29956-RJ
   ========================================================================== */

:root {
  /* Família de 5 Tons de Ouro Derivados da Marca */
  --gold-core: #dcb342;
  --gold-light: #f7dc79;
  --gold-warm: #e8a829;
  --gold-deep: #9e7518;
  --gold-halo: rgba(220, 179, 66, 0.18);
  --gold-glow: rgba(247, 220, 121, 0.45);
  --gold-border: rgba(220, 179, 66, 0.22);
  --gold-border-focus: rgba(247, 220, 121, 0.65);

  /* Superfícies Pretas Quentes (Zero Cinza Neutro) */
  --bg-base: #0b0a08;
  --bg-surface: #13110d;
  --bg-surface-elevated: #1a1712;
  --bg-surface-card: #15130f;

  /* Tipografia */
  --font-serif: 'Cinzel', 'Georgia', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Textos */
  --text-primary: #f5f2eb;
  --text-secondary: #d8d0c2;
  --text-muted: #9c9484;
  --text-dark: #0b0906; /* Contraste estrito >= 10:1 sobre dourado */

  /* Transições e Curvas Aveludadas */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s var(--ease-smooth);
}

/* Reset Universal & Viewport Blindado */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden !important;
  position: relative;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(220, 179, 66, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(232, 168, 41, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(220, 179, 66, 0.06), transparent 60%);
  background-attachment: scroll;
}

/* Fundo Contínuo: Canvas WebGL / Trilha de Luz */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

/* Camada Geral de Conteúdo */
.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Container de Largura Controlada */
.content-limit {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .content-limit {
    padding: 0 16px;
  }
}

/* ==========================================================================
   HEADER & NAVEGAÇÃO SUPERIOR (LARGURA MEDIDA E DIMENSIONADA)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 10, 8, 0.78);
  border-bottom: 1px solid var(--gold-border);
  transition: padding var(--transition-normal), background var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(11, 10, 8, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

@media (max-width: 430px) {
  .header-inner {
    height: 70px;
    gap: 10px;
  }
}

/* Marca Oficial em Assinatura Tipográfica */
.brand-mark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-core) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.15;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

.header-creci-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-core);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--gold-border);
  background: rgba(220, 179, 66, 0.06);
}

@media (max-width: 768px) {
  .header-creci-tag {
    display: none;
  }
}

/* ==========================================================================
   BOTÃO DE OURO COM SHINY SWEEP GLOW AUTOMÁTICO (CONTÍNUO NO MOBILE)
   ========================================================================== */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-core) 55%, var(--gold-warm) 100%);
  color: var(--text-dark) !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px; /* Proibido 9999px */
  border: 1px solid var(--gold-light);
  min-height: 48px; /* Alvo de toque acessível */
  min-width: 48px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(220, 179, 66, 0.28);
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
  flex-shrink: 0;
}

.btn-gold-header {
  padding: 10px 18px;
  font-size: 0.85rem;
  min-height: 44px;
}

@media (max-width: 360px) {
  .btn-gold-header {
    padding: 8px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }
}

/* Shiny Sweep Glow em Ciclo Automático */
.sweep-glow {
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-22deg);
  animation: shinySweep 3.6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shinySweep {
  0% {
    left: -120%;
  }
  30%, 100% {
    left: 180%;
  }
}

.btn-gold:hover,
.btn-gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(247, 220, 121, 0.45);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold .btn-icon {
  width: 18px;
  height: 18px;
  stroke: var(--text-dark);
  stroke-width: 2.2;
  fill: none;
  flex-shrink: 0;
}

/* Botão Secundário Ouro Transparente */
.btn-outline-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(19, 17, 13, 0.8);
  color: var(--gold-light) !important;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid var(--gold-border);
  min-height: 48px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus-visible {
  background: rgba(220, 179, 66, 0.12);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline-gold .btn-icon {
  width: 18px;
  height: 18px;
  stroke: var(--gold-light);
  stroke-width: 2;
  fill: none;
}

/* ==========================================================================
   HERO MONUMENTAL: PONTO FOCAL DE AUTORIDADE (PRIMEIRA DOBRA IMPECÁVEL)
   ========================================================================== */
.hero-block {
  padding-top: 140px;
  padding-bottom: 70px;
  position: relative;
}

@media (max-width: 768px) {
  .hero-block {
    padding-top: 110px;
    padding-bottom: 50px;
  }
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

/* Distintivo de Longevidade Oficial */
.hero-badge-tradition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 179, 66, 0.08);
  border: 1px solid var(--gold-border);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 24px;
  box-shadow: 0 0 20px var(--gold-halo);
}

.badge-pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-core);
  box-shadow: 0 0 8px var(--gold-core);
  animation: pulseGold 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Título Monumental */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 980px;
  color: #fff;
}

.hero-title .gold-accent {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-core) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Subtítulo Objetivo */
.hero-description {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 32px;
  font-weight: 400;
}

/* Grupo de Ações do Hero */
.hero-cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  width: 100%;
}

@media (max-width: 480px) {
  .hero-cta-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-wrapper .btn-gold,
  .hero-cta-wrapper .btn-outline-gold {
    width: 100%;
  }
}

/* Dados Oficiais em Fita Integrada (Sem Caixas Cinzas) */
.hero-data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  padding-top: 36px;
  border-top: 1px solid var(--gold-border);
  position: relative;
}

.data-strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.data-item-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.data-item-value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.data-item-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SEÇÕES DA PÁGINA (FLUXO INTEGRADO, SEM CAIXAS CINZAS)
   ========================================================================== */
.section-flow {
  padding: 80px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section-flow {
    padding: 50px 0;
  }
}

.section-head {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-core);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  letter-spacing: -0.01em;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 12px;
}

/* ==========================================================================
   BLOCO 1: O ATIVO DE 33 ANOS DE MERCADO
   ========================================================================== */
.tradition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .tradition-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.tradition-stat-monument {
  position: relative;
  padding: 40px;
  border-left: 2px solid var(--gold-core);
  background: linear-gradient(90deg, rgba(220, 179, 66, 0.06) 0%, transparent 100%);
}

@media (max-width: 480px) {
  .tradition-stat-monument {
    padding: 24px 16px;
  }
}

.monument-num {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-core) 50%, var(--gold-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.monument-caption {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.monument-footnote {
  font-size: 0.95rem;
  color: var(--gold-core);
  margin-top: 4px;
}

.tradition-copy-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tradition-paragraph {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tradition-highlight-box {
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 18px 0;
  margin-top: 8px;
}

.tradition-creci-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 700;
}

/* ==========================================================================
   BLOCO 2: OS DOIS SERVIÇOS OFICIAIS (SEM INVENÇÃO)
   ========================================================================== */
.services-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Card Oficial em Preto Quente e Borda de Ouro (Zero Cinza) */
.service-card-noble {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  padding: 40px 32px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

@media (max-width: 480px) {
  .service-card-noble {
    padding: 28px 20px;
  }
}

.service-card-noble:hover {
  border-color: var(--gold-core);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(220, 179, 66, 0.12);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: rgba(220, 179, 66, 0.1);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold-light);
  stroke-width: 2;
  fill: none;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.service-card-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.service-card-action {
  margin-top: auto;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-core);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.service-link:hover,
.service-link:focus-visible {
  color: var(--gold-light);
  gap: 12px;
}

.service-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* ==========================================================================
   BLOCO 3: PRESENÇA FÍSICA & LOCALIZAÇÃO (RUA TIROL, 536)
   ========================================================================== */
.location-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}

@media (max-width: 860px) {
  .location-section-grid {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 28px;
  }
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address-callout {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.35;
  margin: 16px 0;
}

.address-details {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.address-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.address-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.address-meta-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-core);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* Painel de Mapa Interativo Sob Demanda */
.map-interactive-panel {
  position: relative;
  min-height: 280px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.map-placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 320px;
}

.map-pin-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(220, 179, 66, 0.12);
  border: 1px solid var(--gold-core);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-light);
  stroke-width: 2;
  fill: none;
}

.map-iframe-container {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: none;
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
}

/* ==========================================================================
   BLOCO 4: CTA FINAL DOMINANTE (DIRETO AO WHATSAPP)
   ========================================================================== */
.final-cta-section {
  padding: 90px 0 110px;
  text-align: center;
  position: relative;
}

@media (max-width: 768px) {
  .final-cta-section {
    padding: 60px 0 80px;
  }
}

.final-cta-container {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding: 48px 24px;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.final-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.final-cta-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.final-phone-display {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-top: 24px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL (CRECI + DADOS OFICIAIS + SEGURANÇA)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--gold-border);
  background: #090806;
  padding: 50px 0 36px;
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 10;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-official-data {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-official-data li strong {
  color: var(--gold-light);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link-item:hover,
.footer-link-item:focus-visible {
  color: var(--gold-light);
}

.footer-link-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-core);
  stroke-width: 2;
  fill: none;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(220, 179, 66, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

/* ==========================================================================
   SISTEMA DE ENTRADA (REVEAL) LIMPO: CSS PURO + INTERSECTION OBSERVER
   ========================================================================== */
.reveal-item {
  opacity: 1; /* Fallback natural se JS falhar ou estiver desligado */
  transform: none;
}

/* Estado animado ativado somente quando JS confirma suporte no HTML */
html.js-ready .reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-smooth), transform 0.55s var(--ease-smooth);
  will-change: opacity, transform;
}

html.js-ready .reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto; /* Limpa will-change permanente */
}

/* ==========================================================================
   ACESSIBILIDADE: PREFERS-REDUCED-MOTION
   (Acabamento estático bonito sem corte de luz)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .sweep-glow {
    animation: none !important;
    display: none;
  }
  
  .badge-pulse-indicator {
    animation: none !important;
  }
  
  html.js-ready .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
  
  #canvas-bg {
    display: none !important;
  }
}
