/* ============================================================
   menu.css  –  Sagar Indian Restaurant Menu Page
   ============================================================ */

/* ── Force navbar solid on menu page ──────────────────────── */
.nav-topbar {
  width: 100%;
  background-color: #B00B09;
  color: #FFF8F0;
  text-align: center;
  padding: 6px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.4s ease;
}

navbar.scrolled .nav-topbar {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.nav-topbar-divider {
  opacity: 0.5;
}

/* ---------- Navbar shell ---------- */
navbar {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: blur(0px);
  box-shadow: none;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

navbar.scrolled {
  background-color: #FFF8F0;
  backdrop-filter: blur(0px);
  box-shadow: 0 2px 12px rgba(176, 11, 9, 0.10);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Logo ---------- */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  user-select: none;
}

.logo-main {
  font-size: 1.55rem;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  color: #FFF8F0;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

.logo-sub {
  font-size: 0.72rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: #FFF8F0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: color 0.4s ease;
}

navbar.scrolled .logo-main,
navbar.scrolled .logo-sub {
  color: #B00B09;
}

/* ---------- Desktop nav links ---------- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFF8F0;
  text-decoration: none;
  border-radius: 20px;
  position: relative;
  transition: color 0.28s ease, background-color 0.28s ease;
}

navbar.scrolled .nav-links a {
  color: #B00B09;
}

navbar.scrolled .nav-links a:hover {
  color: #FFF8F0;
  background-color: #B00B09;
}

.nav-links a:hover {
  color: #FFF8F0;
  background-color: #B00B09;
  border-radius: 20px;
}

/* Order Online button */
.nav-order-index {
  background-color: #B00B09 !important;
  color: #FFF8F0 !important;
  border: none !important;
}

navbar.scrolled .nav-links a.nav-order-index {
  background-color: #B00B09 !important;
  color: #FFF8F0 !important;
}

navbar:not(.scrolled) .nav-links a.nav-order-index {
  background-color: #B00B09 !important;
  color: #FFF8F0 !important;
}

navbar.scrolled .nav-order-index:hover,
navbar:not(.scrolled) .nav-order-index:hover {
  background-color: #8a0807 !important;
  color: #FFF8F0 !important;
}

/* ---------- Hamburger button ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1100;
}

.hamburger b {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #FFF8F0;
  border-radius: 2px;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    opacity   0.3s ease,
    top       0.3s ease,
    background-color 0.4s ease;
  position: absolute;
  left: 0;
}

navbar.scrolled .hamburger b {
  background-color: #B00B09;
}

.hamburger b:nth-child(1) { top: 0; }
.hamburger b:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger b:nth-child(3) { top: 100%; transform: translateY(-100%); }

.hamburger.active b {
  background-color: #B00B09;
}
.hamburger.active b:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
}
.hamburger.active b:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}
.hamburger.active b:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-135deg);
}

/* ---------- Mobile drawer (slides in from right) ---------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background-color: #FFF8F0;
  box-shadow: -4px 0 24px rgba(176, 11, 9, 0.12);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1050;
  padding-top: 90px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
}

.drawer-links li {
  border-bottom: 1px solid rgba(176, 11, 9, 0.2);
}

.drawer-links li:last-child {
  border-bottom: none;
}

.drawer-links a {
  display: block;
  padding: 14px 4px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B00B09;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.drawer-links a:hover {
  color: #6b6b6b;
  background-color: rgba(107, 107, 107, 0.09);
}

/* ---------- Overlay ---------- */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1020;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.overlay.visible {
  display: block;
  opacity: 1;
}

/* ---------- Media Queries ---------- */

/* Mobile */
@media (max-width: 600px) {
  .nav-topbar {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex !important;
  }

  .nav-container {
    height: 60px;
  }

  .logo-main {
    font-size: 1.3rem;
  }

  .logo-sub {
    font-size: 0.62rem;
  }

  .mobile-drawer {
    width: 100%;
    max-width: 320px;
  }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex !important;
    width: 38px;
    height: 27px;
  }

  .nav-container {
    height: 66px;
    padding: 0 32px;
  }

  .logo-main {
    font-size: 1.45rem;
  }

  .mobile-drawer {
    width: 300px;
  }
}

/* Desktop */
@media (min-width: 901px) {
  .hamburger {
    display: none !important;
  }

  .mobile-drawer,
  .overlay {
    display: none !important;
  }
}

/* ── Menu Hero ─────────────────────────────────────────────── */
.menu-hero {
  position: relative;
  background-image: url('image/menuheroimg.png');
  background-size: cover;
  background-position: center;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.menu-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.menu-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.menu-hero-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFF8F0;
  opacity: 0.75;
  margin-bottom: 14px;
}

.menu-hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #FFF8F0;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.menu-hero-divider {
  width: 48px;
  height: 3px;
  background-color: #B00B09;
  border-radius: 2px;
  margin: 0 auto 28px;
}

.menu-hero-desc {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  color: #FFF8F0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.menu-hero-body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #FFF8F0;
  opacity: 0.85;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Menu Section ──────────────────────────────────────────── */
.menu-section {
  background-color: #FFF8F0;
  padding: 90px 24px;
}

.menu-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.menu-section-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #B00B09;
  opacity: 0.75;
  margin-bottom: 10px;
}

.menu-section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.menu-section-divider {
  width: 48px;
  height: 3px;
  background-color: #B00B09;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.menu-section-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #777;
}

/* ── 2x2 Grid ──────────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.menu-grid-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(176, 11, 9, 0.08);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #fff;
}

.menu-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(176, 11, 9, 0.14);
}

.menu-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.menu-grid-item:hover img {
  transform: scale(1.02);
}

/* ── Band Divider ──────────────────────────────────────────── */
.menu-band {
  background-color: #3a0000;
  padding: 52px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.menu-band-line {
  flex: 1;
  max-width: 300px;
  height: 1px;
  background: rgba(255, 248, 240, 0.2);
  display: block;
}

.menu-band-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFF8F0;
  opacity: 0.85;
  white-space: nowrap;
  text-align: center;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .menu-hero {
    padding: 130px 20px 60px;
    background-position: center center;
  }
  .menu-section {
    padding: 60px 20px;
  }
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .menu-band {
    padding: 36px 20px;
  }
  .menu-band-text {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }
}

/* ── Tablet ────────────────────────────────────────────────── */
@media (min-width: 601px) and (max-width: 900px) {
  .menu-hero {
    padding: 140px 32px 70px;
  }
  .menu-section {
    padding: 70px 32px;
  }
  .menu-grid {
    gap: 16px;
  }
}