/* ===== CUSTOM STYLES for W & K Pharmacy Corp ===== */

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

/* Base adjustments */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(128, 0, 32, 0.08);
}

/* Service cards - custom hover handled via JS for staggered animation */
.service-card {
  will-change: transform, box-shadow;
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal base - content is visible by default, JS adds animated state */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal.animated {
    opacity: 1;
    transform: translateY(0);
  }
  .animate-bounce {
    animation: none;
  }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 3px solid #ec748e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fff8f9;
}
::-webkit-scrollbar-thumb {
  background: #f4a8b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #df4568;
}

/* Form focus states */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(223, 69, 104, 0.15);
}

/* Map container */
iframe {
  filter: saturate(0.8) contrast(1.05);
  transition: filter 0.3s ease;
}
iframe:hover {
  filter: saturate(1) contrast(1);
}
