/* ═══════════════════════════════════════════════════════════════════
   عدالت گستران — لایه طراحی صفحه اصلی (نسخه ۱۴)
   سبک: رسمی و اداری مدرن — سرمهای عمیق + طلایی مهر، پترن ظریف اداری
   این فایل پس از main.css و polish.css بارگذاری می‌شود و فقط صفحه اصلی
   را بازطراحی می‌کند. قراردادهای JS (reveal / data-count / hslider) حفظ شده است.
   ═══════════════════════════════════════════════════════════════════ */

/* ── ابزارهای مشترک لایه هوم ─────────────────────────────────────── */
.hm-shell { position: relative; }

/* نقش مهر رسمی — جداکننده تزئینی */
.hm-ornament {
  display: flex; align-items: center; gap: 14px;
  margin: 0 auto; max-width: 320px;
}
.hm-ornament::before, .hm-ornament::after {
  content: ''; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.hm-ornament::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.hm-ornament i {
  width: 12px; height: 12px; flex: none;
  background: var(--gold-grad);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(201, 162, 75, .14);
}

/* ═══ هیرو رسمی ═══════════════════════════════════════════════════ */
.hm-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(201, 162, 75, .16), transparent 60%),
    radial-gradient(900px 600px at 8% 112%, rgba(47, 134, 236, .14), transparent 55%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 46%, var(--navy-850) 100%);
  padding: 66px 0 150px;
  isolation: isolate;
}
/* پترن اداری ظریف — شبکه نقطه‌ای + خطوط طلایی محو */
.hm-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 96px);
  background-size: 26px 26px, auto;
}
.hm-hero::after {
  content: ''; position: absolute; z-index: -1;
  inset-inline-start: -140px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 75, .18);
  box-shadow: inset 0 0 0 34px rgba(201, 162, 75, .045), inset 0 0 0 70px rgba(255, 255, 255, .025);
}
.hm-hero__in {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 46px; align-items: center;
}

.hm-hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(201, 162, 75, .38);
  color: var(--gold-300);
  font-size: 13px; font-weight: 700; letter-spacing: .2px;
  backdrop-filter: blur(6px);
}
.hm-hero__badge svg { color: var(--gold-400); }

.hm-hero__title {
  margin: 20px 0 14px;
  font-size: clamp(28px, 4.1vw, 46px);
  font-weight: 900; line-height: 1.5;
  color: #fff; letter-spacing: -.2px;
  text-wrap: balance;
}
.hm-hero__title .gold {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 55%, var(--gold-300));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hm-hero__title .gold::after {
  content: ''; display: block; width: 92px; height: 4px; margin-top: 12px;
  border-radius: 4px; background: var(--gold-grad);
  box-shadow: 0 4px 14px rgba(201, 162, 75, .45);
}
.hm-hero__desc {
  max-width: 56ch; color: var(--on-navy-2);
  font-size: 15.5px; line-height: 2.15; margin: 0 0 26px;
}
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.hm-hero__actions .btn--gold {
  position: relative; overflow: hidden;
  box-shadow: var(--sh-gold);
}
.hm-hero__actions .btn--gold::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 44px;
  inset-inline-start: -70px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  animation: hmShine 3.4s ease-in-out infinite;
}
@keyframes hmShine { 0%, 55% { inset-inline-start: -70px; } 90%, 100% { inset-inline-start: 130%; } }

.hm-hero__trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 9px;
  padding: 0; margin: 30px 0 0;
}
.hm-hero__trust li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .11);
  color: var(--on-navy-2); font-size: 12.5px; font-weight: 600;
}
.hm-hero__trust svg { color: var(--gold-400); flex: none; }

/* قاب رسمی اسلایدر وکلا */
.hm-hero__media { position: relative; }
.hm-hero__media::before {
  content: ''; position: absolute; inset: -16px -16px 34px;
  border: 1.5px solid rgba(201, 162, 75, .3);
  border-radius: 30px; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.hm-hero__media .hslider { position: relative; z-index: 1; }

/* ═══ نوار دسترسی سریع (روی مرز هیرو) ═════════════════════════════ */
.hm-quick { position: relative; z-index: 5; margin-top: -92px; }
.hm-quick__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.hm-tile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px;
  padding: 17px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--navy-50));
  transition: transform .3s var(--ease, ease), border-color .3s, box-shadow .3s;
}
.hm-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  box-shadow: var(--sh-md);
}
.hm-tile__ic {
  flex: none; width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 8px 18px rgba(13, 27, 62, .22);
  transition: transform .3s var(--ease, ease), background .3s;
}
.hm-tile:hover .hm-tile__ic { transform: scale(1.07) rotate(-3deg); background: var(--gold-grad); color: var(--navy-900); }
.hm-tile__txt { min-width: 0; }
.hm-tile__txt b { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); }
.hm-tile__txt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.8; }
.hm-tile__arrow {
  position: absolute; inset-inline-end: 13px; top: 50%; translate: 0 -50%;
  color: var(--gold-600); opacity: 0; transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}
