:root {
  --bg: #050608;
  --panel: #0c1016;
  --panel-2: #111722;
  --text: #f7f4ef;
  --muted: #b8b4ad;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d7ad53;
  --gold-2: #f2d184;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 10%, rgba(215, 173, 83, 0.09), transparent 25%),
    linear-gradient(180deg, #050608, #080a0f 48%, #050608);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.55;
}

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

button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 96px;
  padding: 18px clamp(22px, 4vw, 74px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(3, 4, 7, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  border: 2px solid rgba(215, 173, 83, 0.7);
  background: radial-gradient(circle, rgba(215, 173, 83, 0.18), rgba(0, 0, 0, 0.8));
  box-shadow: 0 0 0 5px rgba(215, 173, 83, 0.08);
  font-weight: 900;
}

.brand strong, .brand small {
  display: block;
}

.brand strong { font-size: 1.08rem; }

.brand small {
  color: var(--gold-2);
  font-size: 0.86rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 36px);
}

nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.menu-button { display: none; }

.hero {
  min-height: calc(100vh - 96px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(72px, 9vw, 130px) clamp(22px, 4vw, 88px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.75), rgba(5, 6, 8, 0.92)),
    url("./assets/restaurant-hero.jpg") center / cover;
  filter: saturate(0.55) brightness(0.42);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 120px 120px;
}

.hero-copy, .info-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.6rem, 9.4vw, 9rem);
  line-height: 0.91;
  letter-spacing: 0;
  font-weight: 900;
}

.backend-title {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
}

h2 {
  margin-bottom: 18px;
  max-width: 950px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 24px;
  padding: 0 18px;
  color: var(--gold-2);
  border: 1px solid rgba(215, 173, 83, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
}

.lead {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  min-height: 56px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
}

.button.gold {
  color: #15110a;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 32px rgba(215, 173, 83, 0.2);
}

.button.outline {
  color: white;
  background: rgba(8, 10, 15, 0.7);
  border-color: rgba(255, 255, 255, 0.26);
}

.button.dark {
  color: white;
  background: #141820;
  border-color: rgba(255, 255, 255, 0.08);
}

.hidden { display: none !important; }

.info-card {
  padding: 18px;
  background: rgba(7, 10, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-frame {
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #090b10;
  aspect-ratio: 16 / 9;
}

.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

dl {
  margin: 18px 0 0;
}

dt {
  margin-top: 16px;
  color: var(--gold-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
}

dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.section {
  padding: clamp(68px, 8vw, 120px) clamp(22px, 4vw, 88px);
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section p {
  color: var(--muted);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  max-height: 178px;
  overflow: auto;
}

.category-tabs button,
.chat-form button,
.menu-item button,
.cart-item button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: white;
  background: #151a22;
  cursor: pointer;
  font-weight: 900;
}

.category-tabs button.active {
  color: #15110a;
  background: var(--gold);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.menu-item,
.order-panel,
.location-card,
.backend-grid article,
.backend-table-wrap,
.chat-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(18, 24, 32, 0.96), rgba(9, 12, 18, 0.96));
  box-shadow: 0 18px 52px rgba(0,0,0,0.25);
}

.menu-item {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.menu-item .tag {
  color: var(--gold-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-item p {
  margin-bottom: 20px;
}

.menu-item strong {
  display: block;
  margin-top: auto;
  margin-bottom: 14px;
  color: var(--gold-2);
  font-size: 1.3rem;
}

.menu-item button {
  color: #15110a;
  background: var(--gold);
}

.menu-board-details {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-board-details summary {
  cursor: pointer;
  color: var(--gold-2);
  font-weight: 900;
}

.menu-board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.menu-board-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-section,
.location-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.order-panel,
.location-card,
.chat-card {
  position: sticky;
  top: 112px;
  padding: 22px;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.cart-item button {
  min-height: 36px;
  padding: 0 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.cart-total strong {
  color: var(--gold-2);
  font-size: 1.6rem;
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.84);
}

label:has(textarea),
.consent-label,
.order-form button,
.order-form a,
.status {
  grid-column: 1 / -1;
}

.consent-label {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
}

.consent-label input {
  width: 20px;
  margin-top: 4px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 14px;
  color: white;
  background: #080b10;
}

textarea { resize: vertical; }

.status {
  min-height: 24px;
  margin: 0;
  color: var(--gold-2) !important;
}

.sheet-status {
  margin-bottom: 12px;
  color: var(--gold-2) !important;
}

.location-section {
  background: rgba(215, 173, 83, 0.04);
}

.location-card p {
  margin-bottom: 14px;
}

.backend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.backend-grid article {
  padding: 20px;
}

.backend-grid span {
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.backend-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 2rem;
}

.backend-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th, td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold-2);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.staff-actions,
.wa-actions {
  display: grid;
  gap: 8px;
}

.staff-actions button,
.wa-actions a {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: white;
  background: #151a22;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.staff-actions button.payment {
  color: #15110a;
  background: var(--gold);
}

.wa-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ask-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
}

.chat-log {
  min-height: 230px;
  max-height: 320px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #07090e;
}

.chat-log p {
  margin: 0;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.chat-form button {
  color: #15110a;
  background: var(--gold);
}

.ask-float {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 25;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: #15110a;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: var(--shadow);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .order-section,
  .location-section,
  .ask-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 82px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: white;
    background: #111722;
    font-weight: 900;
  }

  nav {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: stretch;
    top: 82px;
    left: 0;
    right: 0;
    padding: 12px 22px 22px;
    background: #050608;
    border-bottom: 1px solid var(--line);
  }

  nav.open { display: flex; }

  nav a {
    padding: 12px 0;
  }

  .logo-mark {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    max-width: 190px;
    line-height: 1.1;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .order-panel,
  .location-card,
  .chat-card {
    position: static;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .menu-grid,
  .order-form,
  .backend-grid,
  .chat-form,
  .menu-board-grid {
    grid-template-columns: 1fr;
  }
}
