/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */

/* --- Fade up (scroll reveal) --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --- Classes de animação --- */
.animate-fade-up    { animation: fadeUp    0.5s ease both; }
.animate-fade-in    { animation: fadeIn    0.4s ease both; }
.animate-scale-in   { animation: scaleIn   0.4s ease both; }
.animate-slide-right { animation: slideInRight 0.4s ease both; }

/* Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* --- Scroll reveal (classe adicionada via JS) --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.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.3s; }

/* --- Pulse verde no logo dot --- */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

.navbar__logo-dot {
  animation: pulse 2.5s ease-in-out infinite;
}

/* --- Loader botão --- */
.btn--loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(22, 51, 0, 0.3);
  border-top-color: var(--color-dark-green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Hover card lift --- */
.card-hover {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}

/* --- Number count-up (visual indicator) --- */
.stat-number {
  display: inline-block;
  transition: transform var(--transition-normal);
}

.stat-number:hover {
  transform: scale(1.05);
  color: var(--color-wise-green);
}

/* --- Gradient text --- */
.text-gradient {
  background: linear-gradient(135deg, var(--color-wise-green), var(--color-pastel-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Focus ring global (acessibilidade) --- */
:focus-visible {
  outline: 2px solid var(--color-wise-green);
  outline-offset: 3px;
  border-radius: var(--radius-standard);
}

/* --- Scrollbar customizado --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-light-surface); }
::-webkit-scrollbar-thumb {
  background: var(--color-wise-green);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-dark-green); }

/* --- Selection --- */
::selection {
  background: var(--color-wise-green);
  color: var(--color-dark-green);
}
