/* ==========================================================================
   AKA CORRETORA — DESIGN SYSTEM & ESTÉTICA AUTORAL
   Branco Seda + Ouro Brilhante Autêntico (5 Tons da Marca)
   ========================================================================== */

/* Fontes Self-Hosted */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/cinzel-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/cinzel-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* 5 Tons Oficiais de Dourado Extraídos da Marca */
  --gold-shimmer: #F3E5C8;
  --gold-light: #DFBE82;
  --gold-primary: #C59B4E;
  --gold-deep: #9E722C;
  --gold-dark: #6D4C18;

  /* Superfície Lúmina Contínua (Sem Caixas Cinzas) */
  --bg-base: #FAF6F0;
  --bg-luminous: #FFFFFF;
  --gold-tint: rgba(197, 155, 78, 0.04);
  --gold-card-bg: rgba(255, 255, 255, 0.78);
  --gold-border-light: rgba(197, 155, 78, 0.22);
  --gold-border-focus: rgba(197, 155, 78, 0.45);
  --gold-glow: rgba(197, 155, 78, 0.32);
  --gold-shadow: rgba(110, 76, 24, 0.08);

  /* Gradiente Ouro Real */
  --grad-gold: linear-gradient(135deg, #F3E5C8 0%, #DFBE82 28%, #C59B4E 70%, #9E722C 100%);
  --grad-gold-hover: linear-gradient(135deg, #FFFFFF 0%, #EAD5A6 35%, #D4A958 75%, #B08235 100%);
  --grad-gold-line: linear-gradient(90deg, transparent, rgba(197, 155, 78, 0.45), transparent);

  /* Tipografia & Contraste Rigoroso AAA */
  --text-main: #1A1612;      /* Contraste 16.8:1 contra #FAF6F0 */
  --text-secondary: #3D352E; /* Contraste 10.4:1 */
  --text-muted: #5C5248;     /* Contraste 6.8:1 */

  /* Famílias Tipográficas */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Espaçamento e Curvaturas */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Universal & Prevenção Absoluta de Overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden !important;
  background-color: var(--bg-base);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Canvas de Fundo Three.js (Luz de Caustics Dourada Suave) */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Camada Contínua de Luz e Gradiente */
.ambient-glow-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: hidden;
  background: 
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(253, 251, 247, 0.6) 50%, transparent 100%),
    radial-gradient(circle 800px at 80% 20%, rgba(223, 190, 130, 0.12) 0%, transparent 70%),
    radial-gradient(circle 700px at 20% 60%, rgba(197, 155, 78, 0.08) 0%, transparent 70%);
}

.site-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   CABEÇALHO INSTITUCIONAL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-border-light);
  transition: border-color 0.3s ease;
}

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

.brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  min-height: 48px;
}

.brand-seal-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad-gold);
  box-shadow: 0 2px 10px var(--gold-glow);
  flex-shrink: 0;
}

.brand-seal-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gold-border-focus);
  box-shadow: 0 2px 8px var(--gold-shadow);
  transition: all 0.3s var(--ease-smooth);
  min-height: 48px;
  min-width: 48px;
}

.header-action:hover, .header-action:focus-visible {
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: 0 4px 14px var(--gold-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   BOTÃO DE OURO COM SHINY SWEEP GLOW (EXIGÊNCIA DO CLIENTE)
   ========================================================================== */
.btn-gold-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  min-height: 52px;
  min-width: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 20px var(--gold-glow), 0 2px 6px var(--gold-shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  cursor: pointer;
}

/* Efeito Shiny Sweep */
.btn-gold-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  transform: rotate(28deg);
  animation: shinySweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shinySweep {
  0% { left: -80%; }
  30%, 100% { left: 160%; }
}

.btn-gold-primary:hover, .btn-gold-primary:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px var(--gold-glow), 0 4px 10px var(--gold-shadow);
  background: var(--grad-gold-hover);
}

.btn-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* ==========================================================================
   DOBRA 1: HERO MONUMENTAL (ABOVE THE FOLD RIGOROSO)
   100% VISÍVEL NO PRIMEIRO PAINT SEM JS
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-curation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--gold-border-focus);
  box-shadow: 0 2px 10px var(--gold-shadow);
  margin-bottom: 28px;
}

.badge-sparkle {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-primary);
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  max-width: 920px;
  margin: 0 auto 22px;
  letter-spacing: -0.01em;
}

.hero-title span.gold-highlight {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.hero-hours-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2E8540;
  display: inline-block;
  box-shadow: 0 0 6px rgba(46, 133, 64, 0.4);
}

/* ==========================================================================
   DOBRA 2: A CONDUÇÃO ESTRATÉGICA (O Princípio da Curadoria)
   ========================================================================== */
.section-curation {
  padding: 80px 0;
  position: relative;
}

.section-curation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--grad-gold-line);
}

.section-header-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* Grid de Condução com Fio de Luz Dourado */
.curation-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.curation-step-card {
  position: relative;
  background: var(--gold-card-bg);
  border: 1px solid var(--gold-border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: 0 4px 20px var(--gold-shadow);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth);
}

