@font-face {
  font-family: 'DangLong';
  src: url('DangLong.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('PeydaWebNoEn-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg2:      #f7f7f7;
  --bg3:      #eeeeee;
  --border:   #dedede;
  --gold:     #111111;
  --gold2:    #111111;
  --cream:    #111111;
  --muted:    #555555;
  --accent:   #9a4a1f;   /* خاکی/سفالی — گرمای برند، کنتراست ۶:۱ روی سفید */
  --accent-soft: #f7ede5;
  --pom:      #111111;
  --teal:     #111111;
  --olive:    #777777;
  --bowl:     #111111;
  --radius:   14px;
  --r-sm:     8px;
  --font:     'Peyda', system-ui, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  direction: rtl;
  min-height: 100dvh;
  line-height: 1.6;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111111;
  transition: opacity .42s ease, visibility .42s ease;
}
.welcome-screen::before { content: ''; position: absolute; inset: -18px; background: linear-gradient(180deg, rgba(24,24,16,.42), rgba(17,15,11,.9)), url('img/brand/restaurant-space.jpg') center / cover no-repeat; filter: blur(1px); opacity: .78; }
.welcome-screen--leaving { opacity: 0; visibility: hidden; }
.welcome-screen__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(201,168,76,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(201,168,76,.018), 0 0 0 58px rgba(201,168,76,.012);
}
.welcome-screen__content { position: relative; width: min(88vw, 390px); text-align: center; }
.welcome-screen__logo { width: 104px; height: 104px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 12px 35px rgba(0,0,0,.35); }
.welcome-screen__eyebrow { margin-top: 25px; color: #fff; font-size: .72rem; letter-spacing: .22em; }
.welcome-screen p { margin-top: 21px; color: #e2e2e2; font-size: .92rem; }
.welcome-screen__rule { display: flex; justify-content: center; margin: 25px 0 23px; }
.welcome-screen__rule span { display: block; width: 58px; height: 2px; background: #fff; border-radius: 99px; }
.welcome-screen__enter { display: inline-flex; align-items: center; gap: 16px; padding: 13px 25px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #111; font-family: inherit; font-weight: 800; font-size: .93rem; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.welcome-screen__enter:hover { transform: translateY(-2px); background: #e8e8e8; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.welcome-screen__enter span { font-size: 1.2rem; line-height: .7; }
.welcome-screen__meta { margin-top: 30px; color: #d0d0d0; font-size: .7rem; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 0;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}
/* wrapper so sticky+max-width works */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.restaurant-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.restaurant-meta {
  font-size: .8rem;
  color: var(--muted);
}

/* category tabs */
.cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.cat-tab.active, .cat-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 20px 32px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-section { max-width: 680px; margin: 0 auto; padding: 28px 20px 10px; background: linear-gradient(180deg, var(--accent-soft), transparent); }
.featured-section__eyebrow { color: var(--accent); font-size: .8rem; font-weight: 600; }
.featured-section__title { margin-top: 2px; color: var(--cream); font-size: 1.18rem; }
.featured-row { display: flex; gap: 12px; overflow-x: auto; padding: 15px 1px 18px; scrollbar-width: none; }
.featured-row::-webkit-scrollbar { display: none; }
.featured-pick { flex: 0 0 165px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--bg2); color: var(--cream); text-align: right; font-family: inherit; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.14); transition: transform .2s ease, border-color .2s ease; }
.featured-pick:hover { transform: translateY(-3px); border-color: var(--accent); }
.featured-pick__image { display: block; width: 100%; height: 112px; object-fit: cover; background: #f7f5f0; }
.featured-pick__label { display: block; padding: 9px 10px 11px; font-size: .85rem; font-weight: 600; line-height: 1.45; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,168,76,.18) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__logo-wrap {
  position: relative;
  width: 108px; height: 108px;
  margin-bottom: 18px;
}
.hero__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--gold), var(--gold2), #8b6914, var(--gold));
  z-index: 0;
}
.hero__logo-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--gold), var(--gold2), #8b6914, var(--gold));
  z-index: 0;
  filter: blur(8px);
  opacity: .5;
}
.hero__logo {
  position: relative;
  z-index: 1;
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  display: block;
}
.hero__title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__title span { color: var(--gold); }
.hero__sub {
  margin-top: 8px;
  font-size: .88rem;
  color: var(--muted);
  max-width: 260px;
}
.hero__divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 14px;
  border-radius: 1px;
}
.hero__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hero__info-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  backdrop-filter: blur(4px);
}
.hero__info-chip svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── MENU BODY ── */
.menu-body {
  padding: 0 20px 80px;
  max-width: 680px;
  margin: 0 auto;
}

.menu-section { padding-top: 32px; }
.menu-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-section__title::before {
  content: '';
  width: 4px; height: 18px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

/* item card */
.item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.item-card--photo { cursor: pointer; }
.item-card--photo:active { transform: scale(.99); }
.item-card__image {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  background: var(--accent-soft);
}
.item-card:last-child { border-bottom: none; }
.item-card.out { opacity: .45; }

.item-card__body { flex: 1; }
.item-card__name {
  font-size: .97rem;
  font-weight: 700;
  color: var(--cream);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.item-card__desc {
  margin-top: 4px;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
}
.item-card__footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-card__price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
}
.item-card__soldout {
  font-size: .75rem;
  color: var(--pom);
  border: 1px solid var(--pom);
  border-radius: 999px;
  padding: 2px 8px;
}

/* tags */
.tag {
  font-size: .75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid;
}
.tag-hot  { color: var(--accent); border-color: var(--accent); }
.tag-veg  { color: #111; border-color: #111; }
.tag-feat { color: #fff; background: var(--accent); border-color: var(--accent); }

/* featured badge */
.feat-star { color: var(--gold); font-size: .85rem; }

.food-modal { position: fixed; inset: 0; z-index: 50; display: none; }
.food-modal.open { display: block; }
.food-modal__backdrop { position: absolute; inset: 0; background: rgba(8,12,18,.72); backdrop-filter: blur(5px); }
.food-modal__sheet { position: absolute; left: 50%; bottom: 24px; width: min(calc(100% - 32px), 440px); transform: translateX(-50%); overflow: hidden; background: var(--bg2); border: 1px solid rgba(201,168,76,.22); border-radius: 24px; box-shadow: 0 18px 55px rgba(0,0,0,.45); animation: foodSheetIn .25s ease-out; }
.food-modal__close { position: absolute; z-index: 1; top: 12px; left: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: white; font-size: 26px; line-height: 1; cursor: pointer; }
.food-modal__image { display: block; width: 100%; height: 260px; object-fit: contain; background: #f7f5f0; }
.food-modal__content { padding: 20px 22px 28px; }
.food-modal__content h2 { margin: 0; color: var(--cream); font-size: 1.25rem; }
.food-modal__content p { margin: 9px 0 0; color: var(--muted); line-height: 1.8; }
.food-modal__price { margin-top: 14px; color: var(--accent); font-weight: 800; font-size: 1.05rem; }
@keyframes foodSheetIn { from { opacity: 0; transform: translate(-50%, 35px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 520px) {
  .food-modal__sheet { bottom: 0; width: 100%; border-radius: 24px 24px 0 0; }
  .food-modal__image { height: 235px; }
}

/* ── FOOTER ── */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, var(--bg) 70%, transparent);
  pointer-events: none;
  height: 64px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
