/* Custom styles — extends Tailwind with fine-tuned touches */

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

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

/* Selection color */
::selection {
  background: #f9d0d9;
  color: #6b1c30;
}

/* Subtle image loading shimmer */
img {
  background: linear-gradient(90deg, #fce7eb 25%, #fdf2f4 50%, #fce7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
img[src] {
  animation: none;
  background: none;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Mobile nav transitions */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}
#mobile-menu.closed {
  max-height: 0;
  opacity: 0;
}

/* Active nav link highlight */
nav a.active {
  color: #b82d4f;
}

/* Button press effect */
button:active, a:active {
  transform: scale(0.98);
}
