/* Custom styles for Bake City Bagels */

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

/* Scroll reveal base — content is visible by default, JS adds animated state */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Only apply hidden state if JS is enabled — progressive enhancement */
.js-active .reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.js-active .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.js-active .reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Navbar scroll state */
#site-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom selection color */
::selection {
  background-color: #D4A036;
  color: #0A1628;
}

/* Subtle image hover zoom */
img {
  max-width: 100%;
  height: auto;
}

/* Card hover lift effect */
.group:hover {
  transform: translateY(-4px);
}

.group {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
  max-height: 400px;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #D4A036;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Ensure images don't overflow */
img {
  vertical-align: middle;
}
