/* ==========================================================================
   KUMAPILI — FOOD & DRINK MENU
   Editorial layout: a sticky category rail, then one section per course with
   a two-column list (name · leader dots · price) and a photograph per dish.
   ========================================================================== */

/* ---------- hero ---------- */
.menu-hero{
  position:relative;min-height:64vh;
  display:flex;align-items:flex-end;
  padding:0 0 clamp(34px,5vw,64px);
  overflow:hidden;
}
.menu-hero__img{position:absolute;inset:0}
.menu-hero__img img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
.menu-hero__img::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(9,32,29,.94) 0%,rgba(9,32,29,.42) 55%,rgba(9,32,29,.55) 100%);
}
.menu-hero__in{position:relative;z-index:2;width:100%}
.menu-hero h1{
  font-family:var(--font-display);font-weight:300;color:#fff;
  font-size:clamp(2.8rem,8.5vw,6.4rem);line-height:.94;letter-spacing:.01em;
  text-shadow:0 2px 44px rgba(0,0,0,.55);
}
.menu-hero p{
  margin-top:18px;max-width:48ch;
  color:rgba(255,255,255,.92);font-size:clamp(.9rem,1.4vw,1.05rem);line-height:1.72;
  text-shadow:0 1px 16px rgba(0,0,0,.65);
}
.menu-hero .eyebrow{color:rgba(255,255,255,.92)!important}

/* ---------- category bar ----------
   Not position:sticky — the smooth-scroll wrapper is position:fixed, so
   sticky would resolve against it and never engage, leaving the bar to
   scroll away and the fixed header to overlap the first course. */
.menu-bar{
  position:relative;z-index:45;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.menu-bar__in{
  display:flex;align-items:center;justify-content:space-between;
  gap:18px;flex-wrap:wrap;
  padding-block:clamp(12px,1.6vw,18px);
}
.menu-tabs{display:flex;flex-wrap:wrap;gap:4px}
.menu-tab{
  position:relative;
  padding:9px 16px;border-radius:100px;
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--text-dim);
  transition:color .4s var(--ease),background .4s var(--ease);
}
.menu-tab:hover{color:var(--clay)}
.menu-tab.on{background:var(--teal);color:var(--sand)}
.menu-bar__note{
  font-size:12px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--text-dim);opacity:.95;white-space:nowrap;
}
.menu-bar__note span{color:var(--clay);font-weight:600}

/* ---------- body ---------- */
.menu-body{padding-block:clamp(34px,5vw,64px) clamp(20px,3vw,36px)}

.menu-loading{display:flex;gap:7px;justify-content:center;padding:80px 0}
.menu-loading__dot{
  width:6px;height:6px;border-radius:50%;background:var(--clay);opacity:.35;
  animation:mlp 1.1s infinite ease-in-out;
}
.menu-loading__dot:nth-child(2){animation-delay:.15s}
.menu-loading__dot:nth-child(3){animation-delay:.3s}
@keyframes mlp{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}

/* one course block */
.course{margin-bottom:clamp(44px,6vw,84px)}
.course:last-child{margin-bottom:0}

.course__head{
  display:flex;align-items:baseline;gap:18px;
  padding-bottom:14px;margin-bottom:clamp(22px,3vw,34px);
  border-bottom:1px solid var(--line);
}
.course__num{
  font-family:var(--font-ui);font-size:12px;letter-spacing:.28em;
  color:var(--clay);flex:none;padding-top:6px;
}
.course__title{
  font-family:var(--font-display);font-weight:300;
  font-size:clamp(1.5rem,3.4vw,2.4rem);line-height:1.1;
  flex:1;min-width:0;
}
.course__count{
  font-size:12px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--text-dim);opacity:.9;flex:none;
}

/* the dish list */
.course__list{display:grid;gap:0}

.dish{
  display:grid;
  grid-template-columns:88px 1fr auto;
  gap:clamp(16px,2.4vw,30px);
  align-items:center;
  padding:clamp(16px,2vw,22px) 0;
  border-bottom:1px solid var(--line);
  transition:background .45s var(--ease);
}
.dish:last-child{border-bottom:0}
.dish:hover{background:var(--bg-alt)}

.dish__fig{
  width:88px;height:88px;flex:none;
  border-radius:50%;overflow:hidden;
  background:var(--bg-alt);
  position:relative;
}
.dish__fig img{
  width:100%;height:100%;object-fit:cover;
  transition:transform 1.1s cubic-bezier(.16,1,.3,1);
}
.dish:hover .dish__fig img{transform:scale(1.12)}

.dish__body{min-width:0}
.dish__name{
  font-family:var(--font-display);font-weight:400;
  font-size:clamp(1.05rem,1.9vw,1.35rem);line-height:1.25;
  display:block;
}
.dish__tag{
  display:inline-block;vertical-align:middle;
  margin-left:10px;position:relative;top:-1px;
  font-family:var(--font-ui);font-size:12px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--clay);
  border:1px solid currentColor;border-radius:100px;
  padding:2px 8px;opacity:.85;white-space:nowrap;
}
.dish__desc{
  margin-top:7px;font-size:.86rem;line-height:1.62;
  color:var(--text-dim);max-width:56ch;
}

.dish__price{
  font-family:var(--font-display);font-size:clamp(1rem,1.7vw,1.2rem);
  color:var(--clay);white-space:nowrap;flex:none;
  font-variant-numeric:tabular-nums;
}

/* empty state */
.menu-empty{
  text-align:center;padding:70px 0;color:var(--text-dim);
  font-size:.95rem;line-height:1.7;
}

/* note */
.menu-note{
  margin-top:clamp(30px,4vw,50px);
  padding:18px 20px;
  border-left:2px solid var(--gold);
  background:var(--bg-alt);
  font-size:.82rem;line-height:1.75;color:var(--text-dim);
  border-radius:0 8px 8px 0;
}
.menu-note strong{color:var(--text);font-weight:600}

/* CTA */
.menu-cta{padding-bottom:clamp(60px,9vw,120px)}
.menu-cta h2{
  font-family:var(--font-display);font-weight:300;
  font-size:clamp(1.8rem,4.4vw,3.2rem);line-height:1.15;max-width:20ch;
}
.menu-cta p{
  margin-top:18px;max-width:52ch;color:var(--text-dim);line-height:1.75;
}
.menu-cta p a{color:var(--clay);border-bottom:1px solid rgba(180,85,47,.3)}

/* ---------- responsive ---------- */
@media(max-width:760px){
  .menu-bar{position:static}
  .menu-bar__in{padding-block:14px}
  .menu-tabs{
    flex-wrap:nowrap;overflow-x:auto;width:100%;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .menu-tabs::-webkit-scrollbar{display:none}
  .menu-tab{flex:none}
  .menu-bar__note{display:none}

  .dish{
    grid-template-columns:64px 1fr;
    grid-template-areas:"fig body" "price price";
    gap:14px 16px;
    align-items:start;
  }
  .dish__fig{grid-area:fig;width:64px;height:64px}
  .dish__body{grid-area:body}
  .dish__price{grid-area:price;text-align:right;padding-top:2px}
  .dish__desc{max-width:none}
}

@media(max-width:420px){
  .course__head{flex-wrap:wrap;gap:8px 14px}
  .course__count{display:none}
}
