/* ── Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Karla', system-ui, sans-serif;
  background-color: #FFFBF0;
  color: #1C0A00;
  overflow-x: hidden;
}
.font-display { font-family: 'Playfair Display SC', Georgia, serif; }

/* ── Navbar ───────────────────────────── */
#navbar {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
#navbar.scrolled {
  background-color: rgba(28, 10, 0, 0.97) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: #F59E0B;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open { max-height: 420px; }

/* ── Hero ─────────────────────────────── */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(to bottom,
      rgba(28,10,0,0.72)   0%,
      rgba(120,15,15,0.55) 55%,
      rgba(28,10,0,0.88)   100%),
    url('../images/virudadhaba.jpeg') center center / cover no-repeat;
}
/* Subtle grain texture overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.25;
}

/* ── Marquee ticker ───────────────────── */
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Divider ──────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem auto;
  width: fit-content;
}
.divider-line { flex: 1; width: 60px; height: 1px; background: #B45309; }
.divider-gem  { width: 8px; height: 8px; background: #B45309; transform: rotate(45deg); }

/* ── Menu tabs ────────────────────────── */
.menu-tab {
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #B91C1C;
  color: #B91C1C;
  background: transparent;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1.5;
}
.menu-tab:hover, .menu-tab.active {
  background: #B91C1C;
  color: #fff;
  box-shadow: 0 4px 12px rgba(185,28,28,0.3);
}
.menu-pane { display: none; }
.menu-pane.active { display: grid; }

/* ── Menu card ────────────────────────── */
.dish-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid #E67E22;
  box-shadow: 0 2px 8px rgba(28,10,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.dish-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(28,10,0,0.10);
}
.dish-card.veg   { border-left-color: #16A34A; }
.dish-card.nveg  { border-left-color: #B91C1C; }
.dish-card.tndri { border-left-color: #EA580C; }
.dish-card.drink { border-left-color: #2563EB; }

/* Dish card inner layout */
.dish-row  { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.dish-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.dish-name h4 {
  font-family: 'Karla', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1C0A00;
  line-height: 1.35;
}
.price {
  font-family: 'Karla', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #B91C1C;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.25rem;
}
.sec-head {
  font-family: 'Karla', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #B45309;
  border-bottom: 1px solid #FDE68A;
  padding-bottom: 0.375rem;
}

/* Veg / Non-veg markers */
.dot-veg, .dot-nveg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
}
.dot-veg  { border: 1.5px solid #16A34A; }
.dot-nveg { border: 1.5px solid #B91C1C; }
.dot-veg::after {
  content: ''; width: 7px; height: 7px;
  background: #16A34A; border-radius: 50%;
}
.dot-nveg::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #B91C1C;
}

/* ── Gallery grid ─────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}
.gallery-grid .span2 { grid-column: span 2; }
.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1;
  background: #E57B28;
}
.gallery-grid .span2 { aspect-ratio: 2 / 1; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ── Fade-up animation ────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive gallery ───────────────── */
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .span2 { grid-column: span 2; }
}
@media (max-width: 479px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .span2 { grid-column: span 1; aspect-ratio: 16/9; }
}

/* ── Testimonial Carousel ─────────────── */
.tc-viewport {
  overflow: hidden;
}
.tc-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.tc-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 0;
}
.tc-card-inner {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #FFEDD5;
  box-shadow: 0 2px 8px rgba(28,10,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  height: 100%;
}
.tc-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #F5F5F4;
}
.tc-avatar {
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Karla', sans-serif;
  font-weight: 700; font-size: 0.875rem;
  flex-shrink: 0;
}
.tc-name {
  font-family: 'Karla', sans-serif;
  font-weight: 600; font-size: 0.875rem;
  color: #1C0A00;
}
.tc-city {
  font-family: 'Karla', sans-serif;
  font-size: 0.75rem;
  color: #A8A29E;
}
.tc-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  background: #fff;
  border: 1.5px solid #E7E5E4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex; align-items: center; justify-content: center;
  color: #1C0A00;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tc-arrow:hover {
  background: #B91C1C;
  color: #fff;
  border-color: #B91C1C;
  box-shadow: 0 4px 14px rgba(185,28,28,0.3);
}
.tc-dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: #D6D3D1;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.25s;
  padding: 0;
}
.tc-dot.active {
  background: #B91C1C;
  width: 22px;
}
@media (max-width: 767px) {
  .tc-card { flex: 0 0 100%; }
  .tc-arrow { display: none; }
}

/* ── PDF Modal ────────────────────────── */
#pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  padding: 1rem;
}
#pdf-modal.pdf-modal-open {
  display: flex;
}
.pdf-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #1C0A00;
  padding: 0.875rem 1.25rem;
}
.pdf-modal-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
  position: relative;
  z-index: 1;
}
.pdf-loader {
  position: absolute;
  inset: 56px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #1a1a1a;
  z-index: 2;
}
.pdf-loader.hidden { display: none; }
.pdf-loader-text {
  font-family: 'Karla', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.pdf-spinner {
  width: 48px;
  height: 48px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Respect reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .gallery-item img { transition: none; }
}
