/* ============================================================
   GLOBAL.CSS — AJ Souza Advocacia
   Variáveis, Reset, Tipografia, Utilitários, Efeitos Padrão
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== VARIÁVEIS DE DESIGN (TOKENS) ===== */
:root {
  /* Cores */
  --gold:        #b8965a;
  --gold-light:  #d4b97c;
  --gold-dim:    rgba(184,150,90,0.15);
  --dark:        #111010;
  --dark-2:      #1a1917;
  --cream:       #faf9f7;
  --cream-2:     #f3f0eb;
  --text:        #2b2b2b;
  --text-light:  #787060;
  --white:       #ffffff;

  /* Tipografia */
  --font-serif:  'Cormorant Garamond', serif;
  --font-sans:   'Jost', sans-serif;

  /* Espaçamentos de seção */
  --section-pad: 140px 0;
  --section-pad-sm: 100px 0;

  /* Container */
  --container-max: 1140px;
  --container-pad: 0 40px;
}

/* ===== TIPOGRAFIA BASE ===== */
body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===== GRAIN OVERLAY (efeito textura global) ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9997;
}

/* ===== CURSOR CUSTOMIZADO (desativado por padrão) ===== */
.cursor-dot, .cursor-ring { display: none; }

/* ===== UTILITÁRIOS ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
}

.section-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 40px;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

/* ===== EFEITO REVEAL (Scroll Animation) ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* ===== ANIMAÇÕES PADRÃO ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}
@keyframes floatScale {
  0%, 100% { transform: translateY(-50%) rotate(-2deg); }
  50%       { transform: translateY(-53%) rotate(2deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== BOTÕES PADRÃO ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.76,0,0.24,1);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: rgba(184,150,90,0.5);
  color: var(--gold);
}

/* ===== WHATSAPP FIXO ===== */
.whatsapp-fixed {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
  text-decoration: none;
}
.whatsapp-fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.whatsapp-fixed svg { width: 28px; height: 28px; fill: #fff; }

.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 9989;
  width: 56px; height: 56px;
  background: rgba(12,11,10,0.72);
  border: 1px solid rgba(184,150,90,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: opacity 0.3s ease, background 0.2s;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  background: rgba(184,150,90,0.15);
}
.scroll-top svg { width: 18px; height: 18px; fill: rgba(184,150,90,0.85); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
}
