/* ============================================================
   MENU.CSS — page-specific styles for the menu page (menu.html)
   Page intro, tabs, the printed board/parchment/shell-border
   styles, gratuity badge, originals gallery + lightbox, and the
   booking strip. Shared chrome (header/nav/signboard/wave-
   dividers/section-shell/footer) lives in base.css.
   Requires src/css/tokens.css and src/css/base.css to be loaded first.
   ============================================================ */

/* Named lookups for the printed-boards lightbox — menu.js reads
   var(--<shot.dataset.img>) to show the full-size scan. */
:root{
  --board-app:url("../images/board-app.jpg");
  --board-entree:url("../images/board-entree.jpg");
  --board-daily:url("../images/board-daily.jpg");
  --board-drink:url("../images/board-drink.jpg");
  --board-beach:url("../images/board-beach.jpg");
}

body{background:var(--aqua-deep)}
:focus-visible{outline-color:var(--gold-lift)}

/* ---------- page intro ---------- */
.intro{color:#fff;padding-block:clamp(2.5rem,6vw,4rem) 0;text-align:center}
.intro h1{font-size:var(--t-h2);margin-bottom:.6rem}
.intro p{color:rgba(255,255,255,.8);max-width:52ch;margin-inline:auto}

/* ---------- tabs ---------- */
.tabs{
  display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;
  padding-block:2rem 2.5rem;
}
.tab{
  background:transparent;border:1px solid rgba(255,255,255,.3);
  color:rgba(255,255,255,.78);font:inherit;font-weight:600;font-size:.92rem;
  padding:.6rem 1.15rem;cursor:pointer;
}
.tab:hover{color:#fff;border-color:rgba(255,255,255,.6)}
.tab[aria-selected="true"]{background:var(--board-paper);color:var(--aqua-ink);border-color:var(--board-paper)}
.panel[hidden]{display:none}

/* ============================================================
   THE BOARD — a web translation of their printed menu:
   parchment stock, gold category rules, teal dish names with
   the price set inline, and the shell band along the bottom.
   ============================================================ */
.board{
  position:relative;
  background-color:var(--board-paper);
  background-image:url("../images/board-parchment.jpg");
  background-size:360px auto;
  border:1px solid rgba(169,124,47,.45);
  box-shadow:0 24px 60px rgba(0,0,0,.32);
  padding:clamp(1.5rem,4vw,3.2rem);
  padding-bottom:clamp(5rem,8vw,7rem);
}
/* the shell band, tiled from a palindromic crop so there is no seam */
.board::after{
  content:"";position:absolute;left:0;right:0;bottom:0;
  height:clamp(30px,4vw,48px);
  background-image:url("../images/board-shells.jpg");
  background-repeat:repeat-x;background-size:auto 100%;
}

.board-head{text-align:center;margin-bottom:clamp(1.8rem,4vw,2.8rem)}
.board-head .mark{
  width:92px;height:90px;margin:0 auto .4rem;background-image:url("../images/logo.png");
  background-size:contain;background-repeat:no-repeat;background-position:center;
}
.board-head h2{
  font-family:var(--body);font-weight:600;
  font-size:clamp(1.5rem,3.4vw,2.4rem);
  letter-spacing:.14em;text-transform:uppercase;color:var(--board-teal);
}
.board-head p{color:var(--board-brown);font-size:.92rem;margin:.6rem auto 0;max-width:56ch}

.board-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(1.5rem,3vw,2.6rem)}
.board-cols.two{grid-template-columns:repeat(2,1fr)}
.board-cols.three{grid-template-columns:repeat(3,1fr)}

.b-course{margin-bottom:2.2rem;break-inside:avoid}
/* rules above and below the heading, exactly as the boards do it */
.b-course h3{
  font-size:1.28rem;color:var(--board-gold);font-weight:600;
  border-top:1px solid rgba(169,124,47,.55);
  border-bottom:1px solid rgba(169,124,47,.55);
  padding-block:.3rem;margin-bottom:.9rem;
}
.b-item{margin-bottom:.72rem}
.b-item .n{font-family:var(--display);font-weight:600;color:var(--board-teal);font-size:1.02rem}
.b-item .p{font-family:var(--display);font-weight:600;color:var(--board-teal);white-space:nowrap}
.b-item .d{display:block;font-size:.85rem;color:var(--board-brown);line-height:1.35;margin-top:.05rem}
.b-note{font-size:.85rem;color:var(--board-brown);margin:.8rem 0 0}
.b-list{font-family:var(--display);color:var(--board-teal);font-size:.98rem;line-height:1.75;margin:0}

.gratuity-badge{
  width:92px;height:92px;border:1px solid rgba(169,124,47,.7);border-radius:50%;
  display:grid;place-content:center;text-align:center;margin:2.5rem auto 0;
  font-family:var(--display);color:var(--board-gold);font-size:.9rem;line-height:1.25;
}

/* ---------- the printed boards ---------- */
.originals{padding-block:var(--gap);color:#fff;position:relative}
.originals h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:.5rem}
.originals p{color:rgba(255,255,255,.78);max-width:58ch}
.board-shots{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1rem;margin-top:2rem;
}
.shot{
  border:0;padding:0;cursor:pointer;font:inherit;text-align:left;color:#fff;
  background:#0a4a4f;
}
.shot .pic{aspect-ratio:1300/849;background-size:cover;background-position:center}
.shot .pic.tall{aspect-ratio:1300/1005}
.shot span{display:block;padding:.7rem .9rem;font-size:.9rem;color:rgba(255,255,255,.86)}
.shot:hover span,.shot:focus-visible span{color:#fff;text-decoration:underline;text-underline-offset:3px}

.lightbox{position:fixed;inset:0;z-index:300;display:none;background:rgba(6,58,63,.97);padding:clamp(1rem,3vw,2.5rem)}
.lightbox.is-open{display:flex;flex-direction:column;gap:1rem}
.lightbox-img{flex:1;background-size:contain;background-repeat:no-repeat;background-position:center}
.lightbox-bar{display:flex;justify-content:space-between;align-items:center;color:#fff;gap:1rem}
.lightbox-close{background:none;border:1px solid rgba(255,255,255,.5);color:#fff;font:inherit;padding:.45rem .9rem;cursor:pointer}

/* ---------- booking strip ---------- */
.book-strip{background:var(--aqua);color:var(--aqua-ink);padding-block:clamp(2rem,4vw,3rem);text-align:center;position:relative}
.book-strip h2{font-size:clamp(1.5rem,3vw,2.1rem);margin-bottom:.5rem}
.book-strip p{max-width:50ch;margin:0 auto 1.4rem}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .board-cols,.board-cols.three{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:620px){
  .board-cols,.board-cols.two,.board-cols.three{grid-template-columns:1fr}
}
