/* ============================================
   FAIR REPAIR — Animations
   fr-animations.css
   ============================================ */

/* ---- Keyframes ---- */
@keyframes fr-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fr-fade-in-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fr-fade-in-left {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fr-fade-in-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fr-scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fr-scroll-pulse {
  0%, 100% { opacity: 0.5; height: 48px; }
  50%       { opacity: 1; height: 32px; }
}

@keyframes fr-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes fr-pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes fr-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fr-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fr-count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fr-hero-enter {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Entrance ---- */
.fr-hero-content .fr-hero-eyebrow {
  animation: fr-hero-enter 0.7s ease both;
  animation-delay: 0.1s;
}

.fr-hero-content .fr-hero-h1 {
  animation: fr-hero-enter 0.7s ease both;
  animation-delay: 0.25s;
}

.fr-hero-content .fr-hero-desc {
  animation: fr-hero-enter 0.7s ease both;
  animation-delay: 0.4s;
}

.fr-hero-content .fr-hero-actions {
  animation: fr-hero-enter 0.7s ease both;
  animation-delay: 0.55s;
}

.fr-hero-content .fr-hero-stats {
  animation: fr-hero-enter 0.7s ease both;
  animation-delay: 0.7s;
}

/* ---- Scroll Reveal ---- */
.fr-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-reveal.fr-revealed {
  opacity: 1;
  transform: translateY(0);
}

.fr-reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-reveal-left.fr-revealed {
  opacity: 1;
  transform: translateX(0);
}

.fr-reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-reveal-right.fr-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay helpers */
.fr-delay-1 { transition-delay: 0.1s; }
.fr-delay-2 { transition-delay: 0.2s; }
.fr-delay-3 { transition-delay: 0.3s; }
.fr-delay-4 { transition-delay: 0.4s; }
.fr-delay-5 { transition-delay: 0.5s; }

/* ---- Loading spinner ---- */
.fr-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: fr-spin 0.7s linear infinite;
  display: inline-block;
}

/* ---- Number counter animation ---- */
.fr-counter {
  animation: fr-count-up 0.6s ease both;
}

/* ---- Hover lift ---- */
.fr-hover-lift {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26, 39, 68, 0.14);
}

/* ---- Pulse indicator (online/active dot) ---- */
.fr-pulse-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
}

.fr-pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
}

.fr-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.4);
  animation: fr-pulse-ring 1.6s ease-out infinite;
}

/* ---- Underline animation on headings ---- */
.fr-underline-anim {
  display: inline;
  background-image: linear-gradient(to right, var(--fr-amber), var(--fr-amber));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  transition: background-size 0.5s ease;
}

.fr-underline-anim.fr-revealed {
  background-size: 100% 3px;
}

/* ---- Progress bar ---- */
.fr-progress-bar {
  height: 4px;
  background: var(--fr-gray-200);
  border-radius: var(--fr-radius-full);
  overflow: hidden;
}

.fr-progress-bar-fill {
  height: 100%;
  background: var(--fr-amber);
  border-radius: var(--fr-radius-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-progress-bar-fill.fr-animate {
  width: var(--fr-progress, 75%);
}

/* ---- Floating shapes (decorative) ---- */
.fr-float-shape {
  position: absolute;
  pointer-events: none;
  animation: fr-float 6s ease-in-out infinite;
}

.fr-float-shape:nth-child(2) { animation-delay: 1.5s; }
.fr-float-shape:nth-child(3) { animation-delay: 3s; }
