/* ═══════════════════════════════════════════════════════════════
   COMBO DAS ESTRELAS — DESIGN SYSTEM
   Versão 1.0 | Dark Luxury Gold & Cosmic Purple
   Agente A1 — Arquiteto Frontend
   ═══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   RESET & BASE
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #000000;
  color: #E8E0D0;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.7;
  transition: background 1.2s ease-in-out;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ──────────────────────────────────────────────────────────── */
:root {
  /* — Fundos Preto/Escuro — */
  --bg-absolute:   #000000;
  --bg-elevated:   #080810;
  --bg-card:       #0d0d18;

  /* — Dourado Premium — */
  --gold-primary:  #D4AF37;
  --gold-bright:   #F5DEB3;
  --gold-neon:     #FFD700;
  --gold-dark:     #8B6914;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5DEB3 40%, #D4AF37 70%, #8B6914 100%);
  --gold-shimmer:  linear-gradient(90deg, #D4AF37, #FFD700, #FFFFFF, #D4AF37, #8B6914);

  /* — Tipografia — */
  --text-white:    #FFFFFF;
  --text-light:    #E8E0D0;
  --text-muted:    rgba(232, 224, 208, 0.55);

  /* — Ecoar: Roxo Profundo — */
  --ecoar-bg-darkest: #0D0118;
  --ecoar-bg-deep:    #1A0535;
  --ecoar-bg-mid:     #2D0A5E;

  --ecoar-purple:      #7B2FBE;
  --ecoar-purple-neon: #9B3DFF;
  --ecoar-purple-glow: rgba(123, 47, 190, 0.35);

  --ecoar-orange:      #FF6B00;
  --ecoar-orange-bright:#FF8C00;
  --ecoar-amber:       #FFC040;

  /* — Gradiente de transição Black → Purple — */
  --transition-gradient: linear-gradient(
    to bottom,
    #000000 0%,
    #080810 30%,
    #0D0118 60%,
    #1A0535 80%,
    #2D0A5E 100%
  );

  /* — Espaçamentos — */
  --section-padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 6vw, 8rem);
  --gap-md: clamp(1.5rem, 3vw, 2.5rem);
  --gap-lg: clamp(2rem, 4vw, 4rem);

  /* — Border Radius — */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  /* — Transições — */
  --transition-fast:   0.2s ease;
  --transition-med:    0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow:   0.8s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ────────────────────────────────────────────────────────────
   TIPOGRAFIA
   ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
}

.font-cinzel       { font-family: 'Cinzel', serif; }
.font-cinzel-deco  { font-family: 'Cinzel Decorative', serif; }
.font-playfair     { font-family: 'Playfair Display', serif; }
.font-cormorant    { font-family: 'Cormorant Garamond', serif; }
.font-inter        { font-family: 'Inter', sans-serif; }
.font-montserrat   { font-family: 'Montserrat', sans-serif; }

/* Tamanhos responsivos de títulos */
.title-hero     { font-size: clamp(2.5rem, 6vw, 5.5rem); }
.title-section  { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.title-sub      { font-size: clamp(1.2rem, 2.5vw, 2rem); }
.body-text      { font-size: clamp(0.95rem, 1.5vw, 1.1rem); }
.caption-text   { font-size: clamp(0.8rem, 1.2vw, 0.9rem); }

/* ────────────────────────────────────────────────────────────
   UTILITÁRIOS DE COR & GRADIENTE
   ──────────────────────────────────────────────────────────── */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-ecoar-gradient {
  background: linear-gradient(135deg, var(--ecoar-amber), var(--ecoar-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold    { color: var(--gold-primary); }
.text-white   { color: var(--text-white); }
.text-muted   { color: var(--text-muted); }
.text-amber   { color: var(--ecoar-amber); }
.text-orange  { color: var(--ecoar-orange); }
.text-purple  { color: var(--ecoar-purple-neon); }

/* ────────────────────────────────────────────────────────────
   LAYOUT UTILITÁRIOS
   ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4rem);
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.grid-2      { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); }
.grid-3      { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.grid-4      { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }

/* ────────────────────────────────────────────────────────────
   DIVISOR DOURADO
   ──────────────────────────────────────────────────────────── */
.divider-gold {
  width: 80px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 1.5rem auto;
  border-radius: 2px;
}

.divider-gold-left {
  width: 80px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 1.5rem 0;
  border-radius: 2px;
}

/* ────────────────────────────────────────────────────────────
   SEÇÕES — BASE
   ──────────────────────────────────────────────────────────── */
section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-pad {
  padding: var(--section-padding);
}

/* Overlay escuro genérico para backgrounds */
.overlay-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* ────────────────────────────────────────────────────────────
   LABEL DE SEÇÃO (supra-título)
   ──────────────────────────────────────────────────────────── */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold-gradient);
}

/* ────────────────────────────────────────────────────────────
   BOTÕES
   ──────────────────────────────────────────────────────────── */

/* Botão Dourado Primário */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-gradient);
  color: #0a0a0a;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-med);
  white-space: nowrap;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transition: left 0.5s ease;
}

