/* ===================================================
   ABARSAZAN — ابرسازان
   ui.css — لایهٔ ظاهری نسخهٔ ۲
   ---------------------------------------------------
   این فایل *بعد از* style.css لود می‌شود و فقط ظاهر را
   ارتقا می‌دهد؛ هیچ ساختار یا منطقی از بک‌اند تغییر نمی‌کند.

   فهرست:
     ۰۱ — توکن‌ها
     ۰۲ — پایه و دسترسی‌پذیری
     ۰۳ — هدر شیشه‌ای
     ۰۴ — منوی دسکتاپ + مگا-دراپ‌داون
     ۰۵ — همبرگر
     ۰۶ — دراور موبایل
     ۰۷ — فوتر
     ۰۸ — دکمه بازگشت به بالا
     ۰۹ — گالری فلیپ ۳بعدی
     ۱۰ — لایت‌باکس پیشرفته
     ۱۱ — ریزکاری کارت‌ها و دکمه‌ها
     ۱۲ — ریسپانسیو
     ۱۳ — کاهش انیمیشن (a11y)
   =================================================== */

/* ═══ ۰۱ — توکن‌ها ═══════════════════════════════ */
:root {
  --ui-glass:        rgba(11, 11, 12, 0.62);
  --ui-glass-solid:  rgba(11, 11, 12, 0.92);
  --ui-line:         rgba(255, 255, 255, 0.08);
  --ui-line-gold:    rgba(201, 162, 39, 0.28);
  --ui-gold-soft:    rgba(201, 162, 39, 0.10);
  --ui-shadow-sm:    0 2px 10px rgba(0, 0, 0, 0.28);
  --ui-shadow-md:    0 18px 44px rgba(0, 0, 0, 0.45);
  --ui-shadow-lg:    0 30px 80px rgba(0, 0, 0, 0.60);
  --ui-ease:         cubic-bezier(0.22, 1, 0.36, 1);   /* easeOutQuint — نرم و لوکس */
  --ui-ease-back:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ui-radius:       16px;
  --header-h:        76px;
}

/* ═══ ۰۲ — پایه و دسترسی‌پذیری ══════════════════ */
html { scroll-behavior: smooth; }

::selection {
  background: rgba(201, 162, 39, 0.30);
  color: #fff;
}

/* اسکرول‌بار ظریف */
* { scrollbar-width: thin; scrollbar-color: rgba(201,162,39,0.45) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 39, 0.35);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 39, 0.6); background-clip: content-box; }

/* حلقهٔ فوکوس یکدست برای کیبورد */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* لینک پرش به محتوا — فقط با Tab دیده می‌شود */
.skip-link {
  position: fixed;
  top: -100px;
  right: 16px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--gold);
  color: #0d0d0d;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  transition: top 0.25s var(--ui-ease);
}
.skip-link:focus { top: 0; }

/* ═══ ۰۳ — هدر شیشه‌ای ═══════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* !important لازم است چون main.js پس‌زمینه را اینلاین ست می‌کرد */
  background: var(--ui-glass) !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-bottom: none;
  transition: height 0.35s var(--ui-ease),
              background 0.35s var(--ui-ease),
              box-shadow 0.35s var(--ui-ease);
}

/* خط مویی طلایی زیر هدر (به‌جای بوردر تخت) */
.header-hairline {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 162, 39, 0.05) 15%,
    rgba(201, 162, 39, 0.55) 50%,
    rgba(201, 162, 39, 0.05) 85%,
    transparent 100%
  );
  pointer-events: none;
}

/* حالت اسکرول‌شده — توسط ui.js اعمال می‌شود */
.site-header.is-scrolled {
  height: 66px;
  background: var(--ui-glass-solid) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.site-header.is-scrolled .logo-tagline {
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
}
.site-header.is-scrolled .logo-icon { width: 40px; height: 40px; }

.header-inner { gap: 18px; }

.logo-icon {
  transition: width 0.35s var(--ui-ease), height 0.35s var(--ui-ease), transform 0.35s var(--ui-ease);
}
.logo:hover .logo-icon { transform: scale(1.06) rotate(-3deg); }

.logo-name { letter-spacing: -0.2px; }

.logo-tagline {
  overflow: hidden;
  max-height: 20px;
  transition: opacity 0.3s var(--ui-ease), max-height 0.35s var(--ui-ease), transform 0.35s var(--ui-ease);
}

/* شماره تماس هدر → لینک قابل کلیک */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--ui-line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.25s var(--ui-ease), border-color 0.25s var(--ui-ease), background 0.25s var(--ui-ease);
}
.header-phone i { color: var(--gold); font-size: 0.8rem; }
.header-phone:hover {
  color: var(--gold-light);
  border-color: var(--ui-line-gold);
  background: var(--ui-gold-soft);
}

/* ═══ ۰۴ — منوی دسکتاپ + مگا-دراپ‌داون ══════════ */
.main-nav { gap: 2px; }

.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent !important;   /* بک‌گراند طلایی قبلی حذف شد */
  border: none !important;
  border-radius: 10px;
  transition: color 0.28s var(--ui-ease);
}

/* زیرخط متحرک — از وسط باز می‌شود */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.38s var(--ui-ease);
}
.nav-link:hover,
.nav-item:hover > .nav-link { color: #fff; }
.nav-link:hover::after,
.nav-item:hover > .nav-link::after { transform: scaleX(1); }

.nav-link.active { color: var(--gold-light); }
.nav-link.active::after { transform: scaleX(1); }

/* نقطهٔ طلایی کنار آیتم فعال */
.nav-link.active::before {
  content: '';
  position: absolute;
  top: 2px;
  right: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.9);
  transform: translateX(50%);
}

.nav-link .fa-chevron-down { font-size: 0.62rem; opacity: 0.7; }

/* مگا-دراپ‌داون */
.dropdown-menu.mega-menu {
  top: calc(100% + 14px);
  right: 50%;
  transform: translate(50%, 10px) scale(0.98);
  min-width: 330px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(24, 24, 26, 0.98), rgba(15, 15, 16, 0.98));
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--ui-line-gold);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-md);
  transition: opacity 0.3s var(--ui-ease), transform 0.36s var(--ui-ease), visibility 0.3s;
}
.nav-item:hover .dropdown-menu.mega-menu,
.nav-item.is-open .dropdown-menu.mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(50%, 0) scale(1);
}

/* پل نامرئی تا موس بین لینک و منو نپرد */
.nav-item.has-mega::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 16px;
}

.mega-title {
  display: block;
  padding: 2px 10px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ui-line);
  margin-bottom: 8px;
}

.mega-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  color: var(--text-primary);
  transition: background 0.25s var(--ui-ease), transform 0.25s var(--ui-ease);
}
.mega-menu a:hover {
  background: var(--ui-gold-soft);
  padding-right: 10px;      /* خنثی‌سازی پرش افقی نسخهٔ قبل */
  transform: translateX(-4px);
}

.mega-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(201,162,39,0.18), rgba(201,162,39,0.04));
  border: 1px solid var(--ui-line-gold);
  color: var(--gold-light);
  font-size: 0.95rem;
  transition: transform 0.35s var(--ui-ease-back);
}
.mega-menu a:hover .mega-ico { transform: scale(1.08) rotate(-4deg); }

.mega-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-body strong { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.mega-body small { font-size: 0.74rem; color: var(--text-dark); }
.mega-menu a:hover .mega-body strong { color: var(--gold-light); }

.mega-all {
  justify-content: center;
  margin-top: 6px;
  padding: 11px !important;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light) !important;
  background: var(--ui-gold-soft);
  border: 1px dashed var(--ui-line-gold);
}
.mega-all:hover { background: rgba(201, 162, 39, 0.16); transform: none; }
.mega-all i { font-size: 0.75rem; }

/* ═══ ۰۵ — همبرگر ════════════════════════════════ */
.hamburger {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s var(--ui-ease), background 0.25s var(--ui-ease);
}
.hamburger:hover { border-color: var(--ui-line-gold); background: var(--ui-gold-soft); }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: transform 0.35s var(--ui-ease), opacity 0.2s linear, width 0.35s var(--ui-ease);
}
.hamburger span:nth-child(2) { width: 14px; align-self: flex-end; margin-inline-end: 12px; }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 20px; }

