/* ============================================
   Happy Juices Bar — Custom Styles
   ============================================ */

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #C0603A;
  color: #FFFDF8;
}

/* --- Navbar --- */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(192, 96, 58, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C0603A;
  transition: width 0.3s ease;
}

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

#nav.scrolled .nav-link {
  color: #6E301C;
}

#nav.scrolled .nav-link:hover {
  color: #C0603A;
}

#nav.scrolled .nav-link::after {
  background: #C0603A;
}

/* --- Hero --- */
.hero-eyebrow {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-cta-primary {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero-cta-secondary {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Marquee --- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

/* --- Menu Cards --- */
.menu-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(192, 96, 58, 0.1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -20px rgba(192, 96, 58, 0.2);
}

.menu-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.menu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-card:hover .menu-card-img {
  transform: scale(1.05);
}

.menu-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #C0603A;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.menu-card-body {
  padding: 1.25rem;
}

.menu-card-title {
  margin-bottom: 0.5rem;
}

.menu-card-desc {
  margin-bottom: 0;
}

.menu-card-tags .tag {
  background: #FDF0EB;
  color: #A84E2C;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(192, 96, 58, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -16px rgba(192, 96, 58, 0.15);
}

.testimonial-text {
  font-style: italic;
}

/* --- Reveal animations --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .animate-marquee {
    animation: none;
  }
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-cta-primary,
  .hero-cta-secondary {
    animation: none;
    opacity: 1;
  }
  .menu-card:hover .menu-card-img {
    transform: none;
  }
  .menu-card:hover {
    transform: none;
  }
  .testimonial-card:hover {
    transform: none;
  }
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* --- Section label typography --- */
.menu-label,
.about-label,
.testimonials-label,
.location-label,
.contact-label {
  display: block;
}

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

/* --- Mobile menu link styles --- */
.mobile-nav-link {
  position: relative;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFFDF8;
}
::-webkit-scrollbar-thumb {
  background: #F4B9A3;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C0603A;
}
