:root {
  --masmenu-bg: #0c0c0c;
  --masmenu-bg-deep: #080808;
  --masmenu-panel: #121212;
  --masmenu-cream: #f5f0e8;
  --masmenu-gold: #c9a96e;
  --masmenu-stone: #a8a29e;
  --masmenu-muted: #78716c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--masmenu-bg);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--masmenu-bg);
  color: var(--masmenu-cream);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.masmenu-page {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--masmenu-bg);
  color: var(--masmenu-cream);
}

/* ===========================
   HERO
=========================== */

.masmenu-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50vh;
  overflow: hidden;
}

.masmenu-hero__image,
.masmenu-hero__shade {
  position: absolute;
  inset: 0;
}

.masmenu-hero__image {
  background-image: url("https://images.unsplash.com/photo-1559339352-11d035aa65de?auto=format&fit=crop&q=80&w=2000");
  background-position: center;
  background-size: cover;
  filter: brightness(0.4) grayscale(30%);
  opacity: 0.6;
}

.masmenu-hero__shade {
  z-index: 1;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 50%, var(--masmenu-bg) 100%);
}

.masmenu-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 896px;
  margin-inline: auto;
  padding-inline: 24px;
  text-align: center;
  animation: masmenuFadeUp 0.85s ease both;
}

.masmenu-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
  margin: 0 auto 40px;
  filter: brightness(1.1) drop-shadow(0 0 20px rgba(201, 169, 110, 0.15));
}

.masmenu-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.masmenu-tagline span {
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.3));
}

.masmenu-tagline span:last-child {
  background: linear-gradient(to left, transparent, rgba(201, 169, 110, 0.3));
}

.masmenu-tagline h2 {
  margin: 0;
  color: rgba(201, 169, 110, 0.8);
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.8em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masmenu-hero h1 {
  margin: 0;
  color: var(--masmenu-cream);
  font-family: "Cinzel", serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

/* ===========================
   SEARCH AND CATEGORY TABS
=========================== */

.masmenu-controls {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: -48px;
  padding: 32px 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.5s ease, background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}

.masmenu-controls.is-scrolled {
  padding: 16px 0;
  border-bottom-color: rgba(201, 169, 110, 0.1);
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(64px);
}

.masmenu-controls__container {
  width: min(100% - 32px, 1152px);
  margin-inline: auto;
}

.masmenu-control-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 32px;
  transition: gap 0.5s ease, margin 0.5s ease;
}

.masmenu-controls.is-scrolled .masmenu-control-stack {
  gap: 16px;
  margin-bottom: 0;
}

.masmenu-search {
  position: relative;
  display: block;
  width: 100%;
  max-width: 672px;
  margin-inline: auto;
  transition: max-width 0.5s ease;
}

.masmenu-controls.is-scrolled .masmenu-search {
  max-width: 448px;
}

.masmenu-search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 20px;
  height: 20px;
  color: rgba(201, 169, 110, 0.4);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.masmenu-search input {
  display: block;
  width: 100%;
  height: auto;
  padding: 16px 16px 16px 48px;
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 999px;
  outline: none;
  background: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(40px);
  box-shadow: inset 0 2px 4px -2px rgba(0, 0, 0, 0.35);
  color: var(--masmenu-cream);
  font-family: "Cinzel", serif;
  font-size: 13px;
  line-height: 19.5px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.masmenu-search input::placeholder {
  color: #57534e;
  opacity: 1;
  text-transform: uppercase;
}

.masmenu-search input:focus {
  border-color: rgba(201, 169, 110, 0.4);
  background: #1a1a1a;
}

.masmenu-tabs-viewport {
  margin-inline: -16px;
  padding: 0 16px 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.masmenu-tabs-viewport::-webkit-scrollbar {
  display: none;
}

.masmenu-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  margin-inline: auto;
}

.masmenu-tab {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: transparent;
  color: var(--masmenu-muted);
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 16.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.masmenu-tab:hover,
.masmenu-tab:focus-visible {
  border-color: rgba(201, 169, 110, 0.4);
  color: var(--masmenu-cream);
}

.masmenu-tab:focus-visible {
  outline: 2px solid rgba(201, 169, 110, 0.6);
  outline-offset: 3px;
}

.masmenu-tab:active {
  transform: translateY(1px);
}

.masmenu-tab.is-active {
  border-color: var(--masmenu-gold);
  background: var(--masmenu-gold);
  color: #110a07;
}

/* ===========================
   MENU LIST
=========================== */

.masmenu-container {
  width: min(100% - 32px, 768px);
  max-width: 768px;
  margin-inline: auto;
  padding: 48px 16px;
}

.masmenu-content {
  min-height: 60vh;
}

body.masmenu-loading .masmenu-content,
body.masmenu-loading .masmenu-empty,
body.masmenu-loading .masmenu-ending {
  display: none;
}

body:not(.masmenu-loading) .masmenu-loader {
  display: none;
}

.masmenu-section {
  margin: 0 0 80px;
}

.masmenu-section[hidden],
.masmenu-item[hidden] {
  display: none !important;
}

.masmenu-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: 0 0 48px;
  color: var(--masmenu-gold);
  font-family: "Cinzel", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0.4em;
  text-align: center;
  text-transform: uppercase;
}

.masmenu-heading::before,
.masmenu-heading::after {
  content: "";
  flex: 1 1 0;
  min-width: 7px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.4), transparent);
}

