/* ============================================================
   LOTUS CAFE — menu.css
   ============================================================ */

/* ── PAGE HERO ── */
.page-hero {
  position: relative; height: 340px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; margin-top: 72px; overflow: hidden;
  background: var(--green);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/spots_24_e9610232694133a1fca462e0885512_full.jpg') center/cover no-repeat;
  opacity: 0.2;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(45,74,62,0.6), rgba(45,74,62,0.88));
}
.page-hero-content { position: relative; z-index: 2; color: var(--cream); }
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; color: var(--cream); margin: 8px 0 12px;
}
.page-hero-content p {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--gold); margin: 0;
}

/* ── ALLERGEN BAR ── */
.allergen-bar {
  background: #fdf7ee;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 0.82rem; color: var(--gray); text-align: center;
}
.allergen-bar .container { display: flex; align-items: flex-start; gap: 10px; justify-content: center; }
.allergen-bar i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

/* ── STICKY TABS ── */
.menu-tabs-bar {
  position: sticky; top: 72px; z-index: 900;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.menu-tabs-bar::-webkit-scrollbar { height: 0; }
.menu-tabs {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; white-space: nowrap;
}
.tab-btn {
  padding: 16px 20px; background: none; border: none;
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray); cursor: pointer;
  position: relative; transition: color var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.tab-btn::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 2px; background: var(--gold);
  transition: right var(--transition);
}
.tab-btn:hover { color: var(--charcoal); }
.tab-btn.active { color: var(--charcoal); }
.tab-btn.active::after { right: 0; }

/* ── MENU SECTIONS ── */
.menu-section { padding: 64px 0 10px; }
.alt-bg { background: #faf6ef; padding: 64px 0 10px; }
.empanada-section { background: var(--green); padding: 64px 0 60px; }

.section-heading { margin-bottom: 32px; }
.section-heading h2 { color: var(--charcoal); margin-bottom: 10px; }
.section-heading.centered { text-align: center; }
.empanada-section .section-heading h2 { color: var(--cream); }
.empanada-section .section-label { color: var(--gold); }
.section-note { font-size: 0.88rem; color: var(--gray); margin-top: 8px; }
.empanada-section .section-note { color: rgba(245,240,232,0.65); }
.empanada-section .section-note strong { color: var(--cream); font-weight: 500; }

.divider { width: 52px; height: 2px; background: var(--gold); margin-top: 8px; }
.divider.centered-div { margin: 8px auto 0; }

/* ── ITEM GRID — the main menu layout ── */
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.alt-bg .item-grid {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.07);
}
.item-grid { grid-template-columns: repeat(3, 1fr); }
.item-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.item-grid.four-col { grid-template-columns: repeat(4, 1fr); }

/* 2 items on top row, 3rd spans full width on bottom */
.item-grid.last-full { grid-template-columns: repeat(2, 1fr); }
.item-grid.last-full .item-card:last-child { grid-column: 1 / -1; }

.item-card {
  background: var(--white);
  padding: 22px 24px;
  transition: background var(--transition);
  align-self: stretch;
}
.alt-bg .item-card { background: #ffffff; }
.item-card:hover { background: #fdf9f2; }
.alt-bg .item-card:hover { background: #fdf9f2; }

.item-card.dark-card {
  background: rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.item-card.dark-card:hover { background: rgba(255,255,255,0.12); }

.item-top {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 12px; margin-bottom: 6px;
}
.item-top h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-style: normal;
  color: var(--charcoal); margin: 0; line-height: 1.3;
}
.dark-card .item-top h3 { color: var(--cream); }
.price {
  font-family: var(--font-body); font-size: 0.88rem;
  font-weight: 500; color: var(--gold);
  white-space: nowrap; flex-shrink: 0;
}
.item-card p { font-size: 0.87rem; color: var(--gray); margin: 0; line-height: 1.6; }
.dark-card p { color: rgba(245,240,232,0.6); }
.asterisk { color: var(--gold); font-size: 0.8rem; }

/* ── BY THE PIECE ── */
.by-piece {
  display: flex; justify-content: space-between; align-items: center;
  margin: 20px 0 0;
  padding: 16px 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  color: var(--cream); font-size: 0.9rem;
}

/* ── SAUCES ── */
.sauces { margin-top: 32px; text-align: center; }
.sauces .section-label { display: block; margin-bottom: 16px; }
.sauce-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sauce-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--cream); padding: 9px 24px;
  border-radius: 50px; font-size: 0.82rem; letter-spacing: 0.1em;
  transition: background var(--transition);
}
.sauce-pill:hover { background: rgba(201,168,76,0.2); }

/* ── PHOTO GRID ── */
.photo-grid-section { background: var(--cream); }
.photo-grid-section .section-heading { text-align: center; }
.photo-grid-section h2 { color: var(--charcoal); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
  margin-top: 36px;
}
.photo-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer;
  background: #e8e2d8;
}
.photo-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.photo-item:hover img { transform: scale(1.07); }
.photo-item span {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,26,26,0.72));
  color: var(--white); padding: 22px 14px 12px;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transition: opacity var(--transition);
}
.photo-item:hover span { opacity: 1; }

/* ── ORDER CTA ── */
.order-cta { padding: 80px 24px; text-align: center; }
.order-cta h2 { color: var(--cream); margin-bottom: 12px; }
.order-cta p { color: rgba(245,240,232,0.65); margin-bottom: 28px; }

/* ── CREPE SECTION ── */
.crepe-section { background: var(--green); padding: 64px 0 60px; }
.crepe-section .section-heading h2 { color: var(--cream); }
.crepe-section .section-label { color: var(--gold); }
.crepe-section .divider { background: var(--gold); }

.crepe-graphic {
  display: flex; justify-content: center; margin-bottom: 28px;
}
.crepe-graphic svg { width: 80px; height: 80px; opacity: 0.85; }

.crepe-category-label {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 400; font-style: italic;
  color: var(--gold); margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  letter-spacing: 0.02em;
}

/* dark cards for crepe section */
.crepe-section .item-grid {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.crepe-section .item-card {
  background: rgba(255,255,255,0.05);
}
.crepe-section .item-card:hover {
  background: rgba(255,255,255,0.11);
}
.crepe-section .item-top h3 { color: var(--cream); }
.crepe-section .item-card p { color: rgba(245,240,232,0.62); }

/* ── ACTIVE NAV ── */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { right: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .item-grid.two-col { grid-template-columns: repeat(2, 1fr); }
  .item-grid.four-col { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .item-grid,
  .item-grid.two-col,
  .item-grid.last-full,
  .item-grid.four-col { grid-template-columns: 1fr; }
  .item-grid.last-full .item-card:last-child { grid-column: 1; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tab-btn { padding: 14px 10px; font-size: 0.64rem; letter-spacing: 0.1em; }
  .menu-tabs-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-hero { height: 240px; }
  .crepe-section .item-grid { grid-template-columns: 1fr; }
  .by-piece { flex-direction: column; gap: 6px; text-align: center; }
  .item-card { padding: 18px 16px; }
}
