/* ════════════════════════════════════════════════
   یاور۲۴ — MAIN STYLESHEET
   Self-hosted via ArvanCloud CDN
   All shared styles across the site
════════════════════════════════════════════════ */

/* ── Vazirmatn — self-hosted ── */
@font-face {
  font-family: 'Vazirmatn';
  src: url("../fonts/vazirmatn/Vazirmatn-Regular.995cd8bfda8c.woff2") format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url("../fonts/vazirmatn/Vazirmatn-Medium.4d58b8e5cbc5.woff2") format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.69fcc15b2e4d.woff2") format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url("../fonts/vazirmatn/Vazirmatn-Bold.7946124b2cee.woff2") format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url("../fonts/vazirmatn/Vazirmatn-ExtraBold.e39b152f735a.woff2") format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url("../fonts/vazirmatn/Vazirmatn-Black.ef1f4516c711.woff2") format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Sahel — display / headings ── */
@font-face {
  font-family: 'Sahel';
  src: url("../fonts/sahel/Sahel-Regular.e3337ef6bb61.woff2") format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url("../fonts/sahel/Sahel-Bold.b70fd129e032.woff2") format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url("../fonts/sahel/Sahel-Black.bc07ade64ef3.woff2") format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* Mikhak حذف شد: پوشه‌ی static/fonts/mikhak/ خالی بود و هیچ جای پروژه هم
   font-family: Mikhak نداشت — یعنی دو @font-face به فایل‌های ناموجود اشاره
   می‌کردند. بی‌اثر بود ولی collectstatic با ManifestStaticFiles روی همین
   ارجاع‌های مرده خطا می‌دهد. اگر روزی این فونت را خریدید، فایل‌ها را در همان
   پوشه بگذارید و بلوک را برگردانید. */

/* ════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════ */

/* ── آیکون‌های UI (Lucide، inline via {% icon %}) ──────────────────────
   stroke="currentColor" یعنی رنگ را از متنِ والد می‌گیرند؛ پس هرجا بگذاری
   خودش هماهنگ می‌شود. اندازه‌ی پیش‌فرض ۱em تا هم‌قد متنِ کنارش باشد، و
   vertical-align وسط تا با خط متن تراز شود. با width/height صریح یا
   font-size والد قابل تغییر است. */
.ui-ic {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.ui-ic-lg { width: 1.3em; height: 1.3em; }
.ui-ic-sm { width: .85em; height: .85em; }
/* رنگ‌های معنایی برای آیکون‌های وضعیت — با کلاس، نه رنگ ثابت در فایل */
.ic-ok   { color: #16A34A; }
.ic-warn { color: #D97706; }
.ic-err  { color: #DC2626; }
.ic-info { color: #2563EB; }
.ic-mut  { color: #6B7280; }

:root {
  /* Brand */
  --p:    #F04E1A;
  --pl:   #FF7A4D;
  --pd:   #C03A0E;
  --pbg:  rgba(240,78,26,.08);
  --pbdr: rgba(240,78,26,.2);

  /* Neutral */
  --bg:   #F7F4F1;
  --surf: #ffffff;
  --txt:  #1A1A1A;
  --txt2: #374151;
  --mut:  #6B7280;
  --bdr:  #E5E7EB;

  /* Semantic */
  --success: #16A34A;
  --warning: #D97706;
  --error:   #DC2626;
  --info:    #0284C7;

  /* Radii */
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(0,0,0,.07);
  --sh-md: 0 4px 16px rgba(0,0,0,.09);
  --sh-lg: 0 8px 32px rgba(0,0,0,.11);
  --sh-p:  0 8px 24px rgba(240,78,26,.28);

  /* Layout */
  --nav-h:   60px;
  --bnav-h:  68px;
  --safe-b:  env(safe-area-inset-bottom, 0px);
}

/* ════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
body   {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  line-height: 1.6;
}
@media(max-width:767px) {
  html, body { overflow-x: hidden; }
  body { padding-bottom: 0; }

  /* ── bottom-nav clearance — همه صفحات ── */
  .faq-page, .g-page, .legal-page, .ord-page, .svc-page, .sd-page,
  .wiz-wrap, .db-page, .edit-page, .track-page, .reg-page,
  .suc-page, .contact-body, .ab-section:last-of-type,
  .pvs-wrap, .blog-wrap, .cat-wrap, .post-wrap {
    padding-bottom: calc(var(--bnav-h) + var(--safe-b) + 2rem) !important;
  }
  .pp-body {
    padding-bottom: calc(var(--bnav-h) + var(--safe-b) + 2rem) !important;
  }

  /* ── global fallback — هر چیزی که بالا cover نشده ── */
  #main-content > *:last-child {
    margin-bottom: calc(var(--bnav-h) + var(--safe-b) + 1rem);
  }

  /* ── top padding کاهش روی موبایل ── */
  .faq-page, .g-page, .legal-page, .svc-page {
    padding-top: calc(var(--nav-h) + 1.5rem) !important;
  }

  /* ── horizontal padding یکنواخت — محتوا لبه صفحه نچسبد ── */
  .faq-wrap, .g-wrap, .legal-wrap, .svc-wrap, .ord-wrap,
  .sd-wrap, .db-wrap, .edit-wrap, .track-wrap {
    padding-left:  1.1rem;
    padding-right: 1.1rem;
  }

  /* ── container default موبایل ── */
  .container {
    padding-left:  1rem !important;
    padding-right: 1rem !important;
  }

  /* ── providers page ── */
  .pvs-search { flex-direction: column; gap: .5rem; }
  .pvs-search .fi { width: 100%; min-width: unset; }
  .pvs-search .fi-q, .pvs-search .fi-sv, .pvs-search .fi-dt { flex: unset; }
  .btn-pvs-search { width: 100%; }
  .pv-grid { grid-template-columns: 1fr; }
  .filter-chips { padding: .5rem 1rem; }

  /* ── blog & post ── */
  .post-header { padding-right: 1rem; padding-left: 1rem; }
  /* ⚠️ کلاس .post-body دو نقش دارد: کانتینر کلِ مقاله در blog_page.html، و
     wrapper هر بلوک rich_text (blog/blocks/rich_text_block.html) که در کل سایت
     استفاده می‌شود — داخل کارت معرفی صفحه‌ی خدمت، صفحات منطقه/جهت، پست‌های
     پروفایل متخصص. قانون موبایل باید فقط به نقش اول بخورد، وگرنه هر بلوک متنیِ
     سایت روی موبایل یک فضای خالیِ به‌ارتفاع نوار پایین می‌گیرد. */
  .post-body[itemprop="articleBody"] { padding-right: 1rem; padding-left: 1rem; }
  /* فاصله از نوار پایینِ چسبان جای درستش پایین‌ترین کانتینر صفحه است، نه متن
     مقاله — بعد از .post-body هنوز CTA و بخش‌های دیگر رندر می‌شوند. */
  .post-wrap { padding-bottom: calc(var(--bnav-h) + var(--safe-b) + 2rem); }
  .blog-hero   { padding-right: 1rem; padding-left: 1rem; }
  .cat-hero    { padding-right: 1rem; padding-left: 1rem; }
  .blog-content-wrap { padding-bottom: calc(var(--bnav-h) + var(--safe-b) + 2rem); }

  /* ── about page ── */
  .ab-hero { padding-right: 1rem; padding-left: 1rem; }
  .ab-section { padding: 2.5rem 1rem; }
  .ab-icon-grid { grid-template-columns: repeat(3, 1fr); padding: .75rem; gap: .5rem; }

  /* ── order success ── */
  .suc-page { padding: 2rem 1rem calc(var(--bnav-h) + var(--safe-b) + 3rem); }
  .suc-wrap { max-width: 100%; }

  /* ── provider register ── */
  .reg-page  { padding-top: calc(var(--nav-h) + 1.5rem) !important; }
  .reg-wrap  { padding-left: 1rem; padding-right: 1rem; }

  /* ── provider profile ── */
  .pp-page { padding-right: 0; padding-left: 0; }

  /* ── wizard ── */
  .wiz-wrap { padding-left: 1rem; padding-right: 1rem; }
}
#main-content { padding-top: var(--nav-h); }
/* صفحه‌هایی که بک‌گراند full-bleed دارند — نوار بژ زیر منو را پوشش می‌دهد */
.page-bleed,
.pvs-hero, .blog-hero, .cat-hero, .about-hero, .pp-page, .reg-page { margin-top: calc(-1 * var(--nav-h)); }
/* هیروی خدمت/منطقه/جهت عمداً full-bleed نیست: چون عکسِ سوژه‌دار (سرِ نقاش بالای
   عکس) اگر زیرِ نوار برود بالای سوژه پنهان می‌شود. این‌ها پایینِ نوار می‌نشینند و
   خودشان padding-top دارند؛ یک فاصله‌ی عمودیِ کوچک تا نوار هم دارند تا نچسبند. */
.svc-hero, .sd-hero { margin-top: 1px; }
a       { text-decoration: none; color: inherit; }
img     { max-width: 100%; display: block; }
button  { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ════════════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════════════ */
@keyframes fadeUp  { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes scaleIn { from{transform:scale(.92);opacity:0} to{transform:none;opacity:1} }
@keyframes pulse   { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes ripple  { to { transform: scale(4); opacity: 0; } }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(240,78,26,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(240,78,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,78,26,0); }
}

/* AOS fallback — if CDN/JS blocked, content stays visible */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* ════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  transition: box-shadow .2s;
}
.site-nav.scrolled { box-shadow: var(--sh-md); }

/* nav element داخل site-nav باید کل ارتفاع را بگیرد و محتوا را وسط‌چین کند */
.site-nav nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img { display: block; }
.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
  /* مارجین عمودی باید صفر بماند. مرورگر به <ul> مارجین پیش‌فرض می‌دهد و چون
     نوار با align-items:center جعبه‌ی «مارجین» را وسط می‌کند نه جعبه‌ی محتوا،
     آن مارجینِ ته‌مانده کل منو را نصفِ خودش بالا می‌برد — عنوان‌ها ۸ پیکسل
     بالاتر از لوگو و دکمه‌ها می‌نشستند. */
  margin: 0 auto 0 0;
  padding: 0;
  height: 100%;
}
@media(min-width:768px) { .nav-links { display: flex; } }
.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--txt2);
  transition: color .15s;
  position: relative;
  padding-bottom: .15rem;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 2px;
  background: var(--p);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--p); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-ai-link {
  color: var(--p) !important;
  background: rgba(240,78,26,.08);
  border-radius: 50px;
  padding: .25rem .75rem !important;
  font-weight: 800 !important;
  transition: background .2s !important;
}
.nav-ai-link:hover { background: rgba(240,78,26,.16) !important; }
.nav-ai-link::after { display: none !important; }

.nav-spacer { flex: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  background: linear-gradient(135deg, var(--p), var(--pl));
  color: #fff;
  border-radius: var(--r);
  font-size: .825rem;
  font-weight: 700;
  transition: .2s;
  box-shadow: var(--sh-p);
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(240,78,26,.38);
  color: #fff;
}

.nav-hamburger {
  /* عمداً flex نیست. Safari روی iOS یک <button> را به‌درستی به‌عنوان flex
     container رفتار نمی‌دهد و ابعاد فرزندها می‌تواند به صفر برسد — نتیجه‌اش
     دکمه‌ی نامرئیِ همچنان‌قابل‌لمس بود که دو بار گزارش شد. با موقعیت‌دهی مطلق
     هیچ محاسبه‌ی flexی در کار نیست که بتواند خراب شود. */
  display: block;
  position: relative;
  width: 36px; height: 36px;
  cursor: pointer;
  flex-shrink: 0;
  /* ریست کروم دکمه‌ی نیتیو — روی iOS Safari بدون این، یک <button> بدون appearance:none
     می‌تواند جعبه‌ی خاکستری/بوردر/گرادیانتِ پیش‌فرض بگیرد و سه‌خط همبرگر جابه‌جا شود.
     همچنین حذف فلاشِ خاکستریِ tap روی iOS. */
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
@media(min-width:768px) { .nav-hamburger { display: none; } }
/* سه خط با مختصات ثابت — نه کشیده‌شدن، نه flex-shrink، هیچ‌چیزی برای محاسبه.
   چیدمان: ۳ خطِ ۲ پیکسلی با فاصله‌ی ۵ = ۱۶px، وسطِ ۳۶px یعنی از ۱۰px شروع.
   رنگ fallback ثابت دارد: اگر var(--txt) در مرورگری resolve نشود، مقدار
   نامعتبر یعنی پس‌زمینه‌ی شفاف — همان «هست ولی بی‌رنگ» که گزارش شد. */
.nav-hamburger span {
  display: block;
  position: absolute;
  left: 7px;
  width: 22px;
  height: 2px;
  background-color: #1A1A1A;
  background-color: var(--txt, #1A1A1A);
  border-radius: 1px;
  transition: .2s;
}
.nav-hamburger span:nth-child(1) { top: 10px; }
.nav-hamburger span:nth-child(2) { top: 17px; }
.nav-hamburger span:nth-child(3) { top: 24px; }

/* ════════════════════════════════════════════════
   MOBILE MENU DRAWER
════════════════════════════════════════════════ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}
.mobile-menu-drawer {
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 160;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 0 2rem;
}
.mobile-menu-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bdr);
}
.drawer-logo { display: flex; align-items: center; }
.drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; border: none;
  transition: .15s;
}
.drawer-close:hover { background: var(--pbg); color: var(--p); }
.drawer-links {
  list-style: none;
  padding: .75rem 0;
}
.drawer-links a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--txt2);
  transition: .15s;
  text-decoration: none;
}
.drawer-links a:hover,
.drawer-links a.active {
  color: var(--p);
  background: var(--pbg);
}
.drawer-links a[href="/providers/"] img,
.bn-item[data-path="/providers/"] img { transform: scaleX(-1); }
.drawer-divider { border: none; border-top: 1px solid var(--bdr); margin: .5rem 0; }
/* یک <li> به‌جای <hr> مستقیم داخل <ul> — <hr> فرزند مجاز ul نیست (باگ ساختار
   لیست که در ممیزی دسترسی‌پذیری Lighthouse پرچم خورد) */
li.drawer-divider-li { list-style: none; border-top: 1px solid var(--bdr); margin: .5rem 0; padding: 0; }
.drawer-cta {
  margin: .75rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .8rem;
  background: linear-gradient(135deg, var(--p), var(--pl));
  color: #fff;
  border-radius: var(--r);
  font-weight: 800;
  text-decoration: none;
  transition: .2s;
}
.drawer-cta:hover { color: #fff; opacity: .9; }

/* Drawer CTA links — same layout as regular items, highlighted */
.drawer-link-cta { font-weight: 800 !important; }
.drawer-link-orange {
  color: var(--p) !important;
  background: rgba(240,78,26,.07) !important;
}
.drawer-link-orange:hover { background: rgba(240,78,26,.14) !important; }
.drawer-link-green {
  color: #059669 !important;
  background: rgba(16,185,129,.07) !important;
}
.drawer-link-green:hover { background: rgba(16,185,129,.14) !important; }

/* Hamburger → X animation */
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════
   BOTTOM NAV — floating pill, mobile only
════════════════════════════════════════════════ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: calc(.65rem + var(--safe-b));
  right: .9rem; left: .9rem;
  height: var(--bnav-h);
  background: linear-gradient(135deg, #2D1B69 0%, #1A0A3E 60%, #12062B 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(45,27,105,.55), 0 3px 12px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  border: none;
  z-index: 200;
  justify-content: space-around;
  align-items: center;
  padding: 0 .25rem;
  /* فایرفاکس موبایل: بدون این، هنگام اسکرول گاهی موقعیت fixed رو دیر ریفرش
     می‌کند (تا توقف کامل اسکرول) و نوار انگار گاهی پایین می‌چسبد گاهی نه؛
     translateZ(0) این المان را روی لایه‌ی جدای GPU نگه می‌دارد تا همیشه
     بلافاصله موقعیتش به‌روز بماند. */
  transform: translateZ(0);
  will-change: transform;
}
.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 45%);
  border-radius: 22px;
  pointer-events: none;
}
@media(min-width:768px) { .bottom-nav { display: none; } }

/* ── Nav items ── */
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
  min-width: 44px;
  text-decoration: none;
  cursor: pointer;
  padding: .25rem .1rem;
}
.bn-item.active { color: #fff; }

/* ── Icon wrapper: white glow when active ── */
.bn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 32px;
  border-radius: 10px;
  transition: background .25s, box-shadow .25s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.bn-item.active .bn-icon {
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 14px rgba(255,255,255,.25);
}
.bn-item:active .bn-icon { transform: scale(1.28); }

/* ── Icon image: all white ── */
.bn-icon img {
  transition: filter .22s;
  filter: brightness(0) invert(1) opacity(.55);
}
.bn-item.active .bn-icon img {
  filter: brightness(0) invert(1) opacity(1);
}

/* ── Label: always visible ── */
.bn-item .bn-label {
  font-size: .6rem; font-weight: 700;
  opacity: .55; color: #fff;
  transition: opacity .2s;
  letter-spacing: .01em; white-space: nowrap;
  line-height: 1;
  /* گارد سرریز: برچسب‌ها («لیست متخصصین»، «درخواست خدمات») از ظرف flex خود
     پهن‌ترند و بدون این سه خط از مرز آیتم بیرون می‌زنند و روی برچسب همسایه
     می‌افتند — روی صفحه‌های ۳۶۰px به‌صورت «درخواست خدماتمتخصص شو» دیده می‌شد. */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bn-item.active .bn-label { opacity: 1; }

/* ── Centre call button: white on orange bg ── */
.bn-call {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F04E1A, #c03d12);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(240,78,26,.5), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s;
  position: relative; z-index: 2;
}
.bn-call img { filter: brightness(0) invert(1); }
.bn-call:active { transform: scale(.88); }
.bn-contact-wrap.open .bn-call { transform: rotate(45deg); box-shadow: 0 6px 24px rgba(240,78,26,.6); }

/* ── Contact speed-dial wrap ── */
.bn-contact-wrap { position: relative; display: flex; align-items: center; justify-content: center; }

/* ══════════════════════════════════════════
   CONTACT BOTTOM SHEET
══════════════════════════════════════════ */
.bcm-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: .5rem 1.25rem 2.5rem;
  z-index: 210;
  transform: translateY(105%);
  transition: transform .4s cubic-bezier(.32,0,.15,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.15);
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  pointer-events: none;
}
.bn-contact-wrap.open .bcm-sheet {
  transform: translateY(0);
  transition: transform .48s cubic-bezier(.34,1.1,.64,1);
  pointer-events: auto;
}

.bcm-handle {
  width: 40px; height: 4px; border-radius: 4px;
  background: #E5E7EB;
  margin: 0 auto .9rem;
}

.bcm-brand-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 0 1.1rem;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: .85rem;
}
.bcm-brand-title {
  display: block; font-size: 1.05rem; font-weight: 900; color: #111;
}
.bcm-brand-sub {
  display: block; font-size: .78rem; color: #6B7280; margin-top: .18rem; font-weight: 500;
}
.bcm-online-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #F0FDF4; color: #16A34A;
  border: 1px solid #BBF7D0;
  border-radius: 50px; padding: .3rem .7rem;
  font-size: .7rem; font-weight: 700;
}
.bcm-online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px #22C55E;
  animation: pulse 2s ease-in-out infinite;
}

.bcm-actions { display: flex; flex-direction: column; gap: .65rem; }

.bcm-action {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.1rem;
  border-radius: 18px;
  text-decoration: none;
  border: 1.5px solid transparent;
  opacity: 0; transform: translateY(18px);
  transition: opacity .3s, transform .35s cubic-bezier(.34,1.4,.64,1), background .15s;
}
.bn-contact-wrap.open .bcm-action { opacity: 1; transform: translateY(0); }
.bn-contact-wrap.open .bcm-action:nth-child(1) { transition-delay: .12s; }
.bn-contact-wrap.open .bcm-action:nth-child(2) { transition-delay: .19s; }
.bn-contact-wrap.open .bcm-action:nth-child(3) { transition-delay: .26s; }
.bcm-action:active { transform: scale(.97) !important; }

.bcm-action--phone {
  background: #FFF7F5;
  border-color: rgba(240,78,26,.2);
}
.bcm-action--wa {
  background: #F0FDF4;
  border-color: rgba(34,197,94,.25);
}
.bcm-action--bale {
  background: #EFF6FF;
  border-color: rgba(59,130,246,.22);
}

.bcm-action-icon-wrap {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.bcm-icon--phone { background: rgba(240,78,26,.12); color: #F04E1A; }
.bcm-icon--wa    { background: rgba(34,197,94,.12); color: #16A34A; }
.bcm-icon--bale  { background: rgba(59,130,246,.12); color: #2563EB; }

.bcm-action-body { flex: 1; }
.bcm-action-title {
  display: block; font-size: 1rem; font-weight: 900;
  color: #111; line-height: 1.3;
}
.bcm-action-sub {
  display: block; font-size: .78rem; color: #6B7280; margin-top: .22rem; font-weight: 500;
}

.bcm-badge {
  font-size:0.69rem; font-weight: 800;
  border-radius: 50px; padding: .25rem .6rem;
  flex-shrink: 0;
}
.bcm-badge--orange { background: rgba(240,78,26,.1);  color: #F04E1A; }
.bcm-badge--green  { background: rgba(34,197,94,.12); color: #16A34A; }
.bcm-badge--blue   { background: rgba(59,130,246,.12); color: #2563EB; }

.bcm-close-btn {
  display: block; width: 100%; margin-top: 1.1rem;
  padding: .85rem; border: none;
  background: #F3F4F6; border-radius: 14px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: .9rem; font-weight: 700; color: #6B7280;
  cursor: pointer; transition: background .15s;
}
.bcm-close-btn:active { background: #E5E7EB; }

.bn-contact-backdrop {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.45);
}
.bn-contact-backdrop.show { display: block; }

/* ════════════════════════════════════════════════
   QUICK CONTACT — desktop floating speed-dial
════════════════════════════════════════════════ */
.qc-wrap {
  display: none;
  position: fixed; left: .5rem; bottom: 2.5rem;
  z-index: 400;
  flex-direction: column-reverse; align-items: flex-end; gap: .6rem;
}
@media(min-width:768px) { .qc-wrap { display: flex; } }

.quick-contact {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), #c03d12);
  border: none; cursor: pointer;
  box-shadow: 4px 6px 22px rgba(240,78,26,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  position: relative;
  animation: fabRing 2.5s ease-in-out infinite;
}
.quick-contact img { filter: brightness(0) invert(1); pointer-events: none; }
.quick-contact:hover { transform: scale(1.1); box-shadow: 6px 10px 30px rgba(240,78,26,.6); animation: none; }
.qc-wrap.open .quick-contact { transform: scale(1.05); box-shadow: 6px 8px 28px rgba(240,78,26,.6); animation: none; }
.qc-dot {
  position: absolute; top: 3px; right: 3px;
  width: 11px; height: 11px;
  background: #4ADE80; border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse 2s ease-in-out infinite;
}

.qc-menu {
  display: flex; flex-direction: column; gap: .4rem;
  pointer-events: none; opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.qc-wrap:hover .qc-menu,
.qc-wrap.open .qc-menu { pointer-events: auto; opacity: 1; transform: translateY(0); }

.qc-opt {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border-radius: 16px;
  padding: .75rem 1.1rem;
  font-size: .84rem; color: #111;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  border: 1.5px solid #F3F4F6;
  opacity: 0; transform: translateY(8px) scale(.95);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s, background .15s, border-color .15s;
}
.qc-opt-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.qc-opt--phone .qc-opt-icon { background: rgba(240,78,26,.1); }
.qc-opt--wa    .qc-opt-icon { background: rgba(37,211,102,.12); }
.qc-opt--bale  .qc-opt-icon { background: rgba(59,130,246,.1); }
.qc-opt-body { display: flex; flex-direction: column; gap: .05rem; }
.qc-opt-body strong { font-size: .82rem; font-weight: 800; color: #111; line-height: 1.2; }
/* #9CA3AF روی این پس‌زمینه‌ی روشن ~۲.۵:۱ می‌داد (رد WCAG AA) — خط‌قرمز پروژه */
.qc-opt-body small  { font-size: .72rem; color: #6B7280; font-weight: 500; }
.qc-wrap:hover .qc-opt,
.qc-wrap.open .qc-opt { opacity: 1; transform: none; }
.qc-wrap:hover .qc-opt:nth-child(1),
.qc-wrap.open .qc-opt:nth-child(1) { transition-delay: .04s; }
.qc-wrap:hover .qc-opt:nth-child(2),
.qc-wrap.open .qc-opt:nth-child(2) { transition-delay: .09s; }
.qc-wrap:hover .qc-opt:nth-child(3),
.qc-wrap.open .qc-opt:nth-child(3) { transition-delay: .14s; }
.qc-opt--phone:hover { background: #FFF7F5; border-color: rgba(240,78,26,.25); }
.qc-opt--wa:hover    { background: #F0FDF4; border-color: rgba(37,211,102,.3); }
.qc-opt--bale:hover  { background: #EFF6FF; border-color: rgba(59,130,246,.25); }

/* ════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: linear-gradient(135deg, var(--p), var(--pl));
  color: #fff;
  border-radius: var(--r-lg);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: .22s;
  box-shadow: var(--sh-p);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240,78,26,.42); color: #fff; }
.btn-primary:active { transform: scale(.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--surf);
  color: var(--txt2);
  border-radius: var(--r-lg);
  font-size: .9rem;
  font-weight: 700;
  border: 1.5px solid var(--bdr);
  cursor: pointer;
  transition: .22s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--pbdr); color: var(--p); transform: translateY(-2px); }

.btn-sm  { padding: .45rem 1rem;   font-size: .8rem; }
.btn-lg  { padding: .95rem 2.25rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ════════════════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════════════════ */
.field-group { margin-bottom: 1.25rem; }

.field-label {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  margin-bottom: .45rem;
  color: var(--txt);
}
.req { color: var(--error); }

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  background: #FAFAFA;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r);
  font-family: inherit;
  font-size: .9rem;
  color: var(--txt);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-control:focus {
  border-color: var(--p);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(240,78,26,.1);
}
.form-control.is-valid   { border-color: var(--success) !important; }
.form-control.is-invalid { border-color: var(--error)   !important; }
.form-control::placeholder { color: var(--mut); }

/* Phone input — always LTR */
.phone-wrap {
  display: flex;
  align-items: stretch;
  direction: ltr;
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 .85rem;
  background: #F3F4F6;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r) 0 0 var(--r);
  border-right: none;
  font-size: .83rem;
  font-weight: 700;
  color: var(--txt);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: .18s;
}
.phone-wrap .form-control {
  border-radius: 0 var(--r) var(--r) 0;
  border-left: none;
  text-align: left;
  direction: ltr;
  letter-spacing: .04em;
}
.phone-wrap:focus-within .phone-prefix {
  border-color: var(--p);
  background: rgba(240,78,26,.05);
  color: var(--p);
}

.feedback {
  display: block;
  font-size: .76rem;
  min-height: 1.1rem;
  margin-top: .3rem;
}
.feedback.error   { color: var(--error); }
.feedback.success { color: var(--success); }
.feedback.warning { color: var(--warning); }

/* ════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════ */
.card {
  background: var(--surf);
  border-radius: var(--r-xl);
  border: 1px solid var(--bdr);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

/* ════════════════════════════════════════════════
   SECTION LAYOUT UTILITIES
════════════════════════════════════════════════ */
.section-pad { padding: 3rem 0; }
@media(min-width:768px) { .section-pad { padding: 5rem 0; } }

.section-header { text-align: center; margin-bottom: 2.5rem; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--pbg);
  color: var(--p);
  border: 1px solid var(--pbdr);
  font-size: .75rem;
  font-weight: 800;
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: .85rem;
  letter-spacing: .02em;
}
.section-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: .6rem;
}
.section-desc {
  font-size: .92rem;
  color: var(--mut);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ════════════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--mut);
  flex-wrap: wrap;
  padding: .75rem 0;
}
.breadcrumb a { color: var(--mut); transition: color .15s; }
.breadcrumb a:hover { color: var(--p); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--txt); font-weight: 600; }

/* ════════════════════════════════════════════════
   SKELETON / LOADING
════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}

/* ════════════════════════════════════════════════
   READING PROGRESS BAR
════════════════════════════════════════════════ */
.reading-bar {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(to left, var(--p), var(--pl));
  transform-origin: right;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform .05s linear;
}

/* ════════════════════════════════════════════════
   FOOTER — Complete Redesign
════════════════════════════════════════════════ */
.site-footer {
  background: #0D1117;
  color: #8B949E;
  position: relative;
}
.site-footer .container { padding-top: 2.5rem; padding-bottom: 1.5rem; }

/* ── gradient accent bar ── */
.ft-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #F04E1A 25%, #FF9A72 50%, #F04E1A 75%, transparent 100%);
}

/* ── CTA block — hidden always (bottom nav handles CTAs) ── */
.ft-cta-block { display: none; }

.ft-cta-primary {
  display: flex; align-items: center; gap: .9rem;
  background: linear-gradient(135deg, #F04E1A 0%, #c03d12 100%);
  color: #fff; border-radius: 16px; padding: 1rem 1.25rem;
  text-decoration: none; position: relative; overflow: hidden;
  box-shadow: 0 6px 24px rgba(240,78,26,.35);
  transition: transform .2s, box-shadow .2s;
}
.ft-cta-primary:active { transform: scale(.97); box-shadow: 0 3px 12px rgba(240,78,26,.25); color:#fff; }
.ft-cta-primary::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 60%);
  pointer-events:none;
}
.ft-cta-icon { font-size: 1.5rem; flex-shrink: 0; }
.ft-cta-primary strong { display:block; font-size: .95rem; font-weight: 900; color:#fff; }
.ft-cta-primary small  { display:block; font-size: .72rem; opacity: .75; margin-top:.1rem; color:#fff; }
.ft-cta-arrow { margin-right: auto; font-size: 1.6rem; opacity: .6; flex-shrink:0; line-height: 1; }

.ft-cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ft-cta-sec {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  background: #161B22; border: 1px solid #30363D;
  border-radius: 12px; padding: .8rem .5rem;
  font-size: .84rem; font-weight: 700; color: #C9D1D9; text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.ft-cta-sec:active { background: #21262D; color: #fff; }

/* ── Desktop grid ── */
.ft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media(min-width:768px) {
  .ft-grid {
    grid-template-columns: 1.4fr 1.175fr 1.175fr;
    align-items: start;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #21262D;
  }
}

/* ── Brand column ── */
.ft-logo { display: block; margin-bottom: .85rem; }
/* روی پس‌زمینه‌ی تیره‌ی فوتر باید سفیدِ نیمه‌شفاف باشد، نه خاکستریِ پالتِ
   پس‌زمینه‌ی روشن. #6B7280 اینجا نسبت ۳.۹۱ و #4B5563 نسبت ۲.۵۰ می‌داد —
   یعنی ممیزی کنتراستِ قبلی که آن رنگ‌ها را برای متن روی زمینه‌ی *روشن*
   جایگزین کرد، ناخواسته فوتر را بدتر کرد. بقیه‌ی فوتر همین الگو را دارد
   (.ft-col-head و .ft-card-sub با rgba سفید). */
.ft-tagline { font-size: .83rem; line-height: 1.85; color: rgba(255,255,255,.72); max-width: 280px; margin-bottom: 1.4rem; }

/* ── Social icons ── */
.ft-social { display: flex; gap: .6rem; }

.ft-soc {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .65rem .5rem; min-width: 62px;
  background: #161B22; border: 1px solid #21262D;
  border-radius: 14px; text-decoration: none; color: #6B7280;
  font-size: .65rem; font-weight: 700; transition: .2s;
}
.ft-soc span { transition: color .2s; }
.ft-soc:hover { border-color: #30363D; color: #C9D1D9; transform: translateY(-2px); }
.ft-soc:active { transform: scale(.95); }
.ft-soc-ig:hover { background: #1a0d1e; border-color: #833ab4; color: #c77dff; }
.ft-soc-tg:hover { background: #0d1a24; border-color: #229ED9; color: #54b4e8; }
.ft-soc-wa:hover { background: #0d1f14; border-color: #25D366; color: #4ade80; }
.ft-soc-li:hover { background: #0a1628; border-color: #0A66C2; color: #5ba4f5; }

/* ── Desktop contact ── */
.ft-contact { display: none; }
@media(min-width:768px) {
  .ft-contact { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.4rem; }
}
.ft-contact-row {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: #6B7280; text-decoration: none; transition: color .15s;
}
.ft-contact-row:hover { color: #FF9A72; }
.ft-address { cursor: default; }
.ft-address:hover { color: #6B7280; }
.ft-contact-icon { font-size: .9rem; flex-shrink: 0; }

/* ── Nav columns ── */
.ft-col { padding: 1.4rem 0; border-bottom: 1px solid #21262D; }
.ft-col:last-child { border-bottom: none; }
@media(min-width:768px) { .ft-col { padding: 0; border: none; } }

.ft-col-head {
  font-size: .68rem; font-weight: 900;
  letter-spacing: .16em;
  margin: 0 0 1.2rem; line-height: 1;
  color: rgba(255,255,255,.92);
  display: flex; align-items: center; gap: .65rem;
  padding-right: .85rem;
  border-right: 2.5px solid var(--p);
  position: relative;
}
.ft-col-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, rgba(255,255,255,.08), transparent);
}

.ft-links { list-style: none; }
@media(min-width:768px) {
  .ft-links { display: flex; flex-direction: column; gap: .55rem; }
  .ft-links a { font-size: .84rem; color: #6B7280; text-decoration: none; transition: color .18s, padding-right .18s; display: flex; align-items: center; gap: .4rem; }
  .ft-links a:hover { color: #FF9A72; padding-right: .25rem; }
}

/* ── Footer card links ── */
.ft-card-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }

.ft-card-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .8rem;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .2s, border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.ft-card-link::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(240,78,26,.07), transparent 60%);
  opacity: 0; transition: opacity .2s;
}
.ft-card-link:hover {
  background: rgba(240,78,26,.07);
  border-color: rgba(240,78,26,.22);
  transform: translateX(-3px);
}
.ft-card-link:hover::before { opacity: 1; }

.ft-card-ico {
  font-size: 1rem; width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(255,255,255,.06); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ft-card-link:hover .ft-card-ico { background: rgba(240,78,26,.15); }

.ft-card-body { display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.ft-card-title { font-size: .83rem; font-weight: 700; color: rgba(255,255,255,.8); line-height: 1.2; }
.ft-card-sub   { font-size: .68rem; color: rgba(255,255,255,.58); line-height: 1.3; }
.ft-card-link:hover .ft-card-title { color: #FF9A72; }

.ft-card-arr {
  font-size: 1.1rem; color: rgba(255,255,255,.38);
  transition: color .2s, transform .2s; flex-shrink: 0; line-height: 1;
}
.ft-card-link:hover .ft-card-arr { color: var(--p); transform: translateX(-3px); }

/* ── Bottom bar ── */
.ft-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.4rem; flex-wrap: wrap; gap: .5rem;
  /* #484F58 روی #0D1117 فقط ~۲.۳:۱ بود — کپی‌رایت عملاً خوانده نمی‌شد */
  font-size: .75rem; color: #8B949E;
}

/* ════════════════════════════════════════════════
   FOOTER — MOBILE REDESIGN
════════════════════════════════════════════════ */
@media(max-width:767px) {

  .site-footer .container { padding-top: 2rem; padding-bottom: calc(var(--bnav-h) + var(--safe-b) + 1rem); text-align: center; }

  /* Brand: centered */
  .ft-brand { padding-bottom: 1.8rem; border-bottom: 1px solid #21262D; }
  .ft-logo  { margin: 0 auto .6rem; }
  .ft-tagline {
    max-width: 100%; font-size: .8rem; line-height: 1.75;
    color: rgba(255,255,255,.72); margin-bottom: 1.5rem;
  }

  /* Social: large, colored platform cards */
  .ft-social { justify-content: center; gap: .65rem; }
  .ft-soc {
    flex: 1; max-width: 96px; min-width: 0;
    padding: .9rem .4rem; border-radius: 16px;
    gap: .4rem;
  }
  .ft-soc img { width: 26px; height: 26px; }
  .ft-soc span { font-size: .69rem; font-weight: 800; }   /* حداقل ۱۱px */
  .ft-soc-ig { background: rgba(131,58,180,.12); border-color: rgba(131,58,180,.3); color: #c77dff; }
  .ft-soc-tg { background: rgba(34,158,217,.12); border-color: rgba(34,158,217,.3); color: #54b4e8; }
  .ft-soc-wa { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.3); color: #4ade80; }
  .ft-soc-li { background: rgba(10,102,194,.12); border-color: rgba(10,102,194,.3); color: #5ba4f5; }

  /* Contact: hidden on mobile */
  .ft-contact { display: none !important; }

  /* Grid: brand full-width, two cols side by side */
  .ft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .ft-brand {
    grid-column: 1 / -1;
    padding-bottom: 1.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #21262D;
  }

  /* Columns side by side */
  .ft-col {
    padding: 0 .5rem 1rem;
    border-bottom: none;
  }
  .ft-col:first-of-type { border-left: 1px solid #21262D; padding-left: .75rem; }

  .ft-col-head {
    font-size: .69rem; letter-spacing: .1em;   /* حداقل ۱۱px */
    color: rgba(255,255,255,.45); margin-bottom: .75rem;
    padding-right: .55rem;
    border-right: 2px solid rgba(240,78,26,.55);
  }
  .ft-col-head::after { display: none; }

  /* Card links: clean rows on mobile */
  .ft-card-links {
    display: flex; flex-direction: column;
    gap: .3rem; list-style: none;
  }
  .ft-card-link {
    display: flex; align-items: center; gap: .55rem;
    padding: .5rem .6rem;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    transform: none;
  }
  .ft-card-link:hover { transform: none; }
  .ft-card-link:active {
    background: rgba(240,78,26,.1);
    border-color: rgba(240,78,26,.25);
  }
  .ft-card-ico {
    width: 28px; height: 28px; flex-shrink: 0;
    background: rgba(255,255,255,.05);
    border-radius: 7px; font-size: .85rem;
  }
  .ft-card-title { font-size: .8rem; color: rgba(255,255,255,.75); font-weight: 600; }
  .ft-card-sub, .ft-card-arr { display: none; }

  /* نماد اعتماد اندازه‌ی دسکتاپش (عکس ۷۲×۷۲ + پدینگ بزرگ) را نگه داشته بود،
     در حالی که بقیه‌ی ردیف‌های همین ستون فشرده شدند — نتیجه یک ردیفِ بلند
     بالای چند ردیفِ کوچک، و ستون راست (اطلاعات حقوقی) نسبت به ستون چپ (یاور۲۴)
     نامنظم/بلندتر دیده می‌شد. حالا دقیقاً هم‌اندازه‌ی .ft-card-link است. */
  .ft-enamad-link { padding: .5rem .6rem; gap: .55rem; }
  .ft-enamad-link img { width: 28px; height: 28px; }
  .ft-enamad-label { font-size: .8rem; font-weight: 600; }
  .ft-trust-item { margin-bottom: .3rem; }

  .ft-links { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
  .ft-links a {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 600;
    color: rgba(255,255,255,.65); text-decoration: none;
    padding: .45rem .6rem; border-radius: 10px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  }
  .ft-links a:active { color: #FF9A72; background: rgba(240,78,26,.08); }

  /* Bottom */
  .ft-bottom {
    flex-direction: column; align-items: center;
    gap: .3rem; padding-top: 1rem;
    border-top: 1px solid #21262D; margin-top: .5rem;
    font-size: .72rem;
  }
  .ft-heart { display: none; }
}

/* ════════════════════════════════════════════════
   BADGES & TAGS
════════════════════════════════════════════════ */
.badge-verified {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(22,163,74,.1); color: #15803D;
  border: 1px solid rgba(22,163,74,.25);
  font-size: .7rem; font-weight: 800;
  padding: .2rem .55rem; border-radius: 6px;
}
.badge-online {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(22,163,74,.1); color: #15803D;
  border: 1px solid rgba(22,163,74,.2);
  font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 50px;
}
.online-dot {
  width: 7px; height: 7px;
  background: #16A34A; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ════════════════════════════════════════════════
   STAR RATING
════════════════════════════════════════════════ */
.stars { color: #FBBF24; letter-spacing: .05em; }

/* ════════════════════════════════════════════════
   ALERT / TOAST
════════════════════════════════════════════════ */
.alert {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1rem;
  border-radius: var(--r);
  font-size: .85rem;
  border: 1px solid;
  line-height: 1.6;
}
.alert-success { background: rgba(22,163,74,.07);  border-color: rgba(22,163,74,.25);  color: #14532D; }
.alert-warning { background: rgba(217,119,6,.07);  border-color: rgba(217,119,6,.25);  color: #78350F; }
.alert-error   { background: rgba(220,38,38,.07);  border-color: rgba(220,38,38,.25);  color: #7F1D1D; }
.alert-info    { background: rgba(2,132,199,.07);  border-color: rgba(2,132,199,.25);  color: #0C4A6E; }

/* ════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; gap: .4rem;
  justify-content: center; flex-wrap: wrap;
  margin-top: 2.5rem;
}
.pg-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
  font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--bdr);
  background: var(--surf);
  color: var(--txt2);
  cursor: pointer;
  transition: .15s;
}
.pg-btn:hover       { border-color: var(--pbdr); color: var(--p); }
.pg-btn.active      { background: var(--p); color: #fff; border-color: var(--p); }
.pg-btn:disabled    { opacity: .35; cursor: not-allowed; }

/* ════════════════════════════════════════════════
   BLOG — POST CARD
════════════════════════════════════════════════ */
.post-card {
  background: var(--surf);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--bdr);
  overflow: hidden;
  transition: .25s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-5px);
  border-color: var(--pbdr);
}
.post-card__thumb {
  display: block;
  overflow: hidden;
  height: 160px;
  text-decoration: none;
  flex-shrink: 0;
  transition: .3s;
}
.post-card--lg .post-card__thumb { height: 220px; }
.post-card--sm .post-card__thumb { height: 120px; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__emoji  { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; transition: .3s; }
.post-card:hover .post-card__emoji { transform: scale(1.15) rotate(-5deg); }
.post-card__body   { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 800;
  color: var(--p); background: var(--pbg);
  padding: .18rem .55rem; border-radius: 6px;
  margin-bottom: .5rem; text-decoration: none;
  transition: .15s;
}
.post-card__cat:hover { background: var(--p); color: #fff; }
.post-card__title {
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: .4rem;
}
.post-card__title a { color: var(--txt); text-decoration: none; transition: color .15s; }
.post-card__title a:hover { color: var(--p); }
.post-card__intro {
  font-size: .8rem;
  color: var(--mut);
  line-height: 1.65;
  flex: 1;
  margin-bottom: .6rem;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .72rem;
  color: var(--mut);
  border-top: 1px solid var(--bdr);
  padding-top: .55rem;
  margin-top: auto;
}

/* featured first post */
.post-card--featured {
  flex-direction: row;
  grid-column: 1 / -1;
}
.post-card--featured .post-card__thumb {
  width: 45%;
  height: auto;
  min-height: 240px;
  flex-shrink: 0;
}
.post-card--featured .post-card__title { font-size: 1.15rem; }
@media(max-width:767px) {
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__thumb { width: 100%; height: 180px; }
}

/* ════════════════════════════════════════════════
   BLOG — POST BODY (rich text + blocks)
════════════════════════════════════════════════ */
.post-wrap { padding-bottom: 3rem; }   /* موبایل در مدیا-کوئری بالا بیشترش می‌کند */
.post-body {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--txt2);
  /* justify روی بدنه‌ی محتوا — این کلاس منبع مشترک همه‌ی صفحات طراحی‌شده
     (اصلی/درباره/تماس/متخصصان) و صفحات منطقه/جهت است، پس یک تغییر اینجا
     همه را پوشش می‌دهد. inter-word فاصله را بین کلمات پخش می‌کند نه حروف.
     عنوان و آیتم لیست justify نمی‌شوند (کوتاه‌اند). */
  text-align: justify;
  text-justify: inter-word;
}
.post-body h2, .post-body h3, .post-body li { text-align: right; }
.post-body h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--txt);
  margin: 2.25rem 0 .75rem;
  padding-right: .9rem;
  border-right: 4px solid var(--p);
}
.post-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--txt);
  margin: 1.75rem 0 .55rem;
}
.post-body h4 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--txt);
  margin: 1.25rem 0 .4rem;
}
.post-body p  { margin-bottom: 1.1rem; }
/* آخرین عنصر نباید margin ته‌اش را نگه دارد — داخل کارت‌های جمع‌وجور (کارت معرفی
   صفحه‌ی خدمت) این margin به‌شکل یک خط سفید اضافه دیده می‌شود */
.post-body > *:last-child { margin-bottom: 0; }
.post-body ul,
.post-body ol {
  padding-right: 1.5rem;
  margin-bottom: 1.1rem;
}
.post-body li { margin-bottom: .35rem; }
.post-body a  { color: var(--p); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--pd); }
.post-body blockquote {
  border-right: 4px solid var(--p);
  background: var(--pbg);
  padding: .9rem 1.1rem .9rem 1rem;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--txt);
}
.post-body strong { font-weight: 800; color: var(--txt); }
.post-body hr {
  border: none;
  border-top: 2px dashed var(--bdr);
  margin: 2rem 0;
}
.post-body code {
  background: #F3F4F6;
  padding: .15rem .45rem;
  border-radius: 5px;
  font-size: .87em;
  direction: ltr;
  display: inline-block;
}
.post-body pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  overflow-x: auto;
  margin: 1.25rem 0;
  direction: ltr;
  text-align: left;
  font-size: .85rem;
  line-height: 1.7;
}

/* figure / image block */
.post-figure {
  margin: 1.5rem 0;
  border-radius: 0;
  overflow: hidden;
}
.post-figure img     { width: 100%; height: auto; display: block; }
.post-figure figcaption {
  font-size: .78rem;
  color: var(--mut);
  text-align: center;
  padding: .5rem;
  background: var(--bg);
}

/* ── تصویر با کنترلِ ادمین (RichImageBlock) ──────────────────────────
   عرضِ دقیق به‌صورت inline روی خودِ <figure> می‌آید (از get_context بلوک)؛
   این‌جا فقط چیدمان و افکت‌ها. margin-inline:auto برای «وسط» لازم است چون
   figure وقتی width دارد دیگر تمام‌عرض نیست. */
.post-figure--center { margin-inline: auto; }
.post-figure--right  { margin-inline-end: auto; margin-inline-start: 0; }
.post-figure--left   { margin-inline-start: auto; margin-inline-end: 0; }
.post-figure.is-rounded { border-radius: var(--r-lg); }
.post-figure.has-shadow { box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.post-figure a { display: block; }

/* ── تصویرِ داخلِ متنِ RichText (apps/core/image_formats.py) ──────────
   کلاس‌ها را خودِ Wagtail موقع درج روی <img> می‌گذارد. */
.rt-img { height: auto; border-radius: var(--r-lg); display: block; }
.rt-img--full   { width: 100%; margin: 1.4rem 0; }
.rt-img--large  { width: min(800px, 100%); margin: 1.4rem auto; }
.rt-img--medium { width: min(500px, 100%); margin: 1.3rem auto; }
.rt-img--small  { width: min(320px, 100%); margin: 1.2rem auto; }
/* شناورها: RTL است، پس «راست» یعنی float:right و متن از چپش رد می‌شود. */
.rt-img--right { width: min(380px, 45%); float: right; margin: .4rem 0 1rem 1.3rem; }
.rt-img--left  { width: min(380px, 45%); float: left;  margin: .4rem 1.3rem 1rem 0; }
/* روی موبایل شناور بی‌معنی است — متن کنارش به چند کلمه در هر خط می‌رسد. */
@media (max-width: 640px) {
  .rt-img--right, .rt-img--left { float: none; width: 100%; margin: 1.2rem 0; }
}

/* ── Callout block ── */
.callout {
  display: flex;
  gap: .85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  margin: 1.25rem 0;
  border: 1.5px solid;
}
.callout-tip    { background: rgba(22,163,74,.07);  border-color: rgba(22,163,74,.22);  color: #14532D; }
.callout-warn   { background: rgba(217,119,6,.07);  border-color: rgba(217,119,6,.22);  color: #78350F; }
.callout-info   { background: rgba(2,132,199,.07);  border-color: rgba(2,132,199,.22);  color: #0C4A6E; }
.callout-danger { background: rgba(220,38,38,.07);  border-color: rgba(220,38,38,.22);  color: #7F1D1D; }
.callout-icon   { font-size: 1.2rem; flex-shrink: 0; line-height: 1.4; }
.callout-title  { display: block; font-weight: 800; margin-bottom: .3rem; }
/* متن غنیِ داخل callout در صفحات غیر-بلاگ (منطقه/جهت/طراحی‌شده) — justify
   مثل بقیه‌ی بدنه‌ها. بلاگ نسخه‌ی inline خودش را دارد. */
.callout-body   { text-align: justify; text-justify: inter-word; }

/* پاراگرافی که مدیر با دکمه‌ی justifyِ ویرایشگر ساخته — به‌صورت
   <p class="text-justify"> ذخیره می‌شود (apps/core/richtext_features.py).
   !important چون باید بتواند justifyِ خودکارِ بدنه را هم override کند و هم
   جایی که بدنه justify نیست را justify کند. */
.text-justify   { text-align: justify !important; text-justify: inter-word; }

/* ── Steps block ── */
.steps-list { margin: 1.25rem 0; }
.step-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  background: var(--surf);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 1rem;
  transition: .2s;
}
.step-card:hover { border-color: var(--pbdr); box-shadow: var(--sh-sm); }
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--p); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem;
}
.step-title { font-weight: 800; font-size: .92rem; margin-bottom: .3rem; }
.step-desc  { font-size: .83rem; color: var(--txt2); }

/* ── Price table block ── */
.price-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--bdr);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.price-table th {
  background: #F9FAFB;
  padding: .75rem 1rem;
  font-weight: 800;
  text-align: right;
  border-bottom: 1.5px solid var(--bdr);
  white-space: nowrap;
}
.price-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--bdr);
  vertical-align: middle;
}
.price-table tr:last-child td { border-bottom: none; }
.price-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 800;
  padding: .18rem .55rem; border-radius: 50px;
}
.price-low  { background: rgba(22,163,74,.1);  color: #15803D; }
.price-mid  { background: rgba(245,158,11,.1);  color: #92400E; }
.price-high { background: rgba(220,38,38,.1);   color: #991B1B; }

/* ── Quote block ── */
.post-quote {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--pbg);
  border-radius: var(--r-lg);
  border-right: 4px solid var(--p);
}
.post-quote::before {
  content: '❝';
  font-size: 2.5rem;
  color: var(--p);
  line-height: .7;
  flex-shrink: 0;
  opacity: .6;
}
.post-quote p { font-style: italic; font-size: .95rem; color: var(--txt); margin: 0; }

/* ── Video block ── */
.post-video { margin: 1.5rem 0; }
.post-video__frame {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--r-lg); overflow: hidden; background: #000;
}
.post-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video__native { width: 100%; border-radius: var(--r-lg); display: block; background: #000; }
.post-video__fallback {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 2.5rem 1rem; background: var(--pbg); color: var(--p);
  border-radius: var(--r-lg); font-weight: 800; text-decoration: none;
}
.post-video figcaption, .post-animation figcaption, .post-ba figcaption {
  font-size: .78rem; color: var(--mut); text-align: center; padding: .5rem;
}

/* ── Animation block ── */
.post-animation { margin: 1.5rem 0; text-align: center; }
.post-animation__img { max-width: 100%; height: auto; border-radius: var(--r-lg); display: inline-block; }
.post-animation__lottie { max-width: 100%; min-height: 160px; display: inline-block; }

/* ── Audio block ── */
.post-audio {
  margin: 1.5rem 0; padding: 1rem 1.1rem; background: var(--surf);
  border: 1.5px solid var(--bdr); border-radius: var(--r-lg);
}
.post-audio__title { font-weight: 800; font-size: .88rem; margin-bottom: .6rem; color: var(--txt); }
.post-audio audio { width: 100%; }

/* ── Before/After comparison block ── */
.post-ba { margin: 1.5rem 0; }
.post-ba__frame {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
  border-radius: var(--r-lg); direction: ltr; user-select: none;
}
.post-ba__before, .post-ba__after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-ba__after-wrap { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.post-ba__tag {
  position: absolute; top: .6rem; font-size: .72rem; font-weight: 800;
  color: #fff; background: rgba(0,0,0,.55); padding: .25rem .65rem; border-radius: 50px;
  pointer-events: none; z-index: 2;
}
.post-ba__tag--before { left: .6rem; }
.post-ba__tag--after  { right: .6rem; }
.post-ba__slider {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 3;
  -webkit-appearance: none; appearance: none;
}

/* ── Gallery block ── */
.post-gallery { margin: 1.5rem 0; }
.post-gallery__title { font-weight: 800; font-size: .92rem; margin-bottom: .6rem; color: var(--txt); }
.post-gallery__strip {
  display: flex; gap: .75rem; overflow-x: auto; scrollbar-width: none;
  padding-bottom: .2rem; scroll-snap-type: x proximity;
}
.post-gallery__strip::-webkit-scrollbar { display: none; }
.post-gallery__item {
  flex-shrink: 0; scroll-snap-align: start; width: 220px;
  border-radius: var(--r-lg); overflow: hidden; margin: 0;
}
.post-gallery__img { width: 100%; height: 160px; object-fit: cover; display: block; cursor: zoom-in; }
.post-gallery__item figcaption { font-size: .76rem; color: var(--mut); padding: .4rem .2rem; }
.post-lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.88); align-items: center; justify-content: center;
  padding: 2rem; cursor: zoom-out;
}
.post-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r); }

/* ── Stat block ── */
.post-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem; margin: 1.75rem 0; text-align: center;
}
.post-stat {
  background: var(--pbg); border-radius: var(--r-lg); padding: 1.1rem .75rem;
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
}
.post-stat__icon { font-size: 1.3rem; }
.post-stat__num { font-size: 1.5rem; font-weight: 900; color: var(--p); direction: ltr; }
.post-stat__label { font-size: .78rem; font-weight: 700; color: var(--txt2); }

/* ── Cards grid block ── */
.post-cards { margin: 1.75rem 0; }
.post-cards__title { font-weight: 800; font-size: 1.05rem; color: var(--txt); margin-bottom: .9rem; }
.post-cards__grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.post-cards__grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-cards__grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .post-cards__grid, .post-cards__grid--3, .post-cards__grid--4 { grid-template-columns: 1fr; } }
.post-card {
  display: block; background: var(--surf); border: 1.5px solid var(--bdr); border-radius: var(--r-lg);
  padding: 1.25rem 1.1rem; text-decoration: none; color: inherit; transition: .15s;
}
a.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.08); border-color: var(--p); }
.post-card__icon { font-size: 1.7rem; display: block; margin-bottom: .6rem; }
.post-card__img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin-bottom: .7rem; }
.post-card__title { font-weight: 800; font-size: .95rem; color: var(--txt); margin-bottom: .3rem; }
.post-card__text { font-size: .85rem; color: var(--txt2); line-height: 1.7; }

/* ── Brand compare cards block (premium) ── */
.bcmp-title { font-weight: 800; font-size: 1.1rem; color: var(--txt); margin: 2rem 0 1.15rem; }
/* ⚠️ چگالی کارت‌های مقایسه‌ای (bcmp / tcmp / cpg)
   این کارت‌ها داخل .svc-article-body رندر می‌شوند که line-height:2.15 دارد — آن
   عدد برای پاراگرافِ متنِ فارسی درست است ولی برای «کروم» کارت (برچسبِ متریک،
   چیپِ تگ، مقدارها) فاجعه بود: هر برچسبِ ۱۳ پیکسلی یک خطِ ۲۹ پیکسلی می‌گرفت و
   هر متریک ۷۱ تا ۹۴ پیکسل ارتفاع می‌بُرد. نتیجه: کارتِ «انواع رنگ» ۱۲۲۱ پیکسل
   (بلندتر از خودِ ویوپورت) و مقاله روی موبایل ۲۴ هزار پیکسل.
   این ریست line-height را فقط داخل کارت‌ها به یک عددِ UI برمی‌گرداند؛ متنِ
   خواندنی (summary/verdict) line-height خودش را جدا دارد. هیچ محتوایی حذف
   نشده — فقط فشرده‌تر چیده شده. */
.bcmp-card, .tcmp-card, .cpg-card { line-height: 1.6; }

.bcmp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); perspective: 1400px; margin: 1.6rem 0; }
.bcmp-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .bcmp-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bcmp-grid, .bcmp-grid--3 { grid-template-columns: 1fr; } }

.bcmp-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(240,78,26,.14); border-radius: var(--r-2xl);
  box-shadow: var(--sh-sm); transform-style: preserve-3d;
  animation: bcmpReveal .7s cubic-bezier(.2,.75,.25,1) both;
  transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease, border-color .3s ease;
}
.bcmp-grid .bcmp-card:nth-child(2) { animation-delay: .08s; }
.bcmp-grid .bcmp-card:nth-child(3) { animation-delay: .16s; }
.bcmp-grid .bcmp-card:nth-child(4) { animation-delay: .24s; }

/* حاشیه‌ی گرادیانتی با mask trick — فقط ۱px حاشیه رنگی، نه پرشدن کل کارت */
.bcmp-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(240,78,26,.5), rgba(255,255,255,.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; transition: opacity .3s ease;
}
/* هاله‌ی نور شناور که با هاور به گوشه‌ی مقابل می‌لغزد */
.bcmp-card::after {
  content: ""; position: absolute; width: 190px; height: 190px; left: -100px; top: -100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,78,26,.22), transparent 70%); filter: blur(4px);
  transition: transform .55s ease, opacity .55s ease; z-index: 0; opacity: 0; pointer-events: none;
}
.bcmp-card:hover {
  transform: translateY(-10px) rotateX(1.5deg) rotateY(-1.5deg);
  box-shadow: var(--sh-p), 0 30px 70px rgba(17,35,63,.14);
  border-color: rgba(240,78,26,.4);
}
.bcmp-card:hover::before { opacity: 1; }
.bcmp-card:hover::after  { opacity: 1; transform: scale(1.4) translate(20px, 20px); }

.bcmp-media { position: relative; height: 140px; overflow: hidden; z-index: 1; background: linear-gradient(135deg, var(--pbg), #fff 75%); }
/* اسپسیفیسیتی بالاتر از .svc-article-body img (استایل درون‌خطی service_detail.html که
   height:auto می‌دهد) عمداً لازم است — همان spec دارند و بدون این، رول صفحه با
   ترتیب بارگذاری بعدی برنده می‌شود و عکس بزرگ روی متن زیرش می‌افتد. */
.bcmp-card .bcmp-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; display: block; margin: 0; border-radius: 0;
}
.bcmp-media-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.8rem; opacity: .35; }
.bcmp-media-top {
  position: absolute; top: 12px; right: 12px; left: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.bcmp-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .32rem .7rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--pl), var(--p)); color: #fff; font-size: .68rem; font-weight: 800;
  box-shadow: 0 8px 18px rgba(240,78,26,.35); white-space: nowrap;
  animation: bcmpFloat 3.2s ease-in-out infinite;
}
.bcmp-score {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .32rem .6rem; border-radius: 50px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(6px); color: var(--txt); font-size: .72rem; font-weight: 800;
  box-shadow: var(--sh-sm);
}

.bcmp-body { position: relative; z-index: 1; padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.bcmp-name { margin: 0 0 .2rem; font-size: 1.08rem; font-weight: 800; color: var(--txt); }
.bcmp-tagline { margin: 0 0 .7rem; font-size: .86rem; color: var(--mut); }

.bcmp-tier {
  align-self: flex-start; margin-bottom: .7rem;
  padding: .18rem .65rem; border-radius: 50px;
  font-size: .68rem; font-weight: 800; white-space: nowrap;
}
.bcmp-tier--economy  { background: #FEF3C7; color: #92400E; }
.bcmp-tier--standard { background: #DBEAFE; color: #1E40AF; }
.bcmp-tier--premium  { background: #F0FDF4; color: #14532D; }
.bcmp-tier--luxury   { background: #FCE7F3; color: #9D174D; }

.bcmp-summary { font-size: .92rem; color: var(--txt2); line-height: 1.8; margin-bottom: .75rem; }
.bcmp-summary p:last-child { margin-bottom: 0; }

.bcmp-metrics { display: grid; gap: .4rem; margin-bottom: .85rem; }
.bcmp-metric {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem;
  padding: .45rem .6rem; border: 1px solid rgba(240,78,26,.10); border-radius: 12px;
  background: linear-gradient(180deg, rgba(240,78,26,.04), rgba(240,78,26,0));
  transition: transform .25s ease, border-color .25s ease;
}
.bcmp-metric:hover { transform: translateX(-4px); border-color: rgba(240,78,26,.3); }
.bcmp-metric-icon {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; font-size: .98rem;
  background: linear-gradient(145deg, var(--pbg), #fff); border: 1px solid rgba(240,78,26,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9); transition: transform .3s ease;
}
.bcmp-metric:hover .bcmp-metric-icon { transform: rotate(-8deg) scale(1.08); }
.bcmp-metric-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.bcmp-metric-info strong { font-size: .86rem; color: var(--txt); }
.bcmp-metric-sub { font-size: .75rem; color: var(--mut); }
.bcmp-progress { height: 6px; margin-top: .3rem; border-radius: 50px; background: #EDF1F6; overflow: hidden; }
.bcmp-progress i {
  display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pl), var(--p));
  transform-origin: right; animation: bcmpProgressIn 1.1s .3s cubic-bezier(.2,.8,.2,1) both;
}
.bcmp-metric-value { font-size: .77rem; font-weight: 800; color: var(--p); white-space: nowrap; }

.bcmp-btn {
  position: relative; overflow: hidden; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, var(--pl), var(--p)); color: #fff; font-weight: 800; font-size: .85rem;
  box-shadow: 0 12px 26px rgba(240,78,26,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bcmp-btn::before {
  content: ""; position: absolute; width: 55px; height: 160%; left: -80px; top: -30%;
  background: rgba(255,255,255,.28); transform: rotate(20deg); transition: left .6s ease;
}
.bcmp-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(240,78,26,.34); }
.bcmp-btn:hover::before { left: 115%; }

@keyframes bcmpReveal { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bcmpFloat   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bcmpProgressIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .bcmp-card, .bcmp-btn, .bcmp-metric, .bcmp-metric-icon { transition: none; animation: none; }
  .bcmp-chip { animation: none; }
  .bcmp-progress i { animation: none; }
}

/* ── Type compare cards block (بدون امتیاز — برای «نوع/جنس») ── */
.tcmp-title { font-weight: 800; font-size: 1.1rem; color: var(--txt); margin: 2rem 0 1.2rem; }
.tcmp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 1.6rem 0; }
.tcmp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tcmp-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .tcmp-grid--3, .tcmp-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tcmp-grid, .tcmp-grid--3, .tcmp-grid--4 { grid-template-columns: 1fr; } }

.tcmp-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  animation: tcmpReveal .6s cubic-bezier(.22,.85,.35,1.1) both;
  transition: transform .4s cubic-bezier(.2,.8,.25,1), box-shadow .4s ease, border-color .3s ease;
}
.tcmp-grid .tcmp-card:nth-child(2) { animation-delay: .07s; }
.tcmp-grid .tcmp-card:nth-child(3) { animation-delay: .14s; }
.tcmp-grid .tcmp-card:nth-child(4) { animation-delay: .21s; }
.tcmp-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px var(--tcmp-shadow, rgba(0,0,0,.14)), var(--sh-sm);
}

/* ── تصویر بالای کارت — دقیقاً مثل bcmp-media (عکس با نسبت واقعی/بدون برش +
   جای‌گذاری امن با اسپسیفیسیتی بالاتر از .svc-article-body img)، به‌علاوه‌ی
   بج/امتیاز شناور روی عکس ── */
.tcmp-media { position: relative; height: 132px; overflow: hidden; background: linear-gradient(135deg, var(--tcmp-bg, var(--pbg)), #fff 75%); }
.tcmp-card .tcmp-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; display: block; margin: 0; border-radius: 0;
}
.tcmp-media-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; opacity: .4; color: var(--tcmp-a, var(--p)); }
.tcmp-media-top {
  position: absolute; top: 12px; right: 12px; left: 12px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.tcmp-badge {
  display: inline-flex; align-items: center; gap: .3rem; max-width: 75%;
  padding: .3rem .65rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--tcmp-d1, var(--pd)), var(--tcmp-d2, var(--p))); color: #fff;
  font-size: .68rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 6px 16px var(--tcmp-shadow, rgba(0,0,0,.2));
}
.tcmp-score {
  display: inline-flex; align-items: center; gap: .25rem; flex-shrink: 0;
  padding: .3rem .6rem; border-radius: 50px;
  background: rgba(255,255,255,.9); color: var(--txt);
  font-size: .72rem; font-weight: 800; box-shadow: var(--sh-sm);
}
.tcmp-name { margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 900; color: var(--txt); }
.tcmp-summary { font-size: .92rem; line-height: 1.8; color: var(--txt2); margin-bottom: .45rem; }
.tcmp-summary p:last-child { margin-bottom: 0; }

/* ── بدنه‌ی کارت ── */
.tcmp-body { flex: 1; display: flex; flex-direction: column; padding: .95rem 1rem 1.05rem; }

.tcmp-decision {
  margin-bottom: 1rem; padding: .7rem .8rem; border-radius: 12px;
  background: var(--tcmp-bg, var(--pbg)); color: var(--tcmp-a, var(--p));
  font-size: .86rem; font-weight: 700; line-height: 1.9;
}

.tcmp-metrics { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .75rem; }
.tcmp-metric { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; row-gap: .18rem; }
/* ⚠️ جایگاهِ هر سه صریح تعیین شده، چون در قالب ترتیبِ DOM «نام → نوار → مقدار»
   است و با auto-placement نوار (که کلِ عرض را span می‌کند) ردیف دوم را می‌گرفت و
   مقدار به ردیفِ سومِ جداگانه پرت می‌شد — ستونِ دوم ۰ پیکسل می‌ماند و هر متریک
   به‌جای ۳۱ پیکسل، ۵۳ پیکسل ارتفاع می‌گرفت (×۵ متریک = ۱۱۰ پیکسل هدررفت در هر
   کارت). حالا مقدار کنارِ نام می‌نشیند و نوار زیرشان. */
.tcmp-metric-name  { grid-area: 1 / 1 / 2 / 2; font-size: .85rem; font-weight: 700; color: var(--txt); }
.tcmp-metric-value { grid-area: 1 / 2 / 2 / 3; font-size: .76rem; font-weight: 800; color: var(--mut); white-space: nowrap; }
.tcmp-progress { grid-area: 2 / 1 / 3 / -1; height: 6px; border-radius: 50px; background: var(--bg); overflow: hidden; }
.tcmp-progress i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--tcmp-d1, var(--pl)), var(--tcmp-a, var(--p)));
  transform-origin: right; animation: tcmpProgressIn 1s .2s cubic-bezier(.2,.8,.2,1) both;
}

.tcmp-taglist { margin-bottom: .6rem; }
.tcmp-taglist-label { font-size: .74rem; font-weight: 800; color: var(--mut); margin-bottom: .3rem; }

/* ⚠️ سلکتورِ دو-کلاسه لازم است، نه فقط .tcmp-tags — این چیپ‌ها داخل
   .svc-article-body رندر می‌شوند و آن‌جا برای متنِ مقاله روی هر ul قانونِ
   «display:flex + flex-direction:column + padding-right:1.4rem» هست که
   اختصاصیّتش (0,1,1) از .tcmp-tags (0,1,0) بیشتر بود و برنده می‌شد. نتیجه:
   چیپ‌ها به‌جای چیده‌شدن کنار هم، هرکدام تمام‌عرض (۳۸۳px) و زیرِ هم می‌افتادند
   و سه تا چیپِ کوچک ۱۰۹ پیکسل ارتفاع می‌گرفتند. `text-align:justify` مقاله هم
   روی متنِ کوتاهِ داخل چیپ اعمال می‌شد. */
.tcmp-card .tcmp-tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: .3rem;
}
.tcmp-card .tcmp-tags li {
  display: inline-flex; align-items: center; width: auto; margin: 0;
  text-align: start; line-height: 1.7;
  font-size: .76rem; font-weight: 700; border-radius: 50px; padding: .2rem .55rem;
}
.tcmp-tags--good li { color: #15803D; background: #F0FDF4; border: 1px solid #BBF7D0; }
.tcmp-tags--bad  li { color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; }

.tcmp-verdict {
  margin-top: auto; margin-bottom: .7rem; padding: .55rem .7rem; border-radius: 11px;
  background: var(--bg); border-inline-start: 3px solid var(--tcmp-a, var(--p));
  font-size: .86rem; color: var(--txt2); line-height: 1.8;
}

.tcmp-btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; border-radius: 13px; text-decoration: none;
  background: linear-gradient(135deg, var(--tcmp-d1, var(--pl)), var(--tcmp-a, var(--p)));
  color: #fff; font-weight: 800; font-size: .84rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tcmp-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--tcmp-shadow, rgba(0,0,0,.2)); }

.tcmp-card--teal   { --tcmp-a: #047857; --tcmp-d1: #065F46; --tcmp-d2: #047857; --tcmp-bg: #ECFDF5; --tcmp-shadow: rgba(4,120,87,.22); }
.tcmp-card--blue   { --tcmp-a: #1D4ED8; --tcmp-d1: #1E3A8A; --tcmp-d2: #1D4ED8; --tcmp-bg: #EFF6FF; --tcmp-shadow: rgba(29,78,216,.22); }
.tcmp-card--orange { --tcmp-a: #C03A0E; --tcmp-d1: #8A2C0B; --tcmp-d2: #C03A0E; --tcmp-bg: var(--pbg); --tcmp-shadow: rgba(240,78,26,.26); }
.tcmp-card--purple { --tcmp-a: #6D28D9; --tcmp-d1: #4C1D95; --tcmp-d2: #6D28D9; --tcmp-bg: #F5F3FF; --tcmp-shadow: rgba(109,40,217,.22); }
.tcmp-card--pink   { --tcmp-a: #BE185D; --tcmp-d1: #9D174D; --tcmp-d2: #BE185D; --tcmp-bg: #FDF2F8; --tcmp-shadow: rgba(190,24,93,.22); }

@keyframes tcmpReveal {
  from { opacity: 0; transform: translateY(26px) scale(.94) rotate(-1.5deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes tcmpProgressIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .tcmp-card, .tcmp-btn { transition: none; animation: none; }
  .tcmp-progress i { animation: none; }
}

/* ── Good/bad comparison block (اصولی/عجولانه) ── */
.gbc-title { font-weight: 800; font-size: 1.1rem; color: var(--txt); margin: 2rem 0 1.2rem; }
.gbc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin: 2rem 0 1rem; }
@media (max-width: 640px) { .gbc-grid { grid-template-columns: 1fr; } }

.gbc-box { padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--r-xl); border: 1px solid var(--bdr); }
.gbc-box--good { background: linear-gradient(160deg, #F0FDF4, #fff 65%); border-color: #BBF7D0; }
.gbc-box--bad  { background: linear-gradient(160deg, #FEF2F2, #fff 65%); border-color: #FECACA; }

.gbc-box-title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 900; margin-bottom: 1rem; }
.gbc-box--good .gbc-box-title { color: #15803D; }
.gbc-box--bad  .gbc-box-title  { color: #B91C1C; }

/* دو-کلاسه به همان دلیلِ .tcmp-tags بالا: قانونِ ulِ متنِ مقاله وگرنه به این
   لیست هم padding-right و text-align:justify تحمیل می‌کرد. */
.gbc-box .gbc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.gbc-box .gbc-list li { position: relative; padding-inline-start: 1.5rem; margin: 0; font-size: .9rem; color: var(--txt2); line-height: 1.8; text-align: start; }
.gbc-list--good li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: #16A34A; font-weight: 900; }
.gbc-list--bad  li::before { content: "✕"; position: absolute; inset-inline-start: 0; top: 0; color: #DC2626; font-weight: 900; }

.gbc-verdict {
  display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 2rem;
  padding: .9rem 1.1rem; border-radius: 14px;
  background: linear-gradient(120deg, #FFFBEB, #FFFDF7);
  border: 1px solid #FDE68A; color: #78350F;
  font-size: .85rem; font-weight: 700; line-height: 1.85;
}

/* ── Color palette guide block (تناژ رنگ به تفکیک فضا) ── */
.cpg-title { font-weight: 800; font-size: 1.1rem; color: var(--txt); margin: 2rem 0 1.2rem; }
.cpg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin: 1.6rem 0 1rem; }
.cpg-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cpg-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cpg-grid, .cpg-grid--3 { grid-template-columns: 1fr; } }
/* این کارت‌ها کوتاه‌اند (فقط نام فضا + چند سواچ)؛ روی نمایشگر پهن دو ستون یعنی
   نصفِ عرض هدر می‌رود، پس از ۱۰۵۰ پیکسل به بالا سه‌ستونه می‌شوند. */
@media (min-width: 1050px) { .cpg-grid { grid-template-columns: repeat(3, 1fr); } }

.cpg-card {
  padding: .95rem 1rem; border-radius: var(--r-lg); border: 1px solid var(--bdr);
  background: linear-gradient(180deg, var(--surf), #fbfcff);
}
.cpg-name { display: flex; align-items: center; gap: .5rem; margin: 0 0 .85rem; font-size: .95rem; font-weight: 800; color: var(--txt); }
.cpg-swatches { display: flex; flex-direction: column; gap: .5rem; }
.cpg-swatch { display: flex; align-items: center; gap: .6rem; padding: .4rem .55rem; border-radius: 10px; background: var(--bg); font-size: .86rem; color: var(--txt2); }
.cpg-swatch-color { width: 34px; height: 20px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); flex-shrink: 0; }
.cpg-tip { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--bdr); font-size: .8rem; font-weight: 700; color: var(--mut); }

/* دکمه‌ی اختیاریِ کارت — فقط وقتی ادمین لینک گذاشته باشد رندر می‌شود.
   کارت خودش flex ستونی نیست، پس margin-top:auto اثری ندارد؛ فاصله‌ی ثابت. */
.cpg-btn, .gbc-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(135deg, var(--pl), var(--p));
  color: #fff; font-weight: 800; font-size: .82rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cpg-btn { margin-top: .85rem; }
.gbc-btn { margin: 0 0 2rem; }
.cpg-btn:hover, .gbc-btn:hover {
  transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240,78,26,.25);
}

.cpg-note {
  display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 2rem;
  padding: .85rem 1.05rem; border-radius: 14px;
  background: linear-gradient(120deg, #FFFBEB, #FFFDF7);
  border: 1px solid #FDE68A; color: #6C5122;
  font-size: .82rem; line-height: 1.85;
}

/* ── Generic embed block ── */
.post-embed { margin: 1.5rem 0; }
.post-embed__frame { border-radius: var(--r-lg); overflow: hidden; }
.post-embed__frame iframe { width: 100%; height: 100%; display: block; }

/* ── Download / lead-magnet block ── */
.post-download {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: 1.5rem 0; padding: 1.1rem 1.25rem;
  background: var(--surf); border: 1.5px solid var(--bdr); border-radius: var(--r-lg);
}
.post-download__icon { font-size: 1.8rem; flex-shrink: 0; }
.post-download__body { flex: 1; min-width: 160px; }
.post-download__title { font-weight: 800; font-size: .92rem; color: var(--txt); }
.post-download__desc { font-size: .8rem; color: var(--txt2); margin-top: .2rem; }
.post-download__btn {
  flex-shrink: 0; background: var(--p); color: #fff; font-weight: 800; font-size: .82rem;
  padding: .6rem 1.2rem; border-radius: 50px; text-decoration: none; white-space: nowrap;
  transition: .15s;
}
.post-download__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(240,78,26,.25); }

/* ════════════════════════════════════════════════
   BLOG — SIDEBAR WIDGETS
════════════════════════════════════════════════ */
.widget {
  background: var(--surf);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--bdr);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.widget-title {
  font-size: .88rem;
  font-weight: 900;
  color: var(--txt);
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--pbg);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.widget-post {
  display: flex;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--bdr);
  text-decoration: none;
  color: var(--txt);
  transition: .15s;
}
.widget-post:last-child { border-bottom: none; }
.widget-post:hover { color: var(--p); }
.widget-thumb {
  width: 54px; height: 54px;
  border-radius: var(--r);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.widget-post-title {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-post-date { font-size: .7rem; color: var(--mut); margin-top: .2rem; }
.cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--bdr);
  font-size: .85rem;
  text-decoration: none;
  color: var(--txt2);
  transition: .15s;
}
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { color: var(--p); }
.cat-row-count {
  background: var(--pbg);
  color: var(--p);
  font-size: .7rem;
  font-weight: 800;
  padding: .15rem .5rem;
  border-radius: 50px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-item {
  display: inline-block;
  background: #F3F4F6;
  color: var(--txt2);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid var(--bdr);
  transition: .15s;
}
.tag-item:hover { background: var(--p); color: #fff; border-color: var(--p); }

/* hide Wagtail staff userbar on frontend pages */
.w-userbar { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   HERO BACKGROUND IMAGE — مشترک بین همه هیروهای سایت (خانه، درباره،
   تماس، پیمانکاران، بلاگ، ...) — کانتینر هیرو باید position:relative
   و overflow:hidden داشته باشد. یک عکس تمام‌عرض (دسکتاپ/موبایل جدا،
   apps/core/hero_mixin.py) با یک پرده‌ی تیره‌ی ثابت روی آن، برای
   خوانا ماندن متن سفید — همان الگوی صفحات خدمت (service_detail.html)
   که خودش پرده‌ی قابل‌تنظیم‌تری دارد؛ اینجا چون این صفحات کنترل جدا
   برای تیرگی پرده لازم ندارند، یک مقدار ثابت کافی است.
═══════════════════════════════════════════════════════════════ */
.hero-bg-photo {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-bg-photo img {
  width: 100%; height: 100%; display: block;
  /* حالت نمایش و موقعیتِ برش از پنل ادمین با CSS variable روی .hero-bg-photo می‌آید؛
     مقادیر 'cover'/'contain'/'fill' و 'center'/'left top'/... خودشان کلیدواژه‌ی
     معتبرِ object-fit / object-position هستند. */
  object-fit: var(--hero-fit, cover);
  object-position: var(--hero-pos, center);
}
@media (max-width: 719px) {
  .hero-bg-photo img {
    object-fit: var(--hero-fit-m, cover);
    object-position: var(--hero-pos-m, center);
  }
}
.hero-bg-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(145deg, rgba(8,13,26,.75) 0%, rgba(15,23,42,.5) 55%, rgba(19,11,30,.75) 100%),
    radial-gradient(ellipse 60% 55% at 50% 40%, transparent 0%, rgba(8,13,26,.35) 100%);
}

/* ══ Jalali date picker (static/js/jalali-datepicker.js) ══════════════════ */
.jalali-picker-input { cursor: pointer; background: #fff; }
.jalali-picker-pop {
  position: absolute; z-index: 4000; width: 268px;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
  padding: .75rem; direction: rtl; font-family: inherit;
  animation: jpFadeIn .12s ease both;
}
@keyframes jpFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.jp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.jp-title { font-size: .85rem; font-weight: 800; color: #1F2937; }
.jp-nav {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0,0,0,.08);
  background: #F9FAFB; color: #374151; font-size: .95rem; cursor: pointer; line-height: 1;
}
.jp-nav:hover { background: #F04E1A; color: #fff; border-color: #F04E1A; }
.jp-week-row { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: .3rem; }
.jp-week-lbl { text-align: center; font-size: .68rem; color: #9CA3AF; font-weight: 700; }
.jp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .15rem; }
.jp-day {
  aspect-ratio: 1; border: none; background: transparent; border-radius: 8px;
  font-size: .78rem; font-weight: 700; color: #374151; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.jp-day:hover { background: rgba(240,78,26,.1); color: #F04E1A; }
.jp-day.jp-selected { background: #F04E1A; color: #fff; }
.jp-day.jp-disabled { color: #D1D5DB; cursor: not-allowed; }
.jp-day.jp-disabled:hover { background: transparent; color: #D1D5DB; }
.jp-today-btn {
  display: block; width: 100%; margin-top: .6rem; padding: .5rem;
  border: 1px dashed rgba(240,78,26,.35); border-radius: 9px;
  background: rgba(240,78,26,.05); color: #F04E1A; font-size: .78rem; font-weight: 800;
  cursor: pointer;
}
.jp-today-btn:hover { background: rgba(240,78,26,.12); }

/* ════════════════════════════════════════════════
   NOTIFICATION ITEM — سراسری، هم توی صفحه‌ی کامل
   /notifications/ هم توی Drawer AJAX‌لودشده (nav.html)
   استفاده می‌شود — یک منبع واحد، بدون دوباره‌نویسی.
════════════════════════════════════════════════ */
.nl-item { display:block;background:#fff;border-radius:14px;border:1.5px solid #F0F0F0;padding:1rem 1.2rem;margin-bottom:.7rem;text-decoration:none;color:inherit;transition:.15s;position:relative; }
.nl-item:hover { border-color:#F04E1A; box-shadow:0 4px 14px rgba(0,0,0,.05); }
.nl-item.unread { background:#FFF7ED; border-color:#FED7AA; }
.nl-item.unread::before { content:''; position:absolute; top:1.1rem; left:1.1rem; width:8px;height:8px;border-radius:50%;background:#F04E1A; }
.nl-title-row { font-weight:800; font-size:.92rem; padding-inline-start: .8rem; }
.nl-body { font-size:.82rem;color:#6B7280;margin-top:.3rem; padding-inline-start: .8rem; }
.nl-time { font-size:.72rem;color:#6B7280;margin-top:.5rem; padding-inline-start: .8rem; }

.empty-state { text-align:center;padding:3rem 1rem;color:#6B7280; }
.empty-state h3 { font-size:1.05rem;font-weight:800;margin:.8rem 0 .4rem; }

/* ════════════════════════════════════════════════
   هدف لمسی — بزرگ‌کردن ناحیه‌ی لمس بدون جابه‌جایی چیدمان
════════════════════════════════════════════════ */
/* روی عنصر inline، padding عمودی ارتفاع خط را تغییر نمی‌دهد ولی ناحیه‌ی
   قابل‌لمس را بزرگ می‌کند — یعنی این لینک‌ها راحت‌تر زده می‌شوند بدون اینکه
   یک پیکسل از چیدمان تکان بخورد. برای عناصر block/flex به‌جای padding از
   min-height استفاده شده تا فاصله‌ی داخلی‌شان بهم نریزد. */
.sd-crumb a,
nav span > a,
.info-val a,
.sd-card a,
.auth-bottom a {
  padding-block: .3rem;
}

/* کنترل‌های مستقل (نه لینک وسط متن) — ارتفاع لمسی واقعی می‌گیرند */
.ord-back,
.sd-back {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.cond-list .cond-item a {
  min-height: 32px;
  display: flex;
  align-items: center;
}

/* لینک «همه …» کنار عنوان بخش‌های صفحه‌ی اصلی — قبلاً inline-style بود با
   ارتفاع لمسی ۲۰px */
.section-more {
  font-size: .8rem; color: var(--p); font-weight: 700;
  display: inline-flex; align-items: center;
  min-height: 32px; padding-inline: .25rem;
  text-decoration: none;
}
.section-more:hover { text-decoration: underline; }