/* ═══ ۰۶ — دراور موبایل ═════════════════════════ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ui-ease);
}
.nav-backdrop.show { opacity: 1; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 1400;
  width: min(340px, 86vw);
  max-height: 100dvh;
  display: flex !important;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(180deg, #131314 0%, #0b0b0c 100%);
  border-left: 1px solid var(--ui-line-gold);
  border-top: none;
  box-shadow: var(--ui-shadow-lg);
  transform: translateX(105%);
  visibility: hidden;
  opacity: 1;
  overflow: hidden;
  transition: transform 0.42s var(--ui-ease), visibility 0.42s;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ui-line);
  flex-shrink: 0;
}
.mobile-nav-head .logo-icon { width: 40px; height: 40px; }
.mobile-nav-brand { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.mobile-nav-brand strong { font-size: 1rem; color: var(--text-primary); }
.mobile-nav-brand small { font-size: 0.68rem; color: var(--gold); }

.mobile-nav-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ui-ease);
}
.mobile-nav-close:hover { color: var(--gold-light); border-color: var(--ui-line-gold); transform: rotate(90deg); }

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  -webkit-overflow-scrolling: touch;
}

/* آیتم‌های سطح اول */
.mobile-nav-body > a,
.m-group-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: right;
  cursor: pointer;
  transition: all 0.25s var(--ui-ease);
}
.mobile-nav-body > a i,
.m-group-toggle i { color: var(--gold); font-size: 0.9rem; width: 18px; text-align: center; }

.mobile-nav-body > a:hover,
.mobile-nav-body > a.active,
.m-group-toggle:hover {
  color: var(--gold-light);
  background: var(--ui-gold-soft);
  border-color: var(--ui-line-gold);
}
.mobile-nav-body > a.active { border-right: 3px solid var(--gold); }

.m-group-toggle { justify-content: space-between; }
.m-group-toggle > span { display: flex; align-items: center; gap: 12px; }
.m-caret { transition: transform 0.35s var(--ui-ease); font-size: 0.72rem !important; }
.m-group.open .m-caret { transform: rotate(180deg); }

/* زیرمنوی آکاردئونی */
.mobile-nav .sub-links {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0 8px;
  border-right: 1px solid var(--ui-line-gold);
  transition: max-height 0.4s var(--ui-ease), opacity 0.3s var(--ui-ease), margin 0.3s var(--ui-ease);
  opacity: 0;
}
.m-group.open .sub-links {
  max-height: 320px;
  opacity: 1;
  margin: 4px 8px 10px;
}
.mobile-nav .sub-links a {
  display: block;
  padding: 10px 18px;
  font-size: 0.86rem;
  color: var(--text-dark);
  border: none;
  transition: color 0.22s var(--ui-ease), transform 0.22s var(--ui-ease);
}
.mobile-nav .sub-links a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 9px;
  border-radius: 50%;
  background: var(--ui-line-gold);
  vertical-align: middle;
  transition: background 0.22s var(--ui-ease);
}
.mobile-nav .sub-links a:hover { color: var(--gold-light); transform: translateX(-4px); }
.mobile-nav .sub-links a:hover::before { background: var(--gold); }

.mobile-nav-foot {
  flex-shrink: 0;
  padding: 16px 20px 22px;
  border-top: 1px solid var(--ui-line);
  background: rgba(0, 0, 0, 0.25);
}

/* سازگاری: style.css قانون کلی `.mobile-nav a` دارد (display:block،
   padding عمودی و border-bottom) که ظاهر دکمه و آیکون‌ها را خراب
   می‌کند. اینجا فقط برای این عناصر خنثی می‌شود. */
.mobile-nav .btn,
.mobile-nav .social-icon,
.mobile-nav .mobile-nav-phone {
  border-bottom: none;
}
.mobile-nav .btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
}
.mobile-nav .social-icon {
  display: grid;
  padding: 0;
}
.mobile-nav .mobile-nav-phone { padding: 10px 0 0; }
.mobile-nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}
.mobile-nav-phone i { color: var(--gold); }
.mobile-nav-foot .social-icons { justify-content: center; margin-top: 14px; }

/* ═══ ۰۷ — فوتر ══════════════════════════════════ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #101011 0%, #08080a 100%);
  border-top: none;
}
.footer-topline {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.5), transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 36px;
  padding: 62px 0 44px;
}

.footer-col h4 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-col h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ui-ease);
}
.footer-col:hover h4::after { width: 46px; }

.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 0.86rem;
  color: var(--text-dark);
  transition: color 0.25s var(--ui-ease), transform 0.25s var(--ui-ease);
}
.footer-links a:hover { color: var(--gold-light); transform: translateX(-5px); }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { display: block; font-size: 1.05rem; color: var(--text-primary); }
.footer-brand span { display: block; font-size: 0.7rem; color: var(--gold); }
.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: 18px;
  max-width: 340px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 0.84rem;
  color: var(--text-dark);
  transition: color 0.25s var(--ui-ease);
}
.footer-contact-item i {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ui-gold-soft);
  border: 1px solid var(--ui-line-gold);
  color: var(--gold);
  font-size: 0.75rem;
}
a.footer-contact-item:hover { color: var(--gold-light); }

.social-icons { display: flex; gap: 10px; }
.social-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ui-line);
  color: var(--text-muted);
  transition: all 0.3s var(--ui-ease);
}
.social-icon:hover {
  color: #0d0d0d;
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--ui-line);
  font-size: 0.8rem;
  color: var(--text-dark);
}
.footer-credit a { color: var(--gold); }
.footer-credit a:hover { color: var(--gold-light); text-decoration: underline; }

/* ═══ ۰۸ — دکمه بازگشت به بالا ══════════════════ */
.to-top {
  position: fixed;
  bottom: 26px;
  /* سمت چپ، چون ویجت چت با inset-inline-start در RTL سمت راست می‌نشیند */
  left: 26px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line-gold);
  border-radius: 14px;
  background: rgba(15, 15, 16, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--gold-light);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: all 0.35s var(--ui-ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--gold); color: #0d0d0d; box-shadow: 0 10px 26px rgba(201,162,39,0.35); }

/* ═══ ۰۹ — گالری فلیپ ۳بعدی ═════════════════════ */
.gallery-flip { display: flex; flex-direction: column; gap: 14px; }

/* صحنه — perspective باعث عمق واقعی چرخش می‌شود */
.flip-stage {
  position: relative;
  width: 100%;
  height: 460px;
  perspective: 1600px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  border-radius: var(--ui-radius);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s var(--ui-ease);
  border-radius: var(--ui-radius);
}
.flip-stage.flipped .flip-inner { transform: rotateY(180deg); }

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--ui-radius);
  overflow: hidden;
  border: 1px solid var(--ui-line-gold);
}

/* ── روی کارت: تصویر ── */
.flip-front { background: #0f0f10; }
.flip-front .gallery-main-img,
.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  display: block;
  transition: transform 0.9s var(--ui-ease), opacity 0.3s ease;
}
.flip-stage:hover .flip-front img { transform: scale(1.045); }

/* هالهٔ گرادیانی پایین تصویر */
.flip-front::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
  pointer-events: none;
}

.flip-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ui-line-gold);
  border-radius: 99px;
  pointer-events: none;
  transition: all 0.35s var(--ui-ease);
}
.flip-stage:hover .flip-hint {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
}
/* آیکون فقط هنگام hover می‌چرخد — همان لحظه‌ای که کاربر
   می‌خواهد بداند کلیک چه می‌کند. چرخش دائمی حرکت بی‌دلیل بود. */
.flip-hint i { transition: transform 0.6s var(--ui-ease); }
.flip-stage:hover .flip-hint i { transform: rotate(180deg); }

/* دکمهٔ بزرگ‌نمایی (لایت‌باکس) */
.flip-zoom {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(10, 10, 11, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ui-line-gold);
  color: var(--gold-light);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s var(--ui-ease);
}
.flip-stage:hover .flip-zoom,
.flip-zoom:focus-visible { opacity: 1; transform: translateY(0); }
.flip-zoom:hover { background: var(--gold); color: #0d0d0d; }

/* شمارندهٔ تصاویر */
.flip-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 6px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(10, 10, 11, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ui-line);
  border-radius: 99px;
  letter-spacing: 1px;
}

/* ── پشت کارت: توضیحات ── */
.flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 38px 34px;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(201,162,39,0.13), transparent 60%),
    linear-gradient(160deg, #16161a 0%, #0c0c0d 100%);
}
/* بافت ظریف شبکه‌ای */
.flip-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.flip-back > * { position: relative; z-index: 1; }

.flip-back-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--gold-light);
  background: var(--ui-gold-soft);
  border: 1px solid var(--ui-line-gold);
  border-radius: 99px;
}
.flip-back h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.6;
}
.flip-back-text {
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--text-muted);
  /* بریدن تمیز متن در ۷ خط */
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.flip-back-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.flip-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 0.76rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ui-line);
  border-radius: 10px;
}
.flip-chip i { color: var(--gold); font-size: 0.72rem; }

.flip-back-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
}
.flip-back-cta i { transition: transform 0.4s var(--ui-ease); }
.flip-stage:hover .flip-back-cta i { transform: rotate(-180deg); }

