/* ==========================================================
   Bava Restaurant – main stylesheet
   Palette is taken from the Bava logo and shop signage.
   ========================================================== */
:root {
  --ground: #f6f7f1;
  --paper: #ffffff;
  --ink: #13241a;
  --ink-soft: #4a5a50;
  --green: #1b7a38;
  --green-deep: #0d3b21;
  --green-tint: #e3efe3;
  --maroon: #7c1515;
  --orange: #f27a1d;
  --orange-ink: #1c1004;
  --night: #161512;
  --line: rgba(19, 36, 26, .14);
  --line-light: rgba(255, 255, 255, .18);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .9vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.8rem);
  --step-5: clamp(2.6rem, 1.2rem + 6.2vw, 5.6rem);

  --gutter: max(1.25rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1.25rem, env(safe-area-inset-right, 0px));
  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -.015em; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--orange-ink); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--orange); color: var(--orange-ink); padding: .7rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap--narrow { max-width: 880px; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); }
.section--green { background: var(--green-deep); color: #eaf3ec; }
.section--green a { color: #fff; }
.section--green p { color: #c9dccd; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.section--green .lede { color: #c9dccd; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin: 0; }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem 3rem; }
.kicker { font: 700 var(--step--1)/1.2 var(--font-body); color: var(--maroon); margin: 0 0 .25rem; letter-spacing: .02em; }
.section--green .kicker { color: var(--orange); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--orange-ink); }
.btn--primary:hover { background: #ff8c33; color: var(--orange-ink); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-name { font: 800 1.3rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-name small { display: block; font: 600 .72rem/1.2 var(--font-body); color: var(--ink-soft); letter-spacing: .01em; margin-top: .2rem; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a { display: block; padding: .6rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .975rem; }
.main-nav a:hover { background: var(--green-tint); color: var(--green-deep); }
.main-nav a[aria-current="page"] { background: var(--green); color: #fff; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav { position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter-r) 1.25rem var(--gutter); display: none; box-shadow: 0 18px 30px rgba(0,0,0,.1); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .9rem 1rem; font-size: 1.1rem; border-radius: 10px; }
  .main-nav .nav-order { display: block; margin-top: .75rem; }
}
@media (min-width: 961px) { .main-nav .nav-order { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0 0 0 28%; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(22,21,18,.55) 28%, rgba(22,21,18,0) 62%); }
.hero-inner { display: grid; align-content: center; min-height: min(70vh, 640px); padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: none; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span:nth-child(2) { padding-left: clamp(1rem, 4vw, 3.5rem); }
.hero h1 span:nth-child(3) { padding-left: clamp(2rem, 8vw, 7rem); }
.hero-sub { font-size: var(--step-1); max-width: 34ch; margin: 1.5rem 0 2rem; color: #dcd9cf; }
.status-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .8rem; border: 1px solid var(--line-light); border-radius: 999px; font-weight: 600; font-size: .9375rem; background: rgba(0,0,0,.35); margin-bottom: 1.5rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #5bd17d; box-shadow: 0 0 0 4px rgba(91,209,125,.25); flex: none; }
.status-pill.is-closed .status-dot { background: #f0a53a; box-shadow: 0 0 0 4px rgba(240,165,58,.25); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 span:nth-child(2) { animation-delay: .12s; }
  .hero h1 span:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 800px) {
  .hero-media { position: relative; inset: auto; order: 2; aspect-ratio: 16 / 10; margin-top: 0; }
  .hero { display: flex; flex-direction: column; }
  .hero-media::after { background: linear-gradient(180deg, var(--night) 0%, rgba(22,21,18,0) 40%); }
  .hero-inner { min-height: 0; padding-bottom: 1.5rem; }
  .hero h1 span:nth-child(n) { padding-left: 0; }
  .hero h1 span:nth-child(2) { padding-left: 1rem; }
  .hero h1 span:nth-child(3) { padding-left: 2rem; }
}

/* page hero (inner pages) */
.page-hero { background: var(--green-deep); color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover; opacity: .28; z-index: -1; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero p { color: #cfe0d3; font-size: var(--step-1); margin: 1rem 0 0; }
.crumbs { font-size: var(--step--1); margin-bottom: 1.25rem; color: #a9c4b0; }
.crumbs a { color: #cfe0d3; }

/* ---------- info strip ---------- */
.strip { background: var(--green-deep); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 1.4rem 1.5rem; border-left: 1px solid var(--line-light); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item b { display: block; font: 700 1.05rem/1.3 var(--font-display); }
.strip-item span { color: #b9d2bf; font-size: .95rem; }
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item, .strip-item:first-child { border-left: 0; padding: 1rem 0; border-top: 1px solid var(--line-light); }
  .strip-item:first-child { border-top: 0; }
}

/* ---------- welcome ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.photo-pair { position: relative; padding-bottom: 14%; }
.photo-pair img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.photo-pair .a { aspect-ratio: 4 / 3.3; width: 82%; }
.photo-pair .b { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 6px solid var(--ground); }
.section--paper .photo-pair .b { border-color: var(--paper); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

/* ---------- featured dishes mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; background: var(--green-deep); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; color: #fff; background: linear-gradient(0deg, rgba(8,20,12,.82), rgba(8,20,12,0)); font: 700 1.05rem/1.2 var(--font-display); }
.tile figcaption small { display: block; font: 500 .85rem/1.3 var(--font-body); color: #d6e6d9; margin-top: .15rem; }
.t1 { grid-column: span 5; grid-row: span 4; }
.t2 { grid-column: span 4; grid-row: span 2; }
.t3 { grid-column: span 3; grid-row: span 4; }
.t4 { grid-column: span 4; grid-row: span 2; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .t1, .t2, .t3, .t4 { grid-column: span 1; grid-row: span 1; }
  .t1 { grid-column: span 2; grid-row: span 2; }
  .t4 { grid-column: span 2; }
}

/* ---------- category list ---------- */
.cat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.cat-list a { display: grid; gap: .15rem; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cat-list a:hover b { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.cat-list b { font: 700 1.2rem/1.2 var(--font-display); }
.cat-list span { color: var(--ink-soft); font-size: .975rem; }
@media (max-width: 700px) { .cat-list { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.service-list li { border-top: 3px solid var(--orange); padding-top: 1.1rem; }
.service-list h3 { margin-bottom: .5rem; color: #fff; }
.service-list p { margin: 0; }
.service-detail { display: grid; gap: 3.5rem; }
.service-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.service-row:nth-child(even) .service-media { order: 2; }
.service-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-row h2 { font-size: var(--step-3); margin-bottom: 1rem; }
@media (max-width: 860px) {
  .service-list { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-media { order: 0; }
}
@media (min-width: 861px) and (max-width: 1100px) { .service-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 3rem; }
.reasons li { position: relative; padding-left: 2.1rem; font-size: 1.1rem; line-height: 1.45; }
.reasons li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.2rem; height: .65rem; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg) scale(.9); }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- branch cards ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.branch-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.branch-card > img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.branch-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; min-width: 0; }
.branch-card h3 { font-size: 1.5rem; }
.branch-card address { font-style: normal; color: var(--ink-soft); }
.branch-card .phone { font: 700 1.15rem/1.2 var(--font-display); color: var(--ink); text-decoration: none; }
.branch-card .btn-row { margin-top: auto; padding-top: .8rem; }
@media (max-width: 960px) { .branch-grid { grid-template-columns: 1fr; } .branch-card { flex-direction: row; } .branch-card > img { aspect-ratio: auto; width: 38%; } }
@media (max-width: 620px) { .branch-card { flex-direction: column; } .branch-card > img { width: 100%; aspect-ratio: 16 / 10; } }

.branch-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.branch-detail:first-of-type { border-top: 0; }
.branch-detail h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.branch-detail > div { min-width: 0; }
.branch-photo { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1rem; }
.facts { display: grid; gap: .9rem; margin: 1.25rem 0 1.5rem; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: .75rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.facts a { color: var(--ink); }
dl { margin: 0; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); background: var(--green-tint); }
.map-wrap { display: grid; }
@media (max-width: 860px) { .branch-detail { grid-template-columns: 1fr; } .facts div { grid-template-columns: 6rem 1fr; } }

/* ---------- promo band ---------- */
.promo { position: relative; background: var(--maroon); color: #fff; overflow: hidden; border-radius: calc(var(--radius) * 1.5); display: grid; grid-template-columns: 1.1fr .9fr; }
.promo-body { padding: clamp(2rem, 5vw, 4rem); display: grid; gap: 1.25rem; align-content: center; }
.promo-body p { color: #f1d6d6; margin: 0; }
.promo h2 { font-size: var(--step-3); }
.promo img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } .promo img { order: -1; max-height: 260px; } }

/* ---------- review ---------- */
.review { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.review img { width: clamp(110px, 16vw, 170px); height: auto; border-radius: 50%; background: #fff; }
@media (max-width: 560px) { .review { grid-template-columns: 1fr; } }

/* ---------- closing ---------- */
.closing { position: relative; color: #fff; background: var(--green-deep); isolation: isolate; overflow: hidden; text-align: left; }
.closing::before { content: ""; position: absolute; inset: 0; background: var(--closing-img) center/cover; opacity: .3; z-index: -1; }
.closing h2 { font-size: var(--step-5); letter-spacing: -.035em; max-width: 10ch; }
.closing p { color: #dcebdf; font-size: var(--step-1); margin: 1.25rem 0 2rem; }

/* ---------- values / about ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.values li { border-top: 2px solid var(--green); padding-top: 1rem; }
.values h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.values p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mv > div { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.mv h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.mv p { margin: 0; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }
.fact-row { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 2rem; }
.fact-row b { display: block; font: 800 var(--step-3)/1 var(--font-display); color: var(--green); }
.fact-row span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- menu page ---------- */
.menu-tools { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 50; background: rgba(246,247,241,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-block: .85rem; }
.branch-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-bottom: .75rem; }
.branch-switch legend, .branch-switch .label { font-weight: 700; font-size: .95rem; padding: 0; margin-right: .2rem; }
.branch-switch fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; min-width: 0; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--green); color: var(--green); font-weight: 700; font-size: .95rem; }
.seg input:checked + span { background: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.filter-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.chip { flex: none; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .95rem/1.2 var(--font-body); cursor: pointer; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.menu-note { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--green-tint); border-radius: 10px; color: var(--green-deep); font-size: .975rem; max-width: none; }
.menu-cat-desc { color: var(--ink-soft); margin: 0 0 1.75rem; min-height: 1.6em; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem 1.5rem; }
.dish { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.dish[hidden] { display: none; }
.dish img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: .6rem; background: var(--green-tint); }
.dish h3 { font-size: 1.25rem; }
.dish p { margin: 0; color: var(--ink-soft); font-size: .975rem; }
.dish .btn { align-self: flex-start; margin-top: .6rem; }
.empty-state { padding: 2rem; text-align: center; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery figure[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform .4s ease, filter .3s; }
.gallery button:hover img { transform: scale(1.03); }
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(10,18,12,.8); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; width: auto; overflow: visible; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 78vh; border-radius: 10px; width: auto; height: auto; }
.lightbox figcaption { color: #fff; text-align: center; max-width: 60ch; }
.lb-btn { position: fixed; background: rgba(255,255,255,.92); color: var(--ink); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: max(1rem, env(safe-area-inset-top, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(.75rem, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(.75rem, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* ---------- order dialog ---------- */
.order-dialog { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 2rem)); background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.order-dialog form[method="dialog"] { display: grid; }
.od-head { padding: 1.5rem 1.5rem .5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.od-head h2 { font-size: 1.6rem; }
.od-close { border: 1px solid var(--line); background: var(--paper); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; flex: none; color: var(--ink); }
.od-sub { padding: 0 1.5rem; color: var(--ink-soft); margin: 0 0 1rem; }
.od-list { display: grid; gap: .75rem; padding: 0 1.5rem 1.5rem; }
.od-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.od-row b { font: 700 1.15rem/1.2 var(--font-display); display: block; }
.od-row small { color: var(--ink-soft); }
.od-row .btn-row { grid-column: 1 / -1; }
.od-row .btn-row .btn { flex: 1 1 auto; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.25rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; width: 100%; padding: .8rem .95rem; border: 1.5px solid #b9c4bb; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid rgba(27,122,56,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .875rem; font-weight: 600; min-height: 0; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin: 1rem 0 0; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card h2 { font-size: var(--step-3); margin-bottom: .75rem; }
.form-card > p { color: var(--ink-soft); }
.form-actions { margin-top: 1.5rem; }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--green-deep); }
.forms-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .forms-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.contact-cols { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-cols { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 1.5rem; }
.contact-list h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.contact-list p { margin: 0; color: var(--ink-soft); }
.contact-list a { color: var(--ink); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: #0a2616; color: #c3d6c8; padding-block: 4rem 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font: 700 1rem/1.2 var(--font-display); color: #fff; margin-bottom: 1rem; letter-spacing: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand img { width: 72px; height: 72px; margin-bottom: 1rem; }
.footer-brand p { font-size: .975rem; }
.footer-tag { font: 700 1.25rem/1.2 var(--font-display); color: #fff; margin-bottom: .5rem; max-width: 18ch; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .9rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* mobile sticky order bar */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: .6rem max(.75rem, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(.75rem, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .site-header, .mobile-bar, .menu-tools { display: none; } }

/* ---------- menu prices (managed from /admin) ---------- */
.price { margin: .15rem 0 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; font: 700 1.2rem/1.3 var(--font-display); color: var(--green-deep); max-width: none; }
.price small { font: 600 .8rem/1 var(--font-body); color: var(--ink-soft); margin-right: .15rem; }
.dish .price + .btn { margin-top: .5rem; }
html[data-branch] .price .pr[data-b] { display: none; }
html[data-branch] .price small { display: none; }
html[data-branch="nakuru"] .price .pr[data-b="nakuru"],
html[data-branch="thika"] .price .pr[data-b="thika"],
html[data-branch="bungoma"] .price .pr[data-b="bungoma"] { display: inline; }
.dish .na { display: none; margin: 0; color: #8c1d18; font-weight: 600; font-size: .95rem; }
html[data-branch="nakuru"] .na[data-b="nakuru"],
html[data-branch="thika"] .na[data-b="thika"],
html[data-branch="bungoma"] .na[data-b="bungoma"] { display: block; }
html[data-branch="nakuru"] .dish[data-unavail~="nakuru"] > img,
html[data-branch="thika"] .dish[data-unavail~="thika"] > img,
html[data-branch="bungoma"] .dish[data-unavail~="bungoma"] > img { opacity: .4; filter: grayscale(1); }
html[data-branch="nakuru"] .dish[data-unavail~="nakuru"] .btn,
html[data-branch="thika"] .dish[data-unavail~="thika"] .btn,
html[data-branch="bungoma"] .dish[data-unavail~="bungoma"] .btn,
html[data-branch="nakuru"] .dish[data-unavail~="nakuru"] .price,
html[data-branch="thika"] .dish[data-unavail~="thika"] .price,
html[data-branch="bungoma"] .dish[data-unavail~="bungoma"] .price { display: none; }
.dish img.ph { object-fit: contain; padding: 2.5rem; }

.tile > a { display: block; width: 100%; height: 100%; }
.tile > a:focus-visible { outline-offset: -4px; }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
