/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #facc15;
  color: #102a43;
}

/* ── Navbar scroll state ── */
#nav.scrolled {
  background: rgba(255, 254, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(16, 42, 46, 0.08);
}

/* ── Menu card hover ── */
.menu-card {
  will-change: transform, box-shadow;
}

.menu-card img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* ── Mobile menu transitions ── */
.mobile-link {
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #ca8a04;
}

/* ── Scroll reveal (below fold only, progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

/* ── Mobile menu open state ── */
#mobileMenu.open {
  animation: slideDown 0.25s ease-out;
}

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

/* ── Hamburger animation ── */
#menuToggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuToggle.active .bar:nth-child(2) {
  opacity: 0;
}

#menuToggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 20px;
}
