/* Custom styles for Mrs. Meades Morsels */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
  background: #b3c2df;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8da4cf;
}

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

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4A843;
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile link hover */
.mobile-link {
  position: relative;
}

/* Hero image subtle float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* Scroll reveal base — progressive enhancement via JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-float {
    animation: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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