/* Custom styles for Saffron Kebab & Pizza */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
  background: #1a4d2e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #256135;
}

/* Selection color */
::selection {
  background: #1a4d2e;
  color: #faf8f4;
}

/* Navbar transition */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(14, 43, 25, 0.08);
}

/* Hero image parallax-like effect on scroll */
#hero .relative.rounded-3xl {
  will-change: transform;
}

/* Menu card hover */
.menu-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.menu-card:hover {
  transform: translateY(-4px);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .menu-card:hover {
    transform: none;
  }
  .menu-card img {
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #1a4d2e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu link hover */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1a4d2e;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Subtle pattern overlay for sections */
section::before {
  content: '';
  display: block;
  pointer-events: none;
}

/* Image lazy-load fade */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Print styles */
@media print {
  #navbar, .scroll-indicator, #cta-banner {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
