/* Custom styles for Crisfield Creamery */

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d9a441;
  outline-offset: 2px;
}

/* Subtle selection color */
::selection {
  background: #d9a441;
  color: #102a43;
}

/* Prevent image flicker on load */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Navbar transition */
#nav.scrolled {
  background: rgba(10, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Card hover lift */
.group:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.group {
  transition: transform 0.3s ease;
}

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

/* 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;
  }
}
