/* ============================================
   Lucky Jack's Belleville — Custom Styles
   ============================================ */

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

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

/* ============================================
   Navigation
   ============================================ */
.nav-scrolled {
  box-shadow: 0 1px 3px rgba(122, 31, 74, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd44d;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
}

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

.blob-1 {
  animation-delay: 0s;
}

.blob-2 {
  animation-delay: -3s;
}

.blob-3 {
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-24px) scale(1.04); }
}

/* Scroll indicator animation */
@keyframes scroll-down {
  0% { top: -16px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

.scroll-line {
  animation: scroll-down 1.6s ease-in-out infinite;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
  max-height: 0;
}

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

/* ============================================
   Reveal Animations (progressive enhancement)
   Only active when JS is enabled AND user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  /* These classes are added by JS for scroll-triggered reveals */
  .reveal-animate.reveal-up {
    opacity: 0;
    transform: translateY(32px);
  }

  .reveal-animate.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
  }

  .reveal-animate.reveal-right {
    opacity: 0;
    transform: translateX(32px);
  }

  .reveal-animate.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Fallback: content always visible if JS is disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

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

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

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

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

/* ============================================
   Selection color
   ============================================ */
::selection {
  background: #f9d4e6;
  color: #3a0e22;
}

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

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.15;
  }
}
