/* ===== Custom Styles for Mom's Drive-In ===== */

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

/* Selection color */
::selection {
  background-color: rgba(202, 138, 4, 0.3);
  color: #f5f5f5;
}

/* ===== Navbar ===== */
#navbar {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
  background-color: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .font-serif {
  color: #f5f5f5;
}

/* ===== Mobile Menu ===== */
.mobile-link {
  font-size: 1.25rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(82, 82, 82, 0.3);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-state="hidden"] {
  opacity: 0;
  transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
  }

  .reveal[data-reveal-state="visible"] {
    opacity: 1;
    transform: none;
  }
}

/* ===== Gold gradient text utility ===== */
.text-gradient-gold {
  background: linear-gradient(135deg, #fde68a, #eab308, #a16207);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Card hover effects ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* ===== Image aspect ratio helpers ===== */
.aspect-card {
  aspect-ratio: 4 / 3;
}

/* ===== Button focus styles ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid #eab308;
  outline-offset: 2px;
  border-radius: 9999px;
}

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

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

/* ===== Gold shimmer on hover for CTA ===== */
a[href="#menu"]:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== Responsive typography adjustments ===== */
@media (max-width: 640px) {
  .font-serif {
    letter-spacing: -0.01em;
  }
}

@media (min-width: 1024px) {
  .lg\:hover\:border-gold-600\/30:hover {
    border-color: rgba(202, 138, 4, 0.3);
  }
}
