:root {
  --black: #0a0a0a;
  --deep: #111111;
  --surface: #171717;
  --border: #2a2a2a;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: rgba(201,168,76,0.16);
  --cream: #f5eed8;
  --text: #e8e0cc;
  --muted: #9a917f;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --shadow: 0 20px 40px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
}
.logo-area {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
}
.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.restaurant-name {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1;
  letter-spacing: 0.04em;
}
.restaurant-tagline {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.lang-switcher {
  display: flex;
  gap: 0.3rem;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  transition: 0.2s ease;
}
.lang-btn:hover,
.lang-btn.active {
  color: var(--gold-light);
  border-color: var(--gold);
  background: var(--gold-dim);
}

.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  min-height: 40vh;
  display: flex;
  align-items: end;
}
.hero.hero-no-image {
  background-image: linear-gradient(to bottom, rgba(10,10,10,0.45), rgba(10,10,10,0.88));
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1rem 2.2rem;
}
.eyebrow {
  display: inline-block;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 0.65rem;
}
.timeslot-label {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 7vw, 4.3rem);
  line-height: 0.95;
  margin: 0;
  color: var(--cream);
  font-weight: 500;
}
.hero-sub {
  max-width: 620px;
  color: #dbd2be;
  margin: 0.8rem 0 0;
  font-size: 0.98rem;
}
.gold-line {
  width: 70px;
  height: 1px;
  background: var(--gold);
  margin-top: 1.1rem;
}

.category-nav-wrap {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, #120f08 0%, #0f0f0f 100%);
}
.category-nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.8rem 1rem;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
}
.category-nav a:hover,
.category-nav a.is-current { color: var(--gold-light); border-color: var(--gold); background: var(--gold-dim); }

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.category-section { display: none; margin-bottom: 2.4rem; }
.category-section.is-active { display: block; }
.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.category-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0;
  letter-spacing: 0.03em;
  color: var(--cream);
}
.category-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.category-description {
  margin: -0.2rem 0 1rem;
  color: var(--muted);
}
.dish-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
.dish-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dish-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.dish-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.dish-card:hover .dish-image { transform: scale(1.04); }

.dish-card.no-media {
  display: flex;
  flex-direction: column;
}
.dish-content.is-text-only {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.dish-tags-inline {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.dish-tags-inline .tag {
  background: rgba(201,168,76,0.08);
  color: var(--gold-light);
  border-color: rgba(201,168,76,0.2);
}
.dish-tags {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: rgba(10,10,10,0.76);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.38rem 0.6rem;
  font-size: 0.74rem;
}
.dish-content { padding: 1rem; }
.dish-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}
.dish-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--cream);
}
.dish-price {
  white-space: nowrap;
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 500;
}
.dish-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.24);
  background: rgba(201,168,76,0.08);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}
.dish-availability i {
  font-size: 0.86rem;
}

.dish-description {
  margin: 0.65rem 0 0;
  color: #cfc5b2;
  line-height: 1.55;
  font-size: 0.95rem;
}
.allergen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.95rem;
}
.allergen-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  border: 1px solid rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.08);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.legend-card {
  margin-top: 2rem;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 1rem;
}
.legend-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.7rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d0c7b4;
}
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.empty-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  opacity: 0.5;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.popup-card {
  position: relative;
  width: min(100%, 760px);
  background: #111111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.popup-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.popup-body { padding: 1.2rem; }
.popup-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--gold-light);
}
.popup-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
}
.popup-text {
  color: #d7cdb9;
  line-height: 1.6;
  margin: 0.7rem 0 1rem;
}
.popup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 600;
}
.popup-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55);
  color: white;
  cursor: pointer;
}

@media (min-width: 700px) {
  .dish-grid,
  .legend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .header-inner,
  .hero-inner,
  .category-nav,
  .main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .popup-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
  }
  .popup-image {
    height: 100%;
  }
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 66px;
  height: 38px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 195, 162, 0.28);
  background: rgba(17, 20, 24, 0.58);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  cursor: pointer;
  transition: 0.24s ease;
}
.theme-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(216, 195, 162, 0.32), rgba(176, 138, 87, 0.55));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, background 0.24s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 195, 162, 0.42);
}
.theme-icon {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  width: 14px;
  text-align: center;
  transition: opacity 0.24s ease, transform 0.24s ease, color 0.24s ease;
}
html[data-theme='dark'] .theme-icon-sun,
html[data-theme='light'] .theme-icon-moon {
  opacity: 0.38;
  transform: scale(0.9);
}
html[data-theme='dark'] .theme-icon-moon,
html[data-theme='light'] .theme-icon-sun {
  opacity: 1;
  transform: scale(1);
}
html[data-theme='dark'] .theme-toggle::after {
  transform: translateX(30px);
}
html[data-theme='light'] .theme-toggle::after {
  transform: translateX(0);
  background: linear-gradient(135deg, rgba(255, 244, 221, 0.9), rgba(229, 188, 108, 0.72));
}

