/* Custom styles for Alotadough */

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15, 43, 76, 0.06);
}

#navbar.scrolled .font-display {
  color: #0f2b4c;
}

#navbar.scrolled a:not([class*="bg-midnight"]) {
  color: #0f2b4c !important;
}

/* Menu tabs */
.menu-tab {
  color: #0f2b4c;
  color: rgba(15, 43, 76, 0.55);
  background: transparent;
}

.menu-tab:hover {
  color: #0f2b4c;
}

.menu-tab.active {
  color: #0f2b4c;
  background: #0f2b4c;
  box-shadow: 0 4px 12px rgba(15, 43, 76, 0.25);
}

/* Menu panels */
.menu-panel {
  animation: fadeSlideUp 0.4s ease-out;
}

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

/* Scroll reveal — progressive enhancement via JS */
.reveal {
  /* Default: visible (no JS required) */
}

.reveal.revealed {
  animation: revealIn 0.6s ease-out forwards;
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal.revealed {
    animation: none;
    opacity: 1;
  }
  .menu-panel {
    animation: none;
  }
  .group img {
    transition: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
  background: #bbf7d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #86efac;
}

/* Selection */
::selection {
  background: #bbf7d0;
  color: #0f2b4c;
}
