/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf0f1;
}
::-webkit-scrollbar-thumb {
  background: #c92d4e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a81f3a;
}

/* ===== HERO ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.stat-card {
  animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
  animation-delay: 1s;
}

.stat-card:nth-child(4) {
  animation-delay: 1.5s;
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  border-radius: 1.5rem;
}

/* ===== INSURANCE CARDS ===== */
.insurance-card {
  border-radius: 1.5rem;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  border-radius: 1.5rem;
}

/* ===== NAVBAR SCROLL STATE ===== */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.1);
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:not(.visible) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.3s ease;
}

#back-to-top.visible {
  transition: all 0.3s ease;
}

/* ===== FORM FOCUS STATES ===== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.15);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .stat-card {
    animation: none;
  }
}
