/* =========================================
   DRD – Animations / Hover / Motion
   ========================================= */
/* Hover motion for card-like elements */
.card,
.hero-photo-card,
.services-preview,
.process-aside,
.faq-item {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover,
.hero-photo-card:hover,
.services-preview:hover,
.process-aside:hover,
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 23, 55, 0.18);
}
/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Subtle pulse for hero primary button */
.hero .btn-primary {
  position: relative;
  z-index: 1;
}
.hero .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 0 rgba(0, 124, 158, 0.45);
  opacity: 0;
  z-index: -1;
  animation: hero-btn-pulse 2.6s ease-out infinite;
}
@keyframes hero-btn-pulse {
  0% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(0, 124, 158, 0.45);
  }
  70% {
    opacity: 0;
    box-shadow: 0 0 0 18px rgba(0, 124, 158, 0);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(0, 124, 158, 0);
  }
}
/* Respect system "reduce motion" preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-visible,
  .card,
  .hero-photo-card,
  .services-preview,
  .process-aside,
  .faq-item,
  .site-header {
    transition: none !important;
    transform: none !important;
  }
  .hero .btn-primary::after {
    display: none;
  }
}
/* Smooth page fade on navigation */
.page-fade {
  opacity: 1;
  transition: opacity 0.25s ease-out;
}
.page-fade--out {
  opacity: 0;
}
