:root {
  --brand: #3c8a2e;
  --text:  #1b1b1b;
  --bg:    #ffffff;
  --r:     10px;

  --body-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --heading-font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --heading-weight:   700;
  --heading-tracking: -0.01em;
  --heading-case:     normal;

  --section-py:       64px;
  --section-py-mobile: 42px;
  --hero-py:          96px;
  --btn-radius:       10px;
  --border:           rgba(0,0,0,0.08);
  --footer-fg:        rgba(0,0,0,0.6);

  --h1-size: 44px;
  --h2-size: 30px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.nav-brand {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-case);
  font-size: 18px;
  color: var(--text);
}
.nav-links { display: flex; gap: 22px; }
.nav-link {
  color: var(--text); font-size: 14px; font-weight: 500; opacity: 0.78;
  text-transform: var(--heading-case);
  letter-spacing: var(--heading-tracking);
}
.nav-link:hover, .nav-link.active { opacity: 1; color: var(--brand); text-decoration: none; }

main { display: block; }
.block { padding: var(--section-py) 24px; }
.block-inner { max-width: 1100px; margin: 0 auto; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  font-size: 13px;
  color: var(--footer-fg);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-links a { color: var(--footer-fg); margin: 0 4px; }

button, .btn-primary {
  display: inline-block;
  background: var(--brand); color: #ffffff;
  border: 0; border-radius: var(--btn-radius);
  padding: 12px 22px;
  font: inherit;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-case);
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn-primary:hover { filter: brightness(1.08); text-decoration: none; }

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.15;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-case);
}
h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: 20px; font-weight: calc(var(--heading-weight) - 100); }
p  { margin: 0 0 12px; }