.hm-tile:hover .hm-tile__arrow { opacity: 1; transform: none; }

/* ═══ نوار آمار — مدال رسمی ═══════════════════════════════════════ */
.hm-stats { padding: 64px 0 8px; }
.hm-stats .stats__band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: none; border: 0; box-shadow: none; padding: 0;
}
.hm-stats .stat {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 16px 22px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .3s var(--ease, ease), box-shadow .3s;
}
.hm-stats .stat:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.hm-stats .stat::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 3.5px;
  background: var(--gold-grad);
}
.hm-stats .stat::after {
  content: ''; position: absolute; inset-inline-end: -30px; bottom: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, .1), transparent 70%);
}
.hm-stats .stat__ic {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-600);
  background: radial-gradient(circle at 32% 26%, #fff, var(--cream));
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 0 0 5px rgba(201, 162, 75, .12), var(--sh-sm);
}
.hm-stats .stat__num {
  font-size: 30px; font-weight: 900; color: var(--navy-800); line-height: 1;
  letter-spacing: -.5px;
}
.hm-stats .stat__lbl { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-top: 6px; }

/* ═══ سربرگ سکشن‌ها — مهر طلایی ═══════════════════════════════════ */
.home .section-head__kicker,
.home .section-head--center .section-head__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: linear-gradient(180deg, #fffdf6, var(--cream));
  border: 1px solid rgba(201, 162, 75, .45);
  color: var(--gold-700); font-size: 12.5px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(201, 162, 75, .14);
}
.home .section-head h2 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: var(--navy-850);
  letter-spacing: -.3px;
}
.home .section-head h2::after {
  content: ''; display: block; width: 58px; height: 3.5px; margin-top: 10px;
  border-radius: 4px; background: var(--gold-grad);
}
.home .section-head--center h2::after { margin-inline: auto; }
.home .section-head p { color: var(--text-2); }

/* ═══ خدمات — کارت‌های اداری ══════════════════════════════════════ */
.home .svc-card {
  position: relative; overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .3s var(--ease, ease), box-shadow .3s, border-color .3s;
}
.home .svc-card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: var(--gold-grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease, ease);
}
.home .svc-card:hover { transform: translateY(-7px); border-color: rgba(201, 162, 75, .55); box-shadow: var(--sh-lg); }
.home .svc-card:hover::before { transform: scaleX(1); }
.home .svc-card__ic {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 22px rgba(13, 27, 62, .2);
  transition: background .35s, color .35s, transform .35s var(--ease, ease);
}
.home .svc-card:hover .svc-card__ic { background: var(--gold-grad); color: var(--navy-900); transform: rotate(-4deg) scale(1.05); }
.home .svc-card h3 { font-weight: 800; color: var(--navy-850); }
.home .svc-card__more { color: var(--gold-700); font-weight: 800; }

/* ═══ مراحل همکاری — خط زمانی مهر ═════════════════════════════════ */
.home .stepsline { position: relative; }
.home .stepsline__rail {
  top: 66px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 10px, transparent 10px 18px);
  opacity: .55;
}
.home .stepsline__item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 20px 22px;
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease, ease), border-color .3s, box-shadow .3s;
}
.home .stepsline__item:hover { transform: translateY(-5px); border-color: rgba(201, 162, 75, .5); box-shadow: var(--sh-md); }
.home .stepsline__num {
  position: relative; z-index: 1;
  width: 54px; height: 54px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy-900); font-weight: 900; font-size: 19px;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7.5px rgba(201, 162, 75, .4), var(--sh-gold);
}
.home .stepsline__item b { color: var(--navy-850); font-size: 15.5px; }
.home .stepsline__item p { font-size: 13px; color: var(--text-2); }

