/* Zuzeum Café digital menu — phone-first, themed sections. */

/* ---------- fonts (self-hosted, no CDNs) ---------- */
@font-face {
  font-family: "Zangezi Sans";
  src: url("../fonts/Zangezi08-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zangezi Sans";
  src: url("../fonts/Zangezi08-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Zangezi Sans";
  src: url("../fonts/Zangezi08-SemiLight.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
/* Heavy display weight for headings/prices (print-design match).
   Registered as its own family: the v09 Black trial file is missing
   ģ ķ ļ ņ Ģ Ķ Ļ Ņ, so "Zangezi Sans" (Regular, full Latvian coverage)
   must be the per-character fallback rather than a serif. */
@font-face {
  font-family: "Zangezi Sans Black";
  src: url("../fonts/ZangeziSans09-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: "Zangezi Sans", Georgia, serif;
  /* Black stack kept ready but currently UNUSED (Black was reverted for
     phone readability). To re-enable once the licensed Black OTF is in:
     set font-family: var(--font-heading-black) and font-weight: 900 on
     .cat-name, .item-name, .price. */
  --font-heading-black: "Zangezi Sans Black", "Zangezi Sans", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --col-max: 640px;
  --col-pad: 20px;
  /* page chrome uses the default theme */
  --page-bg: #faf7f2;
  --page-fg: #1a1a1a;
  --page-accent: #eb9c52;
  --chips-h: 52px;
}

/* ---------- theme presets (per-category sections) ---------- */
.theme-default { --bg: #faf7f2; --fg: #1a1a1a; --accent: #eb9c52; }
.theme-orange  { --bg: #ed7434; --fg: #f8efd8; --accent: #f8efd8; }
.theme-lilac   { --bg: #9aa7f7; --fg: #f2f2f8; --accent: #f2f2f8; }
.theme-light   { --bg: #efedea; --fg: #7e1a1c; --accent: #7e1a1c; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.col {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--col-pad);
}

/* ---------- header ---------- */
.site-header { padding: 28px 0 14px; text-align: center; }

.wordmark {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-top: 2px;
  opacity: 0.85;
}

.toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.seg {
  display: inline-flex;
  border: 1.5px solid var(--page-fg);
  border-radius: 999px;
  overflow: hidden;
}

.seg a {
  padding: 7px 22px;
  text-decoration: none;
  color: var(--page-fg);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.seg a + a { border-left: 1.5px solid var(--page-fg); }

.seg a.active {
  background: var(--page-fg);
  color: var(--page-bg);
}

.langs a { padding: 5px 16px; font-size: 0.85rem; }

/* ---------- category chip bar ---------- */
.chips {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 12px;
}

.chips-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px var(--col-pad);
  max-width: var(--col-max);
  margin: 0 auto;
}

.chips-track::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid rgba(26, 26, 26, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--page-fg);
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.chip.active {
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: #1a1a1a;
}

/* ---------- category sections (full-bleed background) ---------- */
.cat {
  background: var(--bg);
  color: var(--fg);
  padding: 34px 0 38px;
  scroll-margin-top: var(--chips-h);
}

.cat-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.cat-note {
  margin: 0 0 12px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* two-column price header */
.price-head {
  display: grid;
  grid-template-columns: 1fr 3.4em 3.4em;
  gap: 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  padding-bottom: 6px;
}

.price-head .ph { text-align: right; }

/* ---------- items ---------- */
.items { list-style: none; margin: 0; padding: 0; }

.item { padding: 11px 0; }

/* dotted separator lines between items (print-design match) */
.item + .item { border-top: 1px dotted currentColor; }

.item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 10px;
  align-items: baseline;
}

.item-row.two { grid-template-columns: 1fr 3.4em 3.4em; }

.item-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.02rem;
}

.allerg {
  font-family: var(--font-body);
  font-size: 0.62em;
  margin-left: 2px;
  letter-spacing: 0.05em;
}

.price {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.02rem;
  text-align: right;
  white-space: nowrap;
}

.item-desc {
  margin: 3px 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.85;
  max-width: 46em;
}

/* ---------- allergen legend + footer ---------- */
.legend { padding: 26px 0 6px; }

.legend h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.legend p { margin: 0; font-size: 0.8rem; opacity: 0.75; }

.site-footer {
  padding: 28px 0 36px;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.65;
}

.footer-mark {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}

/* slightly larger type on bigger screens */
@media (min-width: 700px) {
  .cat-name { font-size: 2.3rem; }
  .wordmark { font-size: 2.6rem; }
}