.btn-gold:hover::before { left: 100%; }

.btn-gold:hover {
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.7),
    0 0 60px rgba(212, 175, 55, 0.25);
  transform: scale(1.04);
}

/* Botão Dourado Outline */
.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--gold-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 1rem 2.5rem;
  transition: var(--transition-med);
  white-space: nowrap;
}

.btn-gold-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Botão Ecoar — Roxo/Laranja */
.btn-ecoar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7B2FBE 0%, #FF6B00 100%);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  padding: 1.1rem 3rem;
  transition: var(--transition-med);
  white-space: nowrap;
}

.btn-ecoar:hover {
  box-shadow:
    0 0 25px rgba(155, 61, 255, 0.55),
    0 0 50px rgba(255, 107, 0, 0.25);
  transform: scale(1.06);
}

/* ────────────────────────────────────────────────────────────
   CARDS
   ──────────────────────────────────────────────────────────── */

/* Card Dourado (Fase 1) */
.card-gold {
  background: rgba(8, 8, 16, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-med);
}

.card-gold:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow:
    0 0 25px rgba(212, 175, 55, 0.15),
    0 0 60px rgba(212, 175, 55, 0.06),
    inset 0 1px 0 rgba(255, 215, 0, 0.1);
  transform: translateY(-4px);
}

.card-gold .card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.card-gold h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
}

.card-gold p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Card Ecoar (Fase 2) */
.card-ecoar {
  background: rgba(13, 1, 24, 0.75);
  border: 1px solid rgba(123, 47, 190, 0.3);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-med);
}

.card-ecoar:hover {
  border-color: rgba(155, 61, 255, 0.6);
  box-shadow:
    0 0 30px rgba(123, 47, 190, 0.25),
    0 0 60px rgba(255, 107, 0, 0.08);
}

/* ────────────────────────────────────────────────────────────
   LINHA DECORATIVA DOURADA
   ──────────────────────────────────────────────────────────── */
.star-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--gold-primary);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
}

.star-divider::before,
.star-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

/* ────────────────────────────────────────────────────────────
   BODY: Estado de Transição (Preto → Roxo)
   ──────────────────────────────────────────────────────────── */
body.entering-ecoar {
  background: var(--transition-gradient);
}

body.in-ecoar {
  background: var(--ecoar-bg-deep);
}

/* ────────────────────────────────────────────────────────────
   BOTÃO WHATSAPP FLUTUANTE GLOBAL
   ──────────────────────────────────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease;
  text-decoration: none;
}

#whatsapp-float:hover { transform: scale(1.12); }

#whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wp-pulse-ring {
  position: absolute;
  border: 3px solid rgba(37, 211, 102, 0.5);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  animation: wp-pulse 2s ease-out infinite;
  pointer-events: none;
}

/* ────────────────────────────────────────────────────────────
   SCROLL TO TOP BUTTON
   ──────────────────────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 110px;
  right: 36px;
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scroll-top:hover {
  background: rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ────────────────────────────────────────────────────────────
   TAGS & BADGES
   ──────────────────────────────────────────────────────────── */
.badge-gold {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-pill);
  color: var(--gold-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
}

.badge-ecoar {
  display: inline-block;
  background: rgba(123, 47, 190, 0.15);
  border: 1px solid rgba(155, 61, 255, 0.4);
  border-radius: var(--radius-pill);
  color: var(--ecoar-purple-neon);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
}

/* ────────────────────────────────────────────────────────────
   SELEÇÃO DE TEXTO  
   ──────────────────────────────────────────────────────────── */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--gold-bright);
}

/* ────────────────────────────────────────────────────────────
   SCROLLBAR PERSONALIZADA
   ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }
