/* =====================================================================
   Theme: حفظ ارزش — طرح «گنبد» (روشن؛ یاسی و بنفش با گنبد کریستالی)
   همان ساختار و متن لندینگ حفظ ارزش با هویت بصری دیگر؛ تصاویر رندر کم‌چندضلعی assets/img/dome-*.jpg
   فقط رنگ‌ها و هنر هیرو؛ ساختار در core.css است.
   ===================================================================== */

.theme-hefz {
  --bg: #f4f1fd;
  --bg-2: #e8e2fa;
  --bg-3: #ffffff;
  --ink: #1a1446;
  --ink-2: #504a78;
  --ink-3: #8a85ad;
  --surface: #ffffff;
  --surface-2: rgba(26, 20, 70, 0.05);
  --line: rgba(26, 20, 70, 0.11);

  --acc-rgb: 124, 77, 230;
  --acc-mid: #8b5cf6; --acc-mid-rgb: 139, 92, 246;
  --acc-deep: #5b32c4; --acc-deep-rgb: 91, 50, 196;
  --acc-deep2: #6d3fd6;
  --accent: #6d3fd6;
  --accent-ink: #1b0a4a;
  --accent-soft: rgba(124, 77, 230, 0.1);
  --accent-line: rgba(124, 77, 230, 0.32);
  --grad: linear-gradient(135deg, #cdbcff 0%, #9a73f8 45%, #6d3fd6 100%);
  --grad-deep: linear-gradient(135deg, #6d3fd6 0%, #5b32c4 100%);
  --btn-grad: linear-gradient(135deg, #cdbcff 0%, #a688fa 48%, #8b5cf6 100%);
  --glow: rgba(139, 92, 246, 0.35);
  --paper: #f6f2fe;
  --navy: #1a1446;

  --hero-bg: var(--bg);
}

/* آیکون‌های «ico--gold» در این طرح طلایی‌اند (رنگ سکه) */
.theme-hefz .ico--gold { --t1: #ffe08a; --t2: #f0b429; color: #4a3000; }

/* ---------- هیرو: ساحل ---------- */
.theme-hefz .hero__dust { display: none; }
.theme-hefz .hero__title { text-shadow: none; font-size: clamp(34px, 3.7vw, 58px); } /* عنوان دو خطی کوتاه‌تر: جا برای تصویر و نوار آمار */
.theme-hefz .hero__lead { color: var(--ink-2); }
.theme-hefz .hero { min-height: max(640px, calc(100svh - 96px)); } /* نوار آمار بدون اسکرول در صفحه می‌ماند */
.theme-hefz .hero--peak .hero__sun { display: none; }
/* هنر هیرو: رندر سه‌بعدی کم‌چندضلعی (هم‌خانواده‌ی کوه رنگی) — بالای تصویر در زمینه‌ی هیرو محو می‌شود */
.theme-hefz .hero--peak .hero__art { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: clamp(240px, calc(100% - 520px), 520px); display: block; pointer-events: none; }
/* پانورامای تمام‌عرض (۵:۱، از قبل از آسمان خالی کراپ شده)؛ لبه‌ها از لبه‌ی صفحه بیرون می‌زنند و فقط بالا کمی در زمینه محو می‌شود */
.theme-hefz .hero--peak .hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: none; }
.theme-hefz .hero--peak .hero__fade { position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; top: auto; height: 130px; pointer-events: none; background: linear-gradient(180deg, rgba(244, 241, 253, 0) 0, rgba(244, 241, 253, 0.85) 70%, var(--bg) 100%); }

.theme-hefz .btn--glass { background: rgba(255, 255, 255, 0.7); color: var(--ink); border: 1px solid rgba(26, 20, 70, 0.14); }
.theme-hefz .btn--glass:hover { background: #fff; }
.theme-hefz .btn--gold { box-shadow: 0 10px 24px -12px rgba(139, 92, 246, 0.7); }
.theme-hefz .hero__scroll { border-color: rgba(26, 20, 70, 0.35); }
.theme-hefz .hero__scroll span { background: var(--ink); }
.theme-hefz .chip { color: var(--ink-2); }

/* ---------- ناوبری و کارت‌های روشن ---------- */
/* لوگوی سفید در زمینه‌ی روشن: به سرمه‌ای تبدیل می‌شود (در فوتر تیره سفید می‌ماند) */
.theme-hefz .nav__brand img, .theme-hefz .trust__brand img { filter: brightness(0) saturate(100%) invert(12%) sepia(40%) saturate(2800%) hue-rotate(238deg) brightness(.9); }
.theme-hefz .nav.is-stuck { background: rgba(244, 241, 253, 0.88); box-shadow: 0 1px 0 var(--line), 0 18px 36px -28px rgba(26, 20, 70, 0.35); }
.theme-hefz .nav__links a:hover, .theme-hefz .nav__links a.is-active { background: rgba(26, 20, 70, 0.06); }
.theme-hefz .nav__burger { background: rgba(26, 20, 70, 0.07); }
.theme-hefz .nav.is-open { background: rgba(244, 241, 253, 0.97); }

.theme-hefz .ticker__card { background: #fff; border-color: var(--line); box-shadow: 0 30px 60px -36px rgba(26, 20, 70, 0.35); }
.theme-hefz .section-dark, .theme-hefz .perf__card, .theme-hefz .leadbox { box-shadow: 0 30px 60px -40px rgba(26, 20, 70, 0.3); }
.theme-hefz .chart__svg .xhair { stroke: rgba(26, 20, 70, 0.35); }
.theme-hefz .risk__meter span { background: rgba(26, 20, 70, 0.1); }
.theme-hefz .fam:hover { border-color: var(--accent-line); }
.theme-hefz .field { background: #fff; border-color: var(--line); }
.theme-hefz .field input:focus, .theme-hefz .field select:focus { background: #fff; }
.theme-hefz .arch img { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: 50% 55%; border-radius: inherit; filter: none; }
.theme-hefz .vs__col--new img { mix-blend-mode: multiply; width: 190px; height: auto; margin-top: -105px; filter: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); }
.theme-hefz .alloc__chart::before { opacity: 0.35; }

/* ---------- بخش‌های تیره‌ی عمدی: نتیجه محاسبه‌گر، فرم مشاوره، فوتر ---------- */
.theme-hefz .foot, .theme-hefz .dock, .theme-hefz .leadbox {
  --ink: #f6f2e8; --ink-2: #b8c2d6; --ink-3: #8794ad; --line: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.06); --surface-2: rgba(255, 255, 255, 0.1);
}
.theme-hefz .foot { background: #17123f; color: var(--ink); }
.theme-hefz .foot__links a:hover, .theme-hefz .foot .foot__credit:hover { color: #cdbcff; }
.theme-hefz .leadbox { background: #1a1446; color: var(--ink); }
.theme-hefz .leadbox .field { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); }
.theme-hefz .leadbox .field input:focus, .theme-hefz .leadbox .field select:focus { background: rgba(255, 255, 255, 0.12); }
.theme-hefz .leadbox .gold-text, .theme-hefz .leadbox .eyebrow { color: #cdbcff; }
.theme-hefz .calc__result { --accent: #cdbcff; }
.theme-hefz .dock { background: rgba(26, 20, 70, 0.92); }

@media (max-width: 980px) {
  .theme-hefz .hero--peak .hero__art { height: clamp(240px, 42vw, 400px); }
}
@media (max-width: 640px) {
  .theme-hefz .hero--peak .hero__art { height: clamp(220px, 62vw, 280px); }
}
