/* =====================================================================
   مه کافه — استایل اصلی
   ساختار فایل:
   ۰۱. فونت محلی
   ۰۲. متغیرها و پایه
   ۰۳. اجزای عمومی (دکمه، عنوان بخش، کانتینر)
   ۰۴. هدر و ناوبری
   ۰۵. نوار پایین موبایل
   ۰۶. هیرو
   ۰۷. بخش‌های صفحه اصلی
   ۰۸. صفحه منو
   ۰۹. گالری و لایت‌باکس
   ۱۰. درباره / تماس
   ۱۱. فوتر
   ۱۲. صفحه ۴۰۴
   ۱۳. دسترس‌پذیری و کاهش حرکت
   ===================================================================== */

/* ---------------------------------------------- ۰۱. فونت محلی (Vazirmatn) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2-variations'),
       url('../fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------ ۰۲. متغیرها و پایه */
:root {
  --green-900: #0E3225;
  --green-800: #123D2C;   /* رنگ لوگو */
  --green-700: #1A5140;
  --green-600: #2C6B55;
  --green-100: #DDE7E1;

  --cream-50:  #FCF9F3;
  --cream-100: #F6F0E5;
  --cream-200: #EDE4D5;
  --cream-300: #DFD3BF;

  --ink:       #221F1B;
  --ink-soft:  #5A544B;
  --ink-faint: #726B5F;

  --gold:      #B0894E;   /* برای خطوط تزئینی */
  --gold-text: #8A6626;   /* نسخه تیره‌تر برای متن (کنتراست استاندارد) */
  --gold-soft: #D8C49A;

  --line:      rgba(18, 61, 44, .14);
  --line-soft: rgba(18, 61, 44, .08);

  --radius:    10px;
  --radius-lg: 14px;

  --wrap: 1180px;
  --header-h: 70px;

  --shadow-soft: 0 2px 10px rgba(20, 40, 32, .06);
  --shadow-photo: 0 18px 48px rgba(14, 50, 37, .13);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 5.2vw, 3.05rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.05rem); }
h3 { font-size: clamp(1.08rem, 2.2vw, 1.3rem); }

/* ------------------------------------------------ ۰۳. اجزای عمومی */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(56px, 8vw, 100px); }
.section--tight { padding-block: clamp(40px, 6vw, 70px); }
.section--cream { background: var(--cream-100); }
.section--dark  { background: var(--green-800); color: var(--cream-100); }
.section--dark h2 { color: #fff; }
.section--dark .section-kicker { color: var(--gold-soft); }

.section-head { max-width: 640px; margin-bottom: clamp(26px, 4vw, 42px); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-kicker {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-text);
  margin-bottom: .7em;
}

.lead  { font-size: 1.06rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.rule {
  width: 44px; height: 2px;
  background: var(--gold);
  border: 0; margin: 0 0 22px;
}
.section-head--center .rule { margin-inline: auto; }

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green-800); color: var(--cream-50); }
.btn--primary:hover { background: var(--green-700); }

.btn--ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--green-700); background: rgba(18,61,44,.04); }

.btn--light { background: var(--cream-50); color: var(--green-900); }
.btn--light:hover { background: #fff; }

.btn--outline-light {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(255,255,255,.5);
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--green-700);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
}
.link-more:hover { color: var(--green-900); border-color: var(--gold); }
.link-more .arw { transition: transform .2s var(--ease); }
.link-more:hover .arw { transform: translateX(-4px); }

/* قاب تصویر با نسبت ثابت (جلوگیری از پرش صفحه) */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-200);
}
.frame > img,
.frame > picture,
.frame > picture > img {
  width: 100%;
  height: 100%;
}
.frame > img,
.frame > picture > img { object-fit: cover; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--1x1 { aspect-ratio: 1 / 1; }

/* برچسب موقت روی تصاویر جای‌گاه (بعد از گذاشتن عکس واقعی حذف می‌شود) */
.frame[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute;
  inset-inline-end: 10px;
  inset-block-end: 10px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--green-800);
  background: rgba(252, 249, 243, .82);
  border-radius: 6px;
  padding: 3px 9px;
}

/* ------------------------------------------------ ۰۴. هدر و ناوبری */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--cream-50);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
body { padding-top: var(--header-h); }

