/* =============================================
   ZAYTONA GRILL — menu.css
   ============================================= */

/* ============================
   MENU HERO
   ============================ */
.menu-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.menu-hero-bg {
  position: absolute;
  inset: 0;
}
.menu-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.menu-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,14,5,0.88) 0%,
    rgba(10,14,5,0.60) 55%,
    rgba(10,14,5,0.72) 100%
  );
}
.menu-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 7rem var(--gutter) 3.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.menu-hero-content h1 {
  color: #fff;
  max-width: 600px;
  margin: 0.75rem 0 1rem;
}
.menu-hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-md);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.menu-hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ============================
   STICKY TAB NAV
   ============================ */
/* Sticks BELOW the fixed 72px header. At top:0 the whole bar parked under the
   header and the category nav was invisible for the entire page. */
.menu-tabs-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
/* The scroller is masked at both edges so a cut-off tab reads as "more this
   way" instead of as the end of the list. */
.menu-tabs-scroll {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - 2rem), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - 2rem), transparent 100%);
}
.menu-tabs-scroll::-webkit-scrollbar { display: none; }
.menu-tab {
  flex-shrink: 0;
  scroll-snap-align: center;
  padding: 0.875rem 1.125rem;
  color: rgba(255,255,255,0.62);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur), border-color var(--dur);
  border-bottom: 2px solid transparent;
}
.menu-tab:hover { color: rgba(255,255,255,0.85); }
.menu-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
  color: #fff;
}
.menu-tab.active { color: var(--gold-light); border-color: var(--gold); }

/* Every section heading clears the header AND the tab bar when jumped to. */
.menu-section { scroll-margin-top: calc(var(--header-h) + 3.5rem); }

/* ============================
   MENU BODY WRAPPER
   ============================ */
.menu-body {
  background: var(--off-white);
}

/* ============================
   INDIVIDUAL MENU SECTION
   ============================ */
.menu-section {
  padding: 4rem 0;
  background: var(--off-white);
}
.menu-section-alt {
  background: var(--white);
}

.menu-section-header {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.menu-section-text h2 {
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.menu-section-note {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}
.menu-section-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.menu-section-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ============================
   MENU CATEGORY
   ============================ */
.menu-category {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  padding: 0 var(--gutter);
}
.menu-category:last-child { margin-bottom: 0; }

.menu-category h3 {
  font-size: var(--text-xl);
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}
.menu-category-sub {
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================
   MENU ITEMS LIST
   ============================ */
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}
.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--sand);
}
.menu-item:last-child { border-bottom: none; }
.menu-item.highlight-item .menu-item-name {
  color: var(--gold);
}
.menu-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.menu-item-name {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.menu-item-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
}
.menu-item-price {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Two-price column header */
.menu-price-header {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  margin-bottom: 0.5rem;
  padding-right: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* NOTES */
.menu-note {
  margin-top: 0.875rem;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
}
.menu-note-inline {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: 0.875rem;
  font-style: italic;
}

/* ============================
   SIDES GRID
   ============================ */
.menu-sides-grid {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.menu-items-plain {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.menu-items-plain li {
  font-size: var(--text-sm);
  color: var(--ink-mid);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--sand);
}
.menu-items-plain li:last-child { border-bottom: none; }

/* ============================
   ORDER CTA
   ============================ */
.menu-order-cta {
  background: var(--olive-dark);
  padding: 4.5rem var(--gutter);
}
.menu-order-cta-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.menu-order-cta-inner h2 {
  color: #fff;
  margin-bottom: 0.625rem;
}
.menu-order-cta-inner p {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-md);
  margin-bottom: 2rem;
}
.menu-order-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   RESPONSIVE — TABLET
   ============================ */
@media (max-width: 900px) {
  .menu-section-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .menu-section-image {
    max-width: 480px;
  }
  .menu-section-image img {
    max-height: 320px;
  }
}

/* ============================
   RESPONSIVE — MOBILE
   ============================ */
@media (max-width: 600px) {
  .menu-hero-content { padding: 6rem var(--gutter) 2.5rem; }
  .menu-hero-actions { flex-direction: column; }
  .menu-hero-actions .btn { justify-content: center; }

  .menu-section { padding: 3rem 0; }
  .menu-section-header { margin-bottom: 2rem; padding: 0 var(--gutter); }
  .menu-section-image img { max-height: 260px; }

  .menu-category { padding: 0 var(--gutter); margin-bottom: 2rem; }

  .menu-item { gap: 0.875rem; }
  .menu-item-name { font-size: var(--text-base); }
  .menu-item-price { font-size: var(--text-xs); }

  .menu-sides-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 var(--gutter); }

  .menu-order-cta { padding: 3.5rem var(--gutter); }
  .menu-order-actions { flex-direction: column; align-items: stretch; }
  .menu-order-actions .btn { justify-content: center; }
}

/* ============================
   DISH THUMBNAILS
   ============================ */
.menu-item-thumb {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  align-self: center;
  border-radius: var(--r);
  object-fit: cover;
  display: block;
  background: var(--sand-light);
}

.menu-item:has(.menu-item-thumb) {
  gap: 1.125rem;
}

/* Photo-led grid for the signature dishes band */
.menu-highlights {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.menu-highlight {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.menu-highlight img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.menu-highlight-body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.menu-highlight-name {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.menu-highlight-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
}
.menu-highlight-price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .menu-item-thumb { width: 60px; height: 60px; border-radius: var(--r-sm); }
  .menu-item:has(.menu-item-thumb) { gap: 0.875rem; }
  .menu-highlight img { height: 170px; }

  /* Long dish names must not push the price column off screen once the
     thumbnail is in the row. Measured clean at 320, 360 and 375px. */
  .menu-item-name { overflow-wrap: anywhere; }
}

/* ============================
   PRICE-FREE LISTS: kids protein choices, kitchen chips
   ============================ */
.menu-section-header-noimg { grid-template-columns: 1fr; }

.menu-choice-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}
.menu-choice-list li {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sand);
  overflow-wrap: anywhere;
}

/* Words sit side by side and wrap, instead of one per line */
.menu-items-plain.menu-chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.menu-items-plain.menu-chips li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: var(--white);
}
.menu-items-plain.menu-chips li:last-child { border-bottom: 1px solid var(--sand); }

@media (max-width: 600px) {
  .menu-choice-list { gap: 0 1rem; }
  .menu-choice-list li { font-size: var(--text-base); }
}

/* ============================
   WHITE CARDS: sides, dips, kids (same look as the catering menu cards)
   ============================ */
.menu-card-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.menu-card-grid-single { grid-template-columns: minmax(0, 1fr); }
.menu-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  padding: 1.375rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.menu-card-wide { grid-column: 1 / -1; }
.menu-card h3 {
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}
.menu-card-lead {
  font-size: var(--text-base);
  color: var(--ink-mid);
  line-height: 1.5;
  margin: -0.35rem 0 0.75rem;
}
.menu-card-label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}
.menu-card-note {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
  margin-top: 0.75rem;
}
.menu-card-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}
.menu-card-list li {
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.35;
  padding: 0.65rem 0;
  border-top: 1px solid var(--sand);
  overflow-wrap: anywhere;
}

/* Item rows (with photos) laid out in two columns inside a card or a category */
.menu-items-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}
.menu-items-2col .menu-item:last-child,
.menu-items-2col .menu-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

@media (max-width: 700px) {
  .menu-card-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .menu-card { padding: 1.125rem var(--gutter); }
  .menu-items-2col { grid-template-columns: minmax(0, 1fr); }
  .menu-items-2col .menu-item:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--sand); }
}
