/* Lloyd's Shore Pharmacy — Custom Styles */

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

/* Base animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Navbar transitions */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 42, 74, 0.08);
}

.nav-scrolled .font-display,
.nav-scrolled a:not(.bg-navy-800) {
  color: #1B2A4A !important;
}

/* Mobile menu */
#mobile-menu {
  animation: fadeIn 0.3s ease;
}

/* Service card hover */
.service-card {
  will-change: transform;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F0F4FA;
}

::-webkit-scrollbar-thumb {
  background: #9FB3CC;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6B7A99;
}

/* Selection color */
::selection {
  background: #C8A44E;
  color: #1B2A4A;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #C8A44E;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav, #contact-form, button { display: none; }
  body { color: #000; background: #fff; }
}
