/* Custom styles for Mojoe 2 Go Faribault */

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

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

/* Scroll reveal base — content always visible by default */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only apply hidden state when JS is enabled via progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Gold shimmer on hover for buttons */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Subtle pulse for CTA buttons */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(212, 168, 75, 0); }
}

/* Floating animation for hero badge */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Gold line animation */
@keyframes grow-line {
  from { width: 0; }
  to { width: 100%; }
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(5, 22, 5, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 75, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .logo-text {
  color: #faf8f4;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #051605;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #d4a84b, #b8862e);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #e8c55a, #d4a84b);
}

/* Selection color */
::selection {
  background: rgba(212, 168, 75, 0.3);
  color: #faf8f4;
}

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

/* Image lazy loading fade */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

#mobile-menu.closing {
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 500px;
  }
  to {
    opacity: 0;
    max-height: 0;
  }
}

/* Product card tilt effect on hover */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #f0d68a, #d4a84b, #b8862e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reduced motion */
@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.hidden {
    opacity: 1;
    transform: none;
  }
}

/* Print styles */
@media print {
  nav,
  #drive-thru,
  button {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
