/*
  joes-menu.css
  Menu page styles — loaded on menu.html only.
  Builds on joes-enhanced.css; does not duplicate shared rules.
*/

/* ================================================================
   MENU PAGE BANNER
================================================================ */
.menu-page-banner {
  position: relative;
  background-color: var(--dark-bg);
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Split storefront panels */
.menu-page-banner::before,
.menu-page-banner::after {
  content: '';
  position: absolute;
  top: -57px;   /* shift images up ~1.5cm so sign letters clear the overlay */
  bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.menu-page-banner::before {
  left: 0;
  right: 50%;
  background-image: url('../assets/images/joes-pizza-italian-cuisine-bar-signboard.jpg');
  background-position: center top;
}

.menu-page-banner::after {
  left: 50%;
  right: 0;
  background-image: url('../assets/images/joes-pizza-pasta-signboard.jpg');
  background-position: center top;
}

.menu-banner-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(to bottom, rgba(75,5,5,0.00) 0%, rgba(75,5,5,0.58) 28%, rgba(75,5,5,0.80) 100%);
  padding: 48px 0 44px;
}

.menu-page-title {
  font-family: 'Special Elite', cursive;
  font-size: 2.8em;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 1px 2px 5px rgba(0,0,0,0.7);
}

.menu-page-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.05em;
  margin-bottom: 24px;
}

