/* ============================================
   BROADWAY CAFE — Custom Styles
   Charcoal + Coral · Bold Editorial
   ============================================ */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
  background: #3D3D3D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E85D4A;
}

/* Selection Color */
::selection {
  background: rgba(232, 93, 74, 0.3);
  color: #fff;
}

/* Floating Card Animations */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Mobile Menu Transitions */
#mobile-menu {
  transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

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

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

/* Menu Line Animation */
#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Link Hover */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Gallery Image Hover */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Nav Background on Scroll */
nav.scrolled {
  background: rgba(26, 26, 26, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Button Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #E85D4A;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Card Hover Lift */
.group:hover {
  transform: translateY(-4px);
}

.group {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