/* روی صفحه اصلی، هدر ابتدا شفاف روی تصویر هیرو می‌نشیند */
body.has-hero { padding-top: 0; }
body.has-hero .site-header {
  background: transparent;
  border-color: transparent;
  color: var(--cream-50);
}
body.has-hero .site-header.is-solid {
  background: var(--cream-50);
  border-color: var(--line-soft);
  color: var(--ink);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 1.06rem; }
.brand-sub  { font-size: .7rem; color: var(--ink-faint); letter-spacing: .05em; }
body.has-hero .site-header:not(.is-solid) .brand-sub { color: rgba(255,255,255,.72); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: rgba(18,61,44,.06); }
body.has-hero .site-header:not(.is-solid) .nav a:hover { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"] { color: var(--green-700); font-weight: 700; }
body.has-hero .site-header:not(.is-solid) .nav a[aria-current="page"] { color: #fff; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 42px; padding: 8px 20px; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: inherit;
}
body.has-hero .site-header:not(.is-solid) .nav-toggle { border-color: rgba(255,255,255,.45); }
.nav-toggle span {
  position: relative;
  display: block; width: 18px; height: 1.5px;
  background: currentColor;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; inset-inline-start: 0;
  width: 18px; height: 1.5px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* پنل ناوبری موبایل */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: var(--green-900);
  color: var(--cream-50);
  padding: 22px 24px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; flex-direction: column; }
.mobile-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px;
}
.mobile-nav-close {
  width: 44px; height: 44px;
  background: transparent; color: inherit;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px; cursor: pointer;
  font-size: 1.3rem; line-height: 1;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav ul a {
  display: block;
  padding: 14px 4px;
  font-size: 1.18rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav ul a[aria-current="page"] { color: var(--gold-soft); }
.mobile-nav-foot { margin-top: auto; padding-top: 28px; }
.mobile-nav-foot .btn { width: 100%; margin-bottom: 10px; }
.mobile-nav-meta {
  font-size: .87rem;
  color: rgba(255,255,255,.7);
  line-height: 2;
  margin-top: 14px;
}

/* ------------------------------------------------ ۰۵. نوار پایین موبایل */
.mobile-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 55;
  display: none;
  background: rgba(252, 249, 243, .96);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px 8px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green-800);
  min-height: 56px;
}
.mobile-bar a + a { border-inline-start: 1px solid var(--line-soft); }
.mobile-bar svg { width: 21px; height: 21px; }

/* ------------------------------------------------ ۰۶. هیرو */
.hero {
  position: relative;
  min-height: min(92svh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--cream-50);
  background: var(--green-900);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 32, 23, .2), rgba(9, 32, 23, .52)),
    linear-gradient(to top, rgba(9, 32, 23, .91) 0%, rgba(9, 32, 23, .36) 52%, rgba(9, 32, 23, .18) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(120px, 18vh, 190px) clamp(48px, 8vh, 76px);
}
.hero h1 { max-width: 15ch; margin-bottom: .35em; color: #fff; }
.hero-tag {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold-soft);
  margin-bottom: 1.1em;
}
.hero-text {
  max-width: 46ch;
  font-size: 1.05rem;
  color: rgba(255,255,255,.86);
  margin-bottom: 1.7em;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  margin-top: 30px;
  font-size: .88rem;
  color: rgba(255,255,255,.78);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* هدر داخلی صفحات فرعی */
.page-head {
  background: var(--green-800);
  color: var(--cream-100);
  padding-block: clamp(38px, 6vw, 64px);
}
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p  { color: rgba(255,255,255,.78); max-width: 55ch; margin: 0; }

.crumbs {
  font-size: .82rem;
  color: rgba(255,255,255,.62);
  margin-bottom: 14px;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li::after { content: '‹'; margin-inline-start: 8px; opacity: .55; }
.crumbs li:last-child::after { content: ''; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------ ۰۷. بخش‌های صفحه اصلی */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: .87rem;
  color: var(--ink-soft);
}

/* کارت‌های دسته‌بندی */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.cat-card .frame { margin: 0; border-radius: inherit; }
.cat-card .frame > img,
.cat-card .frame > picture > img { transition: transform .6s var(--ease); }
.cat-card:hover .frame > img,
.cat-card:hover .frame > picture > img { transform: scale(1.045); }
.cat-card-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8, 31, 22, .9) 0%, rgba(8, 31, 22, .08) 56%, transparent 75%);
  pointer-events: none;
}
.cat-card-copy {
  position: absolute; z-index: 2; inset-inline: 18px; inset-block-end: 16px;
  display: flex; flex-direction: column; color: #fff;
}
.cat-card-copy h3 { color: #fff; font-size: 1.12rem; line-height: 1.45; margin: 0; }
.cat-card-copy small { color: rgba(255,255,255,.76); font-size: .79rem; }

/* پیشنهادهای محبوب */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px 26px;
}
.pick {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.pick-name { font-weight: 600; white-space: nowrap; }
.pick-dots { flex: 1; border-bottom: 1px dotted var(--ink-faint); transform: translateY(-4px); }
.pick-desc { font-size: .85rem; color: var(--ink-soft); }

/* روایت تصویری صفحه اصلی */
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(190px, 260px));
  gap: 14px;
}
.story-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--cream-200); box-shadow: var(--shadow-soft);
}
.story-card--lead { grid-column: span 2; grid-row: span 2; }
.story-card picture,
.story-card img { width: 100%; height: 100%; }
.story-card img { object-fit: cover; transition: transform .7s var(--ease), filter .5s var(--ease); }
.story-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 31, 22, .82), transparent 58%);
  pointer-events: none;
}
.story-card > span {
  position: absolute; z-index: 2; inset-inline: 18px; inset-block-end: 15px;
  display: flex; flex-direction: column; color: #fff;
}
.story-card small { font-size: .72rem; color: var(--gold-soft); }
.story-card strong { font-size: 1rem; }
.story-card--lead strong { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.story-card:hover img { transform: scale(1.035); filter: saturate(1.06); }
}

