/* ================================================================
   menu.css — Menu page (complete redesign)
   Premium card layout: sticky pill nav, A/B card grids, section
   headers with gold divider, best-seller banner.
   Extends home.css — do not duplicate base variables.
   ================================================================ */

/* ── Design tokens (menu-scoped) ─────────────────────────────── */
:root {
  --menu-cream:         #FAF6EE;
  --menu-white:         #FDFCFB;
  --menu-gold:          #D4A855;
  --menu-gold-dark:     #B8902A;
  --menu-text:          #1a0e06;
  --menu-muted:         #8a7060;
  --menu-border:        #E8E2D8;
  --menu-border-pill:   #D4C5B2;
  --menu-card-bg:       #ffffff;
  --menu-card-hover:    #F8F3EB;
}

/* ── INTRO BAR ─────────────────────────────────────────────────── */
.menu-intro-bar {
  background: var(--menu-cream);
  border-bottom: 1px solid var(--menu-border);
  padding: 1.125rem 1rem;
  text-align: center;
}

.menu-intro-bar p {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  color: var(--menu-muted);
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.75;
}

.menu-intro-bar strong {
  color: var(--menu-text);
  font-weight: 700;
}

/* ── PILL NAV ──────────────────────────────────────────────────── */
.pill-nav {
  position: sticky;
  top: 80px;
  z-index: 50;
  background: var(--menu-card-bg);
  border-bottom: 1px solid var(--menu-border);
  box-shadow: 0 2px 10px rgba(26, 14, 6, 0.06);
}

.pill-nav__inner {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.625rem 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.pill-nav__inner::-webkit-scrollbar {
  display: none;
}

.pill-nav__inner.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--menu-border-pill);
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--menu-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer;
}

.pill:hover {
  border-color: var(--menu-gold);
  color: var(--menu-gold-dark);
  background: rgba(212, 168, 85, 0.07);
}

.pill.active {
  background: var(--menu-gold);
  border-color: var(--menu-gold);
  color: #000;
  font-weight: 700;
}

/* ── MENU SECTIONS ─────────────────────────────────────────────── */
.menu-section {
  scroll-margin-top: 144px;
}

.menu-sec {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.menu-sec--cream { background: var(--menu-cream); }
.menu-sec--white { background: var(--menu-white); }

/* ── SECTION HEADER ────────────────────────────────────────────── */
.menu-sec-header {
  text-align: center;
  margin-bottom: 3rem;
}

.menu-eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--menu-gold);
  margin-bottom: 0.5rem;
}

.menu-sec-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--menu-text);
  line-height: 1.12;
  margin: 0 0 0.5rem;
}

.menu-subtitle {
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  color: var(--menu-muted);
  margin: 0 0 1.125rem;
  line-height: 1.6;
}

.menu-divider {
  width: 40px;
  height: 2px;
  background: var(--menu-gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* ── LAYOUT A: HORIZONTAL CARDS (2-col, gold left border) ──────── */
.menu-hgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.menu-hcard {
  background: var(--menu-card-bg);
  border-left: 3px solid var(--menu-gold);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 1px 4px rgba(26, 14, 6, 0.06);
  transition: background 0.2s, box-shadow 0.2s;
}

.menu-hcard:hover {
  background: var(--menu-card-hover);
  box-shadow: 0 4px 16px rgba(26, 14, 6, 0.10);
}

.menu-hcard__info {
  flex: 1;
  min-width: 0;
}

.menu-hcard__name {
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--menu-text);
  line-height: 1.3;
}

.menu-hcard__desc {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  color: var(--menu-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.menu-hcard__price {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--menu-gold-dark);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── LAYOUT B: VERTICAL CARDS (3-col, name+price inline) ────────── */
.menu-vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.menu-vcard {
  background: var(--menu-card-bg);
  padding: 16px 20px;
  border-bottom: 1px solid var(--menu-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(26, 14, 6, 0.04);
  transition: background 0.18s, box-shadow 0.18s;
}

.menu-vcard:hover {
  background: var(--menu-card-hover);
  box-shadow: 0 3px 10px rgba(26, 14, 6, 0.08);
}

.menu-vcard__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.menu-vcard__name {
  font-family: var(--ff-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--menu-text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.menu-vcard__price {
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--menu-gold-dark);
  flex-shrink: 0;
  white-space: nowrap;
}

.menu-vcard__desc {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  color: var(--menu-muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* ── SINGLE-ITEM CENTERED LAYOUT (Bag Coffee) ──────────────────── */
.menu-hgrid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-inline: auto;
}

/* ── BEST SELLER BANNER ────────────────────────────────────────── */
.bestseller-banner {
  background: var(--menu-gold);
  padding: 16px 1.5rem;
  text-align: center;
}

.bestseller-banner p {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.65;
}

/* ── BOTTOM PRICE NOTE ─────────────────────────────────────────── */
.menu-bottom-note {
  background: var(--menu-cream);
  text-align: center;
  padding: 1.75rem 1.5rem 2.25rem;
  border-top: 1px solid var(--menu-border);
}

.menu-bottom-note p {
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  color: var(--menu-muted);
  font-style: italic;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FAQ — dark bg overrides ───────────────────────────────────── */
.section--dark .faq-item {
  border-bottom-color: rgba(245, 237, 224, 0.08);
}

.section--dark .faq-question {
  color: var(--clr-cream);
  background: transparent;
  border: none;
}

.section--dark .faq-question:hover { color: var(--clr-caramel-lt); }
.section--dark .faq-icon           { color: var(--clr-caramel); }

.section--dark .faq-item.open .faq-question { color: var(--clr-caramel); }

.section--dark .faq-answer__inner { color: var(--clr-cream-dk); }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pill-nav       { top: 64px; }
  .menu-section   { scroll-margin-top: 124px; }
}

@media (max-width: 768px) {
  .menu-vgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pill        { font-size: 0.75rem; padding: 5px 13px; }
  .menu-section { scroll-margin-top: 116px; }

  /* Section headers left-align on mobile */
  .menu-sec-header { text-align: left; }
  .menu-divider    { margin-left: 0; }

  /* Collapse all grids to single column */
  .menu-hgrid,
  .menu-hgrid--single,
  .menu-vgrid { grid-template-columns: 1fr; }

  .menu-hgrid--single { max-width: 100%; }

  /* Keep hcard readable on small screens */
  .menu-hcard { padding: 14px 16px 14px 16px; }
  .menu-hcard__name  { font-size: 0.9375rem; }
  .menu-hcard__price { font-size: 0.9375rem; }

  /* Bestseller banner wraps */
  .bestseller-banner p { font-size: 0.75rem; letter-spacing: 0.06em; }
}

@media (max-width: 420px) {
  .pill { font-size: 0.7rem; padding: 5px 11px; }
}
