/* Kosmicko Cafe & Restaurant — single stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #14161f;
  --board: #1b1e2a;
  --board-2: #222637;
  --text: #f4efe4;
  --muted: #a3a1b0;
  --line: rgba(244, 239, 228, .12);
  --yellow: #ffc72c;
  --green: #3f9262;
  --red: #d9534f;
  --ink: #101218;
  --radius: 10px;
  --max: 1080px;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  /* subtle chalkboard grain */
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(80, 90, 140, .16), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav .call { color: var(--ink); background: var(--yellow); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.nav .call:hover { color: var(--ink); filter: brightness(1.06); }
.nav .call svg { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font: 500 .95rem var(--font-body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  background: var(--yellow); color: var(--ink); transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); filter: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 0 44px; }
.hero img.logo { width: 190px; margin: 0 auto 18px; }
.hero h1 { font: italic 500 clamp(1.7rem, 4.4vw, 2.5rem)/1.2 var(--font-serif); margin: 0 0 6px; }
.hero p.lead { color: var(--muted); margin: 0 auto 26px; max-width: 46ch; }
.hero-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 18px; }
.hero-search input { flex: 1; min-width: 0; }
.hero-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Inputs ---------- */
input[type="search"] {
  width: 100%; padding: 13px 16px; border-radius: 999px;
  font: 400 1rem var(--font-body); color: var(--text);
  background: var(--board-2); border: 1px solid var(--line);
  -webkit-appearance: none; appearance: none;
}
input[type="search"]::placeholder { color: #8b8999; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="search"]:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 199, 44, .18); }

/* ---------- Sections ---------- */
.section { padding: 36px 0; }
.section h2.title { font: 600 1.7rem/1.2 var(--font-serif); margin: 0 0 18px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cat-card {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px;
  background: var(--board); border: 1px solid var(--line); border-top: 3px solid var(--yellow);
  border-radius: var(--radius); text-decoration: none; transition: transform .15s, background .15s;
}
.cat-card:hover { background: var(--board-2); transform: translateY(-2px); }
.cat-card span { font-weight: 500; }
.cat-card small { color: var(--muted); }

.panel { background: var(--board); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }

.visit { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
.visit h2 { margin: 0 0 8px; }
.visit address { font-style: normal; color: var(--muted); margin-bottom: 14px; }
.visit .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Menu page ---------- */
.page-title { padding: 28px 0 18px; }
.page-title h1 { font: 600 clamp(1.9rem, 5vw, 2.6rem)/1.1 var(--font-serif); margin: 0; }
.page-title p { color: var(--muted); margin: 4px 0 0; }

.toolbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 22, 31, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 10px 0 0;
}
.toolbar-row { display: flex; gap: 10px; align-items: center; }
.search-box { position: relative; flex: 1; min-width: 0; }
.search-box svg.mag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 42px; padding-right: 40px; }
.search-box .clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.search-box .clear:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.search-box .clear[hidden] { display: none; }

.seg { display: inline-flex; background: var(--board-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.seg button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 500 .85rem var(--font-body); padding: 8px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg button.on { background: var(--text); color: var(--ink); }
.seg .dot { width: 12px; height: 12px; margin-top: 0; align-self: center; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; cursor: pointer; white-space: nowrap;
  font: 400 .88rem var(--font-body); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 500; }

.count { color: var(--muted); font-size: .88rem; margin: 16px 0 0; }

.category { padding-top: 26px; scroll-margin-top: 130px; }
.category > h2 { font: 600 1.9rem/1.15 var(--font-serif); margin: 0 0 14px; }
.group { margin-bottom: 26px; }

/* label blocks echo the menu's coloured section tags */
.label {
  display: inline-block; margin: 0 0 12px; padding: 5px 16px 4px;
  font: 600 .82rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.label-g { background: var(--green); }
.label-r { background: var(--red); }
.label-gr { background: linear-gradient(90deg, var(--green) 50%, var(--red) 50%); }
.label-y { background: var(--yellow); }
.sub { margin: -4px 0 12px; color: var(--muted); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }

.items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 44px; }
.item {
  break-inside: avoid; display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.item .name { font-size: 1rem; }
.item .note { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.item .leader { flex: 1; min-width: 8px; }
.item .price { font-weight: 500; white-space: nowrap; color: var(--yellow); font-variant-numeric: tabular-nums; }
.item .price.vars { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: .92rem; }
.item .price.vars em { font-style: normal; color: var(--muted); font-weight: 400; margin-right: 3px; }

.dot { flex-shrink: 0; width: 14px; height: 14px; border: 1.5px solid; border-radius: 3px; position: relative; align-self: flex-start; margin-top: 5px; }
.dot::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: currentColor; }
.dot-v { color: #4ac27a; }
.dot-n { color: #e5605b; }
.dot-none { border-color: transparent; }
.dot-none::after { display: none; }

mark { background: rgba(255, 199, 44, .28); color: inherit; border-radius: 3px; padding: 0 1px; }

.empty { text-align: center; padding: 70px 0; color: var(--muted); }
.empty .btn { margin-top: 6px; }

.price-note { color: var(--muted); font-size: .85rem; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* chef list on home */
.chef-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 44px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.contact-card { background: var(--board); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.contact-card h2 { font: 600 1.4rem var(--font-serif); margin: 0 0 6px; }
.contact-card .big { font-size: 1.5rem; font-weight: 500; text-decoration: none; color: var(--yellow); display: inline-block; margin-bottom: 14px; }
.contact-card address { font-style: normal; color: var(--muted); margin-bottom: 16px; }
.map { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--board); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.25) contrast(.95); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 30px; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .visit { grid-template-columns: 1.2fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .items, .chef-list { columns: 1; }
  .nav .home-link { display: none; }
  .hero { padding: 36px 0 30px; }
  .hero img.logo { width: 160px; }
  .brand img { height: 44px; }
  .category { scroll-margin-top: 120px; }
}
@media (max-width: 520px) {
  .nav a { padding: 8px 10px; font-size: .9rem; }
  .nav .call span { display: none; }
  .nav .call { padding: 9px 11px; }
  .seg button { padding: 8px 10px; }
  .seg button .lbl { display: none; }
  .seg button[data-f="all"] { padding-inline: 12px; }
  .seg button { padding: 9px 11px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat-card { transition: none; }
}
