/* ==========================================================================
   ROGERIO REIMBERG | IMÓVEIS SC - PREMIUM LINK-IN-BIO LUXURY SYSTEM
   Paleta: Preto Profundo, Dourado Nobre Metálico, Grafite e Branco Quente
   ========================================================================== */

:root {
  /* Colors */
  --bg-dark: #08080a;
  --bg-deep: #050507;
  --bg-card: rgba(16, 18, 24, 0.85);
  --bg-card-hover: rgba(24, 28, 38, 0.95);
  
  --gold-primary: #d4af37;
  --gold-bright: #f5cf53;
  --gold-light: #fef1b8;
  --gold-dark: #996515;
  --gold-border: rgba(212, 175, 55, 0.28);
  --gold-border-bright: rgba(245, 207, 83, 0.65);
  --gold-glow: rgba(212, 175, 55, 0.22);
  --gold-glow-strong: rgba(245, 207, 83, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --graphite-surface: #141720;
  --graphite-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-serif: 'Cinzel', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacings & Layout */
  --max-content-width: 540px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden !important;
}

/* Accessible Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

/* ==========================================================================
   Ambient Luxury Background
   ========================================================================== */
.luxury-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #161822 0%, var(--bg-dark) 70%, var(--bg-deep) 100%);
}

.ambient-spotlight {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6;
}

.spotlight-top {
  width: 380px;
  height: 380px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.04) 50%, transparent 70%);
}

.spotlight-bottom {
  width: 440px;
  height: 440px;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(153, 101, 21, 0.12) 0%, transparent 70%);
}

.subtle-mesh-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}

/* ==========================================================================
   Page Wrapper
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 36px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* ==========================================================================
   Top Announcement Pill
   ========================================================================== */
.top-pill-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  background: rgba(16, 18, 24, 0.75);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-bright);
  animation: pulse-gold 2.4s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px var(--gold-bright); }
}

.pill-text {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 6px;
}

.avatar-ring-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow-strong) 0%, transparent 75%);
  filter: blur(10px);
  z-index: 1;
}

.avatar-ring-border {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-dark) 50%, var(--gold-primary) 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: var(--graphite-surface);
}

.avatar-verified-badge {
  position: absolute;
  bottom: 4px;
  right: 6px;
  z-index: 3;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-dark) 100%);
  border: 2.5px solid var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.broker-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  line-height: 1.15;
}

.broker-subtag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-secondary);
}

.subtag-gold {
  color: var(--gold-primary);
  font-weight: 700;
}

.subtag-divider {
  color: var(--gold-border);
  font-size: 0.7rem;
}

.hero-copy-box {
  max-width: 440px;
  padding: 0 10px;
}

.hero-copy {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.55;
  font-weight: 400;
}

.text-gold-gradient {
  background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold-bright) 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Trust Tags */
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(20, 24, 34, 0.6);
  border: 1px solid var(--graphite-border);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trust-tag svg {
  color: var(--gold-primary);
}

/* ==========================================================================
   Links Section (Cards de Alto Padrão)
   ========================================================================== */
/* ==========================================================================
   Links Section (Cards de Alto Padrão - 100% Compatível Mobile & WebViews)
   ========================================================================== */
.links-section {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  visibility: visible !important;
  opacity: 1 !important;
}

.link-card {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 76px;
  border-radius: var(--radius-md);
  text-decoration: none;
  overflow: hidden;
  background-color: #12141c !important;
  background: var(--bg-card);
  transition: var(--transition-smooth);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  visibility: visible !important;
  opacity: 1 !important;
}

@supports ((-webkit-backdrop-filter: blur(14px)) or (backdrop-filter: blur(14px))) {
  .link-card {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

/* Card 1: Destaque WhatsApp Primário (Dourado de Elite) */
.card-primary-gold {
  background-color: #1a1814 !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(20, 24, 32, 0.92) 60%, rgba(12, 14, 18, 0.98) 100%) !important;
  border: 1px solid var(--gold-border-bright) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow);
}

.card-primary-gold:hover,
.card-primary-gold:active {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--gold-bright) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 35px var(--gold-glow-strong);
}

.card-primary-gold .card-badge-inline {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light) !important;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(245, 207, 83, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.card-primary-gold .card-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff !important;
}

.card-primary-gold .card-description {
  font-size: 0.8rem;
  color: #cbd5e1 !important;
}