/* ── بندانگشتی‌ها ── */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-thumb {
  position: relative;
  width: 88px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: #111;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.32s var(--ui-ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 0.9; transform: translateY(-3px); }
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25), 0 8px 20px rgba(0,0,0,0.4);
}

/* حالت خالی */
.gallery-main-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 460px;
  border: 1px dashed var(--ui-line-gold);
  border-radius: var(--ui-radius);
  color: var(--text-dark);
  font-size: 2.4rem;
  background: #101011;
}

/* ═══ ۱۰ — لایت‌باکس پیشرفته ════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 5, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ui-ease), visibility 0.35s;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 14px;
  border: 1px solid var(--ui-line-gold);
  box-shadow: var(--ui-shadow-lg);
  transform: scale(0.94);
  transition: transform 0.42s var(--ui-ease);
  will-change: transform;
}
.lightbox-overlay.open .lightbox-img { transform: scale(1); }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line-gold);
  border-radius: 14px;
  background: rgba(20, 20, 22, 0.8);
  color: var(--gold-light);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.28s var(--ui-ease);
}
.lightbox-close { top: 22px; left: 22px; }
.lightbox-prev { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--gold); color: #0d0d0d; }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

/* نوار ابزار چرخش/زوم */
.lightbox-tools {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(20, 20, 22, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--ui-line-gold);
  border-radius: 16px;
}
.lightbox-tool {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ui-ease);
}
.lightbox-tool:hover { background: var(--ui-gold-soft); color: var(--gold-light); }
.lightbox-caption {
  position: absolute;
  top: 24px;
  right: 50%;
  transform: translateX(50%);
  max-width: 70vw;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(20, 20, 22, 0.8);
  border: 1px solid var(--ui-line);
  border-radius: 99px;
  text-align: center;
}

/* ═══ ۱۱ — ریزکاری کارت‌ها و دکمه‌ها ════════════ */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.1px;
  transition: transform 0.28s var(--ui-ease), box-shadow 0.28s var(--ui-ease),
              background 0.28s var(--ui-ease), color 0.28s var(--ui-ease);
}
/* براقی متحرک روی دکمهٔ طلایی */
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  right: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-20deg);
  transition: right 0.7s var(--ui-ease);
}
.btn-gold:hover::before { right: 130%; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,162,39,0.32); }
.btn-outline:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }

/* کارت‌های محصول/پروژه/بلاگ */
.product-card,
.project-card,
.blog-card {
  border-radius: var(--ui-radius);
  transition: transform 0.4s var(--ui-ease), border-color 0.4s var(--ui-ease), box-shadow 0.4s var(--ui-ease);
}
.product-card:hover,
.project-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--ui-line-gold);
  box-shadow: var(--ui-shadow-md);
}
.card-img-wrap,
.blog-card-img,
.project-card-img { overflow: hidden; }
.card-img-wrap img,
.blog-card-img img,
.project-card-img img { transition: transform 0.7s var(--ui-ease); }
.product-card:hover .card-img-wrap img,
.blog-card:hover .blog-card-img img,
.project-card:hover .project-card-img img { transform: scale(1.07); }

/* پیل دسته‌بندی */
.cat-pill {
  border-radius: 99px;
  letter-spacing: 0.2px;
}

/* کارت اطلاعات محصول */
.product-info-card,
.project-info-card {
  border-radius: var(--ui-radius);
  background: linear-gradient(165deg, rgba(26,26,29,0.95), rgba(16,16,17,0.95));
  box-shadow: var(--ui-shadow-sm);
}

/* بردکرامب */
.breadcrumb { font-size: 0.82rem; }
.breadcrumb a { transition: color 0.25s var(--ui-ease); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ═══ ۱۲ — ریسپانسیو ════════════════════════════ */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .nav-link { padding: 10px 10px; font-size: 0.86rem; }
  .footer-main { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none !important; }
  .hamburger { display: flex !important; }
  .header-inner { justify-content: space-between; }
  .logo-tagline { display: none; }
  .flip-stage, .gallery-main-empty { height: 380px; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 46px 0 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-actions .btn { padding: 8px 14px; font-size: 0.8rem; }
  .flip-back { padding: 26px 22px; }
  .flip-back-text { -webkit-line-clamp: 6; line-clamp: 6; }
  .to-top { bottom: 20px; left: 16px; width: 42px; height: 42px; }
  .lightbox-prev { right: 10px; }
  .lightbox-next { left: 10px; }
  .lightbox-close { top: 14px; left: 14px; }
}

@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .flip-stage, .gallery-main-empty { height: 300px; }
  .gallery-thumb { width: 68px; height: 54px; }
  .flip-hint { font-size: 0.72rem; padding: 7px 12px; }
}

/* ═══════════════════════════════════════════════════
   ۱۴ — HERO تمام‌صفحه (index.html)
   ---------------------------------------------------
   ساختار هر اسلاید:
     .hero-media   → فقط تصویر (زوم آرام Ken Burns)
     .hero-overlay → محوشدگی جهت‌دار برای خوانایی متن RTL
     .hero-grain   → بافت ظریف روی تصویر
     .container    → محتوا (بالاتر از همه)
   ═══════════════════════════════════════════════════ */
.hero-v2 {
  position: relative;
  height: 100svh;                 /* svh: نوار آدرس موبایل را حساب می‌کند */
  min-height: 620px;
  max-height: 940px;
  overflow: hidden;
  /* هدر sticky است و در جریان صفحه جا اشغال می‌کند؛ با مارجین منفی
     تصویر را زیر هدر می‌کشیم تا Hero واقعاً تمام‌صفحه شود */
  margin-top: calc(var(--header-h) * -1);
  background: #08080a;
}

.hero-v2 .hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  /* جبران ارتفاع هدر تا متن دقیقاً وسط ناحیهٔ قابل‌دیدن بنشیند */
  padding-top: var(--header-h);
  opacity: 0;
  visibility: hidden;
  background-image: none !important;   /* تصویر به .hero-media منتقل شد */
  transition: opacity 1s var(--ui-ease), visibility 1s;
  pointer-events: none;
}
.hero-v2 .hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* ── لایهٔ تصویر + زوم آرام ── */
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 1.2s var(--ui-ease);
}
/* اسلاید فعال ۹ ثانیه به‌آرامی زوم می‌شود؛ ۱۲٪ اضافه‌بار تصویر
   باعث می‌شود لبه‌ها هرگز خالی نشوند */
.hero-slide.active .hero-media {
  animation: heroKenBurns 9s linear forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to   { transform: scale(1.00) translate3d(-1.2%, -1%, 0); }
}

/* ── محوشدگی جهت‌دار ──
   متن سمت راست است، پس تیرگی از راست شروع می‌شود.
   لایهٔ دوم پایین تصویر را تیره می‌کند تا کارت‌های شیشه‌ای بنشینند. */
.hero-v2 .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg,
      rgba(6,6,8,0.94) 0%,
      rgba(6,6,8,0.86) 26%,
      rgba(6,6,8,0.52) 58%,
      rgba(6,6,8,0.28) 100%),
    linear-gradient(to top,
      rgba(6,6,8,0.95) 0%,
      rgba(6,6,8,0.30) 34%,
      transparent 58%);
}

/* بافت ظریف — از گرادیان تکرارشونده ساخته شده، بدون فایل تصویر */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg,   rgba(255,255,255,0.014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,0.014) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* ── محتوای اسلاید ── */
.hero-v2 .container { position: relative; z-index: 3; width: 100%; }

.hero-v2 .hero-content {
  max-width: 660px;
  /* فضای امن زیر متن تا دکمه‌ها هرگز با کارت‌های شیشه‌ای برخورد نکنند */
  padding-bottom: 232px;
}

.hero-v2 .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(201,162,39,0.10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ui-line-gold);
  border-radius: 99px;
  animation: none;
}
.hero-v2 .hero-tag i { font-size: 0.78rem; }

.hero-v2 .hero-title {
  font-size: clamp(2.2rem, 6.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.5px;
  margin-bottom: 0;
  animation: none;
}

/* هر خط داخل یک قاب با overflow پنهان است تا از پایین «بالا بیاید» */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;   /* جلوگیری از بریدن دنبالهٔ حروف فارسی */
}
.hero-line > span {
  display: block;
  transform: translateY(110%);
}
.hero-title .white-text {
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero-title .gold-hl {
  background: linear-gradient(100deg, #e8c657 0%, #c9a227 45%, #f2dd8f 70%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-light);   /* fallback مرورگرهای قدیمی */
}

/* خط طلایی زیر عنوان */
.hero-rule {
  display: block;
  width: 0;
  height: 3px;
  margin: 26px 0 22px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201,162,39,0.05));
}

.hero-v2 .hero-desc {
  max-width: 520px;
  margin-bottom: 34px;
  font-size: 1.06rem;
  line-height: 2.1;
  color: #cfcfcf;
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}

.hero-v2 .hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}