.curation-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-focus);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.step-card-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.step-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   DOBRA 3: PROVA REAL DO PERFIL OFICIAL (Sem Dados Inflados)
   191 posts · 571 seguidores · 2.814 seguindo
   ========================================================================== */
.section-proof {
  padding: 80px 0;
  position: relative;
}

.section-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--grad-gold-line);
}

.proof-panel-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 246, 240, 0.85) 100%);
  border: 1px solid var(--gold-border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 8px 32px var(--gold-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.proof-handle-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gold-border-focus);
  margin-bottom: 32px;
  min-height: 48px;
  transition: all 0.3s var(--ease-smooth);
}

.proof-handle-badge:hover, .proof-handle-badge:focus-visible {
  background: #FFFFFF;
  box-shadow: 0 4px 16px var(--gold-glow);
  transform: translateY(-1px);
}

.instagram-icon {
  width: 20px;
  height: 20px;
  stroke: var(--gold-deep);
}

.proof-handle-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.proof-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 680px;
  gap: 20px;
  margin-bottom: 36px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(197, 155, 78, 0.15);
}

.metric-value {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.3s ease;
}

.proof-action-link:hover, .proof-action-link:focus-visible {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* ==========================================================================
   DOBRA 4: CHAMADA DE FECHAMENTO (CTA FINAL COM FRASE LITERAL)
   "Entre em contato comigo!"
   ========================================================================== */
.section-final-cta {
  padding: 80px 0 100px;
  position: relative;
  text-align: center;
}

.section-final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--grad-gold-line);
}

.final-cta-surface {
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, rgba(253, 251, 247, 0.95) 70%, rgba(250, 246, 240, 0.9) 100%);
  border: 1px solid var(--gold-border-focus);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  box-shadow: 0 12px 40px var(--gold-glow);
  max-width: 840px;
  margin: 0 auto;
}

.final-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  line-height: 1.2;
}

.final-cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL (COM REGRA LEGAL DO CRECI DE 25%)
   ========================================================================== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--gold-border-light);
  background: rgba(255, 255, 255, 0.7);
  padding: 48px 0 36px;
}

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

/* A marca tem fonte base de 1.25rem (20px). A regra dos 25% exige que a linha
   do CRECI/registro tenha pelo menos 5px. Usamos 14px (70% do tamanho da marca),
   garantindo total conformidade legal (Lei nº 6.530/78 e COFECI) */
.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.footer-creci-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem; /* 14px - Piso legal respeitado (> 25% da marca) */
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 600px;
}

.creci-legal-status {
  font-weight: 600;
  color: var(--gold-deep);
}

.footer-url-line {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-url-line a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.footer-url-line a:hover, .footer-url-line a:focus-visible {
  text-decoration: underline;
}

/* ==========================================================================
   SCROLL REVEAL SUAVE (OPACIDADE DE 0.9 PARA 1, SEM ATRASO POR ÍNDICE)
   100% VISÍVEL SE JS ESTIVER DESLIGADO OU FALHAR
   ========================================================================== */
.reveal-block {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease-smooth), transform 0.45s var(--ease-smooth);
}

.js-ready .reveal-pending {
  opacity: 0.9;
  transform: translateY(12px);
}

.js-ready .reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVIDADE RIGOROSA (Varredura 320px -> 1920px)
   ========================================================================== */
@media (max-width: 900px) {
  .curation-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .curation-step-card {
    padding: 28px 22px;
  }
}

/* Regra Obrigatória Abaixo de 430px (Celulares) */
@media (max-width: 430px) {
  .site-container {
    padding: 0 16px;
  }

  .header-inner {
    height: 68px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.75rem;
  }

  .header-action span {
    display: none; /* Mantém apenas o ícone no cabeçalho em telas estreitas */
  }

  .header-action {
    padding: 10px 14px;
  }

  .hero-section {
    padding: 40px 0 50px;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.18;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }

  .btn-gold-primary {
    width: 100%;
    padding: 16px 20px;
    font-size: 0.975rem;
  }

  /* Componente em linha: Grade de Métricas do Instagram */
  .proof-panel-surface {
    padding: 32px 18px;
  }

  .proof-metrics-row {
    grid-template-columns: 1fr; /* Coluna única no mobile para evitar aperto */
    gap: 12px;
  }

  .metric-item {
    padding: 14px;
  }

  .metric-value {
    font-size: 2rem;
  }

  .final-cta-surface {
    padding: 40px 18px;
  }

  .footer-creci-block {
    font-size: 0.875rem; /* Piso mínimo de 14px mantido */
  }
}

/* Telas Extremamente Estreitas (320px) */
@media (max-width: 340px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-curation-badge {
    padding: 6px 12px;
  }
  .badge-text {
    font-size: 0.775rem;
  }
}

/* Paisagem de Celular (Telas Baixas) */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-section {
    padding: 24px 0 40px;
  }
  .hero-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

/* Acessibilidade: prefers-reduced-motion */
@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;
  }
  .btn-gold-primary::after {
    display: none !important;
  }
  #webgl-canvas {
    display: none !important;
  }
}