@media (max-width: 640px) {
  .nav-inner { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .block { padding: var(--section-py-mobile) 16px; }
  h1 { font-size: calc(var(--h1-size) * 0.72); }
  h2 { font-size: calc(var(--h2-size) * 0.78); }
}


/* hero */

.block-hero { padding: var(--hero-py) 24px; background: color-mix(in oklab, var(--brand) 6%, var(--bg)); }
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-center { text-align: center; }
.hero-image { border-radius: var(--r); margin: 0 auto 24px; max-height: 360px; object-fit: cover; }
.hero-sub { font-size: 18px; opacity: 0.78; margin: 0 0 24px; }
@media (max-width: 640px) {
  .block-hero { padding: var(--section-py-mobile) 16px; }
  .hero-sub { font-size: 16px; }
}


/* features */

.feat-heading { text-align: center; margin-bottom: 36px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { padding: 24px; border-radius: var(--r); background: color-mix(in oklab, var(--brand) 4%, var(--bg)); }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }


/* cta */

.block-cta { background: var(--brand); color: #ffffff; text-align: center; padding: var(--section-py) 24px; }
.block-cta h2 { color: #ffffff; }
.block-cta p { font-size: 17px; opacity: 0.92; max-width: 580px; margin: 0 auto 22px; }
.cta-btn { background: #ffffff; color: var(--brand); }


/* reservation-widget */

.rsv-wrap { max-width: 520px; margin: 0 auto; text-align: center; }
.rsv-launcher-wrap { padding: 12px 0; }
.rsv-note { opacity: 0.75; margin-bottom: 20px; }
.rsv-frame {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  background: var(--bg);
}

/* Inline "Book a table" button (mode=button) — reuses .btn-primary
   from styles.css, plus a little extra prominence. */
.rsv-launch { font-size: 16px; padding: 14px 28px; }

/* Floating launcher (mode=floating) — fixed bottom-right corner,
   brand-tinted pill. Safe-area inset handles iPhone notch bottom. */
.rsv-floating {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px 14px 18px;
  background: var(--brand);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.rsv-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.rsv-floating-icon { font-size: 18px; line-height: 1; }
@media (max-width: 480px) {
  .rsv-floating-label { display: none; }
  .rsv-floating { padding: 14px; }
  .rsv-floating-icon { font-size: 22px; }
}

/* Modal scaffolding (button + floating both use this). Created on
   demand by the inline script — the CSS is here so first-open looks
   right without a layout flash. */
.rsv-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 9100;
  padding: 16px;
}
.rsv-modal.is-open { display: flex; }
.rsv-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: rsv-fade 180ms ease;
}
.rsv-modal-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  background: var(--bg, #fff);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rsv-pop 200ms cubic-bezier(0.2, 0.8, 0.2, 1.05);
}
.rsv-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: 0; border-radius: 50%;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.rsv-modal-close:hover { background: rgba(0, 0, 0, 0.75); }
.rsv-modal-iframe {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  border: 0;
}
@keyframes rsv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rsv-pop  { from { opacity: 0; transform: scale(0.96) translateY(8px); }
                     to   { opacity: 1; transform: none; } }

.rsv-placeholder {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  background: color-mix(in oklab, var(--brand) 4%, var(--bg));
  text-align: center;
}
.rsv-placeholder-glyph { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.rsv-placeholder-title { font-weight: 600; margin-bottom: 8px; }
.rsv-placeholder-hint { font-size: 13px; opacity: 0.78; line-height: 1.5; margin: 0; }
.rsv-placeholder-hint code {
  font-family: monospace;
  background: color-mix(in oklab, var(--brand) 10%, var(--bg));
  padding: 1px 4px; border-radius: 3px; font-size: 12px;
}


/* menu-list */

.menu-heading { text-align: center; }
.menu-note { text-align: center; opacity: 0.75; max-width: 560px; margin: 0 auto 32px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }

/* category-heading style variants — driven by the saved menu's
   heading_style field. */
.menu-cat-name {
  color: var(--brand);
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.menu-h-underline { border-bottom: 2px solid var(--brand); }
.menu-h-bar       { display: inline-block; padding: 4px 12px; background: var(--brand); color: #fff; border-radius: var(--r); margin-bottom: 14px; border: 0; }
.menu-h-uppercase { text-transform: uppercase; letter-spacing: 0.14em; border-bottom: 1px solid var(--border); }
.menu-h-none      { border: 0; padding-bottom: 0; }

.menu-rows { display: flex; flex-direction: column; gap: 14px; }
.menu-row-top { display: flex; align-items: baseline; gap: 8px; }
.menu-name  { font-weight: 600; }
.menu-spacer { flex: 1 1 auto; }
.menu-dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted color-mix(in oklab, var(--text) 35%, transparent);
  align-self: end;
  margin: 0 4px 6px;
  min-width: 24px;
}
.menu-price { color: var(--brand); font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.menu-desc  { font-size: 13px; opacity: 0.7; margin-top: 2px; line-height: 1.45; }

/* cards layout */
.menu-cat-cards { margin-bottom: 36px; }
.menu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.menu-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
}
.menu-card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 4px;
}
.menu-card .menu-desc { margin-top: 6px; }

/* columns layout — single tall list, fine-dining vibe */
.menu-columns-wrap { max-width: 680px; }
.menu-cat-columns { margin-bottom: 40px; }
.menu-cat-columns .menu-rows { gap: 18px; }
.menu-cat-columns .menu-cat-name { text-align: center; }

/* minimal layout — no borders, generous spacing */
.menu-cat-minimal .menu-cat-name {
  border: 0;
  padding-bottom: 0;
  margin-bottom: 24px;
}
.menu-cat-minimal .menu-rows { gap: 22px; }

.menu-placeholder {
  max-width: 460px; margin: 0 auto;
  padding: 28px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  background: color-mix(in oklab, var(--brand) 4%, var(--bg));
  text-align: center;
}
.menu-placeholder-glyph { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.menu-placeholder-title { font-weight: 600; margin-bottom: 8px; }
.menu-placeholder-hint  { font-size: 13px; opacity: 0.78; line-height: 1.5; margin: 0; }

@media (max-width: 760px) {
  .menu-grid  { grid-template-columns: 1fr; gap: 28px; }
  .menu-cards { grid-template-columns: 1fr; }
}


/* contact */

.contact-grid { display: grid; gap: 24px; }
.contact-addr { font-size: 16px; line-height: 1.6; }
.contact-meta { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.contact-meta a { font-weight: 600; }


/* hours */

.hours-wrap { max-width: 540px; }
.hours-wrap-grid { max-width: 720px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours-table td { padding: 12px 0; border-bottom: 1px solid var(--border); }
.hours-table td:last-child { text-align: right; opacity: 0.75; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-empty { color: var(--fg-muted, #888); font-style: italic; padding: 8px 0; }

/* ---- grid layout ---- */
.hours-grid {
  --hours-grid-label-w: 64px;
  margin-top: 12px;
}
.hours-grid-ruler {
  position: relative;
  margin-left: var(--hours-grid-label-w);
  height: 18px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.hours-grid-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  opacity: 0.55;
}
.hours-grid-row {
  display: grid;
  grid-template-columns: var(--hours-grid-label-w) 1fr;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
}
.hours-grid-label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hours-grid-label-long { display: none; }
@media (min-width: 600px) {
  .hours-grid { --hours-grid-label-w: 96px; }
  .hours-grid-label-short { display: none; }
  .hours-grid-label-long  { display: inline; }
}
.hours-grid-track {
  position: relative;
  height: 28px;
  border-radius: 4px;
  /* 1px hairlines at every hour to give visual scale without overpowering. */
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(100% / 24 - 1px),
      rgba(127,127,127,0.18) calc(100% / 24 - 1px),
      rgba(127,127,127,0.18) calc(100% / 24)
    ),
    rgba(127,127,127,0.06);
}
.hours-grid-track.is-closed { opacity: 0.55; }
.hours-grid-closed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  pointer-events: none;
}
.hours-grid-block {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 3px;
  background: var(--brand, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.hours-grid-blocklabel {
  white-space: nowrap;
  padding: 0 6px;
}


