/* ==========================================================================
   Animations & Micro-Interactions
   @package IvoJackson
   ========================================================================== */

/* ===== Button Hover Pulse ===== */
.btn--gold:active,
.btn--cerulean:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}

/* ===== Nav Link Underline Slide ===== */
@keyframes underlineSlide {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== Hero Content Entrance ===== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content h1 {
  animation: heroFadeUp 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.2s both;
}

.hero__content .hero__tagline {
  animation: heroFadeUp 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.4s both;
}

.hero__content .btn-group {
  animation: heroFadeUp 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.6s both;
}

/* ===== Step Card Number Pulse ===== */
.step-card:hover .step-card__number {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.step-card__number {
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ===== Service Card Step Badge ===== */
.service-card:hover .service-card__step {
  background-color: var(--cerulean);
  color: var(--white);
  transition: all 0.3s ease;
}

.service-card--upcoming:hover .service-card__step {
  background-color: var(--gold);
  color: var(--white);
}

/* ===== Comparison Table Row Highlight ===== */
.comparison-table tbody tr {
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover td:first-child {
  background-color: #FEE2E2;
}

.comparison-table tbody tr:hover td:last-child {
  background-color: #DCFCE7;
}

/* ===== Pull Quote Entrance ===== */
.pull-quote {
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.pull-quote:hover {
  border-left-width: 6px;
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

/* ===== Post Card Image Zoom ===== */
.post-card__image {
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  overflow: hidden;
}

.post-card:hover .post-card__image {
  transform: scale(1.03);
}

/* ===== About Image Subtle Float ===== */
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about-hero__image.revealed img {
  animation: subtleFloat 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* ===== Focus States (Accessibility) ===== */
.btn:focus-visible,
a:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ===== Loading State ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg,
    var(--border-light) 25%,
    var(--off-white) 50%,
    var(--border-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .about-hero__image.revealed img {
    animation: none;
  }
}
