/* Lukma menu — paper-clay editorial */

:root {
  --bg:           #F4F0E7;
  --bg-alt:       #FAF6EA;
  --ink:          #12110F;
  --text:         #12110F;
  --text-muted:   #6F6A61;
  --text-mute:    #A5A09A;
  --divider:      rgba(18, 17, 15, 0.15);
  --divider-soft: rgba(18, 17, 15, 0.08);

  --accent:        #FACD08;
  --accent-soft:   rgba(250, 205, 8, 0.20);
  --accent-strong: #C9A206;

  --font-display: 'Oswald', 'Noto Sans Georgian', Impact, sans-serif;
  --font-sans:    'Geist', 'Noto Sans Georgian', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    'Geist Mono', 'Noto Sans Georgian', ui-monospace, SF Mono, Menlo, monospace;

  --content-max: 1240px;
  --gutter:      24px;
  --header-h:    72px;
  --nav-h:       64px;

  --r-sm:    8px;
  --r-md:    14px;
  --r-pill:  9999px;

  --t-fast: 0.15s;
  --t-base: 0.3s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* ===== Top header (floating pill) ===== */
.site-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  margin: 0 auto;
  max-width: 1320px;
  display: grid;
  grid-template-areas:
    "brand toggle langs"
    "meta  meta   meta";
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  padding: 8px 8px 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 980px) {
  .site-header {
    grid-template-areas: "brand meta langs";
    grid-template-columns: auto 1fr auto;
    column-gap: 32px;
    padding: 6px 8px 6px 18px;
    border-radius: var(--r-pill);
  }
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 26px;
  width: auto;
}

.site-meta {
  grid-area: meta;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.18s ease;
}

.site-header[data-meta-open="true"] .site-meta {
  max-height: 180px;
  opacity: 1;
}

.site-meta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.005em;
  color: rgba(244, 240, 231, 0.7);
  padding: 8px 4px 4px;
}

@media (min-width: 980px) {
  .site-meta {
    max-height: none;
    opacity: 1;
    margin-top: 0;
    overflow: visible;
  }
  .site-meta__inner {
    justify-content: center;
    font-size: 13px;
    padding: 0;
  }
}

/* Meta toggle button (mobile only) */
.meta-toggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--bg);
  cursor: pointer;
  transition: background var(--t-fast), transform 0.3s var(--ease-out);
}

.meta-toggle:hover { background: rgba(255, 255, 255, 0.12); }

.meta-toggle svg {
  transition: transform 0.3s var(--ease-out);
}

.site-header[data-meta-open="true"] .meta-toggle svg {
  transform: rotate(180deg);
}

@media (min-width: 980px) {
  .meta-toggle { display: none; }
}

.site-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  white-space: nowrap;
}

.site-meta__item svg {
  flex: 0 0 auto;
  color: var(--accent);
}

.site-meta__item--phone {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--bg);
}

a.site-meta__item {
  transition: color var(--t-fast);
}

a.site-meta__item:hover {
  color: var(--bg);
}

.lang-switch {
  grid-area: langs;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--bg);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: rgba(244, 240, 231, 0.75);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}

.lang-btn:hover { color: var(--bg); }

.lang-btn.is-current {
  color: var(--ink);
  background: var(--accent);
}

/* ===== Page layout ===== */
.menu {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 84px var(--gutter) calc(var(--nav-h) + 64px);
}

@media (min-width: 980px) {
  .menu {
    padding-top: 95px;
  }
}

/* ===== Category section ===== */
.category {
  scroll-margin-top: 84px;
  margin-top: 64px;
}

@media (min-width: 980px) {
  .category {
    scroll-margin-top: 95px;
  }
}

.category:first-of-type { margin-top: 24px; }

.category__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}

.category__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.category__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ===== Dish grid ===== */
.dishes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 460px) {
  .dishes { grid-template-columns: 1fr; }
}

/* ===== Dish card (frameless) ===== */
.dish {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.dish:hover { transform: translateY(-4px); }

.dish:active {
  transform: translateY(-2px) scale(0.99);
  transition: transform 0.12s ease;
}

.dish__media {
  aspect-ratio: 7 / 4;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish:hover .dish__media {
  box-shadow:
    0 4px 12px -6px rgba(0, 0, 0, 0.10),
    0 18px 40px -16px rgba(0, 0, 0, 0.20);
}

.dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish:hover .dish__media img { transform: scale(1.06); }

.dish__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 4px 0;
  flex: 1;
}

.dish__name {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}

.dish__desc {
  display: none;
}

.dish__price {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ===== Sticky anchor nav (bottom) ===== */
.anchor-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 4px;
  padding: 6px;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
}

.anchor-nav::-webkit-scrollbar { display: none; }

.anchor-nav__link {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: rgba(244, 240, 231, 0.75);
  transition: color var(--t-fast), background var(--t-fast);
}

.anchor-nav__link:hover { color: var(--bg); }

.anchor-nav__link.is-current,
.anchor-nav__link[aria-current="true"] {
  color: var(--ink);
  background: var(--accent);
}

/* ===== Motion / reveal ===== */
@keyframes lukma-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.motion-ready .category__head,
.motion-ready .dish {
  opacity: 0;
  transform: translateY(18px);
}

.motion-ready .category__head.is-in,
.motion-ready .dish.is-in {
  animation: lukma-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .category__head,
  .motion-ready .dish {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
