/* Kenkey Republic — one stylesheet, no build step. */

:root {
  --brand: #E8461E;        /* flyer orange-red */
  --brand-dark: #C7360F;
  --gold: #FFC531;         /* banner yellow */
  --wa: #1FAF54;           /* WhatsApp send */
  --wa-dark: #178A42;

  --bg: #140D0A;
  --bg-alt: #1B1310;
  --surface: #221815;
  --surface-hi: #2C201C;
  --ink: #FBF6F1;
  --muted: #B3A59D;
  --line: #3A2B25;

  --radius: 12px;
  --radius-sm: 8px;
  --max: 1080px;
  --bar-h: 60px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
  margin: 0;
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; }
h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 15px; font-weight: 600; margin: 24px 0 6px; color: var(--muted); }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); }
.btn--ghost { border-color: rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------- top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: rgba(20, 13, 10, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; margin-right: auto; }
.mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em;
}
.bar__nav { display: flex; gap: 22px; font-size: 15px; }
.bar__nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.bar__nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .bar__nav { display: none; } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 720px);
  display: flex; align-items: flex-end;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,13,10,.35) 0%, rgba(20,13,10,.55) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(20,13,10,.7) 0%, rgba(20,13,10,0) 70%);
}
.hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; padding: 96px 16px 48px; }
.eyebrow {
  color: var(--gold); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(46px, 9vw, 88px); font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
.hero__lede { max-width: 34em; margin-top: 18px; font-size: 18px; color: #EDE3DB; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero__fine strong { color: var(--ink); }

/* ----------------------------------------------------------------- facts */
.facts {
  list-style: none; margin: 0 auto; padding: 0 16px; max-width: var(--max);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { padding: 20px 12px; text-align: center; display: grid; gap: 2px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { font-size: 15px; }
.facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 14px 0; text-align: left; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------- section */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__lede { color: var(--muted); margin-top: 10px; max-width: 40em; font-size: 17px; }

/* -------------------------------------------------------------- chips */
.chips {
  position: sticky; top: var(--bar-h); z-index: 10;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 28px -16px 8px; padding: 12px 16px;
  background: var(--bg);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; font-weight: 600; color: var(--muted);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ----------------------------------------------------------- menu groups */
.group { padding-top: 28px; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.group__head h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.group__head p { color: var(--muted); font-size: 14px; }

/* Photo cards for the plates */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s;
}
.card.is-in { border-color: var(--brand); }
.card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--surface-hi); }
.card__noimg {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, var(--surface-hi) 0 10px, var(--surface) 10px 20px);
  color: var(--muted); font-size: 13px;
}
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.card__name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.card__short { color: var(--muted); font-size: 14px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.flag {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); color: #2A1A00;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
}

.price { font-weight: 800; font-size: 18px; color: var(--gold); white-space: nowrap; }
.price--ask { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Plain rows for drinks and pastries */
.rows { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 12px 16px; min-height: 64px;
  transition: border-color .15s;
}
.row.is-in { border-color: var(--brand); }
.row__text { flex: 1; min-width: 0; display: grid; }
.row__name { font-weight: 600; }
.row__short { font-size: 13px; color: var(--muted); }

/* Quantity stepper */
.step { display: flex; align-items: center; gap: 2px; flex: none; }
.step button {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-hi);
  font-size: 20px; font-weight: 600; line-height: 1;
  display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.step button:hover { border-color: var(--muted); }
.step .plus { background: var(--brand); border-color: var(--brand); color: #fff; }
.step .plus:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.step output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.step[data-qty="0"] .minus, .step[data-qty="0"] output { display: none; }

/* ---------------------------------------------------------------- gallery */
.gallery {
  margin-top: 28px;
  display: grid; gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery__big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

/* ----------------------------------------------------------------- visit */
.visit { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.visit h2 { margin-bottom: 4px; }
.visit p { font-size: 17px; }
.link { display: inline-block; margin-top: 8px; color: var(--gold); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin: 0; }
.hours dd { margin: 0; color: var(--muted); }
.contacts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.contacts a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none;
  transition: border-color .15s;
}
.contacts a:hover { border-color: var(--wa); }
.contacts strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.contacts span { font-size: 13px; color: var(--wa); font-weight: 600; }
@media (max-width: 720px) { .visit { grid-template-columns: 1fr; } }

.foot { padding: 32px 16px 120px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- basket */
.basket {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(20,13,10,0), var(--bg) 40%);
  animation: rise .25s var(--ease);
}
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.basket__btn {
  width: 100%; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 10px 8px 10px;
  background: var(--brand); color: #fff; border: 0; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  text-align: left;
  transition: background-color .15s;
}
.basket__btn:hover { background: var(--brand-dark); }
.basket__count {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px;
  border-radius: 8px; background: rgba(0,0,0,.22); font-weight: 800;
}
.basket__text { flex: 1; display: grid; line-height: 1.2; }
.basket__text strong { font-size: 17px; }
.basket__text small { font-size: 12px; opacity: .85; }
.basket__go { font-weight: 700; padding-right: 6px; }
.basket.bump .basket__btn { animation: bump .3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.03); } }

/* ----------------------------------------------------------------- sheets */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fade .2s; }
.sheet__panel {
  position: relative; width: min(560px, 100%); max-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: pop .25s var(--ease);
}
.sheet__panel--small { width: min(420px, 100%); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 600px) {
  .sheet { align-items: flex-end; }
  .sheet__panel { border-radius: 16px 16px 0 0; max-height: 94vh; border-bottom: 0; }
  @keyframes pop { from { transform: translateY(100%); } }
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: 20px; letter-spacing: 0; }
.x { width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: var(--muted); border-radius: 8px; }
.x:hover { color: var(--ink); background: var(--surface); }
.sheet__body { padding: 16px 20px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 18px; }
.sheet__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.total strong { font-size: 22px; color: var(--gold); }

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.line {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: var(--radius-sm); background: var(--surface);
}
.line__text { flex: 1; min-width: 0; display: grid; }
.line__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.line__price { font-size: 13px; color: var(--muted); }
.line .step button { width: 34px; height: 34px; font-size: 18px; }
.empty { color: var(--muted); text-align: center; padding: 16px 0; }

.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
  transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: #8A7C74; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: #F2685B; }
.err { color: #F2685B; font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; }

.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle button {
  min-height: 48px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 15px;
  transition: border-color .15s, background-color .15s;
}
.toggle button[aria-checked="true"] { border-color: var(--brand); background: rgba(232,70,30,.14); color: #fff; }

.who { display: grid; gap: 8px; }
.who__btn {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s;
}
.who__btn:hover { border-color: var(--wa); }
.who__btn span { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
