/* ============================================
   HUB GRUB GRILL — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #6B0F1A;
  color: #FDF8F5;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
  background: #b51f4b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8a1638;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Line Animation --- */
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

.scroll-line {
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* --- Nav Active State --- */
.nav-link.active {
  color: #6B0F1A;
}

.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1.5px;
  background: #6B0F1A;
  transition: width 0.3s ease;
  margin-top: 2px;
}

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

/* --- Mobile Menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-nav-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(6) { animation-delay: 0.3s; }

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

/* --- Menu Line Animation --- */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* --- Image Hover Effects --- */
.group img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover img {
  transform: scale(1.05);
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #6B0F1A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Print Styles --- */
@media print {
  #site-header,
  .scroll-indicator {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
