:root {
  --bg: #0d2319;
  --bg-elevated: #132b1f;
  --gold: #d9cc91;
  --gold-soft: rgba(217, 204, 145, 0.72);
  --gold-line: rgba(217, 204, 145, 0.28);
  --gold-faint: rgba(217, 204, 145, 0.1);
  --ink: #f3edd4;
  --muted: rgba(243, 237, 212, 0.55);
  --radius: 14px;
  --max: 720px;
  --font-body: "Vazirmatn", "Tahoma", sans-serif;
  --font-brand: "Cormorant Garamond", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(217, 204, 145, 0.08), transparent 55%),
    radial-gradient(90% 60% at 100% 20%, rgba(40, 80, 55, 0.35), transparent 50%),
    var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(13, 35, 25, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-lockup img {
  width: 36px;
  height: auto;
  object-fit: contain;
}

.brand-lockup span {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: var(--gold-faint);
  border-color: var(--gold-soft);
}

.btn-solid {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 600;
}

.btn-solid:hover {
  background: #e6dbb0;
  border-color: #e6dbb0;
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 35, 25, 0.35) 0%, rgba(13, 35, 25, 0.2) 35%, rgba(13, 35, 25, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  text-align: center;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  margin: 0;
}

.hero-logo {
  display: block;
  width: min(200px, 46vw);
  height: auto;
  margin: 0 auto 1.25rem;
}

.hero-tag {
  margin: 0 auto;
  max-width: 22ch;
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.9;
}

.hero-cta {
  margin-top: 1.75rem;
}

.cat-nav {
  position: sticky;
  top: 61px;
  z-index: 15;
  overflow-x: auto;
  padding: 0.75rem 1rem;
  background: rgba(13, 35, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
  scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-nav-inner {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  margin: 0 auto;
  padding-inline: 0.25rem;
}

.cat-nav a {
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cat-nav a:hover,
.cat-nav a.is-active {
  color: var(--gold);
  border-color: var(--gold-line);
  background: var(--gold-faint);
}

main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.section {
  scroll-margin-top: 130px;
  margin-top: 2.5rem;
  animation: riseIn 0.7s ease both;
}

.section:first-of-type {
  margin-top: 1rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-visual {
  position: relative;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.section-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.section:hover .section-visual img {
  transform: scale(1.04);
}

.section-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(13, 35, 25, 0.75));
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
}

.section-title .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold-soft);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(19, 43, 31, 0.55);
  overflow: hidden;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--gold-line);
  transition: background 0.2s ease;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: var(--gold-faint);
}

.item-name {
  font-size: 0.98rem;
}

.item-dots {
  grid-column: 1 / -1;
  height: 0;
  margin-top: -0.35rem;
  border-bottom: 1px dotted var(--gold-line);
  opacity: 0.7;
}

.item-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.price-note {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--gold-line);
}

.leaf {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.75rem;
  color: var(--gold-soft);
}

.footer-tag {
  margin: 0;
  font-size: 1rem;
  color: var(--gold);
}

.footer-sub {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  .section-visual {
    height: 200px;
  }

  .menu-item {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .item-dots {
    grid-column: auto;
    height: auto;
    margin: 0;
    align-self: center;
    min-width: 2rem;
  }

  .item-name {
    order: 1;
  }

  .item-dots {
    order: 2;
  }

  .item-price {
    order: 3;
  }
}

/* QR page */
.qr-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.qr-card {
  width: min(100%, 380px);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(217, 204, 145, 0.06), transparent 40%),
    var(--bg-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.7s ease both;
}

.qr-card h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-brand);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.qr-card .cafe-label {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
}

.qr-box {
  width: 220px;
  height: 220px;
  margin: 1.5rem auto;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
}

.qr-box canvas,
.qr-box img {
  width: 100% !important;
  height: 100% !important;
}

.qr-hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.qr-url {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  direction: ltr;
}

.qr-controls {
  width: min(100%, 380px);
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.qr-logo {
  display: block;
  width: min(160px, 42vw);
  height: auto;
  margin: 0 auto 0.5rem;
}

.qr-lock-note {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media print {
  body {
    background: #fff;
    color: #0d2319;
  }

  .qr-controls,
  .no-print {
    display: none !important;
  }

  .qr-card {
    box-shadow: none;
    border-color: #d9cc91;
    background: #0d2319;
    color: #f3edd4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