.masmenu-heading::after {
  background: linear-gradient(to left, transparent, rgba(201, 169, 110, 0.4), transparent);
}

.masmenu-heading span {
  flex: 0 1 auto;
}

.masmenu-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.masmenu-item {
  position: relative;
  min-width: 0;
}

.masmenu-item::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 32px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent, transparent);
  opacity: 0.3;
}

.masmenu-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 12px;
}

.masmenu-item h3 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--masmenu-cream);
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.masmenu-item:hover h3 {
  color: var(--masmenu-gold);
}

.masmenu-leader {
  flex: 1 1 auto;
  min-width: 20px;
  height: 1px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.masmenu-item strong {
  flex: 0 0 auto;
  color: var(--masmenu-gold);
  font-family: "Cinzel", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.masmenu-item p {
  margin: 0;
  color: var(--masmenu-stone);
  font-family: "Hedvig Letters Serif", serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.625;
  white-space: pre-wrap;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.masmenu-item:hover p {
  opacity: 1;
}

.masmenu-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.masmenu-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   LOADING, EMPTY AND FOOTER
=========================== */

.masmenu-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: #57534e;
  font-family: "Cinzel", serif;
  text-align: center;
  text-transform: uppercase;
}

.masmenu-loader__ring {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  border: 0;
  border-top: 2px solid var(--masmenu-gold);
  border-radius: 50%;
  animation: masmenuSpin 0.9s linear infinite;
}

.masmenu-loader p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.masmenu-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 96px 0 48px;
}

.masmenu-empty__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 400px;
  padding: 64px 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.01);
  text-align: center;
}

.masmenu-empty__title {
  margin: 0;
  color: rgba(201, 169, 110, 0.48);
  font-family: "Cinzel", serif;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.4em;
  text-align: center;
  text-transform: uppercase;
}

.masmenu-empty__description {
  margin: 30px 0 0;
  color: #78716c;
  font-family: "Hedvig Letters Serif", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
}

.masmenu-empty__reset {
  margin-top: 48px;
  padding: 14px 40px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 16px;
  background: transparent;
  color: var(--masmenu-gold);
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.masmenu-empty__reset:hover,
.masmenu-empty__reset:focus-visible {
  border-color: rgba(201, 169, 110, 0.6);
  background: rgba(201, 169, 110, 0.08);
  color: var(--masmenu-cream);
}

.masmenu-empty__reset:focus-visible {
  outline: 2px solid rgba(201, 169, 110, 0.5);
  outline-offset: 4px;
}

.masmenu-ending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 96px;
  margin: 0;
  color: #78716c;
  font-family: "Cinzel", serif;
  opacity: 0.2;
  text-align: center;
  text-transform: uppercase;
}

.masmenu-ending span {
  width: 32px;
  height: 1px;
  background: currentColor;
}

.masmenu-ending p {
  margin: 0;
  font-size: 8px;
  line-height: 12px;
  letter-spacing: 0.4em;
  white-space: nowrap;
}

.masmenu-note {
  width: min(100% - 48px, 672px);
  margin: 80px auto 0;
  padding: 80px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #57534e;
  font-family: "Cinzel", serif;
  text-align: center;
  text-transform: uppercase;
}

.masmenu-note__icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 16px;
  fill: none;
  stroke: rgba(201, 169, 110, 0.3);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.masmenu-note p {
  margin: 0;
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.2em;
}

@keyframes masmenuSpin {
  to { transform: rotate(360deg); }
}

@keyframes masmenuFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 767.98px) {
  .masmenu-hero h1 {
    font-size: 72px;
  }
}

@media (max-width: 639.98px) {
  .masmenu-hero {
    height: 40vh;
  }

  .masmenu-logo {
    height: 56px;
  }

  .masmenu-tagline h2 {
    font-size: 10px;
    line-height: 15px;
  }

  .masmenu-hero h1 {
    font-size: 48px;
    line-height: 1.25;
    letter-spacing: 0.15em;
  }

  .masmenu-container {
    width: 100%;
    padding: 48px 16px;
  }

  .masmenu-heading {
    gap: 24px;
    margin-bottom: 48px;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.4em;
    overflow-wrap: anywhere;
  }

  .masmenu-item h3 {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.1em;
  }

  .masmenu-item strong {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1em;
  }

  .masmenu-item p {
    font-size: 13px;
    line-height: 1.625;
  }

  .masmenu-empty {
    padding-top: 72px;
  }

  .masmenu-empty__panel {
    min-height: 360px;
    padding: 52px 20px;
    border-radius: 32px;
  }

  .masmenu-empty__title {
    max-width: 280px;
    font-size: 9px;
    letter-spacing: 0.3em;
  }

  .masmenu-empty__description {
    font-size: 14px;
  }

  .masmenu-empty__reset {
    width: min(100%, 330px);
    padding-inline: 20px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .masmenu-reveal {
    opacity: 1;
    transform: none;
  }
}