/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  --primary-color: #5D4037;   /* Rich Warm Brown */
  --secondary-color: #D7CCC8; /* Soft Warm Beige */
  --accent-color: #FF6F00;    /* Amber Accent */
  --bg-dark: #3E2723;
  --bg-light: #FFF8E1;
  --text-dark: #212121;
  --text-light: #FFFFFF;
  --card-bg: #FFFFFF;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ==========================================================================
   GLOBAL RESET & SCROLL SNAP
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.menu {
  min-height: 100vh;        /* Enforce full viewport height */
  display: flex;             /* Turn body into a flexbox container */
  flex-direction: column;    /* Stack header, main, and footer vertically */
}

/* Enable Desktop Scroll Snap */
@media (min-width: 769px) {
  body.snap-container {
    height: 100vh;
    overflow-y: mandatory;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
  }

  .snap-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px;
  }
}

@media (max-width: 768px) {
  .snap-section {
    min-height: 100vh;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .logo span {
    display: none;
  }
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
}

.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.navbar nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.navbar nav a:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   HOMEPAGE SECTIONS WITH DISTINCT BACKGROUNDS
   ========================================================================== */
.home-section {
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), #5D4037;
  color: var(--text-light);
  text-align: center;
}

.about-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.contact-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.section-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.section-content h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
}

.section-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.tagline {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Hours Table */
.hours-table {
  margin: 25px auto 0;
  border-collapse: collapse;
  width: 100%;
  max-width: 450px;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hours-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
}

.hours-table tr.closed {
  color: #D32F2F;
  font-weight: bold;
}

/* Contact Cards */
.contact-details {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: var(--shadow);
}

.contact-card h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

/* ==========================================================================
   MENU PAGE STYLES
   ========================================================================== */
.menu-page-container {
  max-width: 1200px;
  width: 100%;               /* Ensure proper width expansion */
  margin: 90px auto 40px;
  padding: 0 20px;
  flex: 1 0 auto;
}

.search-section {
  margin-bottom: 30px;
  text-align: center;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border: 2px solid var(--secondary-color);
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-color);
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border: none;
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.menu-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-5px);
}

.menu-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #eee;
}

.menu-card-body {
  padding: 15px;
}

.menu-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.menu-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* ==========================================================================
   POPUP MODAL DIALOG
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: var(--card-bg);
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.modal-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.modal-body {
  padding: 20px;
}

.modal-category {
  display: inline-block;
  background: var(--secondary-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.modal-price {
  font-size: 1.3rem;
  color: var(--accent-color);
  font-weight: bold;
  margin: 10px 0;
}

.desc-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.desc-block strong {
  display: block;
  font-size: 0.85rem;
  color: #757575;
  margin-bottom: 3px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 15px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.9rem;
}

.site-footer a {
  cursor: pointer;
  color: inherit
}