.category-nav a.is-current,
.category-nav a[aria-current='true'] {
  color: var(--gold-light);
  border-color: var(--gold);
  background: var(--gold-dim);
}

html[data-theme='light'] {
  --black: #f6efe6;
  --deep: #f3ebdf;
  --surface: #fffaf2;
  --border: rgba(91, 71, 48, 0.12);
  --gold-dim: rgba(176, 138, 87, 0.12);
  --cream: #45311c;
  --text: #2e2319;
  --muted: #6f6254;
  --shadow: 0 16px 36px rgba(92, 68, 38, 0.08);
}

html[data-theme='light'] body {
  background: linear-gradient(180deg, #fbf5ed 0%, #f2e8da 100%);
  color: var(--text);
}

html[data-theme='light'] .header {
  background: rgba(250, 244, 235, 0.9);
  border-bottom-color: rgba(91, 71, 48, 0.08);
}

html[data-theme='light'] .restaurant-name,
html[data-theme='light'] .category-title,
html[data-theme='light'] .dish-name,
html[data-theme='light'] .legend-title,
html[data-theme='light'] .popup-title {
  color: #45311c;
}

html[data-theme='light'] .timeslot-label {
  color: #f2cf68;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

html[data-theme='light'] .eyebrow {
  color: #e6bf4e;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

html[data-theme='light'] .gold-line {
  background: #e6bf4e;
}

html[data-theme='light'] .restaurant-tagline,
html[data-theme='light'] .category-description,
html[data-theme='light'] .dish-description,
html[data-theme='light'] .legend-item,
html[data-theme='light'] .popup-text,
html[data-theme='light'] .empty-state {
  color: var(--muted);
}

html[data-theme='light'] .hero-sub {
  color: #f6e9bf;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

html[data-theme='light'] .category-nav-wrap {
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.95) 0%, rgba(247, 240, 229, 0.98) 100%);
  border-bottom-color: rgba(91, 71, 48, 0.08);
}

html[data-theme='light'] .dish-card,
html[data-theme='light'] .legend-card,
html[data-theme='light'] .popup-card,
html[data-theme='light'] .empty-state {
  background: rgba(255, 250, 242, 0.9);
  border-color: rgba(91, 71, 48, 0.10);
  box-shadow: 0 16px 36px rgba(92, 68, 38, 0.08);
}

html[data-theme='light'] .lang-btn,
html[data-theme='light'] .theme-toggle,
html[data-theme='light'] .category-nav a,
html[data-theme='light'] .tag {
  background: rgba(255, 247, 237, 0.86);
  color: #6f542f;
  border-color: rgba(176, 138, 87, 0.24);
}

html[data-theme='light'] .lang-btn:hover,
html[data-theme='light'] .lang-btn.active,
html[data-theme='light'] .category-nav a:hover,
html[data-theme='light'] .category-nav a.is-current {
  color: #4b351d;
  background: rgba(176, 138, 87, 0.12);
  border-color: rgba(176, 138, 87, 0.34);
}

html[data-theme='light'] .dish-price,
html[data-theme='light'] .popup-eyebrow,
html[data-theme='light'] .eyebrow {
  color: #8c6230;
}

html[data-theme='light'] .dish-availability {
  background: rgba(176, 138, 87, 0.10);
  border-color: rgba(176, 138, 87, 0.24);
  color: #8c6230;
}

html[data-theme='light'] .allergen-badge {
  border-color: rgba(176, 138, 87, 0.30);
  background: rgba(176, 138, 87, 0.08);
  color: #8c6230;
}

html[data-theme='light'] .popup-button {
  color: #1b150f;
  box-shadow: 0 14px 24px rgba(176, 138, 87, 0.16);
}

html[data-theme='light'] .popup-close {
  background: rgba(255,255,255,0.8);
  border-color: rgba(91, 71, 48, 0.12);
  color: #4b351d;
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
}


.subcategory-block {
  margin-top: 1.5rem;
}
.subcategory-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 .9rem;
}
.subcategory-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--gold-light);
  letter-spacing: .03em;
}
.subcategory-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,.55), transparent);
}
.subcategory-description {
  margin: -.15rem 0 1rem;
  color: var(--muted);
  font-size: .92rem;
}


.scroll-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.26);
  background: rgba(15,17,21,0.92);
  color: var(--gold-light);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.22s ease;
  z-index: 90;
}
.scroll-top-btn:hover {
  background: rgba(24, 27, 32, 0.98);
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
html[data-theme='light'] .scroll-top-btn {
  background: rgba(255, 248, 238, 0.96);
  border-color: rgba(176, 138, 87, 0.24);
  color: #8c6230;
  box-shadow: 0 16px 36px rgba(92, 68, 38, 0.12);
}
html[data-theme='light'] .scroll-top-btn:hover {
  background: rgba(255, 252, 247, 1);
}