/* ═══ چرا ما ══════════════════════════════════════════════════════ */
.home .why__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }
.home .why__media::after {
  content: ''; position: absolute; inset: 14px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: calc(var(--r-xl) - 10px);
  pointer-events: none;
}
.home .why__item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease, ease), border-color .3s;
}
.home .why__item:hover { transform: translateX(-5px); border-color: rgba(201, 162, 75, .5); }
.home .why__item-ic {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.home .why__item b { color: var(--navy-850); }

/* ═══ تیم ═════════════════════════════════════════════════════════ */
.home .team-card--pro {
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease, ease), box-shadow .3s, border-color .3s;
}
.home .team-card--pro:hover { transform: translateY(-6px); border-color: rgba(201, 162, 75, .5); box-shadow: var(--sh-lg); }
.home .team-card__media { position: relative; overflow: hidden; }
.home .team-card__media img { transition: transform .5s var(--ease, ease); }
.home .team-card--pro:hover .team-card__media img { transform: scale(1.045); }
.home .team-card__lic-row {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream); border: 1px dashed rgba(201, 162, 75, .55);
  border-radius: 999px; padding: 4px 12px;
  font-size: 11.5px; color: var(--gold-700); font-weight: 700;
}

/* ═══ مقالات ══════════════════════════════════════════════════════ */
.home .art-card {
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease, ease), box-shadow .3s, border-color .3s;
}
.home .art-card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 75, .5); box-shadow: var(--sh-lg); }
.home .art-card__media { overflow: hidden; }
.home .art-card__media img { transition: transform .5s var(--ease, ease); }
.home .art-card:hover .art-card__media img { transform: scale(1.05); }
.home .art-card__cat {
  background: var(--gold-grad); color: var(--navy-900);
  border-radius: 999px; padding: 3px 12px;
  font-size: 11px; font-weight: 800;
}
.home .art-card h3 a { color: var(--navy-850); }
.home .art-card h3 a:hover { color: var(--gold-700); }

/* ═══ نظرات — شیشه‌ای روی سرمه‌ای ═════════════════════════════════ */
.home .section--navy {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(201, 162, 75, .13), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-850));
}
.home .section--navy::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1.4px);
  background-size: 24px 24px;
}
.home .section--navy .section-head h2 { color: #fff; }
.home .section--navy .section-head p { color: var(--on-navy-2); }
.home .testi-card {
  position: relative;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease, ease), border-color .3s, background .3s;
}
.home .testi-card:hover { transform: translateY(-5px); border-color: rgba(201, 162, 75, .45); background: rgba(255, 255, 255, .08); }
.home .testi-card__quote { color: var(--gold-400); }
.home .testi-card p { color: var(--on-navy-2); }
.home .testi-card__who b { color: #fff; }
.home .testi-card__stars svg { color: var(--gold-400); }

/* ═══ اخبار ═══════════════════════════════════════════════════════ */
.home .news-strip {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}
.home .news-strip__title { color: var(--navy-850); }
.home .news-strip__card { border-radius: var(--r-md); border: 1.5px solid var(--line); transition: transform .3s var(--ease, ease), border-color .3s, box-shadow .3s; }
.home .news-strip__card:hover { transform: translateY(-4px); border-color: rgba(201, 162, 75, .55); box-shadow: var(--sh-md); }
.home .news-strip__cat { background: var(--gold-grad); color: var(--navy-900); }

/* ═══ سوالات متداول ═══════════════════════════════════════════════ */
.home .faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.home .faq__item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: border-color .3s;
}
.home .faq__item[open] { border-color: rgba(201, 162, 75, .55); }
.home .faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 20px;
  font-weight: 800; color: var(--navy-850); font-size: 15px;
  cursor: pointer;
}
.home .faq__q svg { color: var(--gold-600); transition: transform .3s; flex: none; }
.home .faq__item[open] .faq__q svg { transform: rotate(180deg); }
.home .faq__a { padding: 0 20px 18px; color: var(--text-2); line-height: 2.1; font-size: 13.5px; }

/* ═══ بنر CTA (فوتر — روی صفحه اصلی) ══════════════════════════════ */
.home .cta-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 85% 20%, rgba(201, 162, 75, .2), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
}
.home .cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.home .cta-banner__icon {
  background: var(--gold-grad); color: var(--navy-900);
  box-shadow: var(--sh-gold);
}

/* ═══ ریسبانسیو ═══════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hm-hero__in { grid-template-columns: 1fr; gap: 40px; }
  .hm-hero { padding: 52px 0 140px; }
  .hm-hero__media { max-width: 620px; margin-inline: auto; width: 100%; }
  .hm-quick__card { grid-template-columns: repeat(2, 1fr); }
  .hm-stats .stats__band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hm-hero { padding: 40px 0 132px; }
  .hm-hero__actions .btn { flex: 1; justify-content: center; }
  .hm-quick__card { grid-template-columns: 1fr; padding: 14px; }
  .hm-tile__arrow { display: none; }
  .hm-stats .stats__band { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hm-stats .stat__num { font-size: 24px; }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
  .hm-hero__actions .btn--gold::after { animation: none; }
  .hm-tile, .hm-stats .stat, .home .svc-card, .home .stepsline__item { transition: none; }
}