/* ================================================================
   MENU SECTION NAVIGATION (jump links)
================================================================ */
.menu-section-nav {
  background-color: var(--mid-bg);
  border-bottom: 3px solid #f15a24;
  position: sticky;
  top: 70px;
  z-index: 900;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.menu-nav-list li { flex-shrink: 0; }

.menu-nav-list a {
  display: block;
  padding: 13px 16px;
  color: rgba(255,255,255,0.75);
  font-size: 0.75em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.menu-nav-list a:hover,
.menu-nav-list a:focus {
  color: #f15a24;
  background-color: rgba(241,90,36,0.08);
  text-decoration: none;
}

@media (min-width: 768px) and (max-width: 991px) {
  .menu-page-banner { min-height: 400px; }
}

@media (max-width: 767px) {
  .menu-page-banner    { min-height: 300px; }
  .menu-banner-overlay { padding-top: 36px; }
  .menu-section-nav    { top: 56px; }
  .menu-nav-list a     { padding: 11px 12px; font-size: 0.82em; }
  /* Offset for mobile: header (56px) + sticky nav (~43px) + 11px gap */
  .menu-section { scroll-margin-top: 110px; }
}

/* ================================================================
   MENU PAGE MAIN CONTENT
================================================================ */
.menu-page-content { background-color: #fff; }

/* ================================================================
   MENU SECTION BLOCKS
================================================================ */
.menu-section {
  padding: 52px 0 44px;
  border-bottom: 1px solid #ececec;
  /* Offset for fixed site header (70px) + sticky category nav (~48px) + 12px gap */
  scroll-margin-top: 130px;
}

.menu-section--alt {
  background-color: #f5ede0;
}

.menu-section:last-of-type { border-bottom: none; }

.menu-section-header {
  margin-bottom: 28px;
}

/* Source: .food-menu-section h3 { font-family: 'Candara'; font-size: 3.5em; color: #676767; }
   We keep Special Elite for brand consistency and meet at 2.4em */
.menu-section-title {
  font-family: 'Special Elite', cursive;
  font-size: 2.4em;
  color: #4d4d4d;
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f15a24;
  display: inline-block;
}

.menu-section-desc {
  font-size: 1.3em;
  color: #888;
  margin: 10px 0 0;
  line-height: 1.6;
  max-width: 680px;
}

.menu-subsection-title {
  font-family: Candara, Calibri, Arial, sans-serif;
  font-size: 2em;
  font-weight: 900;
  text-transform: uppercase;
  color: #4d4d4d;
  letter-spacing: 0.06em;
  margin: 30px 0 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5e5;
}

/* ================================================================
   MENU ITEMS GRID — two-column layout on desktop
================================================================ */
.menu-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.menu-items-grid--slices {
  grid-template-columns: repeat(3, 1fr);
}

.menu-item-row {
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid #f0eded;
  /* Inner grid: image placeholder column + content column */
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-areas:
    "thumb header"
    "thumb desc";
  column-gap: 16px;
}

.menu-item-row:nth-child(odd)  { padding-right: 28px; }
.menu-item-row:nth-child(even) { padding-left: 24px; border-left: 1px solid #f0eded; }

/* Pseudo-element placeholder disabled — real <img> inserted by add_menu_imgs.py */
.menu-item-row::before {
  content: none;
  display: none;
}

.menu-item-row > .menu-item-img {
  grid-area: thumb;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  background-color: #ede9e4;
  align-self: start;
  display: block;
}

.menu-item-row > .menu-item-header { grid-area: header; }
.menu-item-row > .item-description  { grid-area: desc; }

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.menu-item-header .item-name {
  font-family: Candara, Calibri, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 900;
  color: #3a3a3a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex: 1;
  margin: 0;
  padding: 0;
}

.menu-item-header .item-price {
  font-size: 1.5em;
  font-weight: 700;
  color: #f15a24;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item-row .item-description {
  font-size: 1.2em;
  color: #777;
  line-height: 1.5;
  margin: 0;
}

/* Badge (GF, etc.) */
.item-badge {
  display: inline-block;
  background-color: #4a9e5c;
  color: #fff;
  font-size: 0.65em;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Slices sub-grid — compact, no image placeholder */
.menu-items-grid--slices .menu-item-row {
  display: block;
  padding: 10px 12px;
  border-left: none !important;
}
.menu-items-grid--slices .menu-item-row::before { display: none; }
.menu-items-grid--slices .menu-item-row:nth-child(odd) { padding-right: 12px; }

@media (max-width: 767px) {
  .menu-items-grid,
  .menu-items-grid--slices {
    grid-template-columns: 1fr;
  }
  .menu-item-row {
    grid-template-columns: 80px 1fr;
  }
  .menu-item-row > .menu-item-img { width: 80px; height: 80px; }
  .menu-item-row:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .menu-items-grid--slices .menu-item-row { padding: 10px 0; }
}

/* ================================================================
   BAR NOTE
================================================================ */
.bar-note {
  margin-top: 24px;
  font-size: 0.92em;
  color: #888;
  border-top: 1px solid #ececec;
  padding-top: 16px;
}
.bar-note a { color: #f15a24; }
.bar-note a:hover { color: #EC5823; }

/* ================================================================
   ORDER CTA STRIP (bottom of menu page)
================================================================ */
.menu-order-strip {
  background-color: var(--dark-bg);
  padding: 56px 20px;
  text-align: center;
}

.menu-order-strip-title {
  font-family: 'Special Elite', cursive;
  font-size: 2em;
  color: #fff;
  margin-bottom: 10px;
}

.menu-order-strip p {
  color: rgba(255,255,255,0.75);
  font-size: 1em;
  margin-bottom: 24px;
}

.menu-order-strip p a {
  color: #f15a24;
  text-decoration: none;
}
.menu-order-strip p a:hover { color: #fff; }

.menu-order-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.catering-note {
  font-size: 0.88em !important;
  color: rgba(255,255,255,0.5) !important;
  margin-top: 10px !important;
}
.catering-note a { color: #f15a24 !important; }
.catering-note a:hover { color: #fff !important; }

@media (max-width: 480px) {
  .menu-order-btns { flex-direction: column; align-items: center; }
  .menu-order-btns a { width: 220px; text-align: center; }
}

/* ================================================================
   PIZZA SIZE PRICE STACK (whole pies only)
================================================================ */
.pizza-size-prices {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
  text-align: right;
}

.pizza-size-label {
  font-size: 1.5em;
  font-weight: 700;
  color: #f15a24;
  white-space: nowrap;
  line-height: 1.6;
}

/* Top-align header when price column is multi-line */
.menu-item-header--sizes {
  align-items: flex-start;
}

@media (max-width: 479px) {
  .pizza-size-label { font-size: 0.82em; }
}

/* ================================================================
   SECTION-LEVEL ORDER ONLINE CTA
================================================================ */
.menu-section-order-cta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f0eded;
  text-align: center;
}
