/* =========================================================
   The Corner Cafe — stylesheet
   tokens · base · header · hero · menu · about · find
   gallery · reviews · footer · overlays · motion · print
   ========================================================= */

/* ---------- Tokens ----------
   The dark green look is the site's actual design, not an OS preference:
   every visitor gets it. The cream palette is kept as an opt-in — put
   data-theme="light" on the <html> tag to switch the whole site back.
   -------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --forest: #16241b;
  --forest-soft: #1f3327;
  --sage: #15201a;
  --sage-dim: #1b2921;
  --surface: #1b2921;
  /* Always light: the forest panels stay dark in both palettes, so text on
     them must not follow the swap. */
  --cream: #eee8d8;
  --ink: #e8e2d2;
  --ink-soft: rgba(232, 226, 210, 0.68);
  --gold: #d5ab4e;
  --gold-bright: #e0b95f;
  --line: rgba(232, 226, 210, 0.16);
  --line-strong: rgba(232, 226, 210, 0.32);
  --line-on-dark: rgba(232, 226, 210, 0.18);
  --hatch: rgba(232, 226, 210, 0.05);
  --open: #6cc48c;
  --closed: #e08376;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 8px;
  --wrap: 1100px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Opt-in cream palette: <html data-theme="light"> */
:root[data-theme="light"] {
  color-scheme: light;

  --forest: #1e3327;
  --forest-soft: #2a4535;
  --sage: #eee8d8;
  --sage-dim: #e3dcc7;
  --surface: #f6f2e6;
  --ink: #22261f;
  --ink-soft: rgba(34, 38, 31, 0.68);
  --gold: #a97f24;
  --gold-bright: #b8912f;
  --line: rgba(34, 38, 31, 0.14);
  --line-strong: rgba(34, 38, 31, 0.3);
  --line-on-dark: rgba(238, 232, 216, 0.2);
  --hatch: rgba(34, 38, 31, 0.04);
  --open: #2f7a4d;
  --closed: #9c3a2c;

  --shadow-sm: 0 2px 8px rgba(30, 51, 39, 0.08);
  --shadow-md: 0 10px 30px rgba(30, 51, 39, 0.12);
  --shadow-lg: 0 24px 60px rgba(30, 51, 39, 0.22);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

a { color: inherit; }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--forest);
  color: var(--cream);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 0.75rem;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--gold-bright); color: #1b1a12; border-color: var(--gold-bright); text-shadow: none; }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }

.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--line-on-dark); }
.btn-ghost-light:hover { border-color: var(--cream); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }

/* ---------- Status pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-soft);
  flex: none;
}
.status[data-state="open"] .status-dot {
  background: var(--open);
  box-shadow: 0 0 0 0 rgba(47, 122, 77, 0.6);
  animation: pulse 2.4s infinite;
}
.status[data-state="closing"] .status-dot { background: var(--gold-bright); }
.status[data-state="closed"] .status-dot { background: var(--closed); }

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(47, 122, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 122, 77, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--sage) 50%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  text-shadow: 0 1px 3px rgba(10, 18, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.15;
  margin-right: auto;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  object-fit: contain;
}
.brand-text { display: block; }
.brand-sub { font-weight: 400; opacity: 0.6; font-size: 0.9em; }
.brand-status { display: block; margin-top: 2px; }

.primary-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 3px;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold-bright);
  transition: right 0.25s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after { right: 0; }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--forest);
  color: var(--cream);
  max-width: none;
  padding: 3.5rem 1.75rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: var(--wrap); margin: 0 auto; position: relative; }
.hero .eyebrow { color: var(--cream); opacity: 0.6; }
.hero .status { color: var(--cream); }

/* Sits in the flow, right-aligned above the headline, at every width.
   Kept in the flow rather than absolutely placed: at phone widths an
   absolute badge in the top-right corner lands on top of the address
   line and the headline. */
.badge {
  display: block;
  width: 130px;
  height: 130px;
  margin: 0 0 1.5rem auto;
  border-radius: 50%;
  background: var(--cream);
  object-fit: contain;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.03;
  margin: 1.5rem 0;
  max-width: 14ch;
}

.hero-lead { max-width: 42ch; opacity: 0.85; font-size: 1.05rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-status-line {
  margin-top: 1.75rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.12);
}
.hero-status-note { font-size: 0.82rem; opacity: 0.75; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-on-dark);
  max-width: 760px;
}
.fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.35rem;
}
.fact-value { font-weight: 600; }

