:root {
  --bg: #0c0b0a;
  --bg-card: #161412;
  --bg-elevated: #211e1b;
  --cream: #f7f2ea;
  --muted: #9c958a;
  --accent: #c9a227;
  --accent-light: #e8c96a;
  --accent-dim: rgba(201, 162, 39, 0.12);
  --accent-glow: rgba(201, 162, 39, 0.28);
  --border: rgba(247, 242, 234, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

.hidden {
  display: none !important;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.container {
  width: min(1140px, calc(100% - 1.5rem));
  margin-inline: auto;
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none !important; }
  .menu-card { animation: none !important; }
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-nav.is-scrolled {
  background: rgba(12, 11, 10, 0.94);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 600;
  min-width: 0;
}
.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-dim);
  flex-shrink: 0;
}
.nav-links { display: none; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-order-btn { display: none; }

.nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay[hidden] { display: block; visibility: hidden; }
.nav-overlay.is-open[hidden] { visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 220;
  width: min(300px, 88vw);
  height: 100%;
  height: 100dvh;
  background: linear-gradient(165deg, #1c1916 0%, #0c0b0a 100%);
  border-left: 1px solid var(--border);
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer-link {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.3s var(--ease-out);
}
.drawer-link:hover {
  color: var(--accent-light);
  padding-left: 0.35rem;
}
.drawer-order { margin-top: 1.5rem; width: 100%; }

@media (min-width: 768px) {
  :root { --nav-h: 72px; }
  .nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
  }
  .nav-links a {
    position: relative;
    transition: color 0.2s;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
  }
  .nav-links a:hover { color: var(--cream); }
  .nav-links a:hover::after { width: 100%; }
  .nav-order-btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-overlay,
  .mobile-drawer { display: none !important; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 55%, #9a7b1a 100%);
  color: #1a1408;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(247, 242, 234, 0.04);
  color: var(--cream);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--accent-light);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 0 3.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(165deg, rgba(12, 11, 10, 0.25) 0%, rgba(12, 11, 10, 0.55) 40%, var(--bg) 88%),
    var(--hero-image, radial-gradient(ellipse at 30% 20%, #2a2418, var(--bg))) center/cover no-repeat;
  animation: heroKen 22s ease-in-out infinite alternate;
}
@keyframes heroKen {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  animation: heroIn 1.1s var(--ease-out) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-light);
  margin-bottom: 0.65rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 0.85rem;
  max-width: 12ch;
}
.hero-lead {
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.hero-actions .btn { flex: 1 1 auto; min-width: min(100%, 140px); }
@media (min-width: 480px) {
  .hero-actions .btn { flex: 0 1 auto; }
}

/* —— Promo —— */
.promo-banner {
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  border-block: 1px solid rgba(201, 162, 39, 0.2);
  padding: 1rem 0;
}
.promo-banner p {
  margin: 0;
  text-align: center;
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  white-space: pre-line;
  line-height: 1.5;
}

/* —— Sections —— */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Menu: category picker —— */
.menu-shell { min-height: 200px; }

.category-picker {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 1.25rem;
  margin: 0 -0.25rem 1.5rem;
  scrollbar-width: none;
}
.category-picker::-webkit-scrollbar { display: none; }

.category-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 140px;
  max-width: 180px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s, transform 0.35s var(--ease-spring), box-shadow 0.3s;
}
.category-chip:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}
.category-chip.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.category-chip-media {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  overflow: hidden;
}
.category-chip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.category-chip.is-active .category-chip-media img,
.category-chip:hover .category-chip-media img {
  transform: scale(1.06);
}
.category-chip-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.2;
  background: var(--bg-elevated);
}
.category-chip-body {
  padding: 0.65rem 0.85rem 0.8rem;
  width: 100%;
}
.category-chip-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
  display: block;
}
.category-chip-count {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .category-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    overflow: visible;
    gap: 0.85rem;
    padding-bottom: 2rem;
  }
  .category-chip {
    min-width: unset;
    max-width: unset;
  }
}

/* —— Menu panel (single category) —— */
.menu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.menu-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  margin: 0;
}
.menu-panel-count {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.menu-panel {
  animation: panelIn 0.5s var(--ease-out) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 540px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  animation: cardIn 0.55s var(--ease-out) forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.menu-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.menu-card-img {
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  overflow: hidden;
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.menu-card:hover .menu-card-img img { transform: scale(1.05); }
.menu-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  opacity: 0.2;
}
.menu-card-body {
  padding: 0.9rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.menu-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  line-height: 1.25;
}
.menu-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-card-footer { margin-top: auto; }
.menu-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-light);
}
.menu-price-old {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 0.3rem;
}

/* —— Info —— */
.info-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.3s;
}
@media (min-width: 768px) { .info-card { padding: 1.75rem; } }
.info-card:hover { border-color: rgba(201, 162, 39, 0.2); }
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
}
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .closed { color: var(--muted); }
.contact-line {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  align-items: flex-start;
}
.contact-icon { flex-shrink: 0; }
.contact-line a {
  word-break: break-word;
  transition: color 0.2s;
}
.contact-line a:hover { color: var(--accent-light); }

/* —— CTA —— */
.cta-band {
  text-align: center;
  padding: 3rem 0 calc(5.5rem + var(--safe-bottom));
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, var(--accent-dim), transparent),
    var(--bg);
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .cta-band { padding-bottom: 4rem; }
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  margin: 0 0 0.5rem;
}
.cta-band p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

/* —— Mobile order FAB —— */
.mobile-order-fab {
  position: fixed;
  bottom: calc(1rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.2);
  animation: fabPulse 3s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.2); }
  50% { box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 24px var(--accent-glow); }
}
@media (min-width: 768px) {
  .mobile-order-fab { display: none; }
}

/* —— Footer —— */
.site-footer {
  padding: 1.5rem 0 calc(4.5rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .site-footer { padding-bottom: 1.5rem; }
}

/* —— Loading —— */
.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
