/* BanCan Kitchen — shared stylesheet */
:root{
  --orange:#2E7D4F; --orange-dark:#1F5E39; --orange-soft:#EAF5EE;
  --cream:#FAFCFA; --ink:#13251A; --muted:#5E7268;
  --line:#D8E6DD; --white:#fff; --green:#2E7D4F;
  --radius:16px; --radius-lg:28px;
  --shadow:0 2px 10px rgba(19,37,26,.06);
  --shadow-lg:0 14px 40px rgba(19,37,26,.13);
  --wrap:1200px; --head:76px;
  --serif:"Playfair Display",Georgia,serif;
  --sans:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--cream);line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
h1,h2,h3{font-family:var(--serif);line-height:1.15;margin:0 0 .5em;font-weight:700}
h1{font-size:clamp(2.4rem,6vw,4.2rem)}
h2{font-size:clamp(1.9rem,4vw,3rem)}
h3{font-size:1.25rem}
.eyebrow{font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;color:var(--orange);font-weight:700;margin-bottom:.8rem}
.lede{font-size:1.1rem;color:var(--muted);max-width:60ch}
.center{text-align:center}
.center .lede{margin-inline:auto}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.7rem;border-radius:999px;font-weight:700;font-size:.95rem;border:2px solid transparent;cursor:pointer;transition:.18s;font-family:var(--sans)}
.btn-primary{background:var(--orange);color:#fff}
.btn-primary:hover{background:var(--orange-dark)}
.btn-ghost{border-color:var(--orange);color:var(--orange);background:transparent}
.btn-ghost:hover{background:var(--orange);color:#fff}
.btn-sm{padding:.5rem 1.1rem;font-size:.85rem}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* header */
.site-head{position:sticky;top:0;z-index:100;background:rgba(255,249,243,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.head-in{height:var(--head);display:flex;align-items:center;gap:1.5rem}
.logo img{height:46px;width:auto}
.nav{display:flex;gap:1.6rem;margin-left:auto;align-items:center}
.nav a{font-weight:600;font-size:.93rem;padding:.3rem 0;border-bottom:2px solid transparent}
.nav a:hover,.nav a.active{color:var(--orange);border-bottom-color:var(--orange)}
.head-cta{display:flex;align-items:center;gap:.7rem}
.cart-btn{position:relative;background:var(--orange);color:#fff;border:0;border-radius:999px;padding:.6rem 1.2rem;font-weight:700;cursor:pointer;font-size:.9rem;font-family:var(--sans)}
.cart-count{background:#fff;color:var(--orange);border-radius:999px;padding:0 .45rem;margin-left:.4rem;font-size:.8rem;display:inline-block;min-width:1.3em}
.burger{display:none;background:none;border:0;font-size:1.6rem;cursor:pointer;color:var(--ink)}

/* hero */
.hero{position:relative;padding:5rem 0 6rem;background:linear-gradient(160deg,var(--orange-soft),var(--cream) 65%);overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:3.5rem;align-items:center}
.hero h1{margin-bottom:1rem}
.hero h1 em{font-style:normal;color:var(--orange)}
.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap;margin-top:2rem}
.hero-img{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-lg);aspect-ratio:4/3}
.hero-img img{width:100%;height:100%;object-fit:cover}
.hero-stats{display:flex;gap:2.5rem;margin-top:2.6rem;padding-top:1.8rem;border-top:1px solid var(--line)}
.hero-stats b{display:block;font-family:var(--serif);font-size:1.7rem;color:var(--orange)}
.hero-stats span{font-size:.82rem;color:var(--muted)}

/* sections */
section{padding:4.5rem 0}
.sec-head{margin-bottom:2.5rem}
.grid{display:grid;gap:1.6rem}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}

.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.2s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.card-img{aspect-ratio:4/3;background:var(--orange-soft);overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;flex:1}
.card h3{font-size:1.08rem;margin-bottom:.3rem}
.card p{font-size:.88rem;color:var(--muted);margin:0 0 1rem}
.card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:.7rem}
.price{font-family:var(--serif);font-size:1.25rem;font-weight:700;color:var(--orange)}
.compare{font-size:.85rem;color:var(--muted);text-decoration:line-through;margin-left:.4rem;font-family:var(--sans)}

.alt{background:#fff}
.band{background:var(--orange);color:#fff;padding:3.2rem 0}
.band h2{color:#fff}
/* Full white, not 90%. At .9 over the band colour this measured
   4.43:1 against the 4.5 WCAG AA needs for normal text - the last
   contrast failure on the site, found 2026-11-24. */
.band .lede{color:#fff}

/* menu page */
.menu-layout{display:grid;grid-template-columns:230px 1fr;gap:2.5rem;align-items:start}
.cat-nav{position:sticky;top:calc(var(--head) + 20px);background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1rem;max-height:calc(100vh - var(--head) - 50px);overflow-y:auto}
.cat-nav h4{margin:0 0 .7rem;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-family:var(--sans)}
.cat-nav a{display:block;padding:.45rem .6rem;border-radius:8px;font-size:.88rem;color:var(--muted);font-weight:600}
.cat-nav a:hover,.cat-nav a.active{background:var(--orange-soft);color:var(--orange)}
.cat-block{margin-bottom:3rem;scroll-margin-top:calc(var(--head) + 20px)}
.cat-block h2{font-size:1.75rem;padding-bottom:.6rem;border-bottom:2px solid var(--orange-soft)}
.loading{padding:4rem 1rem;text-align:center;color:var(--muted)}
.spinner{width:34px;height:34px;border:3px solid var(--orange-soft);border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 1rem}
@keyframes spin{to{transform:rotate(360deg)}}
.err{background:#FFF4F4;border:1px solid #F3C9C9;color:#8E2B2B;padding:1.2rem;border-radius:var(--radius)}

/* cart drawer */
.drawer-bg{position:fixed;inset:0;background:rgba(19,37,26,.5);opacity:0;pointer-events:none;transition:.25s;z-index:200}
.drawer-bg.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;height:100%;width:min(420px,100%);background:#fff;z-index:201;transform:translateX(100%);transition:.28s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column}
.drawer.open{transform:none}
.drawer-head{padding:1.3rem 1.5rem;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.drawer-head h3{margin:0}
.drawer-close{background:none;border:0;font-size:1.7rem;cursor:pointer;line-height:1;color:var(--muted)}
.drawer-body{flex:1;overflow-y:auto;padding:1.2rem 1.5rem}
.drawer-foot{border-top:1px solid var(--line);padding:1.3rem 1.5rem;background:var(--cream)}
.line{display:flex;gap:.9rem;padding:.9rem 0;border-bottom:1px solid var(--line)}
.line img{width:62px;height:62px;border-radius:10px;object-fit:cover;flex-shrink:0}
.line-info{flex:1;min-width:0}
.line-info strong{display:block;font-size:.92rem;margin-bottom:.15rem}
.line-info .price{font-size:1rem}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;margin-top:.45rem}
.qty button{background:#fff;border:0;width:30px;height:28px;cursor:pointer;font-size:1rem;color:var(--orange);font-weight:700}
.qty button:hover{background:var(--orange-soft)}
.qty span{min-width:28px;text-align:center;font-size:.9rem;font-weight:700}
.sub-row{display:flex;justify-content:space-between;margin-bottom:.45rem;font-size:.92rem;color:var(--muted)}
.sub-row.total{font-size:1.15rem;color:var(--ink);font-weight:700;padding-top:.6rem;margin-top:.5rem;border-top:1px solid var(--line)}
.empty-cart{text-align:center;padding:3rem 1rem;color:var(--muted)}
.tax-note{font-size:.76rem;color:var(--muted);margin-top:.7rem;text-align:center}

/* gallery */
.gal{columns:3;column-gap:1.1rem}
.gal img{width:100%;margin-bottom:1.1rem;border-radius:var(--radius);break-inside:avoid;box-shadow:var(--shadow)}

/* info / forms */
.info-list{list-style:none;padding:0;margin:0}
.info-list li{padding:.55rem 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:1rem;font-size:.94rem}
.info-list li:last-child{border:0}
.field{margin-bottom:1.1rem}
.field label{display:block;font-size:.85rem;font-weight:700;margin-bottom:.35rem}
.field input,.field select,.field textarea{width:100%;padding:.8rem 1rem;border:1px solid var(--line);border-radius:12px;font-family:var(--sans);font-size:.95rem;background:#fff;color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--orange);border-color:transparent}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:2rem;box-shadow:var(--shadow)}

/* footer */
.site-foot{background:var(--ink);color:#E8DBD1;padding:3.5rem 0 1.5rem;margin-top:2rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.5rem;margin-bottom:2.5rem}
.site-foot h4{color:#fff;font-family:var(--serif);font-size:1.15rem;margin:0 0 .9rem}
.site-foot a:hover{color:var(--orange)}
.foot-links{display:flex;flex-direction:column;gap:.5rem;font-size:.9rem}
.foot-bottom{border-top:1px solid rgba(255,255,255,.14);padding-top:1.4rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.82rem;color:#A89488}
.socials{display:flex;gap:1rem}
.foot-logo{height:52px;margin-bottom:1rem;filter:brightness(0) invert(1)}

.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,120%);background:var(--ink);color:#fff;padding:.85rem 1.5rem;border-radius:999px;font-size:.9rem;font-weight:600;z-index:300;transition:.3s}
.toast.show{transform:translate(-50%,0)}

@media(max-width:980px){
  .hero-grid,.g4,.g3{grid-template-columns:1fr 1fr}
  .hero-grid{grid-template-columns:1fr}
  .menu-layout{grid-template-columns:1fr}
  .cat-nav{position:static;max-height:none;display:flex;gap:.4rem;overflow-x:auto}
  .cat-nav h4{display:none}
  .cat-nav a{white-space:nowrap}
  .foot-grid{grid-template-columns:1fr}
  .gal{columns:2}
}
@media(max-width:640px){
  .nav{display:none;position:absolute;top:var(--head);left:0;right:0;background:#fff;flex-direction:column;padding:1rem 24px;gap:.2rem;border-bottom:1px solid var(--line);box-shadow:var(--shadow-lg)}
  .nav.open{display:flex}
  .nav a{padding:.7rem 0;width:100%}
  .burger{display:block;order:3}
  .head-in{gap:.8rem}
  .g4,.g3,.g2{grid-template-columns:1fr}
  .gal{columns:1}
  .hero{padding:3rem 0 4rem}
  .hero-stats{gap:1.4rem}
  section{padding:3rem 0}
}
/* ---------- dish options dialog ---------- */
.opt-bg{position:fixed;inset:0;background:rgba(43,26,18,.55);display:flex;align-items:center;
  justify-content:center;padding:20px;z-index:400;opacity:0;transition:.18s}
.opt-bg.open{opacity:1}
.opt-box{background:#fff;border-radius:var(--radius-lg);padding:1.8rem;width:min(420px,100%);
  box-shadow:var(--shadow-lg);position:relative;transform:translateY(10px);transition:.18s;
  max-height:90vh;overflow-y:auto}
.opt-bg.open .opt-box{transform:none}
.opt-x{position:absolute;top:.7rem;right:.9rem;background:none;border:0;font-size:1.7rem;
  line-height:1;cursor:pointer;color:var(--muted)}
.opt-x:hover{color:var(--ink)}
.opt-box h3{margin:0 1.5rem .2rem 0;font-size:1.3rem}
.opt-price{font-family:var(--serif);font-size:1.15rem;color:var(--orange);font-weight:700;margin:0 0 1.3rem}
.opt-group{margin-bottom:1.2rem}
.opt-group label{display:block;font-size:.85rem;font-weight:700;margin-bottom:.5rem}
.opt-hint{font-weight:400;color:var(--muted)}
.opt-chips{display:flex;gap:.45rem;flex-wrap:wrap}
.chip{border:1.5px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;
  padding:.45rem 1rem;font-size:.88rem;font-weight:600;cursor:pointer;font-family:var(--sans);
  transition:.15s}
.chip:hover{border-color:var(--orange)}
.chip.on{background:var(--orange);border-color:var(--orange);color:#fff}
.opt-box textarea{width:100%;padding:.7rem .9rem;border:1px solid var(--line);border-radius:12px;
  font-family:var(--sans);font-size:.92rem;resize:vertical;background:#fff;color:var(--ink)}
.opt-box textarea:focus{outline:2px solid var(--orange);border-color:transparent}
.opt-add{width:100%;justify-content:center}
.line-opt{font-size:.78rem;color:var(--muted);line-height:1.35}
@media(max-width:480px){.opt-box{padding:1.4rem}}
@media(max-width:480px){.opt-box{padding:1.4rem}}
.cart-note{margin-bottom:1rem}
.cart-note label{display:block;font-size:.8rem;font-weight:700;margin-bottom:.35rem}
.cart-note textarea{width:100%;padding:.6rem .8rem;border:1px solid var(--line);border-radius:10px;
  font-family:var(--sans);font-size:.88rem;resize:vertical;background:#fff;color:var(--ink)}
.cart-note textarea:focus{outline:2px solid var(--orange);border-color:transparent}

/* remove-item button on each cart line */
.line-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.45rem}
.line-row .qty{margin-top:0}
.line-x{background:none;border:1px solid var(--line);border-radius:9px;width:32px;height:30px;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  color:var(--muted);flex-shrink:0;transition:.15s;padding:0}
.line-x:hover{color:#B3261E;border-color:#B3261E;background:#FFF4F4}
.line-x:focus-visible{outline:2px solid var(--orange);outline-offset:1px}

/* ---------- checkout dialog controls ---------- */
.opt-group input,
.opt-group select{
  width:100%;padding:.65rem .8rem;border:1px solid var(--line);border-radius:10px;
  font:inherit;color:var(--ink);background:#fff}
.opt-group input:focus,
.opt-group select:focus,
.opt-group textarea:focus{outline:2px solid var(--green,var(--orange));outline-offset:1px;
  border-color:transparent}
.err-msg{color:#C0392B;font-size:.88rem;font-weight:600;margin:.4rem 0 .8rem}
.err-msg a{color:#C0392B;text-decoration:underline}
/* The dialog can get tall once a required group, a note and the
   customer fields are all on screen. Let it scroll rather than
   pushing the Continue button off the bottom on a phone. */
.opt-box{max-height:88vh;overflow-y:auto}

/* ------------------------------------------------------------------
   Menu card descriptions, 2026-11-23.

   The full description now goes into the markup (pages2.py no longer
   cuts it at 110 characters) and the shortening happens here instead,
   so it can be undone. Three lines at rest; everything when opened.

   Two ways to open it, because they suit different devices:
     - a cursor hovering the card
     - a "More" button, added by the menu script only where the text is
       actually cut off, and shown only where there is no hover
   The row grows when a card opens. That is deliberate: floating the
   text over the cards below covered the dish name and the price.

   The title attribute on the paragraph carries the same text, so
   screen readers get it whichever route is used.                     */
.card p{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card p.is-open{
  -webkit-line-clamp:unset;
  overflow:visible;
}
@media (hover:hover){
  .card:hover p,
  .card:focus-within p{
    -webkit-line-clamp:unset;
    overflow:visible;
  }
}

/* The touch-screen way in. Hidden wherever a cursor exists. */
.desc-more{
  display:none;
  align-self:flex-start;
  background:none;
  border:0;
  padding:.15rem 0;
  margin:-.55rem 0 .85rem;
  font-family:var(--sans);
  font-size:.82rem;
  font-weight:700;
  color:var(--orange);
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media (hover:none){
  .desc-more{display:inline-block}
}

/* ------------------------------------------------------------------
   Image sizing, 2026-11-24.

   Every img now carries width and height so the browser can reserve
   its space before the file arrives. Those attributes do not only hint
   at the shape - they SET the box. So wherever CSS pins just one axis,
   the attribute wins on the other and the picture is distorted. That
   squashed the footer logo to 308x52 and stretched the about photo to
   552x1024 the first time this shipped.

   Freeing the unpinned axis turns the attributes back into a pure
   aspect-ratio hint, which is what we wanted from them.             */
.foot-logo{width:auto}