.card-primary-gold .gold-icon-bg {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-dark) 100%) !important;
  color: #000000 !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.card-primary-gold .card-action-arrow {
  color: var(--gold-bright) !important;
}

/* Cards Secundários (Luxury Glassmorphism & Gold Hairlines) */
.card-luxury {
  background-color: #12141c !important;
  background: var(--bg-card);
  border: 1px solid var(--gold-border) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.card-luxury:hover,
.card-luxury:active {
  transform: translateY(-2px);
  background-color: #161a24 !important;
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

.card-icon-box {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary) !important;
  transition: var(--transition-smooth);
}

.card-luxury:hover .card-icon-box {
  color: var(--gold-bright) !important;
  border-color: var(--gold-bright) !important;
  background: rgba(212, 175, 55, 0.1);
  transform: scale(1.05);
}

.card-content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.card-title {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff !important;
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: normal;
}

.card-description {
  font-size: 0.77rem;
  color: #a0aec0 !important;
  line-height: 1.35;
  white-space: normal;
}

.card-action-arrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.link-card:hover .card-action-arrow {
  color: var(--gold-bright);
  transform: translateX(4px);
}

/* ==========================================================================
   SHINY SWEEP EFFECT (Camada z-index segura e sem bugs de renderização)
   ========================================================================== */
.shiny-sweep {
  position: relative;
  overflow: hidden;
}

.shiny-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -130%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(245, 207, 83, 0.22) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shiny-sweep:hover::after,
.shiny-sweep:active::after,
.shiny-sweep.touch-active::after {
  opacity: 1;
  animation: sweep-motion 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animação Periódica Discreta no CTA Principal */
@keyframes periodic-sweep {
  0%, 75% {
    left: -120%;
    opacity: 0;
  }
  80% {
    opacity: 0.8;
  }
  95% {
    left: 180%;
    opacity: 0.8;
  }
  100% {
    left: 180%;
    opacity: 0;
  }
}

.card-primary-gold::after {
  opacity: 0.6;
  animation: periodic-sweep 7s ease-in-out infinite;
}

@keyframes sweep-motion {
  0% {
    left: -120%;
  }
  100% {
    left: 180%;
  }
}

/* ==========================================================================
   Pillars & Authority Section
   ========================================================================== */
.pillars-section {
  width: 100%;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-primary) 50%, transparent 100%);
  border-radius: 2px;
}

.pillars-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
}

.pillars-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pillar-item {
  background: rgba(14, 16, 22, 0.7);
  border: 1px solid var(--graphite-border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.pillar-item:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
  background: rgba(20, 24, 32, 0.85);
}

.pillar-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
}

.pillar-item h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.pillar-item p {
  font-size: 0.69rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */
.final-cta-section {
  width: 100%;
  margin-top: 4px;
}

.final-cta-card {
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.85) 0%, rgba(10, 12, 16, 0.95) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.final-cta-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.final-cta-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.45;
}

.btn-gold-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  min-height: 52px;
  padding: 14px 24px;
  background-color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  color: #08080a;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px var(--gold-glow), 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  visibility: visible !important;
  opacity: 1;
}

.btn-gold-action svg,
.btn-gold-action span {
  position: relative;
  z-index: 2;
}

.btn-gold-action:hover,
.btn-gold-action:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 30px var(--gold-glow-strong);
  color: #000;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.page-footer {
  width: 100%;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--graphite-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
}

.footer-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.68rem;
  color: #4a5568;
  max-width: 380px;
  line-height: 1.4;
  margin-top: 4px;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-First Rigoroso)
   ========================================================================== */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 24px 14px 40px;
    gap: 22px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pillar-item {
    flex-direction: row;
    text-align: left;
    padding: 12px 14px;
    gap: 12px;
  }

  .pillar-icon {
    min-width: 34px;
  }

  .link-card {
    padding: 16px 14px;
    gap: 12px;
  }

  .card-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .broker-name {
    font-size: 1.65rem;
  }

  .hero-copy {
    font-size: 0.9rem;
  }
}

@media (max-width: 340px) {
  .broker-name {
    font-size: 1.4rem;
  }
  
  .trust-tags {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   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;
  }

  .shiny-sweep::after {
    display: none !important;
  }

  .status-dot {
    animation: none !important;
  }
}
