/* ============================================================
   FOODS OF NEPAL — photo-stack edition
   ============================================================ */

/* ── Plain header ───────────────────────────────────────── */
.food-header {
  padding: 104px 0 48px;
  background: #fff;
  border-bottom: 1px solid var(--light-grey);
}
.food-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.food-page-desc {
  font-size: .95rem; color: var(--mid-grey);
  max-width: 580px; line-height: 1.65; margin-bottom: 36px;
}

/* ── Tab nav (pills) ────────────────────────────────────── */
.food-tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.food-tab {
  padding: 11px 22px; border-radius: 24px;
  font-size: .82rem; font-weight: 600;
  color: var(--dark-grey); background: #f1ece3;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
.food-tab:hover {
  background: #e6dfd2; color: var(--text);
  transform: translateY(-1px);
}
.food-tab.active {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 16px rgba(200,16,46,.32);
}

/* ── Main wrapper ───────────────────────────────────────── */
.food-main { padding: 0 0 90px; }

/* ── Stack section: label + stage side by side ──────────── */
.food-stack-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 15px;
  align-items: center;
  padding: 72px 0;
  min-height: 480px;
}
.food-stack-label h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--text);
  margin-bottom: 14px; line-height: 1.15;
}
.food-stack-label p {
  font-size: .95rem; color: var(--mid-grey);
  line-height: 1.7; max-width: 460px;
}

/* ── The stack stage ────────────────────────────────────── */
.food-stack-stage {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.food-stack {
  position: relative;
  width: 240px; height: 300px;
  cursor: pointer;
  outline: none;
}

.fstack-card {
  position: absolute; inset: 0;
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px 12px 36px;
  box-shadow: 0 10px 28px rgba(26,23,20,.22);
  transition: transform .45s cubic-bezier(.2,.8,.25,1), box-shadow .3s;
  transform-origin: bottom center;
}
.fstack-photo {
  width: 100%; height: 100%;
  border-radius: 4px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.fstack-emoji {
  font-size: 3.4rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

/* fanned resting state — photos peek out */
.fstack-card:nth-child(1) { transform: rotate(-11deg) translate(-22px,8px);  z-index: 1; }
.fstack-card:nth-child(2) { transform: rotate(-4deg)  translate(-9px,3px);   z-index: 2; }
.fstack-card:nth-child(3) { transform: rotate(4deg)   translate(9px,3px);    z-index: 3; }
.fstack-card:nth-child(4) { transform: rotate(11deg)  translate(22px,8px);   z-index: 4; }

/* hover — spread wider like a hand of cards */
.food-stack:hover .fstack-card:nth-child(1),
.food-stack:focus .fstack-card:nth-child(1) { transform: rotate(-20deg) translate(-58px,-4px); }
.food-stack:hover .fstack-card:nth-child(2),
.food-stack:focus .fstack-card:nth-child(2) { transform: rotate(-7deg) translate(-22px,-14px); }
.food-stack:hover .fstack-card:nth-child(3),
.food-stack:focus .fstack-card:nth-child(3) { transform: rotate(7deg)  translate(22px,-14px); }
.food-stack:hover .fstack-card:nth-child(4),
.food-stack:focus .fstack-card:nth-child(4) { transform: rotate(20deg) translate(58px,-4px); box-shadow: 0 16px 38px rgba(26,23,20,.28); }

.food-stack-count {
  margin-top: 56px;
  font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mid-grey);
  font-weight: 600; white-space: nowrap;
}
.food-stack-hint {
  margin-top: 8px;
  font-size: .72rem; color: #b0a89c; font-style: italic;
}

/* ── Etiquette & Safety ─────────────────────────────────── */
.food-etiq-wrap { padding: 56px 0; }
.food-etiq-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 28px;
}
.food-etiq-col { border-radius: 12px; padding: 20px; }
.food-etiq-col--do   { background: #f0fdf4; border: 1px solid #bbf7d0; }
.food-etiq-col--dont { background: #fef2f2; border: 1px solid #fecaca; }
.food-etiq-col h4 {
  font-size: .9rem; font-weight: 700;
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,0,0,.06);
}
.food-etiq-col--do   h4 { color: #166534; }
.food-etiq-col--dont h4 { color: #991b1b; }
.food-etiq-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.food-etiq-list li { font-size: .83rem; color: #444; line-height: 1.55; padding-left: 18px; position: relative; }
.food-etiq-col--do   .food-etiq-list li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.food-etiq-col--dont .food-etiq-list li::before { content: '✕'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

.food-safety-box { background: #fff8ed; border: 1px solid #fde8c8; border-radius: 12px; padding: 24px 28px; }
.food-safety-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 700; color: #92400e;
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #fde8c8;
}
.food-safety-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.food-safety-list li { font-size: .87rem; color: #444; line-height: 1.6; padding-left: 16px; position: relative; }
.food-safety-list li::before { content: '→'; position: absolute; left: 0; color: #d97706; font-weight: 700; }

/* ── Lightbox ───────────────────────────────────────────── */
.food-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20,17,14,.93);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px; padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.food-lightbox.open { opacity: 1; pointer-events: auto; }

.food-lb-close {
  position: fixed; top: 16px; right: 16px; z-index: 1300;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,17,14,.7); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  transition: transform .2s, background .2s;
}
.food-lb-close:hover { transform: scale(1.1); background: rgba(0,0,0,.9); }

.food-lb-frame {
  position: relative;
  max-width: min(560px, 90vw);
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  background-size: cover; background-position: center;
  background-color: #1c0f02;
}
.food-lb-emoji {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  font-size: 6rem;
}

.food-lb-info-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 22px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  text-align: left;
}
.food-lb-tag {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #fbbf24; margin-bottom: 6px;
}
.food-lb-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  line-height: 1.15; margin-bottom: 5px;
}
.food-lb-price {
  font-size: .85rem; font-weight: 700; color: #4ade80;
}

.food-lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  cursor: pointer; background: rgba(255,253,248,.92); color: #1a1714;
  font-size: 24px; line-height: 1;
  display: grid; place-items: center; z-index: 3;
  transition: background .2s, transform .2s;
}
.food-lb-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.food-lb-prev { left: -64px; }
.food-lb-next { right: -64px; }

.food-lb-desc {
  max-width: min(560px, 90vw);
  color: rgba(244,241,234,.82);
  font-size: .88rem; line-height: 1.65; text-align: center;
}

.food-lb-counter {
  color: #c9c2b6; font-size: .75rem; letter-spacing: .1em;
}

.food-lb-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  max-width: 90vw;
}
.food-lb-thumb {
  width: 50px; height: 50px; border-radius: 6px;
  background-size: cover; background-position: center;
  background-color: #2a2a2a;
  cursor: pointer; opacity: .5;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .2s, outline-color .2s;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.food-lb-thumb.active { opacity: 1; outline-color: var(--red); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .food-stack-wrap {
    grid-template-columns: 1fr;
    gap: 32px; text-align: center;
    padding: 48px 0;
  }
  .food-stack-label p { margin: 0 auto; }
  .food-lb-prev { left: 8px; }
  .food-lb-next { right: 8px; }
}

@media (max-width: 640px) {
  .food-header { padding: 88px 0 36px; }
  .food-etiq-grid { grid-template-columns: 1fr; }
  .food-stack { width: 200px; height: 260px; }
}
