/* ============================================================
   menu-cards — standalone modern photo-card menu (QR / phone)
   Light, clean Poppins. Accent = var(--accent) (per-establishment).
   ============================================================ */

:root {
  --accent: #c0392b; /* overridden inline from config */
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #5a5a5f;
  --ink-faint: #8a8a90;
  --line: #ececec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(20, 20, 30, 0.07);
  --shadow-hover: 0 12px 34px rgba(20, 20, 30, 0.12);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

/* ---------------- Brand header ---------------- */
.brand-header {
  background: var(--surface);
  text-align: center;
  padding: 30px 20px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.brand-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.brand-inner { max-width: var(--maxw); margin: 0 auto; }
.brand-logo {
  max-height: 76px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}
.brand-name {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-tagline {
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ---------------- Sticky category nav ---------------- */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(20, 20, 30, 0.04);
}
.cat-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.cat-link:hover { color: var(--accent); }
.cat-link.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------------- Main ---------------- */
.menu-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 18px 40px;
}

.menu-section {
  padding-top: 34px;
  scroll-margin-top: 70px;
}

.section-head { margin-bottom: 20px; }
.section-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--accent);
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.85;
}
.section-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
  max-width: 60ch;
}
.section-footer {
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

/* ---------------- Card grid ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0eeea;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

.card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 16%, #fff) 0%, transparent 60%),
    color-mix(in srgb, var(--accent) 8%, #fff);
}
.placeholder-letter {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.55;
  line-height: 1;
  user-select: none;
}

.card-body { padding: 16px 18px 20px; }
.card-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.card-desc {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ---------------- Happy hour ---------------- */
.happyhour {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 30px;
  margin-top: 40px;
}
.hh-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hh-price-line {
  margin: 0;
  background: color-mix(in srgb, var(--accent) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 9px 14px;
  border-radius: 999px;
}
.hh-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hh-list-head {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}
.hh-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hh-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hh-list li:last-child { border-bottom: none; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: #d8d8da;
  margin-top: 30px;
  padding: 40px 20px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}
.footer-contact p { margin: 4px 0; font-size: 0.9rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }

.footer-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.hours-col h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hours-col p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0;
  font-size: 0.82rem;
  color: #b9b9bd;
}
.hours-col p span:first-child { font-weight: 500; color: #e6e6e8; }

.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
}

/* ---------------- Responsive ---------------- */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hh-lists { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .menu-main { padding: 18px 28px 50px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .section-title { font-size: 1.8rem; }
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
    align-items: start;
  }
  .footer-hours { margin: 0; max-width: none; }
  .footer-social { justify-content: flex-start; }
  .hh-lists { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .card, .card-media img { transition: none !important; }
}