/* ============================================
   Hayavadana CATERERS — Menu Page Stylesheet
   ============================================ */
:root {
  --gold: #C9A84C;
  --gold-l: #E8C97A;
  --gold-d: #9C7A2E;
  --deep: #0E0A04;
  --surface: #1A1208;
  --surface2: #241A0A;
  --cream: #FFF8EE;
  --muted: #9E8E74;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--deep);
  color: var(--cream);
}

/* ---- TOP BAR ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 10, 4, .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 168, 76, .2);
  padding: .9rem 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.back-btn {
  color: var(--gold);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
}

.back-btn:hover {
  color: var(--gold-l);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--cream);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 2px;
  background: var(--surface2);
  object-fit: contain;
}

.brand strong {
  color: var(--gold);
}

.pdf-btn {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: var(--deep);
  font-weight: 600;
  font-size: .85rem;
  padding: .5rem 1.3rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.pdf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, .35);
}

/* ---- HERO ---- */
.menu-hero {
  text-align: center;
  padding: 3.5rem 2rem 2rem;
  background: linear-gradient(to bottom, var(--surface) 0%, var(--deep) 100%);
  border-bottom: 1px solid rgba(201, 168, 76, .12);
}

.menu-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--cream);
  margin-bottom: .5rem;
}

.menu-hero h1 em {
  font-style: italic;
  color: var(--gold-l);
}

.menu-hero p {
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---- TABS BAR ---- */
.tabs-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid rgba(201, 168, 76, .12);
  position: sticky;
  top: 57px;
  z-index: 90;
}

.tabs-bar::-webkit-scrollbar {
  height: 3px;
}

.tabs-bar::-webkit-scrollbar-thumb {
  background: var(--gold-d);
  border-radius: 99px;
}

.tab {
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid rgba(201, 168, 76, .15);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  padding: .45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}

.tab:hover {
  color: var(--gold-l);
  border-color: rgba(201, 168, 76, .4);
}

.tab.active {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: var(--deep);
  border-color: transparent;
  font-weight: 600;
}

/* ---- MAIN ---- */
.menu-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.menu-section {
  display: none;
}

.menu-section.active {
  display: block;
  animation: fadeIn .35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid rgba(201, 168, 76, .25);
}

.special-banner {
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: var(--deep);
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  padding: .9rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  letter-spacing: .06em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.menu-card {
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, .15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.menu-card:hover {
  border-color: rgba(201, 168, 76, .45);
  transform: translateY(-3px);
}

.menu-card.wide {
  grid-column: 1 / -1;
}

.card-head {
  background: linear-gradient(90deg, rgba(201, 168, 76, .18), rgba(201, 168, 76, .05));
  border-bottom: 1px solid rgba(201, 168, 76, .2);
  color: var(--gold-l);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .8rem 1.2rem;
}

.menu-card ul {
  list-style: none;
  padding: 1rem 1.2rem;
}

.menu-card ul li {
  padding: .45rem 0;
  border-bottom: 1px dotted rgba(201, 168, 76, .12);
  font-size: .88rem;
  color: #D4C5A9;
  padding-left: 1.2rem;
  position: relative;
}

.menu-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold-d);
  font-size: .75rem;
  top: .5rem;
}

.menu-card ul li:last-child {
  border-bottom: none;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

.two-col ul {
  padding: 1rem 1rem;
}

.two-col ul:first-child {
  border-right: 1px solid rgba(201, 168, 76, .1);
}

/* ---- FOOTER ---- */
.menu-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(201, 168, 76, .15);
  background: var(--surface);
}

.menu-footer p {
  font-style: italic;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: .3rem;
}

.menu-footer .thank {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .08em;
}

.menu-footer .copy {
  font-size: .78rem;
  margin-top: .3rem;
}

/* ============================================
   PRINT / PDF STYLES
   ============================================ */
@media print {
  @page {
    size: A4;
    margin: 12mm 14mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt;
  }

  .topbar,
  .tabs-bar,
  .menu-footer {
    display: none !important;
  }

  .menu-hero {
    background: #fff !important;
    border-bottom: 2px solid #000;
    padding: 1rem 0 1rem;
  }

  .menu-hero h1,
  .menu-hero h1 em {
    color: #000 !important;
    font-size: 28pt;
  }

  .menu-hero p {
    color: #333 !important;
  }

  /* Show ALL sections when printing */
  .menu-section {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
  }

  .menu-section+.menu-section {
    page-break-before: auto;
  }

  .sec-title {
    color: #000 !important;
    font-size: 16pt;
    border-bottom: 2px solid #000;
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
  }

  .menu-card {
    border: 1px solid #999 !important;
    background: #fff !important;
    break-inside: avoid;
    transform: none !important;
  }

  .card-head {
    background: #000 !important;
    color: #fff !important;
    font-size: 9pt;
  }

  .menu-card ul li {
    color: #000 !important;
    border-bottom-color: #ddd !important;
    font-size: 9pt;
  }

  .menu-card ul li::before {
    color: #000 !important;
  }

  .special-banner {
    background: #000 !important;
    color: #fff !important;
  }

  /* Print header on each page */
  .menu-main::before {
    content: 'Hayavadana Caterers — JP Nagar, Mysuru | 9632463435';
    display: block;
    text-align: center;
    font-size: 9pt;
    color: #555;
    padding-bottom: .5rem;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .topbar {
    padding: .7rem 1rem;
  }

  .brand {
    display: none;
  }

  .menu-main {
    padding: 1.5rem 1rem 3rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col ul:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, .1);
  }
}