:root {
  color-scheme: light;
  --bg: #f7faf6;
  --ink: #12211f;
  --muted: #5b6c66;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --line: rgba(18, 33, 31, 0.13);
  --red: #ce261d;
  --red-deep: #8b1712;
  --river: #0f6f7a;
  --river-deep: #0c4e56;
  --green: #2f7d46;
  --wood: #8a5a38;
  --wood-dark: #3a2418;
  --cream: #fff8e8;
  --shadow: 0 18px 45px rgba(23, 45, 39, 0.14);
  --radius: 8px;
}

:root[data-theme="ember"] {
  color-scheme: dark;
  --bg: #170f0b;
  --ink: #fff8ef;
  --muted: #d1bda6;
  --surface: #21150f;
  --surface-strong: #2b1a12;
  --line: rgba(255, 248, 239, 0.16);
  --red: #f03b2f;
  --red-deep: #c51d15;
  --river: #1b8b96;
  --river-deep: #5ab7be;
  --green: #6bb66e;
  --wood: #b97a4b;
  --wood-dark: #1a0f0a;
  --cream: #ffefd1;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  letter-spacing: 0;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, transparent, rgba(15, 111, 122, 0.05), transparent),
    repeating-linear-gradient(90deg, rgba(138, 90, 56, 0.05) 0 1px, transparent 1px 10px),
    var(--bg);
  color: var(--ink);
  font-family:
    "Segoe UI",
    "Noto Naskh Arabic",
    "Noto Sans Arabic",
    Tahoma,
    Arial,
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::selection {
  background: var(--red);
  color: #fff;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  width: 100vw;
  max-width: 100vw;
  padding: 10px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: min(58vw, 360px);
  direction: ltr;
  overflow: hidden;
}

.brand img {
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #050505;
  object-fit: cover;
}

.brand span {
  display: grid;
  gap: 1px;
  min-width: 0;
  direction: rtl;
}

.brand strong {
  overflow: hidden;
  color: var(--red);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.lang-switch {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.icon-btn {
  width: 42px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
}

.lang-switch span {
  min-width: 38px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

html[lang="ar"] .lang-switch span:first-child,
html[lang="en"] .lang-switch span:last-child {
  background: var(--red);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(78vh, 720px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 4, 3, 0.8), rgba(6, 4, 3, 0.36), rgba(15, 111, 122, 0.36)),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 88%, transparent), transparent 45%);
}

body.lang-ar .hero-media::after {
  background:
    linear-gradient(270deg, rgba(6, 4, 3, 0.8), rgba(6, 4, 3, 0.36), rgba(15, 111, 122, 0.36)),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 88%, transparent), transparent 45%);
}

body.lang-ar .hero-copy,
body.lang-ar .search-panel,
body.lang-ar .section-link,
body.lang-ar .stage-heading,
body.lang-ar .section-title,
body.lang-ar .subcategory header,
body.lang-ar .menu-item,
body.lang-ar .site-footer {
  direction: rtl;
}

body.lang-en .hero-copy,
body.lang-en .search-panel,
body.lang-en .section-link,
body.lang-en .stage-heading,
body.lang-en .section-title,
body.lang-en .subcategory header,
body.lang-en .menu-item,
body.lang-en .site-footer {
  direction: ltr;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 120px 0 64px;
  color: #fff;
}

.eyebrow,
.stage-heading p,
.section-kicker {
  margin: 0;
  color: var(--river-deep);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b8fbff;
}

.hero h1 {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin: 12px 0;
  font-size: clamp(2.4rem, 10vw, 6.8rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero h1 em {
  color: #fff3d7;
  font-size: clamp(1.1rem, 3.4vw, 2rem);
  font-style: normal;
  font-weight: 800;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.34);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.menu-console {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  width: min(1440px, calc(100vw - 32px));
  margin: -34px auto 0;
  padding-bottom: 60px;
}

.menu-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 104px);
  overflow: auto;
}

.search-panel,
.section-nav,
.stage-heading,
.menu-section,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.search-panel label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.section-nav {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.section-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: inherit;
}

.section-link .nav-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--river) 16%, transparent);
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 900;
}

.section-link strong,
.section-link small {
  display: block;
}

.section-link strong {
  line-height: 1.2;
}

.section-link small {
  color: var(--muted);
  font-size: 0.78rem;
}