/* ── دکمهٔ اصلی Hero ── */
.hero-v2 .hero-buttons .btn-gold {
  padding: 16px 34px;
  font-size: 0.98rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(201,162,39,0.28);
}
.hero-v2 .hero-buttons .btn-gold:hover {
  box-shadow: 0 16px 42px rgba(201,162,39,0.45);
}
/* حلقهٔ ثابت دور دکمه — نسخهٔ قبلی مدام می‌تپید که حس
   تبلیغات «همین حالا بخر» می‌داد؛ برای برندی که روی استحکام
   و اعتماد مانور می‌دهد ضد پیام بود. */
.hero-v2 .hero-buttons .btn-gold::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(201,162,39,0.28);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s var(--ui-ease), transform 0.4s var(--ui-ease);
  pointer-events: none;
}
.hero-v2 .hero-buttons .btn-gold:hover::after { opacity: 1; transform: scale(1); }

/* فلش با hover جابه‌جا شود (RTL: به چپ) */
.hero-v2 .hero-buttons .btn i { transition: transform 0.35s var(--ui-ease); }
.hero-v2 .hero-buttons .btn-gold:hover i { transform: translateX(-5px); }

.hero-v2 .hero-buttons .btn-ghost { padding: 16px 30px; border-radius: 14px; }

/* دکمهٔ شیشه‌ای کنار دکمهٔ طلایی */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  transition: all 0.3s var(--ui-ease);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.34);
  transform: translateY(-2px);
}

/* ── انیمیشن ورود: فقط روی اسلاید فعال ──
   کلاس‌ها با تأخیر پلکانی اجرا می‌شوند تا حس «کارگردانی‌شده» بدهد */
.hero-slide.active .hero-tag        { animation: heroFadeUp 0.7s var(--ui-ease) 0.15s both; }
.hero-slide.active .hero-line:nth-of-type(1) > span { animation: heroLineUp 0.9s var(--ui-ease) 0.28s both; }
.hero-slide.active .hero-line:nth-of-type(2) > span { animation: heroLineUp 0.9s var(--ui-ease) 0.42s both; }
.hero-slide.active .hero-rule       { animation: heroRule   0.8s var(--ui-ease) 0.72s both; }
.hero-slide.active .hero-desc       { animation: heroFadeUp 0.7s var(--ui-ease) 0.80s both; }
.hero-slide.active .hero-buttons    { animation: heroFadeUp 0.7s var(--ui-ease) 0.92s both; }

@keyframes heroLineUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroRule   { from { width: 0; } to { width: 92px; } }

/* ── فلش‌ها ── */
.hero-v2 .slider-arrow {
  z-index: 6;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s var(--ui-ease);
}
.hero-v2 .slider-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
  box-shadow: 0 10px 30px rgba(201,162,39,0.35);
}
.hero-v2 .slider-prev { right: 28px; }
.hero-v2 .slider-next { left: 28px; }

/* ── ناوبری: شماره + نوارهای پیشرفت ──
   سمت *چپ* می‌نشیند. متن و دکمه‌های Hero سمت راست‌اند و ارتفاعشان
   با طول متن هر اسلاید تغییر می‌کند؛ اگر ناوبری هم سمت راست باشد
   هیچ مقدار ثابتی نمی‌تواند برخورد را تضمینی حذف کند. */
.hero-nav {
  position: absolute;
  bottom: 178px;
  left: max(24px, calc((100% - var(--container-max)) / 2 + 24px));
  right: auto;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 20px;
  background: rgba(14,14,16,0.42);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 99px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-count {
  display: inline-flex;
  align-items: baseline;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
}
.hero-count-current {
  color: var(--gold-light);
  font-size: 1.25rem;
  text-shadow: 0 0 18px rgba(201,162,39,0.5);
}
.hero-count-sep { margin: 0 5px; opacity: 0.4; }

.hero-v2 .slider-dots {
  position: static;
  transform: none;
  display: flex;
  gap: 10px;
}
.hero-v2 .slider-dot {
  position: relative;
  width: 44px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(255,255,255,0.22);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s var(--ui-ease);
}
.hero-v2 .slider-dot:hover { background: rgba(255,255,255,0.4); }

/* نوار پرشونده = تایمر ۵ ثانیه‌ای اسلایدر را نشان می‌دهد */
.dot-fill {
  position: absolute;
  inset: 0;
  transform-origin: right center;   /* RTL: از راست پر می‌شود */
  transform: scaleX(0);
  background: var(--gold);
  border-radius: 3px;
}
.hero-v2 .slider-dot.active .dot-fill {
  animation: dotFill 5s linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── نشانگر اسکرول — بالای ناوبری، هم‌راستا با آن ── */
.hero-scroll {
  position: absolute;
  bottom: 244px;
  left: max(24px, calc((100% - var(--container-max)) / 2 + 24px));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline-start: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s var(--ui-ease);
}
.hero-scroll:hover { color: var(--gold-light); }
.hero-scroll-line {
  display: block;
  width: 46px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: right center;
  animation: scrollSweep 2.2s var(--ui-ease) infinite;
}
@keyframes scrollSweep {
  0%   { transform: scaleX(0); transform-origin: right center; }
  45%  { transform: scaleX(1); transform-origin: right center; }
  55%  { transform: scaleX(1); transform-origin: left center; }
  100% { transform: scaleX(0); transform-origin: left center; }
}

/* ── کارت‌های شیشه‌ای پایین Hero ── */
.hero-cards {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 5;
  padding-bottom: 46px;
}
.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: rgba(18,18,20,0.55);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: var(--text-primary);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px);
  animation: heroFadeUp 0.7s var(--ui-ease) both;
  transition: transform 0.4s var(--ui-ease), border-color 0.4s var(--ui-ease),
              background 0.4s var(--ui-ease), box-shadow 0.4s var(--ui-ease);
}
.hero-cards-grid .hero-card:nth-child(1) { animation-delay: 0.75s; }
.hero-cards-grid .hero-card:nth-child(2) { animation-delay: 0.87s; }
.hero-cards-grid .hero-card:nth-child(3) { animation-delay: 0.99s; }

.hero-card:hover {
  transform: translateY(-7px);
  background: rgba(24,24,27,0.72);
  border-color: var(--ui-line-gold);
  box-shadow: 0 22px 50px rgba(0,0,0,0.5);
}

/* خط طلایی که هنگام hover از راست کشیده می‌شود */
.hero-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ui-ease);
}
.hero-card:hover::after { transform: scaleX(1); }

.hero-card-ico {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(201,162,39,0.22), rgba(201,162,39,0.05));
  border: 1px solid var(--ui-line-gold);
  color: var(--gold-light);
  font-size: 1.1rem;
  transition: transform 0.45s var(--ui-ease-back);
}
.hero-card:hover .hero-card-ico { transform: scale(1.1) rotate(-6deg); }

.hero-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.hero-card-body strong { font-size: 0.95rem; font-weight: 700; color: #fff; }
.hero-card-body small  { font-size: 0.76rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.hero-card-arrow {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.35s var(--ui-ease);
}
.hero-card:hover .hero-card-arrow { opacity: 1; transform: translateX(0); }

.hero-card-featured {
  background: rgba(201,162,39,0.10);
  border-color: var(--ui-line-gold);
}
.hero-card-badge {
  position: absolute;
  top: 12px;
  left: 16px;
  padding: 3px 10px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0d0d0d;
  background: var(--gold);
  border-radius: 99px;
}

/* توقف همهٔ انیمیشن‌های Hero هنگام hover یا پنهان‌شدن تب */
.hero-v2.is-paused .hero-media,
.hero-v2.is-paused .dot-fill,
.hero-v2.is-paused .hero-scroll-line::after {
  animation-play-state: paused;
}

/* ── ریسپانسیو Hero ── */
@media (max-width: 1024px) {
  .hero-cards-grid { grid-template-columns: 1fr 1fr; }
  .hero-cards-grid .hero-card:nth-child(3) { display: none; }
  .hero-v2 .hero-content { padding-bottom: 210px; }
  .about-preview-grid { gap: 44px; }
  .about-preview-image-wrap::before { inset: 14px -14px -14px 14px; }
}

@media (max-width: 900px) {
  .hero-v2 .slider-arrow { display: none; }
  .hero-scroll { display: none; }
  .hero-nav { left: 24px; right: auto; bottom: 172px; }
}

@media (max-width: 768px) {
  .hero-v2 {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 0;
  }
  .hero-v2 .hero-slide {
    position: relative;
    min-height: 78svh;
    display: none;
  }
  .hero-v2 .hero-slide.active { display: flex; }
  .hero-v2 .hero-content { padding: 90px 0 120px; }
  .hero-v2 .hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-v2 .hero-desc  { font-size: 0.95rem; line-height: 2; }
  .hero-v2 .hero-buttons .btn { flex: 1; justify-content: center; }

  .hero-nav { bottom: auto; top: 92px; left: 24px; right: auto; padding: 8px 16px; }
  .hero-cards {
    position: relative;
    padding: 0 0 8px;
    margin-top: -70px;
  }
  .hero-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-cards-grid .hero-card:nth-child(3) { display: flex; }
  .hero-card { padding: 16px 18px; border-radius: 18px; }

  /* موبایل: قاب پشتی تصویر جا نمی‌گیرد */
  .about-preview-image-wrap::before { display: none; }
  .about-preview-grid { gap: 40px; }
  .hero-v2 + .service-overview { padding-top: 40px; }
}

/* ═══════════════════════════════════════════════════
   ۱۵ — بخش «درباره ابرسازان»
   ---------------------------------------------------
   انیمیشن‌ها به کلاس .visible که IntersectionObserver
   در main.js روی سکشن می‌گذارد گره خورده‌اند.
   ═══════════════════════════════════════════════════ */

/* نفس کشیدن بین Hero و بخش بعدی */
.hero-v2 + .service-overview { padding-top: 64px; }

.about-section-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0d0d 0%, #121212 60%, #0f0f0f 100%);
}

/* هالهٔ طلایی خیلی ملایم پشت تصویر */
.about-section-dark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(201,162,39,0.10) 0%, transparent 68%);
  pointer-events: none;
}

