/* Mission Pharmacy — Custom Styles */

/* Smooth scroll offset for fixed nav */
html {
  scroll-padding-top: 80px;
}

/* Selection color */
::selection {
  background-color: #ffca00;
  color: #2a1118;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f9f1f4;
}
::-webkit-scrollbar-thumb {
  background: #a34d68;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8a3a52;
}

/* Hero floating cards animation */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float-4 {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card-1 { animation: float-1 4s ease-in-out infinite; }
  .hero-card-2 { animation: float-2 5s ease-in-out infinite; }
  .hero-card-3 { animation: float-3 3.5s ease-in-out infinite; }
  .hero-card-4 { animation: float-4 4.5s ease-in-out infinite; }
}

/* Service card image hover */
.group:hover .service-icon {
  transform: scale(1.1);
}

/* Subtle entrance animation for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure all text is readable on its background */
.bg-plum-950 .text-plum-200,
.bg-plum-900 .text-plum-200 {
  color: rgb(232 192 209);
}

/* Mobile menu transition */
#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
