/* =====================================================
   BASE.CSS
   Responsável por: Variáveis CSS, Reset global,
   Scrollbar, Utilitários, Botões e Social Links.
   ===================================================== */

/* ─────────────────────────────────────────────────────
   1. VARIÁVEIS CSS
   ───────────────────────────────────────────────────── */
:root {
  /* Fundos — neutros, sem tint verde */
  --bg-primary: #07070f;
  --bg-secondary: #0c0c18;
  --bg-card: #111120;
  --bg-card-hover: #18182c;

  /* Bordas */
  --border: #1c1c30;
  --border-light: #252545;

  /* Texto */
  --text-primary: #f0f2f8;
  --text-secondary: #8a96b8;
  --text-muted: #484e6e;

  /* Paleta Azul principal (destaque) */
  --green: #3b82f6;
  --green-dark: #1d4ed8;
  --green-light: #60a5fa;
  --green-glow: rgba(59, 130, 246, 0.1);
  --green-glow-strong: rgba(59, 130, 246, 0.22);

  /* Paleta Azul claro (segundo destaque) */
  --teal: #818cf8;
  --teal-dark: #4f46e5;
  --teal-light: #a5b4fc;
  --teal-glow: rgba(129, 140, 248, 0.12);

  /* Gradientes reutilizáveis */
  --gradient-btn: linear-gradient(
    135deg,
    #1d4ed8 0%,
    #3b82f6 55%,
    #60a5fa 100%
  );
  --gradient-title: linear-gradient(135deg, #f0f2f8 0%, #a5b4fc 100%);
  --gradient-border: linear-gradient(
    135deg,
    var(--green-dark),
    var(--teal-light)
  );
  --gradient-card: linear-gradient(145deg, #111120 0%, #0c0c1a 100%);
  --gradient-teal-btn: linear-gradient(
    135deg,
    var(--teal-dark) 0%,
    var(--teal) 55%,
    var(--teal-light) 100%
  );

  /* Glow multi-camada (progressivo) */
  --glow-soft:
    0 0 10px rgba(59, 130, 246, 0.1), 0 0 24px rgba(59, 130, 246, 0.04);
  --glow-medium:
    0 0 14px rgba(59, 130, 246, 0.18), 0 0 36px rgba(59, 130, 246, 0.08);
  --glow-strong:
    0 0 20px rgba(59, 130, 246, 0.32), 0 0 55px rgba(59, 130, 246, 0.14),
    0 0 90px rgba(59, 130, 246, 0.06);

  /* Sombras */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-green: 0 4px 24px rgba(59, 130, 246, 0.22);
  --shadow-card: 0 8px 48px rgba(0, 0, 0, 0.65);

  /* Bordas arredondadas */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Transições */
  --transition: all 0.28s ease;
  --transition-slow: all 0.5s ease;

  /* Tipografia e layout */
  --font: "Poppins", sans-serif;
  --section-py: 6rem 0;
  --container: 1180px;
}

/* ─────────────────────────────────────────────────────
   2. RESET GLOBAL
   ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* Compensa a navbar fixa */
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: var(--font);
  font-size: inherit;
}

/* ─────────────────────────────────────────────────────
   3. SCROLLBAR PERSONALIZADA
   ───────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--green), var(--teal));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--green-light), var(--teal-light));
}

::selection {
  background: var(--green-glow-strong);
  color: var(--green-light);
}

/* ─────────────────────────────────────────────────────
   4. UTILITÁRIOS GLOBAIS
   ───────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Cabeçalho reutilizável de seção */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}
.section-title span {
  color: var(--green);
}

.section-line {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  margin: 0.6rem auto;
  border-radius: 2px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0.6rem auto 0;
  font-size: 0.93rem;
}

/* ─────────────────────────────────────────────────────
   5. BOTÕES
   ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

/* Verde sólido */
.btn-primary {
  background: var(--gradient-btn);
  color: #000;
  border-color: transparent;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* Azul contorno */
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.btn-outline:hover {
  background: var(--green-glow);
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

/* WhatsApp */
.btn-whatsapp {
  background: #25d366;
  color: #000;
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1fc75e;
  border-color: #1fc75e;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* ─────────────────────────────────────────────────────
   6. SOCIAL LINKS (círculos com ícone)
   ───────────────────────────────────────────────────── */
.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.social-link:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
  box-shadow: var(--glow-soft);
}

/* ─────────────────────────────────────────────────────
   7. SVG GRID BACKGROUND (compartilhado entre seções)
   ───────────────────────────────────────────────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Garante que o conteúdo das seções fique acima do grid */
section > .container,
section > .hero-container {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────
   8. ORBS DECORATIVOS (brilhos atmosféricos)
   ───────────────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

/* Hero — orb superior esquerdo */
.orb--hero-tl {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  animation: orbDrift 12s ease-in-out infinite alternate;
}

/* Hero — orb inferior direito */
.orb--hero-br {
  width: 440px;
  height: 440px;
  bottom: -140px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.14) 0%,
    transparent 70%
  );
  animation: orbDrift 16s ease-in-out infinite alternate-reverse;
}

/* Hero — orb central difuso (profundidade) */
.orb--hero-center {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 65%
  );
  filter: blur(120px);
}

/* Seções — orb lateral direito */
.orb--section-right {
  width: 380px;
  height: 380px;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  animation: orbPulse 8s ease-in-out infinite;
}

/* Seções — orb lateral esquerdo */
.orb--section-left {
  width: 380px;
  height: 380px;
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.1) 0%,
    transparent 70%
  );
  animation: orbPulse 10s ease-in-out infinite reverse;
}

@keyframes orbDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 20px) scale(1.08);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.12);
  }
}