.about-preview-grid { position: relative; z-index: 1; gap: 72px; }

/* ── قاب تصویر ── */
.about-preview-image-wrap {
  position: relative;
  border-radius: 22px;
}

/* قاب طلایی جابه‌جاشده پشت تصویر — عمق می‌دهد */
.about-preview-image-wrap::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--ui-line-gold);
  border-radius: 22px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s var(--ui-ease) 0.55s, transform 0.8s var(--ui-ease) 0.55s;
}
.reveal.visible .about-preview-image-wrap::before { opacity: 1; transform: scale(1); }

/* تصویر: پرده از پایین بالا می‌آید + زوم آرام
   clip-path به‌جای height انیمیت می‌شود چون روی GPU اجرا می‌شود
   و باعث reflow نمی‌گردد. */
.about-preview-img,
.about-preview-image-wrap img {
  border-radius: 22px;
  border: 1px solid var(--ui-line-gold);
  clip-path: inset(100% 0 0 0);
  transform: scale(1.14);
  transition: clip-path 1.1s var(--ui-ease), transform 1.5s var(--ui-ease);
  will-change: clip-path, transform;
}
.reveal.visible .about-preview-img,
.reveal.visible .about-preview-image-wrap img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* درخشش عبوری روی تصویر، یک‌بار بعد از باز شدن پرده.
   به‌جای transform از background-position استفاده شده تا نور از
   لبهٔ قاب بیرون نزند و نیازی به overflow:hidden نباشد
   (overflow نشان «نخستین در منطقه» را که بیرون قاب است می‌بُرید). */
.about-preview-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  background-size: 260% 100%;
  background-position: 135% 0;
  opacity: 0;
  pointer-events: none;
}
.reveal.visible .about-preview-image-wrap::after {
  animation: aboutSheen 1.4s var(--ui-ease) 0.95s 1;
}
@keyframes aboutSheen {
  0%   { opacity: 0; background-position: 135% 0; }
  22%  { opacity: 1; }
  100% { opacity: 0; background-position: -35% 0; }
}

/* ── نشان «نخستین در منطقه» ── */
.experience-badge-square {
  border-radius: 20px;
  opacity: 0;
  transform: translateY(-50%) scale(0.7) rotate(-6deg);
  transition: opacity 0.6s var(--ui-ease) 1.05s,
              transform 0.7s var(--ui-ease-back) 1.05s;
}
.reveal.visible .experience-badge-square {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

/* ── متن سمت راست: ظهور پلکانی ── */
.about-preview-content > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ui-ease), transform 0.7s var(--ui-ease);
}
.reveal.visible .about-preview-content > * { opacity: 1; transform: translateY(0); }
.reveal.visible .about-preview-content > *:nth-child(1) { transition-delay: 0.20s; }
.reveal.visible .about-preview-content > *:nth-child(2) { transition-delay: 0.32s; }
.reveal.visible .about-preview-content > *:nth-child(3) { transition-delay: 0.44s; }
.reveal.visible .about-preview-content > *:nth-child(4) { transition-delay: 0.56s; }

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.5px;
}
/* خط کوتاه طلایی قبل از eyebrow */
.about-eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.about-preview-desc { line-height: 2.1; }


/* ═══════════════════════════════════════════════════
   ۱۶ — بخش خبرنامه
   ═══════════════════════════════════════════════════ */
.newsletter-bar {
  position: relative;
  padding: 82px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #131210 0%, #1c180d 52%, #121110 100%);
  border-top: 1px solid var(--ui-line-gold);
  border-bottom: 1px solid var(--ui-line-gold);
}

/* دو هالهٔ طلایی که آرام نفس می‌کشند */
.newsletter-bar::before,
.newsletter-bar::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201,162,39,0.16) 0%, transparent 66%);
  animation: nlDrift 12s ease-in-out infinite alternate;
}
.newsletter-bar::before { top: -220px; right: -80px; }
.newsletter-bar::after  { bottom: -240px; left: -60px; animation-delay: -6s; }
@keyframes nlDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, 34px, 0) scale(1.14); }
}

/* شبکهٔ ظریف پس‌زمینه */
.newsletter-bar > .container { position: relative; z-index: 1; }

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 36px 40px;
  background: rgba(255,255,255,0.035);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

.newsletter-text { display: flex; align-items: center; gap: 20px; }

/* آیکون شیشه‌ای با حلقهٔ تپنده */
.newsletter-icon {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: var(--gold-light);
  background: linear-gradient(145deg, rgba(201,162,39,0.22), rgba(201,162,39,0.05));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ui-line-gold);
  border-radius: 18px;
  transition: transform 0.45s var(--ui-ease-back);
}
/* حلقهٔ دور آیکون — فقط با hover روی کارت باز می‌شود،
   نه به‌صورت تپش دائمی */
.newsletter-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 22px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s var(--ui-ease), transform 0.45s var(--ui-ease);
}
.newsletter-inner:hover .newsletter-icon { transform: scale(1.06) rotate(-5deg); }
.newsletter-inner:hover .newsletter-icon::after { opacity: 1; transform: scale(1); }

.newsletter-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 7px;
  color: #fff;
}
.newsletter-text p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.newsletter-form {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.newsletter-form input,
.newsletter-input {
  flex: 1;
  padding: 15px 20px;
  font-size: 0.93rem;
  color: #fff;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.3s var(--ui-ease), box-shadow 0.3s var(--ui-ease),
              background 0.3s var(--ui-ease);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:hover { border-color: rgba(255,255,255,0.24); }
.newsletter-form input:focus {
  background: rgba(0,0,0,0.45);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.14);
}
.newsletter-form .btn { padding: 15px 32px; border-radius: 14px; }

/* ورود پلکانی هنگام اسکرول */
.newsletter-bar.reveal .newsletter-text,
.newsletter-bar.reveal .newsletter-form {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ui-ease), transform 0.7s var(--ui-ease);
}
.newsletter-bar.reveal.visible .newsletter-text {
  opacity: 1; transform: translateY(0); transition-delay: 0.15s;
}
.newsletter-bar.reveal.visible .newsletter-form {
  opacity: 1; transform: translateY(0); transition-delay: 0.30s;
}

@media (max-width: 768px) {
  .newsletter-bar { padding: 56px 0; }
  .newsletter-inner { padding: 26px 22px; gap: 24px; }
  .newsletter-text { gap: 14px; }
  .newsletter-icon { width: 52px; height: 52px; font-size: 1.2rem; }
  .newsletter-text h3 { font-size: 1.15rem; }
  .newsletter-form { min-width: 0; max-width: 100%; flex-direction: column; }
}


/* ═══════════════════════════════════════════════════
   ۱۷ — آیکون‌های شیشه‌ای فوتر
   ═══════════════════════════════════════════════════ */
.site-footer .social-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  overflow: hidden;
  transition: transform 0.35s var(--ui-ease), color 0.35s var(--ui-ease),
              border-color 0.35s var(--ui-ease), box-shadow 0.35s var(--ui-ease);
}

/* پرشدن طلایی از پایین هنگام hover */
.site-footer .social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(201,162,39,0.85), rgba(201,162,39,0.45));
  transform: translateY(101%);
  transition: transform 0.42s var(--ui-ease);
  z-index: 0;
}
.site-footer .social-icon i { position: relative; z-index: 1; }