.section-link:hover,
.section-link.is-active {
  background: color-mix(in srgb, var(--red) 12%, transparent);
}

.section-link.is-active .nav-number {
  background: var(--red);
  color: #fff;
}

.menu-stage {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.stage-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2.6vw, 28px);
}

.stage-heading h2 {
  margin: 2px 0 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.sections {
  display: grid;
  gap: 18px;
}

.menu-section {
  display: grid;
  grid-template-columns: minmax(210px, 28%) minmax(0, 1fr);
  overflow: hidden;
}

.section-cover {
  min-height: 100%;
  background: var(--wood-dark);
}

.section-cover img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.section-body {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 28px);
}

.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
}

.sequence {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.menu-section[data-accent="river"] .sequence {
  background: var(--river);
}

.menu-section[data-accent="green"] .sequence {
  background: var(--green);
}

.menu-section[data-accent="wood"] .sequence {
  background: var(--wood);
}

.section-title h3 {
  margin: 3px 0 2px;
  font-size: clamp(1.55rem, 3.5vw, 2.4rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.section-title small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.subnav a:hover {
  border-color: var(--red);
  color: var(--red);
}

.subcategory-list {
  display: grid;
  gap: 18px;
}

.subcategory {
  display: grid;
  gap: 12px;
}

.subcategory header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.subcategory h4 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.item-count {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
}

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

.menu-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 142px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.item-image {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--wood) 35%, transparent), transparent),
    var(--wood-dark);
}

.item-image img {
  width: 100%;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
}

.item-content {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.item-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.item-heading h5 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.item-heading p,
.description {
  margin: 0;
  color: var(--muted);
}

.item-heading p {
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 800;
}

.price {
  color: var(--red);
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1.2;
}

.description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 0;
  font-size: 0.82rem;
}

.status-pill {
  justify-self: start;
  min-height: 24px;
  border-color: color-mix(in srgb, var(--river) 40%, transparent);
  background: color-mix(in srgb, var(--river) 14%, transparent);
  color: var(--river-deep);
}

.status-pill.is-pending {
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}

.empty-state {
  display: grid;
  gap: 4px;
  padding: 26px;
}

.empty-state strong {
  color: var(--red);
  font-size: 1.25rem;
}

.empty-state span,
.site-footer {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px 42px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.hidden-by-search {
  display: none;
}

@media (max-width: 1080px) {
  .menu-console {
    grid-template-columns: 1fr;
    margin-top: -22px;
  }

  .menu-rail {
    position: relative;
    top: auto;
    max-height: none;
  }

  .section-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
  }
}

@media (max-width: 780px) {
  .app-bar {
    direction: ltr;
    justify-content: flex-start;
    min-height: 64px;
    padding: 8px 12px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-copy {
    width: min(calc(100vw - 24px), 680px);
    padding-bottom: 48px;
    text-align: center;
  }

  .hero h1 {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.8rem, 9vw, 2.55rem);
    line-height: 1.08;
  }

  .hero h1 em {
    font-size: 1.08rem;
  }

  .menu-console {
    width: auto;
    margin: -22px 34px 0 10px;
  }

  .lead {
    margin-inline: auto;
  }

  .hero-badges {
    justify-content: center;
    width: min(100%, 320px);
    margin-inline: auto;
    margin-top: 18px;
  }

  .menu-section {
    grid-template-columns: 1fr;
  }

  .section-cover img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .item-grid {
    grid-template-columns: 1fr;
  }

  .stage-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand {
    max-width: 54px;
    gap: 8px;
  }

  .brand span {
    display: none;
  }

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

  .toolbar {
    flex-direction: row-reverse;
    gap: 6px;
    margin-left: 8px;
  }

  .icon-btn {
    width: 38px;
    min-height: 38px;
  }

  .lang-switch {
    min-height: 38px;
  }

  .lang-switch span {
    display: none;
    min-width: 32px;
    padding-inline: 5px;
  }

  html[lang="ar"] .lang-switch span:first-child,
  html[lang="en"] .lang-switch span:last-child {
    display: block;
  }

  .hero-badges span {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 0.68rem;
  }

  .search-panel label {
    text-align: left;
  }

  .menu-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .item-heading {
    grid-template-columns: 1fr;
  }

  .price {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media video {
    display: none;
  }

  .hero-media {
    background: url("/assets/stills/nas-room-02.jpg") center / cover no-repeat;
  }
}
