/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary: #4A0F0F;    /* Deep Burgundy */
  --accent: #E0B24A;     /* Gold */
  --bg-light: #F9F9F9;
  --text-dark: #2b2b2b;
  --text-light: #555555;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --success: #28a745;    /* Green for Open */
  --danger: #dc3545;     /* Red for Closed */
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================
   2. LOADING SPINNER
   ========================================= */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

/* =========================================
   3. ANIMATIONS
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   4. NAVBAR & BADGE
   ========================================= */
nav {
  background: var(--primary);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-logo {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  color: white;
  background: #555;
  white-space: nowrap;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  padding-bottom: 5px;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

#mobileBtn {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

/* =========================================
   5. HERO (PARALLAX EFFECT)
   ========================================= */
.hero {
  /* Fixed background attachment creates the Parallax effect */
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
              url("images/hero-bg.jpg") center/cover no-repeat;
  background-attachment: fixed; /* <--- KEY CHANGE */
  background-color: #222;
  color: white;
  text-align: center;
  padding: 160px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0px 4px 10px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.hero .since {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: inline-block;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition);
  border: 2px solid var(--accent);
  letter-spacing: 1px;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

section h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 60px;
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  text-transform: uppercase;
}

section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* =========================================
   6. GALLERY & LIGHTBOX
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  cursor: pointer; /* Indicates clickable */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid var(--white);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* =========================================
   7. MENU CONTROLS (SEARCH & FILTER)
   ========================================= */
.menu-controls {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.search-bar {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.search-bar:focus {
  border-color: var(--accent);
}

.filter-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: white;
  border: 1px solid #ccc;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--text-dark);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =========================================
   8. MENU SECTIONS & ITEMS
   ========================================= */
.menu-page {
  max-width: 900px;
  margin: auto;
}

.menu-section {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--primary);
  transition: transform 0.3s ease;
}

/* Hide empty sections when filtering */
.menu-section.hidden-section {
  display: none;
}

.menu-section h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 30px;
  font-style: italic;
  background: #fcfcfc;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  text-align: center;
}

.menu-list {
  list-style: none;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

/* Hide specific items when filtering */
.menu-list li.hidden {
  display: none !important;
}

.menu-list li:last-child {
  border-bottom: none;
}

.menu-list li span:first-child {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  padding-right: 20px;
}

.menu-list li span small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: #777;
  margin-top: 5px;
  font-style: normal;
}

.menu-list li span:last-child {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary); 
  background: transparent;
  padding: 0;
  white-space: nowrap;
  text-align: right;
  min-width: 80px;
}

/* =========================================
   9. BUNDLE CARDS
   ========================================= */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 20px;
}

.bundle-card {
  background: var(--white);
  border-radius: 16px;
  overflow: visible;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 15px;
}

.bundle-card.hidden {
  display: none;
}

.bundle-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.best-value-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
  border: 2px solid white;
}

.bundle-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.02);
}

.bundle-card.featured:hover {
  transform: scale(1.02) translateY(-10px);
}

.bundle-header {
  background: var(--primary);
  padding: 30px 20px 20px;
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.bundle-header h4 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bundle-price {
  background: #fff;
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.bundle-items {
  padding: 25px 30px;
  list-style: none;
  flex-grow: 1;
}

.bundle-items li {
  padding: 10px 0;
  border-bottom: 1px solid #f4f4f4;
  color: #555;
  font-size: 1rem;
  text-align: center;
}

.bundle-items li:last-child {
  border-bottom: none;
}

/* =========================================
   10. INFO PANELS
   ========================================= */
.order-panel, .contact-panel {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border-top: 5px solid var(--primary);
}

.map-container {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* =========================================
   11. COMPACT FOOTER
   ========================================= */
footer {
  background: #1a0505;
  color: #ccc;
  padding: 40px 5% 20px;
  margin-top: auto;
  border-top: 4px solid var(--accent);
  font-size: 0.85rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
  text-align: left;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.hygiene-badge-wrapper {
  transform: scale(0.85); 
  transform-origin: top left;
  margin-top: -5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #333;
  color: #777;
  font-size: 0.8rem;
}

.allergy-note {
  margin-top: 10px;
  color: #555;
  font-style: italic;
  font-size: 0.75rem;
}

/* =========================================
   12. FLOATING BUTTONS
   ========================================= */
.sticky-call-btn {
  display: none;
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #333;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  text-decoration: none;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.back-to-top.show {
  opacity: 0.7;
  pointer-events: all;
}

.back-to-top:hover {
  opacity: 1;
  background: var(--primary);
}

/* =========================================
   13. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  nav { padding: 15px 20px; }

  nav ul {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: 0.4s ease-in-out;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  nav ul.show { right: 0; }
  
  nav a { font-size: 1.5rem; font-weight: 300; }
  
  #mobileBtn { display: block; }

  .hero h1 { font-size: 2.5rem; }
  
  .menu-list li {
    flex-direction: row; 
    align-items: center;
  }
  
  .menu-list li span:last-child {
    font-size: 1rem;
    color: var(--primary);
  }
  
  .bundle-card.featured { transform: scale(1); }
  .bundle-card.featured:hover { transform: translateY(-5px); }

  .footer-content { text-align: center; }
  
  .hygiene-badge-wrapper {
    transform-origin: top center;
    margin: 0 auto;
    display: inline-block;
  }

  .sticky-call-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--accent);
    color: var(--primary);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 9999;
    text-decoration: none;
    font-size: 28px;
    border: 3px solid white;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 178, 74, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(224, 178, 74, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 178, 74, 0); }
  }
}