.site-footer .social-icon:hover {
  color: #0d0d0d;
  border-color: var(--ui-line-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(201,162,39,0.26), inset 0 1px 0 rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}
.site-footer .social-icon:hover::before { transform: translateY(0); }

/* آیکون‌های اطلاعات تماس */
.site-footer .footer-contact-item i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--gold-light);
  background: rgba(255,255,255,0.045);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  transition: all 0.35s var(--ui-ease);
}
a.footer-contact-item:hover i {
  color: #0d0d0d;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(201,162,39,0.28);
  transform: translateY(-2px);
}

/* لوگوی فوتر هم قاب شیشه‌ای بگیرد */
.footer-brand .logo-icon {
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  transition: transform 0.4s var(--ui-ease-back), border-color 0.4s var(--ui-ease);
}
.footer-brand:hover .logo-icon {
  transform: scale(1.06) rotate(-4deg);
  border-color: var(--ui-line-gold);
}

/* ═══════════════════════════════════════════════════
   ۱۸ — سیستم ظهور هنگام اسکرول (تکرارشونده)
   ---------------------------------------------------
   IntersectionObserver در main.js کلاس .visible را با ورود
   المان اضافه و با خروج کامل حذف می‌کند، پس افکت هر بار
   دوباره اجرا می‌شود.
   ═══════════════════════════════════════════════════ */

/* آیتم‌های حذف‌شده توسط فیلتر یا جستجو */
.is-filtered-out { display: none !important; }

/* منحنی نرم‌تر برای کل سیستم reveal */
.reveal,
.reveal-left,
.reveal-right {
  transition: opacity 0.75s var(--ui-ease), transform 0.75s var(--ui-ease);
  will-change: opacity, transform;
}
.reveal       { transform: translateY(38px); }
.reveal-left  { transform: translateX(-38px); }
.reveal-right { transform: translateX(38px); }

/* ── ظهور پلکانی آیتم‌های داخل شبکه‌ها ──
   ui.js روی هر شبکه data-stagger و روی هر فرزند --r-i را می‌گذارد.
   چون والد تا قبل از .visible شفافیت صفر دارد، اضافه‌شدن این
   استایل‌ها با JS هیچ پرشی ایجاد نمی‌کند. */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.62s var(--ui-ease), transform 0.62s var(--ui-ease);
  transition-delay: calc(var(--r-i, 0) * 75ms);
}
.visible [data-stagger] > *,
[data-stagger].visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* هنگام خروج، همه با هم و بدون تأخیر ریست شوند تا موقع
   اسکرول سریع، محو‌شدن پلکانی حواس‌پرت‌کن نباشد */
.reveal:not(.visible) [data-stagger] > *,
.reveal:not(.visible) .about-preview-content > *,
.reveal:not(.visible) .newsletter-text,
.reveal:not(.visible) .newsletter-form,
.reveal:not(.visible) .experience-badge-square,
.reveal:not(.visible) .about-preview-img {
  transition-delay: 0s !important;
}

/* ── ظهور عنوان بخش‌ها ── */
.reveal .section-title,
.reveal .section-header > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ui-ease), transform 0.7s var(--ui-ease);
}
.reveal.visible .section-title,
.reveal.visible .section-header > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal.visible .section-header > *:nth-child(1) { transition-delay: 0.08s; }
.reveal.visible .section-header > *:nth-child(2) { transition-delay: 0.18s; }
.reveal.visible .section-header > *:nth-child(3) { transition-delay: 0.28s; }

/* ── نوار ویژگی‌ها (feature strip) ── */
.reveal .feature-strip-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ui-ease), transform 0.6s var(--ui-ease);
}
.reveal.visible .feature-strip-item { opacity: 1; transform: translateY(0); }
.reveal.visible .feature-strip-item:nth-child(1) { transition-delay: 0.06s; }
.reveal.visible .feature-strip-item:nth-child(2) { transition-delay: 0.16s; }
.reveal.visible .feature-strip-item:nth-child(3) { transition-delay: 0.26s; }
.reveal.visible .feature-strip-item:nth-child(4) { transition-delay: 0.36s; }

.feature-strip-icon {
  transition: transform 0.45s var(--ui-ease-back), background 0.35s var(--ui-ease);
}
.feature-strip-item:hover .feature-strip-icon { transform: scale(1.12) rotate(-8deg); }

/* ── کارت‌های خدمات صفحهٔ اصلی ── */
.reveal .service-card-big {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s var(--ui-ease), transform 0.75s var(--ui-ease);
}
.reveal.visible .service-card-big { opacity: 1; transform: translateY(0); }
.reveal.visible .service-card-big:nth-child(1) { transition-delay: 0.10s; }
.reveal.visible .service-card-big:nth-child(2) { transition-delay: 0.24s; }

.service-card-image img { transition: transform 0.85s var(--ui-ease); }
.service-card-big:hover .service-card-image img { transform: scale(1.07); }
.service-card-icon-badge { transition: transform 0.45s var(--ui-ease-back); }
.service-card-big:hover .service-card-icon-badge { transform: scale(1.12) rotate(-8deg); }

/* ── هدر صفحات داخلی ── */
.page-hero .container > *,
.page-hero-inner > * {
  animation: heroFadeUp 0.75s var(--ui-ease) both;
}
.page-hero .container > *:nth-child(1),
.page-hero-inner > *:nth-child(1) { animation-delay: 0.10s; }
.page-hero .container > *:nth-child(2),
.page-hero-inner > *:nth-child(2) { animation-delay: 0.22s; }
.page-hero .container > *:nth-child(3),
.page-hero-inner > *:nth-child(3) { animation-delay: 0.34s; }
.page-hero .container > *:nth-child(4),
.page-hero-inner > *:nth-child(4) { animation-delay: 0.46s; }

/* ── جزئیات محصول / پروژه / مقاله ── */
.reveal .product-info-card,
.reveal .project-info-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ui-ease) 0.18s, transform 0.7s var(--ui-ease) 0.18s;
}
.reveal.visible .product-info-card,
.reveal.visible .project-info-card { opacity: 1; transform: translateY(0); }

.reveal .product-gallery {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ui-ease) 0.06s, transform 0.7s var(--ui-ease) 0.06s;
}
.reveal.visible .product-gallery { opacity: 1; transform: translateY(0); }

/* ── تایم‌لاین (درباره ما) ── */
.reveal .timeline-item {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s var(--ui-ease), transform 0.65s var(--ui-ease);
}
.reveal.visible .timeline-item { opacity: 1; transform: translateX(0); }
.reveal.visible .timeline-item:nth-child(1) { transition-delay: 0.08s; }
.reveal.visible .timeline-item:nth-child(2) { transition-delay: 0.20s; }
.reveal.visible .timeline-item:nth-child(3) { transition-delay: 0.32s; }
.reveal.visible .timeline-item:nth-child(4) { transition-delay: 0.44s; }
.reveal.visible .timeline-item:nth-child(5) { transition-delay: 0.56s; }

/* ── فرم و کارت‌های تماس ── */
.reveal .contact-form-group {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ui-ease), transform 0.55s var(--ui-ease);
}
.reveal.visible .contact-form-group { opacity: 1; transform: translateY(0); }
.reveal.visible .contact-form-group:nth-child(1) { transition-delay: 0.06s; }
.reveal.visible .contact-form-group:nth-child(2) { transition-delay: 0.14s; }
.reveal.visible .contact-form-group:nth-child(3) { transition-delay: 0.22s; }
.reveal.visible .contact-form-group:nth-child(4) { transition-delay: 0.30s; }
.reveal.visible .contact-form-group:nth-child(5) { transition-delay: 0.38s; }

/* ── FAQ ── */
.reveal .faq-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ui-ease), transform 0.55s var(--ui-ease);
}
.reveal.visible .faq-item { opacity: 1; transform: translateY(0); }
.reveal.visible .faq-item:nth-child(1) { transition-delay: 0.06s; }
.reveal.visible .faq-item:nth-child(2) { transition-delay: 0.14s; }
.reveal.visible .faq-item:nth-child(3) { transition-delay: 0.22s; }
.reveal.visible .faq-item:nth-child(4) { transition-delay: 0.30s; }
.reveal.visible .faq-item:nth-child(5) { transition-delay: 0.38s; }
.reveal.visible .faq-item:nth-child(6) { transition-delay: 0.46s; }

/* ── ستون‌های فوتر هم با ورود کاربر جان بگیرند ──
   خود فوتر نباید به‌صورت بلوک جابه‌جا شود (پرش انتهای صفحه)،
   فقط ستون‌هایش پلکانی می‌آیند. */
.site-footer.reveal { opacity: 1; transform: none; }

