/* Onze Skyline — Menu / Cardápio */

.menu-page {
  padding-top: var(--header-h);
  background: var(--body-bg);
}

.menu-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px);
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.menu-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  color: var(--text-strong);
  margin: 10px 0 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-hero__lead {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* === SEARCH BAR === */
.menu-search-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.menu-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  transition: border-color 220ms var(--ease);
}
.menu-search:focus-within { border-color: var(--gold); }
.menu-search svg {
  width: 17px; height: 17px;
  color: var(--gold);
  flex-shrink: 0;
}
.menu-search input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--text-strong);
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 400;
}
.menu-search input::placeholder { color: var(--text-soft); }

/* === CATEGORY NAVIGATION === */
.menu-cats {
  position: sticky;
  /* fica logo abaixo da barra de busca (que tem ~70px de altura) */
  top: calc(var(--header-h) + 70px);
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
/* Faz o slide ocupar 100% da viewport (escapa do .container) */
.menu-cats > .container {
  max-width: none;
  padding: 0;
}
.menu-cats ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px clamp(20px, 5vw, 56px);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: clamp(20px, 5vw, 56px);
  scroll-padding-right: clamp(20px, 5vw, 56px);
}
.menu-cats ul::-webkit-scrollbar { height: 4px; }
.menu-cats ul::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.menu-cats ul::-webkit-scrollbar-track { background: transparent; }
.menu-cats a {
  display: inline-block;
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: #eee;
  border-radius: 24px;
  white-space: nowrap;
  font-weight: 500;
  transition: all 220ms var(--ease);
}
.menu-cats a:hover { background: #ddd; color: var(--text-strong); }
.menu-cats a.is-active {
  background: var(--gold);
  color: #fff;
}

/* === BODY === */
.menu-body {
  padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
  background: var(--body-bg);
}

.menu-cat {
  margin-bottom: clamp(48px, 6vw, 72px);
  scroll-margin-top: calc(var(--header-h) + 130px);
}
.menu-cat__head {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}
.menu-cat__title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text-strong);
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-cat__desc {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 8px clamp(28px, 4vw, 56px);
  background: #fff;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--border);
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  transition: all 200ms var(--ease);
}
.menu-item.has-photo {
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}
.menu-item__photo {
  width: 72px;
  height: 90px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: linear-gradient(180deg, #fafaf7 0%, #efece4 100%);
  border: 1px solid var(--border);
  padding: 4px;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
  cursor: zoom-in;
  flex-shrink: 0;
}
.menu-item.has-photo:hover .menu-item__photo {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
/* esconde dots quando tem foto (já fica visualmente equilibrado sem) */
.menu-item.has-photo .menu-item__dots { display: none; }
.menu-item:hover {
  padding-left: 6px;
}
.menu-item__main { min-width: 0; }
.menu-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.menu-item__desc {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 300;
}
.menu-item__dots {
  flex: 0 0 auto;
  border-bottom: 1px dotted var(--text-soft);
  align-self: end;
  min-width: 18px;
  margin-bottom: 6px;
}
.menu-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  align-self: start;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .menu-items {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 18px;
  }
  .menu-item { grid-template-columns: 1fr auto; }
  .menu-item.has-photo {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .menu-item__photo { width: 60px; height: 76px; }
  .menu-item__dots { display: none; }
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 20, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 40px;
  animation: lb-fade-in 220ms var(--ease);
}
.lightbox.is-open { display: flex; }
@keyframes lb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: lb-zoom 280ms var(--ease);
}
@keyframes lb-zoom {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 200ms var(--ease);
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.18);
}

.menu-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-soft);
}

.menu-item.is-hidden { display: none; }
.menu-cat.is-empty { display: none; }

/* === CTA FINAL === */
.menu-cta {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.menu-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text-strong);
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.menu-cta p {
  color: var(--text);
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 300;
}

/* === INFORMAÇÕES (políticas no rodapé do menu) === */
.menu-info {
  background: var(--header-bg);
  color: #fff;
  padding: clamp(36px, 5vw, 56px) 0;
}
.menu-info__title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  text-transform: none;
}
.menu-info__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
}
.menu-info__list li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.menu-info__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