.hero-photo {
  display: block;
  position: relative;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  max-width: var(--wrap);
  margin: 3rem auto 0;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Sections ---------- */
section { padding: 4.5rem 1.75rem; max-width: var(--wrap); margin: 0 auto; }
.gallery-section, .menu-section, .about-section { border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.section-lead { color: var(--ink-soft); }

/* ---------- Menu toolbar ---------- */
.menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 0 1.25rem;
}

.menu-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 340px;
}
.menu-search .icon-search {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.45;
  pointer-events: none;
}
.menu-search input {
  width: 100%;
  padding: 0.7rem 2.4rem 0.7rem 2.5rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.menu-search input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.menu-search input:focus {
  border-color: var(--gold-bright);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 145, 47, 0.18);
}
.search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.menu-search.has-value .search-clear { display: block; }

.filter-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--forest); color: var(--sage); border-color: var(--forest); }

.menu-legend { margin-left: auto; font-size: 0.78rem; color: var(--ink-soft); }
.menu-legend .tag { margin-right: 0.3rem; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.12em 0.4em;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold);
  vertical-align: 0.12em;
  margin-left: 0.35em;
}

.menu-result-count {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
  min-height: 1.2em;
}

.menu-empty {
  display: none;
  padding: 3rem 0;
  text-align: center;
  color: var(--ink-soft);
}
.menu-empty p { margin: 0 0 1rem; }
.menu-section.is-empty .menu-empty { display: block; }

/* ---------- Category chips ---------- */
.chip-nav {
  position: sticky;
  top: 70px;
  z-index: 40;
  margin: 0 -1.75rem 2.5rem;
  padding: 0.7rem 1.75rem;
  background: color-mix(in srgb, var(--sage) 50%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  text-shadow: 0 1px 3px rgba(10, 18, 13, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-nav::-webkit-scrollbar { display: none; }
.chip-nav ul {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
}
.chip-nav a {
  display: block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.chip-nav a:hover { background: var(--surface); }
.chip-nav a[aria-current="true"] { background: var(--gold-bright); border-color: var(--gold-bright); color: #1b1a12; }

/* ---------- Menu groups ---------- */
.menu-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem 4rem;
  align-items: start;
}
.menu-group { scroll-margin-top: 130px; }
.menu-group[hidden] { display: none; }
.menu-group h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold-bright);
}
.group-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.6rem 0 1rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list > li { padding: 0.7rem 0; border-bottom: 1px dashed var(--line); }
.menu-list > li[hidden] { display: none; }
.menu-list.two-col { columns: 2; column-gap: 2rem; }
.menu-list.two-col li { break-inside: avoid; }

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}
.item-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}
.item-desc { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }

mark.hit { background: rgba(184, 145, 47, 0.32); color: inherit; border-radius: 2px; padding: 0 1px; }

.table-wrap { overflow-x: auto; }
.menu-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.menu-table th, .menu-table td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px dashed var(--line);
}
.menu-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.menu-table td:not(:first-child) { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold); }
.menu-table tr[hidden] { display: none; }
.td-note { display: block; font-size: 0.78rem; color: var(--ink-soft); }

