:root {
  --paper: #2f4a5c;
  --paper-deep: #223848;
  --card: #f8eedd;
  --brand: #007847;
  --brand-dark: #0a4d2e;
  --terracotta: #b13232;
  --ink: #241c16;
  --muted: #5d4c3e;
  --foam: #f8eedd;
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body {
  font-family: Vazirmatn, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
body {
  position: relative;
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(177,50,50,.16), transparent 42%),
    linear-gradient(180deg, #36556a 0%, #2f4a5c 48%, #223848 100%);
}
img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; outline: none; touch-action: manipulation; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }

.gallery-word {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 30;
  font-family: "Aref Ruqaa", serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--foam);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.hero-wrap { position: relative; }
.header { text-align: center; padding: 1.4rem 1rem .8rem; }
.logo-img {
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.28));
}
.header h1 { color: var(--foam); font-size: 1.15rem; margin-top: 1rem; }
.hero-desc { color: rgba(248,238,221,.88); font-size: .95rem; max-width: 18rem; margin: .35rem auto 0; line-height: 1.7; }

.map-dock {
  position: absolute;
  top: 4.6rem;
  right: 10px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  pointer-events: none;
}
.map-fab {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: 0 6px 16px rgba(12,22,32,.28), inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
}
.map-fab img {
  width: 86%;
  height: 86%;
  object-fit: cover;
  border-radius: 50%;
}

.tabs-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(34,56,72,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: .7rem 0;
}
.tabs { display: flex; gap: .45rem; overflow-x: auto; padding: 0 1rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: .55rem 1.1rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500;
  color: var(--foam); background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  position: relative; overflow: hidden;
}
.tab.active { background: var(--card); color: var(--brand-dark); border-color: var(--card); font-weight: 700; }
.tab::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,.28); transform: translate(-50%,-50%);
  pointer-events: none;
}
.tab.ripple::after { width: 180px; height: 180px; transition: width .45s, height .45s; }

.menu { padding: 1.1rem 1rem 2rem; }
.menu-grid { display: flex; flex-direction: column; gap: .9rem; max-width: 520px; margin: 0 auto; }

.food-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--card); border-radius: var(--radius); padding: .85rem;
  box-shadow: 0 3px 14px rgba(12,22,32,.16);
}
.food-img-wrap {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #efe2cc; border: 2px solid rgba(0,120,71,.15); cursor: pointer;
}
.food-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: .8rem;
}
 .food-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.food-content { flex: 1; min-width: 0; }
.food-name { font-size: 1.18rem; font-weight: 700; color: var(--brand-dark); line-height: 1.35; }
.food-desc { font-size: .95rem; color: var(--muted); line-height: 1.55; margin-top: .2rem; }
.food-price {
  display: inline-block;
  margin-top: .4rem;
  background: var(--terracotta);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 8px;
  padding: .15rem .5rem;
}
.food-price.soon { background: var(--brand); }
.food-cal {
  min-width: 3.4rem; align-self: stretch; border-radius: 12px;
  background: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .4rem .3rem;
}
.food-cal strong { font-size: 1.05rem; color: #fff; }
.food-cal span { font-size: .7rem; color: rgba(255,255,255,.9); margin-top: .25rem; }

.footer {
  background: var(--paper-deep); color: var(--foam);
  text-align: center; padding: 2rem 1.2rem 1.8rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.info { font-size: .95rem; line-height: 1.6; opacity: .92; margin-bottom: .7rem; }
.info-link { display: block; font-weight: 700; margin: .4rem 0; letter-spacing: .03em; }
.copy-btn { margin-top: 1rem; font-size: .8rem; color: rgba(248,238,221,.7); }

.lightbox, .popup-overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: .3s; z-index: 200; padding: 1.5rem;
}
.lightbox { background: rgba(12,22,32,.94); }
.popup-overlay { background: rgba(12,22,32,.75); }
.lightbox.open, .popup-overlay.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 12px; pointer-events: none; }
.lightbox-close, .popup-close {
  position: absolute; top: 1rem; left: 1rem; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 1.5rem;
}
.popup { background: var(--card); border-radius: 20px; padding: 1.8rem 1.5rem; width: 100%; max-width: 300px; text-align: center; position: relative; }
.popup h3 { color: var(--brand-dark); margin-bottom: 1rem; }
.popup a { display: block; background: rgba(0,120,71,.1); border-radius: 12px; padding: .7rem; margin: .5rem 0; font-weight: 600; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  direction: rtl;
  padding: 0 12px 40px;
  max-width: 520px;
  margin: 0 auto;
}
.gallery-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(248,238,221,.12);
  border: 1px solid rgba(255,255,255,.12);
  padding: 0;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gallery-empty {
  text-align: center;
  color: rgba(248,238,221,.8);
  padding: 3rem 1.5rem;
  line-height: 1.8;
  font-size: .95rem;
}
