/* Eat At — dedicated /menu page */
:root {
  --pjb-accent: var(--pjb-coral, #c75b45);
}

.pj-menu-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: var(--pjb-font-body, "DM Sans", system-ui, sans-serif);
  color: var(--pjb-ink, #1f1f1f);
}

.pj-menu-header {
  text-align: center;
  padding: 0.5rem 0 2rem;
  border-bottom: 1px solid rgba(31, 31, 31, 0.08);
  margin-bottom: 2rem;
}

.pj-menu-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pjb-accent);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.pj-menu-back:hover {
  color: #a84a38;
}

.pj-menu-header h1 {
  font-family: var(--pjb-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.pj-menu-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--pjb-muted, #5c5c5c);
  letter-spacing: 0.02em;
}

.pj-menu-highlights {
  margin-bottom: 2.5rem;
}

.pj-menu-highlights-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pjb-accent);
  margin-bottom: 1rem;
}

.pj-menu-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.pj-menu-highlight-card {
  background: #fff;
  border-radius: var(--pjb-radius, 16px);
  overflow: hidden;
  border: 1px solid rgba(31, 31, 31, 0.08);
  box-shadow: 0 4px 16px rgba(31, 31, 31, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pj-menu-highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(199, 91, 69, 0.15);
}

.pj-menu-highlight-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.pj-menu-highlight-card h3 {
  font-family: var(--pjb-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  padding: 0.75rem 0.85rem;
  text-align: center;
  line-height: 1.35;
  color: var(--pjb-ink);
}

.pj-menu-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pj-menu-category {
  background: #fff;
  border-radius: var(--pjb-radius, 16px);
  padding: 1.25rem 1.35rem 1.1rem;
  border: 1px solid rgba(31, 31, 31, 0.07);
  box-shadow: 0 2px 12px rgba(31, 31, 31, 0.04);
}

.pj-menu-category h3 {
  font-family: var(--pjb-font-display, "Fraunces", Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--pjb-accent);
  display: inline-block;
}

.pj-menu-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pj-menu-category li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(31, 31, 31, 0.1);
  font-size: 0.95rem;
}

.pj-menu-category li:last-child {
  border-bottom: none;
}

.pj-menu-item-name {
  flex-shrink: 0;
  font-weight: 500;
}

.pj-menu-item-dots {
  flex: 1;
  min-width: 1rem;
  border-bottom: 1px dotted rgba(31, 31, 31, 0.25);
  margin-bottom: 0.2rem;
}

.pj-menu-item-price {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--pjb-accent);
  white-space: nowrap;
}

.pj-menu-gallery {
  margin-top: 2.5rem;
}

.pj-menu-gallery-label {
  font-family: var(--pjb-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.pj-menu-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pj-menu-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: #eee;
}

.pj-menu-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pj-menu-gallery-item:hover img {
  transform: scale(1.06);
}

.pj-menu-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(199, 91, 69, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pj-menu-gallery-item:hover .pj-menu-gallery-overlay {
  opacity: 1;
}

.pj-menu-gallery-overlay i {
  color: #fff;
  font-size: 1.75rem;
}

.pj-menu-content-text {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--pjb-radius, 16px);
  border: 1px solid rgba(31, 31, 31, 0.07);
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--pjb-muted);
}

.pj-menu-content-text h2,
.pj-menu-content-text h3 {
  font-family: var(--pjb-font-display);
  color: var(--pjb-ink);
}

.pj-menu-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  padding: 20px;
}

.pj-menu-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pj-menu-modal-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pj-menu-modal-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.pj-menu-modal-close {
  position: fixed;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  background: none;
  border: none;
  opacity: 0.85;
}

.pj-menu-modal-close:hover {
  opacity: 1;
}

.pj-menu-modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s ease;
}

.pj-menu-modal-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pj-menu-modal-prev {
  left: 16px;
}

.pj-menu-modal-next {
  right: 16px;
}

@media (max-width: 768px) {
  .pj-menu-page {
    padding: 1rem 0.85rem 2.5rem;
  }

  .pj-menu-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .pj-menu-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .pj-menu-category {
    padding: 1rem 1rem 0.85rem;
  }
}

@media (max-width: 400px) {
  .pj-menu-highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
}