.site-footer .footer-col {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ui-ease), transform 0.65s var(--ui-ease);
}
.site-footer.visible .footer-col { opacity: 1; transform: translateY(0); }
.site-footer.visible .footer-col:nth-child(1) { transition-delay: 0.05s; }
.site-footer.visible .footer-col:nth-child(2) { transition-delay: 0.13s; }
.site-footer.visible .footer-col:nth-child(3) { transition-delay: 0.21s; }
.site-footer.visible .footer-col:nth-child(4) { transition-delay: 0.29s; }
.site-footer.visible .footer-col:nth-child(5) { transition-delay: 0.37s; }
.site-footer:not(.visible) .footer-col { transition-delay: 0s; }

/* ═══════════════════════════════════════════════════
   ۱۹ — نوار ویژگی‌ها (تیرهٔ طلایی)
   ---------------------------------------------------
   نسخهٔ قبلی پس‌زمینهٔ کرم #f3efe6 داشت که وسط سایت
   مشکی-طلایی یک برش روشن ایجاد می‌کرد.
   ═══════════════════════════════════════════════════ */
.feature-strip {
  position: relative;
  padding: 34px 0;
  background: linear-gradient(90deg, #101011 0%, #17150f 50%, #101011 100%) !important;
  border-top: 1px solid var(--ui-line-gold) !important;
  border-bottom: 1px solid var(--ui-line-gold) !important;
  overflow: hidden;
}
/* خط طلایی ثابت بالای نوار — نسخهٔ قبلی مدام از راست به چپ
   حرکت می‌کرد و یکی از هشت انیمیشن دائمی صفحه بود. */
.feature-strip::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.55), transparent);
}

.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border-radius: 16px;
  transition: background 0.35s var(--ui-ease);
}
.feature-strip-item:hover { background: rgba(201,162,39,0.07) !important; }

.feature-strip-text h4,
.feature-strip-item h4 {
  color: #fff !important;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.feature-strip-text p,
.feature-strip-item p {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.8rem;
  line-height: 1.8;
}

.feature-strip-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  border-radius: 15px;
  color: var(--gold-light) !important;
  background: linear-gradient(145deg, rgba(201,162,39,0.20), rgba(201,162,39,0.04)) !important;
  border: 1px solid var(--ui-line-gold) !important;
}


/* ═══════════════════════════════════════════════════
   ۲۰ — ویترین محصولات
   ═══════════════════════════════════════════════════ */
.section-header { max-width: 720px; margin: 0 auto 52px; }
.section-subtitle { line-height: 2.1; color: var(--text-muted); }
.gold-text { color: var(--gold-light); }

/* عنوان بخش با خط طلایی زیرش */
.showcase-header .section-title,
.process-section .section-title,
.testimonial-section .section-title { position: relative; padding-bottom: 20px; }
.showcase-header .section-title::after,
.process-section .section-title::after,
.testimonial-section .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.8s var(--ui-ease) 0.25s;
}
.reveal.visible .showcase-header .section-title::after,
.reveal.visible .process-section .section-title::after,
.reveal.visible .section-header .section-title::after { width: 110px; }

.showcase-section { background: linear-gradient(180deg, #0d0d0d 0%, #101011 100%); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 30px 30px;
  overflow: hidden;
  color: var(--text-primary);
  background: linear-gradient(165deg, rgba(26,26,29,0.9), rgba(15,15,16,0.9));
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  transition: border-color 0.45s var(--ui-ease), box-shadow 0.45s var(--ui-ease),
              background 0.45s var(--ui-ease);
}
.showcase-card:hover {
  border-color: var(--ui-line-gold);
  box-shadow: var(--ui-shadow-md);
  background: linear-gradient(165deg, rgba(32,30,24,0.92), rgba(17,16,14,0.92));
}

/* شمارهٔ بزرگ کم‌رنگ گوشه */
.showcase-num {
  position: absolute;
  top: 14px;
  left: 22px;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  transition: color 0.45s var(--ui-ease);
}
.showcase-card:hover .showcase-num { color: rgba(201,162,39,0.14); }

.showcase-ico {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border-radius: 18px;
  color: var(--gold-light);
  background: linear-gradient(145deg, rgba(201,162,39,0.20), rgba(201,162,39,0.04));
  border: 1px solid var(--ui-line-gold);
  transition: transform 0.5s var(--ui-ease-back);
}
.showcase-card:hover .showcase-ico { transform: scale(1.1) rotate(-8deg); }

.showcase-title { font-size: 1.12rem; font-weight: 800; color: #fff; }
.showcase-desc  { font-size: 0.88rem; line-height: 2.05; color: var(--text-muted); flex: 1; }

.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
}
.showcase-cta i { transition: transform 0.35s var(--ui-ease); }
.showcase-card:hover .showcase-cta i { transform: translateX(-6px); }

.showcase-grid .learn-more-link { margin-top: 10px; }


/* ═══════════════════════════════════════════════════
   ۲۱ — قفل گاوصندوق (المان امضا)
   ═══════════════════════════════════════════════════ */
.vault-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(90% 70% at 25% 50%, #16150f 0%, #0b0b0c 62%);
}

.vault-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.vault-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

.vault-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.20) 0%, transparent 66%);
  filter: blur(14px);
  animation: vaultBreath 5s var(--ui-ease) infinite alternate;
}
@keyframes vaultBreath {
  from { opacity: 0.55; transform: scale(0.94); }
  to   { opacity: 1;    transform: scale(1.06); }
}

.vault-svg { position: relative; width: 100%; height: auto; }

/* چرخش‌ها با متغیر --v که ui.js از پیشرفت اسکرول محاسبه می‌کند
   (۰ = قفل، ۱ = کاملاً باز) */
.vault-ring,
.vault-handle,
.vault-bolt {
  /* ترنزیشن خیلی کوتاه فقط برای صاف‌کردن پرش‌های ریز مقدار --v */
  transition: transform 0.12s linear;
}
.vault-ring   { transform: rotate(calc(var(--v, 0) * 220deg));  transform-origin: 150px 150px; }
.vault-handle { transform: rotate(calc(var(--v, 0) * -130deg)); transform-origin: 150px 150px; }
.vault-core   { opacity: calc(0.35 + var(--v, 0) * 0.65); }

/* زبانه‌ها با باز شدن قفل به داخل جمع می‌شوند */
.vault-bolts { transform-origin: 150px 150px; }
.vault-bolt  { transform: translateY(0); }
.vault-bolts .vault-bolt:nth-child(1) { transform: translateY(calc(var(--v, 0) * 22px)); }
.vault-bolts .vault-bolt:nth-child(2) { transform: translateY(calc(var(--v, 0) * -22px)); }
.vault-bolts .vault-bolt:nth-child(3) { transform: translateX(calc(var(--v, 0) * 22px)); }
.vault-bolts .vault-bolt:nth-child(4) { transform: translateX(calc(var(--v, 0) * -22px)); }

.vault-status {
  position: absolute;
  bottom: 2%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
  background: rgba(10,10,11,0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ui-line-gold);
  border-radius: 99px;
}
.vault-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201,162,39,0.9);
  transition: background 0.4s var(--ui-ease), box-shadow 0.4s var(--ui-ease);
}
.vault-stage.is-open .vault-status-dot {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74,222,128,0.9);
}

.vault-list {
  list-style: none;
  margin: 26px 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vault-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.028);
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  transition: border-color 0.35s var(--ui-ease), background 0.35s var(--ui-ease),
              transform 0.35s var(--ui-ease);
}
.vault-list li:hover {
  border-color: var(--ui-line-gold);
  background: rgba(201,162,39,0.06);
  transform: translateX(-5px);
}
.vault-list i {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  border-radius: 11px;
  color: var(--gold-light);
  background: rgba(201,162,39,0.10);
  border: 1px solid var(--ui-line-gold);
}


/* ═══════════════════════════════════════════════════
   ۲۲ — فرآیند کار
   ═══════════════════════════════════════════════════ */
.process-section { background: #0d0d0d; }

.process-track {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* خط اتصال پشت مراحل */
.process-track::before {
  content: '';
  position: absolute;
  top: 46px;
  inset-inline: 12%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--ui-line-gold) 12%, var(--ui-line-gold) 88%, transparent);
}

.process-node {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.process-ico {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  margin: 10px auto 20px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--gold-light);
  background: linear-gradient(160deg, #1c1a14, #111112);
  border: 1px solid var(--ui-line-gold);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  transition: transform 0.5s var(--ui-ease-back), border-color 0.4s var(--ui-ease),
              box-shadow 0.4s var(--ui-ease);
}
.process-node:hover .process-ico {
  transform: translateY(-6px) scale(1.06);
  border-color: var(--gold);
  box-shadow: 0 16px 38px rgba(201,162,39,0.28);
}

.process-num {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold);
  opacity: 0.7;
}

.process-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 9px; }
.process-desc  { font-size: 0.84rem; line-height: 2; color: var(--text-muted); }

