/* =============================================
   Lussy Pizzeria – style.css
   Custom animations & overrides
   ============================================= */

/* ---- Scroll reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero entrance animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.8s ease both;
}
.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Menu tabs ---- */
.menu-tab.active-tab {
  background: #C8390A;
  border-color: #C8390A;
  color: #FDF6E9;
}
.menu-panel.hidden { display: none; }

/* ---- Scroll dot pulsing animation ---- */
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}
.scroll-dot {
  animation: scrollPulse 1.6s ease-in-out infinite;
}

/* ---- Sticky navbar transition ---- */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(28, 26, 23, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
#navbar .nav-logo {
  transition: color 0.3s ease;
}

/* ---- Nav link underline effect ---- */
.nav-link::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #D4A843;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---- Charcoal light variant ---- */
.bg-charcoal-light {
  background-color: #2E2B26;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #1C1A17;
}
::-webkit-scrollbar-thumb {
  background: #C8390A;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E04B1A;
}

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

/* ---- Form focus ring ---- */
input:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* ---- Menu card hover border glow ---- */
.menu-card {
  position: relative;
}

/* ---- Mobile menu open animation ---- */
#mobile-menu {
  animation: none;
}
#mobile-menu.open {
  animation: menuSlide 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Selection colour ---- */
::selection {
  background: #C8390A;
  color: #FDF6E9;
}

/* ---- Olive color helper ---- */
.text-olive { color: #5C6B3A; }
.bg-olive   { background-color: #5C6B3A; }

/* ---- Background texture helpers (SVG moved from inline style) ---- */
.hero-noise {
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

.dot-pattern {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='white'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}
