/* =========================================================
   مفید تلنت — استایل صفحه لندینگ /talent
   تمام کلاس‌ها با پیشوند mf-talent محدود (scoped) شده‌اند
   تا به بقیه سایت نشت نکنند. این فایل فقط در صفحه talent
   بارگذاری می‌شود (نگاه کن به functions-snippet.php).
   ========================================================= */

.mf-talent {
  /* --- توکن‌های رنگی مستقل این صفحه --- */
  --mf-t-bg: #FAF6F0;          /* کرم گرم، هم‌خانواده سایت مادر */
  --mf-t-bg-deep: #F0E9DD;     /* کرم عمیق‌تر برای کارت‌ها */
  --mf-t-ink: #1E2430;         /* متن اصلی، تیره نه مشکی مطلق */
  --mf-t-ink-soft: #4B5563;    /* متن ثانویه */
  --mf-t-teal: #1F6F63;        /* رنگ اصلی: رشد / فرصت / شروع */
  --mf-t-teal-dark: #154F46;
  --mf-t-copper: #C1662F;      /* فقط برای عنصر امضادار (خط پیوند) */
  --mf-t-line: rgba(30, 36, 48, 0.08);
  --mf-t-radius: 18px;
  --mf-t-shadow: 0 8px 30px rgba(30, 36, 48, 0.06);

  background: var(--mf-t-bg);
  color: var(--mf-t-ink);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.mf-talent * {
  box-sizing: border-box;
}

.mf-talent__section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}

.mf-talent__section--tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ---------------- Hero ---------------- */

.mf-talent__hero {
  position: relative;
  padding: 96px 24px 80px;
  overflow: hidden;
}

.mf-talent__hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.mf-talent__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-t-teal-dark);
  background: rgba(31, 111, 99, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.mf-talent__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--mf-t-ink);
}

.mf-talent__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
  color: var(--mf-t-ink-soft);
  max-width: 560px;
  margin: 0 auto 36px;
}

.mf-talent__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mf-t-teal);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(31, 111, 99, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mf-talent__cta:hover {
  background: var(--mf-t-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 111, 99, 0.35);
}

.mf-talent__cta:focus-visible {
  outline: 3px solid var(--mf-t-copper);
  outline-offset: 3px;
}

/* --- عنصر امضادار: خط پیوند جوان ↔ مدیر --- */

.mf-talent__link-graphic {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 40px auto 0;
  opacity: 0.9;
}

.mf-talent__link-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}

.mf-talent__link-node-label {
  font-size: 13px;
  font-weight: 600;
  fill: var(--mf-t-ink-soft);
}

/* ---------------- پاراگراف مسئله ---------------- */

.mf-talent__statement {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 24px 56px;
}

.mf-talent__statement p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 2;
  color: var(--mf-t-ink);
  font-weight: 500;
}

.mf-talent__statement strong {
  color: var(--mf-t-teal-dark);
}

/* ---------------- کارت‌های مخاطب ---------------- */

.mf-talent__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 780px) {
  .mf-talent__grid {
    grid-template-columns: 1fr;
  }
}

.mf-talent__card {
  background: #fff;
  border: 1px solid var(--mf-t-line);
  border-radius: var(--mf-t-radius);
  padding: 28px 24px;
  box-shadow: var(--mf-t-shadow);
}

.mf-talent__card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--mf-t-teal);
}

.mf-talent__card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.mf-talent__card p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mf-t-ink-soft);
  margin: 0;
}

/* ---------------- فرصت‌ها (Pill list) ---------------- */

.mf-talent__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.mf-talent__pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-t-teal-dark);
  background: var(--mf-t-bg-deep);
  border: 1px solid rgba(31, 111, 99, 0.18);
  padding: 9px 18px;
  border-radius: 999px;
}

/* ---------------- چطور کار می‌کند ---------------- */

.mf-talent__section--how {
  background: var(--mf-t-bg-deep);
  border-radius: 28px;
  width: calc(100% - 32px);
  max-width: 1048px;
  margin: 0 auto;
}

.mf-talent__section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 12px;
}

.mf-talent__section-sub {
  text-align: center;
  color: var(--mf-t-ink-soft);
  max-width: 520px;
  margin: 0 auto 44px;
  font-size: 15.5px;
  line-height: 1.9;
}

.mf-talent__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

@media (max-width: 780px) {
  .mf-talent__steps {
    grid-template-columns: 1fr;
  }
}

.mf-talent__step {
  position: relative;
  background: #fff;
  border-radius: var(--mf-t-radius);
  padding: 30px 22px 24px;
  box-shadow: var(--mf-t-shadow);
}

.mf-talent__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mf-t-teal);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.mf-talent__step h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.mf-talent__step p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mf-t-ink-soft);
  margin: 0;
}

.mf-talent__privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(31, 111, 99, 0.08);
  border: 1px solid rgba(31, 111, 99, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mf-t-teal-dark);
}

/* ---------------- ارتباط با اکوسیستم باشگاه ---------------- */

.mf-talent__ecosystem {
  text-align: center;
  font-size: 14.5px;
  color: var(--mf-t-ink-soft);
  padding-top: 8px;
  padding-bottom: 8px;
}

.mf-talent__ecosystem a {
  color: var(--mf-t-teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- CTA پایانی ---------------- */

.mf-talent__final {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 96px;
}

.mf-talent__final h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 14px;
}

.mf-talent__final p {
  color: var(--mf-t-ink-soft);
  margin-bottom: 30px;
  font-size: 15.5px;
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .mf-talent__cta {
    transition: none;
  }
}

/* ---------------- انیمیشن ملایم ورود (Scroll Reveal) ----------------
   هر عنصر با کلاس mf-talent-reveal ابتدا کمی پایین و محو است؛
   وقتی وارد دید کاربر شد، جاوااسکریپت کلاس is-visible را اضافه می‌کند.
   دقیقاً هم‌روح با card-reveal.js موجود سایت: ظریف، نه نمایشی.
------------------------------------------------------------------- */

.mf-talent-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mf-talent-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mf-talent-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* تاخیر پلکانی کوتاه برای کارت‌ها و مراحل، تا هم‌زمان محو نشوند */
.mf-talent__grid .mf-talent-reveal:nth-child(1) { transition-delay: 0s; }
.mf-talent__grid .mf-talent-reveal:nth-child(2) { transition-delay: 0.08s; }
.mf-talent__grid .mf-talent-reveal:nth-child(3) { transition-delay: 0.16s; }

.mf-talent__steps .mf-talent-reveal:nth-child(1) { transition-delay: 0s; }
.mf-talent__steps .mf-talent-reveal:nth-child(2) { transition-delay: 0.08s; }
.mf-talent__steps .mf-talent-reveal:nth-child(3) { transition-delay: 0.16s; }