/* ورود پلکانی مراحل */
.reveal .process-node {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ui-ease), transform 0.65s var(--ui-ease);
}
.reveal.visible .process-node { opacity: 1; transform: translateY(0); }
.reveal.visible .process-node:nth-child(1) { transition-delay: 0.10s; }
.reveal.visible .process-node:nth-child(2) { transition-delay: 0.24s; }
.reveal.visible .process-node:nth-child(3) { transition-delay: 0.38s; }
.reveal.visible .process-node:nth-child(4) { transition-delay: 0.52s; }
.reveal:not(.visible) .process-node { transition-delay: 0s; }


/* ═══════════════════════════════════════════════════
   ۲۳ — نوار آمار
   ═══════════════════════════════════════════════════ */
.stats-section {
  position: relative;
  padding: 66px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #131210 0%, #1b170d 50%, #121110 100%);
  border-top: 1px solid var(--ui-line-gold);
  border-bottom: 1px solid var(--ui-line-gold);
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(201,162,39,0.05) 0 1px, transparent 1px 46px);
  pointer-events: none;
}

.stats-row { position: relative; gap: 18px; }

.stat-item {
  padding: 30px 18px;
  background: rgba(255,255,255,0.035) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform 0.4s var(--ui-ease), border-color 0.4s var(--ui-ease),
              background 0.4s var(--ui-ease);
}
.stat-item:hover {
  transform: translateY(-6px);
  border-color: var(--ui-line-gold) !important;
  background: rgba(201,162,39,0.08) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.stat-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  font-size: 1.05rem;
  color: var(--gold-light);
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--ui-line-gold);
  border-radius: 14px;
  transition: transform 0.45s var(--ui-ease-back);
}
.stat-item:hover .stat-ico { transform: scale(1.12) rotate(-8deg); }

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(201,162,39,0.35);
  margin-bottom: 10px;
}
.stat-suffix { font-size: 1.5rem; opacity: 0.7; }
.stat-label { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.55); }

/* حالت «تعهدات» — همان قاب، بدون عدد */
.commitment-item { padding: 32px 22px; }
.commitment-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.commitment-item .stat-label { font-size: 0.82rem; line-height: 2; }


/* ═══════════════════════════════════════════════════
   ۲۴ — نظرات مشتریان
   ═══════════════════════════════════════════════════ */
.testimonial-section { background: linear-gradient(180deg, #0d0d0d 0%, #111112 100%); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 34px 30px 28px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(26,26,29,0.92), rgba(15,15,16,0.92));
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  transition: border-color 0.45s var(--ui-ease), box-shadow 0.45s var(--ui-ease),
              transform 0.45s var(--ui-ease);
}
.testimonial-card:hover {
  border-color: var(--ui-line-gold);
  box-shadow: var(--ui-shadow-md);
}

.testimonial-mark {
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 2.6rem;
  color: rgba(201,162,39,0.10);
  transition: color 0.45s var(--ui-ease), transform 0.45s var(--ui-ease);
}
.testimonial-card:hover .testimonial-mark {
  color: rgba(201,162,39,0.20);
  transform: scale(1.08) rotate(-6deg);
}

.testimonial-stars { display: flex; gap: 4px; color: var(--gold); font-size: 0.78rem; }

.testimonial-text {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 2.15;
  color: var(--text-muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--ui-line);
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-light);
  background: linear-gradient(145deg, rgba(201,162,39,0.22), rgba(201,162,39,0.05));
  border: 1px solid var(--ui-line-gold);
  border-radius: 50%;
}
.testimonial-meta { display: flex; flex-direction: column; gap: 3px; }
.testimonial-meta strong { font-size: 0.9rem; color: #fff; }
.testimonial-meta small  { font-size: 0.76rem; color: var(--text-dark); }


/* ═══════════════════════════════════════════════════
   ۲۵ — بنر CTA
   ═══════════════════════════════════════════════════ */
.cta-section { background: #0d0d0d; padding-top: 0; }

.cta-banner-v2 {
  position: relative;
  margin: 0;
  padding: 64px 48px 58px;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(201,162,39,0.16) 0%, transparent 58%),
    linear-gradient(160deg, #1a1710 0%, #0e0e0f 60%);
  border: 1px solid var(--ui-line-gold);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
/* بافت شبکه‌ای ظریف */
.cta-banner-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.cta-banner-v2 > * { position: relative; z-index: 1; }

.cta-ico {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  font-size: 1.7rem;
  color: var(--gold-light);
  background: linear-gradient(145deg, rgba(201,162,39,0.24), rgba(201,162,39,0.05));
  border: 1px solid var(--ui-line-gold);
  border-radius: 22px;
  transition: transform 0.5s var(--ui-ease-back);
}
.cta-banner-v2:hover .cta-ico { transform: scale(1.08) rotate(-6deg); }

.cta-banner-v2 h2 {
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.cta-banner-v2 p {
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 0.98rem;
  line-height: 2.05;
  color: var(--text-muted);
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn { padding: 15px 30px; border-radius: 14px; }


/* ═══════════════════════════════════════════════════
   ۲۶ — ریسپانسیو بخش‌های جدید
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .vault-grid { grid-template-columns: 1fr; gap: 48px; }
  .vault-stage { max-width: 340px; order: -1; }
  .showcase-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .process-track::before { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 700px) {
  .showcase-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; gap: 30px; }
  .section-header { margin-bottom: 36px; }
  .cta-banner-v2 { padding: 44px 24px 40px; border-radius: 22px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .stat-value { font-size: 2.1rem; }
  .vault-stage { max-width: 280px; }
  .feature-strip-item { padding: 12px; }
}

/* ═══════════════════════════════════════════════════
   ۲۷ — میکرو-اینتراکشن‌ها
   ═══════════════════════════════════════════════════ */

/* ── نوار پیشرفت اسکرول در پایین هدر ── */
.scroll-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--gold), #f2dd8f, var(--gold));
  box-shadow: 0 0 12px rgba(201,162,39,0.6);
  transform: scaleX(0);
  transform-origin: right center;   /* RTL: از راست پر می‌شود */
  will-change: transform;
}

/* ── تیلت سه‌بعدی ──
   ترنزیشن کوتاه به کارت حس «وزن» می‌دهد؛ بدون آن حرکت
   خشک و ماشینی به‌نظر می‌رسد. */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ui-ease),
              border-color 0.45s var(--ui-ease),
              box-shadow 0.45s var(--ui-ease),
              background 0.45s var(--ui-ease);
  will-change: transform;
}

/* درخشش نرمی که دنبال نشانگر می‌آید */
.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(201,162,39,0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ui-ease);
  pointer-events: none;
  z-index: 0;
}
.tilt-card:hover::before { opacity: 1; }
.tilt-card > * { position: relative; z-index: 1; }

/* ── پارالاکس ── */
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }


/* ═══════════════════════════════════════════════════
   ۲۸ — فیلتر دوتون طلایی روی تصاویر
   ---------------------------------------------------
   تصاویر ته‌رنگ طلایی-مشکی می‌گیرند تا کل سایت یکدست شود؛
   با hover به رنگ طبیعی برمی‌گردند.
   لوگو، آواتار نویسنده و آیکون‌ها مستثنا هستند.
   ═══════════════════════════════════════════════════ */
:root {
  --duotone: grayscale(1) sepia(0.5) hue-rotate(-12deg) saturate(1.7)
             contrast(1.04) brightness(0.92);
}

/* توجه: تصویر Hero عمداً در این فهرست نیست.
   دو دلیل:
     ۱) Hero هم‌زمان با Ken Burns در حال transform است؛ اعمال
        filter روی همان لایه مرورگر را وادار می‌کند هر فریم
        دوباره ترکیب کند — گران‌ترین جای صفحه.
     ۲) وقتی عکس واقعی گاوصندوق گذاشته شود، Hero همان تصویری
        است که باید واضح دیده شود. */
.about-preview-img,
.about-preview-image-wrap img,
.service-card-image img,
.card-img-wrap img,
.blog-card-img img,
.project-card-img img,
.page-hero.has-bg-image::before {
  filter: var(--duotone);
  transition: filter 0.6s var(--ui-ease), transform 0.7s var(--ui-ease);
}

/* بازگشت به رنگ طبیعی هنگام تعامل */
.product-card:hover .card-img-wrap img,
.blog-card:hover .blog-card-img img,
.project-card:hover .project-card-img img,
.service-card-big:hover .service-card-image img,
.reveal.visible .about-preview-image-wrap:hover img {
  filter: none;
}

/* تصاویر گالری محصول و لایت‌باکس دست‌نخورده بمانند —
   مشتری باید رنگ واقعی محصول را ببیند */
.flip-front img,
.lightbox-img,
.gallery-thumb img,
.blog-author img,
.logo-icon img,
.footer-brand img { filter: none !important; }

/* ═══ ۱۳ — کاهش انیمیشن (a11y) ══════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
