/* ---------- برند: هلدینگ مواد مهندسی مکرر ---------- */
:root {
  --red: #c9243a;
  --red-dark: #a81d30;
  --charcoal: #333132;
  --grey: #58595b;
  --gold: #ceaf87;
  --silver: #a7a9ac;
  --white: #ffffff;
  --paper: #f4f4f4;
  --bs-font-sans-serif: 'anjoman';
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-color: var(--charcoal);
  --bs-body-line-height: 1.7;
}

@font-face {
    font-family: "anjoman";
    src: url("../fonts/AnjomanVariableGX.ttf") format("truetype");
}

@font-face {
    font-family: "ravi";
    src: url("../fonts/Ravi-Regular.ttf") format("truetype");
}

html { scrollbar-gutter: stable; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lb-open { overflow: hidden; }
body { font-family: var(--bs-font-sans-serif); color: var(--charcoal); background: var(--white); }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .gallery :focus-visible, .site-footer :focus-visible, .lb :focus-visible { outline-color: var(--gold); }

/* ---------- جای‌گذار تصاویر (هاشور مهندسی) ---------- */
.ph {
  box-sizing: border-box; display: flex; align-items: flex-end; padding: 12px;
  font-size: .8125rem; font-weight: 600; width: 100%; height: 100%;
  background-image: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 16px);
}
.tone-0 { background-color: #58595b; color: #fff; --line: rgba(255,255,255,.10); }
.tone-1 { background-color: #333132; color: #fff; --line: rgba(255,255,255,.08); }
.tone-2 { background-color: #a7a9ac; color: #333132; --line: rgba(51,49,50,.14); }
.tone-3 { background-color: #ceaf87; color: #333132; --line: rgba(51,49,50,.14); }
.tone-4 { background-color: #c9243a; color: #fff; --line: rgba(255,255,255,.16); }
.ph.center { align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 700; }
.media-img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* تصاویر داخل قاب‌های نسبت‌دار: پر کردن قاب بدون وابستگی به درصد ارتفاع */
.ev-cover > .media-img, .ev-cover > .ph,
.photo > .media-img, .photo > .ph,
.thumb > .media-img, .thumb > .ph { position: absolute; inset: 0; }

/* ---------- دکمه‌ها ---------- */
.btn-brand {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 2rem;
  background: var(--red); color: #fff; border: 0; border-radius: 0; font-weight: 700; font-size: 1rem; margin-top: 2.25rem;
  transition: transform .2s ease, background-color .2s ease;
}
.btn-brand:hover, .btn-brand:focus { background: var(--red-dark); color: #fff; }
.btn-outline-brand {
  min-height: 48px; padding: 0 1.75rem; border: 2px solid var(--charcoal); border-radius: 0;
  background: transparent; color: var(--charcoal); font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.round-btn, .square-btn {
  display: flex; align-items: center; justify-content: center; padding: 0; border: 0;
  background: #fff; color: var(--charcoal); cursor: pointer; transition: transform .2s ease;
}
.round-btn { width: 48px; height: 48px; border-radius: 50%; }
.square-btn { width: 44px; height: 44px; background: var(--charcoal); color: #fff; }
.square-btn-light { width: 44px; height: 44px; background: #fff; color: var(--charcoal); }
@media (hover: hover) {
  .btn-brand:hover, .btn-outline-brand:hover, .round-btn:hover, .square-btn:hover { transform: translateY(-2px); }
}

/* ---------- منوی بالای صفحه (دسکتاپ افقی، موبایل همبرگری) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.site-logo { display: block; flex: none; }
.site-logo img { display: block; height: 64px; width: auto; transition: height .3s ease; }

/* بعد از کمی اسکرول: زمینه‌ی تیره + لوگوی کوچک‌تر */
.site-header.scrolled, .site-header.is-open { background: var(--charcoal); }
.site-header.scrolled { box-shadow: 0 3px 0 var(--red); }
.site-header.scrolled .site-bar { padding-block: 8px; }
.site-header.scrolled .site-logo img { height: 48px; }

/* دکمه‌ی همبرگری (موبایل و تبلت) */
.nav-toggle {
  flex: none; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.nav-bars { position: relative; display: block; width: 26px; height: 18px; }
.nav-bars span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-bars span:nth-child(1) { top: 0; }
.nav-bars span:nth-child(2) { top: 8px; }
.nav-bars span:nth-child(3) { top: 16px; }
.site-header.is-open .nav-bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.site-header.is-open .nav-bars span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* موبایل و تبلت: منو به‌صورت پنل زیر نوار باز می‌شود */
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--charcoal); border-top: 3px solid var(--red);
  max-height: calc(100vh - 80px); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-list { list-style: none; margin: 0; padding: 4px 0 8px; }
.nav-list a {
  display: flex; align-items: center; min-height: 54px; padding: 8px clamp(16px, 4vw, 32px); color: #fff;
  font-size: 1.0625rem; font-weight: 700; border-inline-start: 4px solid transparent;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-list li:last-child a { border-bottom: 0; }
.nav-list a:hover, .nav-list a:focus-visible { background: rgba(255,255,255,.07); border-inline-start-color: var(--red); }

@media (min-width: 992px) {
  .site-logo img { height: 88px; }
  .site-header.scrolled .site-logo img { height: 52px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; max-height: none; overflow: visible; background: none; border: 0;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav-list { display: flex; align-items: center; gap: clamp(22px, 3vw, 40px); padding: 0; }
  .nav-list a {
    position: relative; min-height: 0; padding: 10px 0; font-size: 1rem; border: 0;
  }
  .nav-list li:last-child a { border: 0; }
  .nav-list a:hover, .nav-list a:focus-visible { background: none; }
  .nav-list a::after {
    content: ""; position: absolute; right: 0; left: 0; bottom: 2px; height: 3px; background: var(--red);
    transform: scaleX(0); transform-origin: right center; transition: transform .25s ease;
  }
  .nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); }
}

/* ---------- هدر و هیرو ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--charcoal);
  min-height: clamp(440px, 76vh, 860px); display: flex; flex-direction: column;
}
@media (min-width: 768px) { .hero { min-height: clamp(540px, 84vh, 840px); } }
.hero-media {
  position: absolute; inset: 0; overflow: hidden; background-color: var(--charcoal);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 16px);
}
.hero-media-note { position: absolute; left: 24px; bottom: 24px; font-size: .8125rem; font-weight: 600; color: var(--silver); }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 70% 50%; animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* لایه‌ی تیره برای خوانایی متن */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(51,49,50,.75) 0, rgba(51,49,50,0) 26%),
    linear-gradient(to left, rgba(51,49,50,.94) 0, rgba(51,49,50,.82) 34%, rgba(51,49,50,.28) 72%, rgba(51,49,50,.12) 100%);
}
.hero-content {
  position: relative; z-index: 2; flex: 1; display: flex; align-items: center;
  padding-block: clamp(6.5rem, 14vw, 9.5rem) clamp(2.5rem, 6vw, 5rem);
}
.hero-copy { max-width: 640px; }
.hero-title { font-size: clamp(2.125rem, 6vw, 5rem); font-weight: 900; line-height: 1.25; margin: 0; }
.hero-lead { margin: 1.25rem 0 0; max-width: 30em; font-size: clamp(1rem, 2.4vw, 1.1875rem); line-height: 1.9; color: #e6e6e7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-actions .btn-brand { margin-top: 0; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 2rem;
  border: 2px solid #fff; color: #fff; font-weight: 700; font-size: 1rem;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn-ghost:hover, .btn-ghost:focus { background: #fff; color: var(--charcoal); }
@media (hover: hover) { .btn-ghost:hover { transform: translateY(-2px); } }
@media (max-width: 575.98px) { .hero-actions .btn, .hero-actions .btn-ghost { flex: 1 1 100%; } }

@media (max-width: 991.98px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(51,49,50,.75) 0, rgba(51,49,50,0) 22%),
      linear-gradient(0deg, rgba(51,49,50,.95) 0, rgba(51,49,50,.78) 55%, rgba(51,49,50,.35) 100%);
  }
  .hero-content { align-items: flex-end; }
}
.hero-bar { position: relative; z-index: 2; height: 8px; background: var(--red); transform-origin: right center; animation: wipe .9s cubic-bezier(.2,.7,.2,1) .1s both; }

/* ---------- بخش رویدادها ---------- */
.section-reports { background: var(--paper); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-title { margin: 0; font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.4; }
.section-lead { margin-top: .5rem; max-width: 36em; font-size: 1.0625rem; color: var(--grey); }
.event-total { font-size: .9375rem; font-weight: 700; color: var(--grey); }
@media (max-width: 575.98px) { .section-lead { font-size: .9375rem; } }

/* کارت رویداد: فقط تصویر؛ متن روی تصویر */
.ev-card {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; background: #fff; color: var(--charcoal);
  border: 2px solid transparent; font-family: inherit; text-align: right; cursor: pointer; overflow: hidden;
}
.ev-cover { position: relative; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: var(--charcoal); }
.ev-cover > .ph, .ev-cover > .media-img { transition: transform .5s ease; }
.ev-badge {
  display: none !important; position: absolute; top: 10px; right: 10px; z-index: 2; padding: 2px 12px;
  background: var(--red); color: #fff; font-size: .8125rem; font-weight: 700;
}

/* پایه (تبلت و لمسی): متن همیشه دیده می‌شود، کوتاه و جمع‌وجور */
.ev-over {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px 14px 12px;
  background: linear-gradient(0deg, rgba(51,49,50,.92) 0, rgba(51,49,50,.55) 38%, rgba(51,49,50,0) 70%);
}
.ev-info { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ev-line { display: block; width: 44px; height: 3px; background: var(--red); }
.ev-title {
  margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.5; color: #fff;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .8125rem; }
.ev-date { color: var(--gold); font-weight: 600; }
.ev-count { background: var(--red); color: #fff; font-weight: 700; padding: 0 10px; line-height: 1.7; }

/* دسکتاپ (ماوس): متن همیشه روی تصویر دیده می‌شود؛ با هاور کمی پررنگ‌تر می‌شود */
@media (hover: hover) and (pointer: fine) {
  .ev-over {
    padding: 20px 18px 18px; transition: background .35s ease;
    background: linear-gradient(0deg, rgba(51,49,50,.94) 0, rgba(51,49,50,.62) 42%, rgba(51,49,50,0) 74%);
  }
  .ev-line { transition: width .35s ease; }
  .ev-title { font-size: 1.1875rem; -webkit-line-clamp: 3; }
  .ev-meta { font-size: .875rem; }
  .ev-card:hover .ev-over, .ev-card:focus-visible .ev-over {
    background: linear-gradient(0deg, rgba(51,49,50,.96) 0, rgba(51,49,50,.78) 55%, rgba(51,49,50,.35) 100%);
  }
  .ev-card:hover .ev-line, .ev-card:focus-visible .ev-line { width: 72px; }
  .ev-card:hover .ev-cover > .ph, .ev-card:hover .ev-cover > .media-img { transform: scale(1.07); }
}

/* موبایل: فهرست جمع‌وجور (تصویر کوچک + عنوان)؛ بدون متن روی عکس و بدون شلوغی */
@media (max-width: 575.98px) {
  .ev-card { display: flex; align-items: stretch; }
  .ev-cover { flex: none; width: 112px; }
  .ev-over {
    position: static; flex: 1; min-width: 0; display: flex; align-items: center; padding: 10px 14px;
    background: none; opacity: 1;
  }
  .ev-info { gap: 4px; transform: none; }
  .ev-line { display: none; }
  .ev-title { color: var(--charcoal); font-size: .9375rem; -webkit-line-clamp: 2; }
  .ev-meta { font-size: .8125rem; }
  .ev-date { color: var(--grey); }
  .ev-count { background: none; color: var(--red); padding: 0; }
  .ev-badge { display: none !important; }
}

/* ---------- صفحه‌ی هر رویداد ---------- */
.section-event { background: var(--paper); padding: 92px 0 clamp(2rem, 5vw, 4rem); min-height: 70vh; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; color: var(--charcoal);
  font-weight: 700; font-size: 1rem;
}
.back-link:hover, .back-link:focus-visible { color: var(--red); }
.section-event .gallery { margin-top: .5rem; scroll-margin-top: 0; }
/* در صفحه‌ی رویداد هیرو نیست؛ نوار بالا همیشه تیره و کوچک است */
.view-event .site-header { background: var(--charcoal); box-shadow: 0 3px 0 var(--red); }
.view-event .site-bar { padding-block: 8px; }
.view-event .site-logo img { height: 48px; }
@media (min-width: 992px) { .view-event .site-logo img { height: 52px; } .section-event { padding-top: 104px; } }

/* ---------- گالری رویداد انتخاب‌شده ---------- */
.gallery {
  margin-top: 2rem; scroll-margin-top: 84px; background: var(--charcoal); color: #fff;
  border-top: 6px solid var(--red); padding: 18px 14px 16px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 768px) { .gallery { margin-top: 2.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); gap: 1.5rem; } }
.gallery-head { display: flex; flex-direction: column; gap: .5rem; }
.gallery-title { margin: 0; font-size: clamp(1.375rem, 3.4vw, 2.125rem); font-weight: 900; line-height: 1.4; }
.gallery-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: .9375rem; font-weight: 500; color: var(--gold); }
.gallery-summary { margin: 0; max-width: 44em; font-size: .9375rem; line-height: 1.9; color: #e6e6e7; }
@media (min-width: 768px) { .gallery-summary { font-size: 1rem; line-height: 1.95; } }

/* شبکه‌ی تصاویر: یک تصویر شاخص + چند تصویر کوچک؛ باقی تصاویر پشت «+N» در نمایش تمام‌صفحه */
.photo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.photo {
  position: relative; display: block; padding: 0; border: 0; overflow: hidden; background: var(--grey);
  cursor: zoom-in; aspect-ratio: 1 / 1; grid-column: span 2;
}
.photo.is-feature { grid-column: span 6; aspect-ratio: 16 / 10; }
.photo-grid.n-1 .photo { aspect-ratio: 4 / 3; }
.photo-grid.n-2 .photo { grid-column: span 6; aspect-ratio: 16 / 10; }
.photo-grid.n-3 .photo { grid-column: span 3; aspect-ratio: 4 / 3; }
.photo-grid.n-3 .photo.is-feature { grid-column: span 6; aspect-ratio: 16 / 10; }
.photo-grid.n-5 .photo:nth-child(5) { display: none; }
.photo > .media-img { transition: transform .5s ease; }
.photo-more {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: rgba(51,49,50,.7); color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.2; pointer-events: none;
}
.photo-more-n { direction: ltr; unicode-bidi: isolate; }
.photo-more small { font-size: .75rem; font-weight: 600; color: var(--gold); }
.more-d { display: none; }

@media (min-width: 768px) {
  .photo-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
  .photo { grid-column: span 3; aspect-ratio: 4 / 3; }
  .photo.is-feature { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; }
  .photo-grid.n-1 .photo { grid-column: span 12; grid-row: auto; aspect-ratio: 16 / 8; }
  .photo-grid.n-2 .photo { grid-column: span 6; grid-row: auto; aspect-ratio: 4 / 3; }
  .photo-grid.n-3 .photo { grid-column: span 6; aspect-ratio: 4 / 3; }
  .photo-grid.n-3 .photo.is-feature, .photo-grid.n-4 .photo.is-feature { grid-column: span 12; grid-row: auto; aspect-ratio: 21 / 9; }
  .photo-grid.n-4 .photo { grid-column: span 4; aspect-ratio: 4 / 3; }
  .photo-grid.n-5 .photo:nth-child(5) { display: block; }
  .more-m { display: none; }
  .more-d { display: flex; }
  .photo-more { font-size: 1.875rem; }
  .photo-more small { font-size: .875rem; }
}
@media (hover: hover) and (pointer: fine) {
  .photo:hover > .media-img { transform: scale(1.05); }
}

/* تصاویر کوچک نوار پایین نمایش تمام‌صفحه */
.thumb {
  position: relative; aspect-ratio: 4 / 3; width: 100%; padding: 0; border: 0; overflow: hidden; background: transparent;
  cursor: pointer; outline: 3px solid transparent; outline-offset: 2px; transition: transform .2s ease;
}
.thumb[aria-current="true"] { outline-color: var(--gold); }
.thumb .ph { align-items: center; justify-content: center; padding: 0; font-size: .875rem; font-weight: 800; }
@media (hover: hover) { .thumb:hover { transform: translateY(-3px); } }

/* ---------- شبکه‌ی همه‌ی تصاویر رویداد ---------- */
.ga-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ga-item {
  position: relative; display: block; padding: 0; border: 0; overflow: hidden; background: var(--grey);
  aspect-ratio: 4 / 3; cursor: zoom-in;
}
.ga-item > .media-img, .ga-item > .ph { position: absolute; inset: 0; }
.ga-item > .media-img { transition: transform .4s ease; }
.ga-num {
  position: absolute; bottom: 6px; right: 6px; min-width: 24px; padding: 0 7px; background: rgba(51,49,50,.8);
  color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.8; text-align: center;
}
@media (min-width: 576px) { .ga-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 992px) { .ga-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (hover: hover) and (pointer: fine) { .ga-item:hover > .media-img { transform: scale(1.06); } }

/* ---------- نمایش تمام‌صفحه (زوم با دو انگشت، دابل‌تپ، کشیدن برای تصویر بعدی/بستن) ---------- */
.lb {
  position: fixed; inset: 0; z-index: 1055; background: #141314; color: #fff;
  touch-action: none; overscroll-behavior: contain;
}
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb.zoomed .lb-stage { cursor: grab; }
.lb-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}

@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }

/* نشانگر بارگذاری (فقط اگر تصویر دیر برسد) و پیام خطا (اگر فایل تصویر پیدا نشود) */
.lb.loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 3px solid rgba(255,255,255,.25); border-top-color: var(--gold); border-radius: 50%;
  animation: lbspin .8s linear infinite; pointer-events: none;
}
@keyframes lbspin { to { transform: rotate(360deg); } }
.lb-error {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; color: #e6e6e7; font-size: 1.0625rem;
}
.lb-error-path { direction: ltr; unicode-bidi: isolate; font-size: .8125rem; color: var(--silver); word-break: break-all; }

.lb-top, .lb-strip, .lb-nav { transition: opacity .25s ease; }
.lb-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(10px, 3vw, 20px) 28px; background: linear-gradient(180deg, rgba(20,19,20,.8), rgba(20,19,20,0));
  pointer-events: none;
}
.lb-top > * { pointer-events: auto; }
.lb-info { min-width: 0; }
.lb-title { font-size: 1rem; font-weight: 800; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-counter { font-size: .8125rem; color: var(--gold); }
.lb-nav { position: absolute; top: 50%; margin-top: -26px; z-index: 2; width: 52px; height: 52px; background: rgba(255,255,255,.9); }
.lb-prev { right: clamp(6px, 1.5vw, 20px); }
.lb-next { left: clamp(6px, 1.5vw, 20px); }
.lb-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 8px; overflow-x: auto; touch-action: pan-x;
  padding: 32px clamp(10px, 3vw, 20px) 12px; background: linear-gradient(0deg, rgba(20,19,20,.88), rgba(20,19,20,0));
  scrollbar-width: none;
}
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip .thumb { flex: none; width: 76px; }

/* با تک‌ضربه، منوها پنهان/ظاهر می‌شوند؛ هنگام زوم، نوار و فلش‌ها کنار می‌روند */
.lb.ui-hidden .lb-top, .lb.ui-hidden .lb-strip, .lb.ui-hidden .lb-nav,
.lb.zoomed .lb-strip, .lb.zoomed .lb-nav { opacity: 0; pointer-events: none; }
.lb.ui-hidden .lb-top > * { pointer-events: none; }

/* روی گوشی لمسی، کشیدن انگشت جایگزین فلش‌هاست */
@media (hover: none), (pointer: coarse) { .lb-nav { display: none; } }
/* گوشی در حالت افقی: بیشترین فضا به تصویر برسد */
@media (max-height: 480px) {
  .lb-strip { display: none; }
  .lb-top { padding: 6px 12px 18px; }
  .lb-title { font-size: .875rem; }
}

/* ---------- فوتر ---------- */
.site-footer { background: var(--charcoal); border-top: 8px solid var(--red); }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; font-size: .9375rem; color: #e6e6e7; }
.footer-title { font-size: 1rem; font-weight: 700; color: var(--gold); }
.footer-top { margin-top: .5rem; font-weight: 700; color: #fff; }
.footer-copy { font-size: .8125rem; color: var(--silver); }

/* ---------- افکت‌ها (سبک، فقط transform و opacity) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.site-header { animation: drop .6s ease both; }
.anim-rise { animation: rise .7s ease both; }

/* ظاهر شدن کارت‌ها هنگام رسیدن به صفحه (فقط وقتی جاوااسکریپت فعال است) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
