/* Custom styles for 321 Closing */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Scroll reveal base — always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate for users who prefer motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(15, 28, 48, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Hero gradient text (if needed) */
.text-gradient-gold {
  background: linear-gradient(135deg, #f4c933 0%, #e8b518 50%, #cc9710 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f4f6fb;
}
::-webkit-scrollbar-thumb {
  background: #c5d1ea;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #98aed6;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.25s ease;
}

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

/* Subtle pattern for testimonials section */
#testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,45,74,0.1), transparent);
}

/* Card shimmer on hover */
.group:hover .bg-navy-50 {
  background: linear-gradient(135deg, #f4f6fb 0%, #fdf7d6 100%);
}