/* اطلاعات تماس فشرده */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.info-box h3 { font-size: 1rem; margin-bottom: .35em; }
.info-box p  { margin: 0; color: rgba(255,255,255,.8); font-size: .95rem; }
.section--cream .info-box p { color: var(--ink-soft); }

/* دعوت به اینستاگرام */
.insta-cta { text-align: center; }
.insta-handle {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .02em;
  direction: ltr;
}

/* ------------------------------------------------ ۰۸. صفحه منو */
.menu-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--cream-50);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 14px;
}
.menu-search {
  position: relative;
  max-width: 420px;
  margin-bottom: 12px;
}
.menu-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 44px 10px 16px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.menu-search input::placeholder { color: var(--ink-faint); }
.menu-search svg {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-faint);
  pointer-events: none;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 17px;
  min-height: 40px;
  font: inherit;
  font-size: .89rem;
  font-weight: 500;
  color: var(--green-800);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: rgba(18,61,44,.05); }
.chip[aria-pressed="true"] {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--cream-50);
}

.menu-note {
  font-size: .88rem;
  color: var(--ink-soft);
  background: var(--cream-100);
  border-inline-start: 3px solid var(--gold-soft);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 34px;
}

.menu-cat { margin-bottom: clamp(34px, 5vw, 54px); }
.menu-cat-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.menu-cat-head h2 { margin: 0; font-size: 1.35rem; }
.menu-cat-head span { font-size: .85rem; color: var(--ink-faint); }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }

.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line-soft);
}
.menu-item-thumb {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream-200);
}
.menu-item-main { flex: 1; min-width: 0; }
.menu-item-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.menu-item-name { font-weight: 600; }
.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted var(--cream-300);
  transform: translateY(-5px);
  min-width: 18px;
}
.menu-item-price { font-weight: 600; white-space: nowrap; color: var(--green-700); }
.menu-item-desc { font-size: .87rem; color: var(--ink-soft); margin: 2px 0 0; }

.tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 8px;
  margin-inline-start: 6px;
  vertical-align: middle;
}
.tag--out    { background: var(--cream-200); color: var(--ink-soft); }
.tag--sample { background: #FBEEDC; color: #8A5A16; }
.menu-item.is-out .menu-item-name,
.menu-item.is-out .menu-item-price { color: var(--ink-faint); }

.menu-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.to-top {
  position: fixed;
  inset-inline-end: 18px;
  inset-block-end: 84px;
  z-index: 50;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-800);
  color: var(--cream-50);
  border: 0; border-radius: 50%;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

/* ------------------------------------------------ ۰۹. گالری و لایت‌باکس */
.gallery-grid {
  column-count: 3;
  column-gap: 14px;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-200);
  cursor: zoom-in;
  padding: 0; border: 0;
  width: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: attr(data-caption);
  position: absolute; z-index: 2; inset-inline: 0; inset-block-end: 0;
  padding: 42px 14px 12px;
  color: #fff; text-align: start; font: 600 .78rem/1.7 'Vazirmatn', sans-serif;
  background: linear-gradient(to top, rgba(8, 31, 22, .78), transparent);
  opacity: 0; transform: translateY(5px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 26, 19, .94);
  padding: 60px 16px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-caption {
  position: absolute;
  inset-block-end: 20px;
  inset-inline: 0;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: .87rem;
  padding-inline: 20px;
  margin: 0;
  pointer-events: none;
}
.lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem; line-height: 1;
  transition: background-color .2s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { inset-block-start: 16px; inset-inline-end: 16px; }
.lb-prev  { inset-inline-end: 16px; inset-block-start: 50%; transform: translateY(-50%); }
.lb-next  { inset-inline-start: 16px; inset-block-start: 50%; transform: translateY(-50%); }

/* ------------------------------------------------ ۱۰. درباره / تماس */
.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-top: 1.6em; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
.contact-list { border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-row dt {
  flex: 0 0 96px;
  font-size: .88rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.contact-row dd { margin: 0; font-weight: 500; }
.contact-row dd a:hover { color: var(--green-700); text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-fallback {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--cream-100);
}

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding-block: 4px;
}
.faq summary {
  cursor: pointer;
  padding-block: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--gold-text);
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-soft); padding-bottom: 12px; margin: 0; font-size: .95rem; }

/* ------------------------------------------------ ۱۱. فوتر */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.76);
  padding-block: clamp(44px, 6vw, 66px) 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 34px;
  padding-bottom: 34px;
}
.site-footer .footer-title { color: #fff; font-size: .98rem; margin-bottom: .9em; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer-brand strong { color: #fff; font-size: 1.08rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
}
.footer-social a:hover { background: rgba(255,255,255,.12); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 18px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
}
.footer-credit {
  color: rgba(255,255,255,.48);
  font-size: .76rem;
}
.footer-credit:hover { color: rgba(255,255,255,.82); }

/* ------------------------------------------------ ۱۲. صفحه ۴۰۴ */
.error-page {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
}
.error-code {
  font-size: clamp(3.4rem, 12vw, 6rem);
  font-weight: 700;
  color: var(--cream-300);
  line-height: 1;
  margin-bottom: .1em;
}

/* ------------------------------------------------ ۱۳. دسترس‌پذیری */
.skip-link {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 50%;
  transform: translate(50%, -160%);
  z-index: 200;
  background: var(--green-800);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(50%, 0); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ظهور ملایم هنگام اسکرول */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------ واکنش‌گرایی */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-bar { display: block; }
  body { padding-bottom: 58px; }
  .site-footer { padding-bottom: 58px; }

  .split { grid-template-columns: 1fr; }
  .split .frame { order: -1; }
  .info-grid { grid-template-columns: 1fr; gap: 20px; }
  .menu-list { grid-template-columns: 1fr; gap: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .story-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 310px 230px 230px; }
  .story-card--lead { grid-column: span 2; grid-row: span 1; }
  .to-top { inset-block-end: 74px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; line-height: 1.8; }
  .wrap { padding-inline: 17px; }
  .hero { min-height: min(88svh, 660px); }
  .hero h1 { max-width: 13ch; }
  .story-grid { grid-template-rows: 250px 190px 190px; gap: 9px; }
  .story-card > span { inset-inline: 13px; inset-block-end: 11px; }
  .story-card strong { font-size: .9rem; }
  .gallery-item::after { opacity: 1; transform: none; font-size: .7rem; padding: 32px 10px 9px; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-row { flex-direction: column; gap: 3px; }
  .contact-row dt { flex: none; }
  .lightbox { padding: 56px 12px 116px; }
  .lb-prev, .lb-next { inset-block-start: auto; inset-block-end: 18px; transform: none; }
  .lb-prev { inset-inline-end: calc(50% + 8px); }
  .lb-next { inset-inline-start: calc(50% + 8px); }
  .lightbox-caption { inset-block-end: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-bar, .to-top, .site-footer, .menu-tools { display: none !important; }
  body { padding: 0; background: #fff; }
}