.allergen-note {
  margin-top: 3rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border-left: 3px solid var(--gold-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.allergen-note p { margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-grid h2 { font-size: clamp(1.8rem, 3.5vw, 2.2rem); margin: 0.75rem 0 1.5rem; }
.about-copy p { margin: 0 0 1rem; color: var(--ink-soft); }

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.about-stats dt {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
}
.about-stats dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Find us ---------- */
.find-section { background: var(--sage-dim); max-width: none; padding: 4.5rem 1.75rem; }
.find-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.hours-list { margin: 0 0 1.5rem; max-width: 340px; }
.hours-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px dashed var(--line);
  border-radius: 4px;
}
.hours-list > div.is-today {
  background: color-mix(in srgb, var(--gold-bright) 16%, transparent);
  font-weight: 600;
}
.hours-list dt { font-weight: 600; }
.hours-list dd { margin: 0; font-family: var(--font-mono); font-size: 0.88rem; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }

address { font-style: normal; color: var(--ink-soft); margin-bottom: 1.2rem; line-height: 1.7; }

.map-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  display: block;
  box-shadow: var(--shadow-sm);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: none;
  line-height: 0;
}
.gallery-tile {
  -webkit-user-drag: none;
  user-select: none;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover .gallery-tile { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 51, 39, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- Reviews CTA ---------- */
.reviews-section { max-width: none; background: var(--forest); color: var(--cream); padding: 4rem 1.75rem; }
.reviews-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.reviews-inner .eyebrow { color: var(--cream); opacity: 0.6; }
.reviews-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.reviews-inner p { opacity: 0.82; margin: 0 auto 2rem; max-width: 52ch; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.stars { color: var(--gold-bright); letter-spacing: 0.2em; font-size: 1.1rem; margin-bottom: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-soft); color: var(--cream); padding: 3rem 1.75rem 1.5rem; }
.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  object-fit: contain;
  margin-bottom: 0.9rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 0.6rem; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.88rem; }
.footer-grid a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.footer-grid a:hover { border-color: currentColor; }
.footer-grid p { opacity: 0.82; font-size: 0.9rem; margin: 0 0 0.5rem; }
/* Last column whatever the column count is: -2 is the line before the
   end, so the badge stays bottom-right at 3, 2 or 1 columns. */
.footer-col-fhrs {
  grid-column: -2;
  justify-self: end;
}
.fhrs-badge {
  display: block;
  width: 150px;
  height: auto;
}

.footer-copy {
  max-width: var(--wrap);
  margin: 1.2rem auto 0;
  font-size: 0.78rem;
  opacity: 0.6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* ---------- Overlays ---------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 55;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; }

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  display: none;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--sage) 96%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom));
}
.action-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.25rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.action-bar a svg { width: 19px; height: 19px; }
.action-bar a.is-primary { color: var(--gold); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 3.5rem 1rem;
  border: 0;
  background: rgba(12, 20, 15, 0.94);
  place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(12, 20, 15, 0.94); }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  color: #eee8d8;
  font-size: 0.82rem;
  opacity: 0.75;
  text-align: center;
  max-width: 80%;
}
.lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(238, 232, 216, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #eee8d8;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.lb-btn:hover { background: rgba(0, 0, 0, 0.65); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .chip-nav, .menu-toolbar, .hero-actions, .hero-status-line,
  .to-top, .action-bar, .gallery-section, .reviews-section, .map-card,
  .nav-toggle, .contact-actions, .lightbox { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; padding-bottom: 0; }
  .hero, .site-footer, .find-section { background: #fff !important; color: #000 !important; }
  .hero-photo, .about-photo { display: none; }
  section { padding: 0.75rem 0; max-width: none; }
  .menu-groups { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
  .menu-group { break-inside: avoid; }
  .item-price, .menu-table td:not(:first-child), .tag { color: #000; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  section { padding: 3.5rem 1.5rem; }
  .menu-groups { gap: 2.5rem 3rem; }
  .about-grid { gap: 2rem; }
  .chip-nav { margin-left: -1.5rem; margin-right: -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .primary-nav.nav-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sage);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.75rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.nav-open ul { flex-direction: column; gap: 0.25rem; }
  .primary-nav.nav-open a { display: block; padding: 0.7rem 0; font-size: 0.92rem; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  body { padding-bottom: 64px; }
  .header-inner { padding: 0.8rem 1.25rem; gap: 0.75rem; }

  .hero { padding: 2.5rem 1.25rem 3rem; }
  .badge { width: 108px; height: 108px; margin-bottom: 1.25rem; }
  .hero h1, .hero-lead { max-width: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
  .hero-photo { margin-top: 2.25rem; aspect-ratio: 4 / 3; }

  section { padding: 3rem 1.25rem; }
  .section-head { margin-bottom: 1.75rem; }
  .chip-nav { top: 62px; margin-left: -1.25rem; margin-right: -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  .menu-groups { grid-template-columns: 1fr; gap: 2.5rem; }
  .menu-list.two-col { columns: 1; }
  .menu-legend { margin-left: 0; width: 100%; }

  .about-grid, .find-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16 / 10; }

  .find-section { padding: 3rem 1.25rem; }
  .find-grid { gap: 2.5rem; }

  /* Two rows that keep going sideways; swipe left to reach the rest.
     The negative margin lets the strip bleed to the screen edges so the
     next card peeks in and the gesture is discoverable. */
  .gallery-grid {
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-left: 1.25rem;
    margin-inline: -1.25rem;
    padding: 0 1.25rem 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }
  .gallery-grid:active { cursor: grabbing; }
  .gallery-grid::-webkit-scrollbar { height: 6px; }
  .gallery-grid::-webkit-scrollbar-track { background: transparent; }
  .gallery-grid::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 3px;
  }
  .gallery-item { scroll-snap-align: start; }

  /* centred heading over the full-bleed strip */
  .gallery-section .section-head { text-align: center; }

  .site-footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-copy { justify-content: flex-start; }
  .footer-col-fhrs { justify-self: start; }

  .action-bar { display: flex; }
  .to-top { bottom: 5.25rem; right: 1rem; }
  .lb-prev { left: 0.35rem; }
  .lb-next { right: 0.35rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.3rem; }
  .hero-facts { grid-template-columns: 1fr; }
  .menu-table { font-size: 0.8rem; }
  .gallery-grid { grid-auto-columns: 80%; }
  .about-stats { gap: 1.5rem; }
}
