/*
 * MaharatLink — طبقة صفحة الهبوط الفاخرة
 * تُحمَّل عبر page_css بعد كل ملفات النظام، ومحصورة في body.trust-home
 * حتى لا تسرّب أي قاعدة إلى بقية الشاشات.
 *
 * الاتجاه البصري: أخضر زمردي عميق + شمبانيا ذهبية بوصفها لمسة زخرفية فقط،
 * مقياس نص أوسع، مساحات أكرم، وظلال متعددة الطبقات بدل الحدود الرمادية.
 */

body.trust-home {
  --lux-gold: #d9bd83;
  --lux-gold-bright: #f2e0bb;
  --lux-gold-line: rgba(217, 189, 131, .38);
  --lux-deep: #041d14;
  --lux-deep-mid: #06311f;
  --lux-emerald: #0a4b33;
  --lux-emerald-bright: #0f7a53;
  --lux-ivory: #fdfdfb;
  --lux-hairline: rgba(13, 74, 52, .1);
  --lux-hairline-strong: rgba(13, 74, 52, .18);
  --lux-lift: 0 1px 2px rgba(10, 48, 32, .04), 0 16px 38px rgba(10, 48, 32, .055);
  --lux-lift-hover: 0 2px 4px rgba(10, 48, 32, .05), 0 28px 64px rgba(8, 58, 38, .13);
  --lux-ease: cubic-bezier(.22, 1, .36, 1);
  --lux-section: clamp(62px, 6vw, 88px);
}

/* الطباعة ------------------------------------------------------------------
 * "El Messiri" مُعرّف على وزن واحد فقط، فيصطنع المتصفح العريض ويخرج العنوان
 * ثقيلًا ومغبّشًا. عناوين الهبوط تأخذ Thmanyah Sans بأوزانها الحقيقية. */
body.trust-home :where(h1, h2, h3) {
  font-family: "Thmanyah Sans", "El Messiri", "SF Arabic", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
}

/* شارة القسم: خط ذهبي قصير ثم نص مُتباعد الحروف. */
body.trust-home :is(
  .home-clean-head > div > span,
  .home-journey-head > span,
  .hiring-discovery-copy > span,
  .home-community-grid > div:first-child > span
) {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
}
body.trust-home :is(
  .home-clean-head > div > span,
  .home-journey-head > span,
  .hiring-discovery-copy > span,
  .home-community-grid > div:first-child > span
)::before {
  width: 26px;
  height: 1px;
  content: "";
  background: var(--lux-gold);
}
body.trust-home .home-journey-head > span { justify-content: center; }
body.trust-home .home-journey-head > span::after {
  width: 26px;
  height: 1px;
  content: "";
  background: var(--lux-gold);
}

body.home-page.trust-home :is(.home-clean-head, .hiring-discovery-copy, .home-community-grid, .home-journey-head) h2 {
  margin: 14px 0 0;
  font-size: clamp(1.95rem, 3vw, 2.65rem);
  line-height: 1.26;
  letter-spacing: -.032em;
}
body.home-page.trust-home .home-clean-head > div > p,
body.home-page.trust-home .home-paths .home-clean-head p {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--ui-muted);
  font-size: .92rem;
  line-height: 1.85;
}
body.trust-home .home-clean-head { align-items: end; margin-bottom: clamp(34px, 4vw, 48px); }
body.trust-home .home-clean-head > a {
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--lux-hairline-strong);
  border-radius: 999px;
  font-size: .8rem;
  transition: color .2s var(--lux-ease), background .2s var(--lux-ease), border-color .2s var(--lux-ease);
}
body.trust-home .home-clean-head > a:hover {
  color: #fff;
  background: var(--lux-emerald);
  border-color: var(--lux-emerald);
}

/* الواجهة الرئيسية --------------------------------------------------------- */
/* طبقة لاحقة في mahara-2026 تثبّت ارتفاع كل الأغلفة العلوية على 575px مع
 * overflow:hidden، فتقصّ أزرار الواجهة بعد توسيع المقاييس. نعيدها هنا إلى
 * ارتفاع محسوب من محتواها مع حدّ أدنى يحفظ الحضور البصري. */
body.trust-home .trust-hero {
  height: auto;
  min-height: 640px;
  padding: clamp(64px, 7vw, 92px) 0 0;
  background:
    radial-gradient(118% 82% at 78% -12%, rgba(24, 148, 101, .38), transparent 60%),
    radial-gradient(80% 62% at 6% 108%, rgba(217, 189, 131, .13), transparent 62%),
    linear-gradient(158deg, #0a4530 0%, var(--lux-deep-mid) 48%, var(--lux-deep) 100%);
}
/* شبكة أدق وأخفت: تعطي عمقًا دون أن تُقرأ كنمط. */
body.trust-home .trust-hero::before {
  opacity: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000, transparent 72%);
}
/* خيط ذهبي رفيع أعلى الصفحة. */
body.trust-home .trust-hero::after {
  position: absolute;
  z-index: 2;
  top: 0;
  inset-inline: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--lux-gold-line) 22%, rgba(217, 189, 131, .7) 50%, var(--lux-gold-line) 78%, transparent);
  pointer-events: none;
}
/* شريط مسار الدفعة يجلس فوق حدّ الواجهة، فالحشوة السفلية تفرغ له مكانه
 * بدل أن يغطي الأزرار وتذييل البطاقة. */
body.trust-home .trust-hero-grid {
  gap: clamp(44px, 6vw, 92px);
  padding-bottom: clamp(152px, 13vw, 196px);
}

body.trust-home .trust-kicker {
  gap: 10px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--lux-gold-line);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  backdrop-filter: blur(6px);
}
body.trust-home .trust-kicker::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--lux-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(217, 189, 131, .16);
}

body.trust-home .trust-hero h1 {
  margin: 26px 0 18px;
  font-size: clamp(2.6rem, 4.4vw, 4.05rem);
  line-height: 1.1;
  letter-spacing: -.042em;
}
/* اللون هنا يمرّ عبر text-fill حتى لا يصطدم بقاعدة النبرة الداكنة العامة. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body.trust-home .trust-hero h1 span {
    background: linear-gradient(96deg, var(--lux-gold-bright), var(--lux-gold) 46%, #c8a86a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
body.trust-home .trust-lead {
  max-width: 545px;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.95;
}

body.trust-home .trust-actions { gap: 12px; margin-top: 36px; }
body.trust-home .trust-actions a {
  min-height: 58px;
  padding: 12px 28px;
  border-radius: 14px;
  font-size: .86rem;
  transition: transform .22s var(--lux-ease), box-shadow .22s var(--lux-ease), background .22s var(--lux-ease), border-color .22s var(--lux-ease);
}
body.trust-home .trust-primary {
  background: linear-gradient(180deg, #fff, #f2f7f3);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 18px 38px rgba(2, 24, 15, .34);
}
body.trust-home .trust-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 48px rgba(2, 24, 15, .42);
}
body.trust-home .trust-secondary {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
body.trust-home .trust-secondary:hover {
  background: rgba(255, 255, 255, .11);
  border-color: var(--lux-gold-line);
  transform: translateY(-2px);
}
body.trust-home .trust-actions a i { transition: transform .22s var(--lux-ease); }
body.trust-home .trust-actions a:hover i { transform: translateX(-4px); }
html[dir="ltr"] body.trust-home .trust-actions a:hover i { transform: translateX(4px); }

body.trust-home .trust-hiring-link {
  max-width: 520px;
  min-height: 54px;
  margin-top: 18px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  font-size: .78rem;
  transition: background .22s var(--lux-ease), border-color .22s var(--lux-ease);
}
body.trust-home .trust-hiring-link:hover {
  background: rgba(255, 255, 255, .09);
  border-color: var(--lux-gold-line);
}
body.trust-home .trust-hiring-link span > i { color: var(--lux-gold); }

/* البطاقة البصرية: زجاج داكن بحافة مضيئة وهالة ذهبية خافتة. */
body.trust-home .home-character-card {
  min-height: 470px;
  background:
    radial-gradient(circle at 50% 34%, rgba(217, 189, 131, .16), transparent 52%),
    linear-gradient(168deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .025) 58%);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 40px 90px rgba(0, 0, 0, .38);
}
body.trust-home .home-character-card::before {
  width: 320px;
  height: 320px;
  top: 52px;
  border-color: rgba(217, 189, 131, .22);
}
body.trust-home .home-character-card::after {
  position: absolute;
  width: 260px;
  height: 260px;
  top: 82px;
  left: 50%;
  content: "";
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  transform: translateX(-50%);
}
body.trust-home .home-character-card > img { height: 430px; }
body.trust-home .home-character-badge {
  top: 22px;
  right: 22px;
  padding: 9px 15px;
  color: #2c2413;
  background: linear-gradient(140deg, var(--lux-gold-bright), var(--lux-gold));
  font-size: .7rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
body.trust-home .home-character-caption {
  inset-inline: 18px;
  bottom: 18px;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(4, 29, 20, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  backdrop-filter: blur(14px);
}
body.trust-home .home-character-caption small { font-size: .68rem; letter-spacing: .04em; }
body.trust-home .home-character-caption strong { font-size: .92rem; }

/* شريط مسار الدفعة: لوح مرتفع يجلس على حدّ الواجهة. */
body.trust-home .trust-mini-flow {
  gap: 12px;
  padding: 18px 26px 16px;
  background: linear-gradient(180deg, var(--lux-ivory), #f7faf8);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px rgba(1, 24, 15, .16);
}
body.trust-home .trust-mini-flow::before {
  position: absolute;
  top: 0;
  inset-inline: 26px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--lux-gold), transparent);
  border-radius: 2px;
}
body.trust-home .trust-flow-steps::before { top: 15px; background: var(--lux-hairline-strong); }
body.trust-home .trust-flow-steps > span { grid-template-columns: 32px auto; gap: 10px; }
body.trust-home .trust-flow-steps b {
  width: 32px;
  height: 32px;
  background: linear-gradient(155deg, var(--lux-emerald-bright), var(--lux-emerald));
  border: 4px solid var(--lux-ivory);
  font-size: .68rem;
  box-shadow: 0 4px 12px rgba(9, 103, 68, .28);
}
body.trust-home .trust-flow-steps strong { font-size: .82rem; font-weight: 600; }
body.trust-home .trust-mini-flow > p {
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--lux-hairline);
  font-size: .76rem;
  font-weight: 500;
}
body.trust-home .trust-proof-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: var(--lux-deep-mid);
  text-align: center;
}
body.trust-home .trust-proof-head small {
  color: var(--ui-muted);
  font-size: .68rem;
  font-weight: 650;
}
body.trust-home .trust-proof-head strong { font-size: .84rem; }

/* مشاريع جاهزة: الدليل التجاري الأقوى يظهر مبكرًا بدل توجيه الزائر إلى سوق فارغ. */
body.trust-home .home-ready-projects {
  padding: var(--lux-section) 0;
  background: #f2f5f1;
  border-block: 1px solid var(--lux-hairline);
}
body.trust-home .home-ready-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.trust-home .home-ready-grid > article {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--lux-hairline);
  border-radius: 20px;
  box-shadow: var(--lux-lift);
  transition: transform .24s var(--lux-ease), box-shadow .24s var(--lux-ease), border-color .24s var(--lux-ease);
}
body.trust-home .home-ready-grid > article:hover { transform: translateY(-5px); border-color: var(--lux-gold-line); box-shadow: var(--lux-lift-hover); }
body.trust-home .home-ready-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe9e2; }
body.trust-home .home-ready-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--lux-ease); }
body.trust-home .home-ready-grid > article:hover .home-ready-media img { transform: scale(1.035); }
body.trust-home .home-ready-media > span { position: absolute; top: 14px; inset-inline-start: 14px; padding: 6px 10px; color: #fff; background: rgba(4, 42, 28, .86); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .62rem; font-weight: 800; backdrop-filter: blur(8px); }
body.trust-home .home-ready-copy { padding: 21px; }
body.trust-home .home-ready-copy h3 { margin: 0; font-size: 1rem; line-height: 1.55; }
body.trust-home .home-ready-copy h3 a { color: var(--lux-deep-mid); text-decoration: none; }
body.trust-home .home-ready-copy > p { min-height: 48px; margin: 8px 0 17px; color: var(--ui-muted); font-size: .76rem; line-height: 1.75; }
body.trust-home .home-ready-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
body.trust-home .home-ready-copy dl > div { padding: 11px; background: #f5f7f4; border-radius: 10px; }
body.trust-home .home-ready-copy dt { color: var(--ui-muted); font-size: .58rem; }
body.trust-home .home-ready-copy dd { margin: 3px 0 0; color: var(--lux-deep-mid); font-size: .72rem; font-weight: 800; }
body.trust-home .home-ready-action { display: flex; min-height: 43px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 9px 13px; color: #fff; background: var(--lux-emerald); border-radius: 10px; text-decoration: none; font-size: .72rem; font-weight: 850; }
body.trust-home .trust-mini-flow > p i { color: var(--lux-emerald); }
body.trust-home .trust-mini-flow > p a {
  margin-inline-start: 4px;
  color: var(--lux-emerald);
  font-weight: 800;
  white-space: nowrap;
  text-underline-offset: 3px;
}

/* يحافظ التذييل الداكن على وضوح العلامة والنصوص الدقيقة في الصفحة الرئيسية. */
body.trust-home .main-footer .footer-brand .brand-symbol {
  color: var(--lux-emerald) !important;
  background: #fff !important;
}
body.trust-home .main-footer .footer-brand .brand-symbol svg { color: var(--lux-emerald) !important; }
body.trust-home .main-footer .footer-brand .brand-symbol path { stroke: var(--lux-emerald) !important; }
body.trust-home .main-footer .footer-brand .brand-symbol circle { fill: var(--lux-emerald) !important; }
body.trust-home .main-footer .footer-cta { font-size: .78rem; }
body.trust-home .main-footer .footer-hire-link { font-size: .74rem; }
body.trust-home .main-footer .footer-bottom { font-size: .7rem; }

/* المسارات ---------------------------------------------------------------- */
body.home-page.trust-home .home-paths { padding-block: var(--lux-section); }
body.home-page.trust-home .home-paths::before { opacity: .2; }
body.home-page.trust-home .home-path-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.home-page.trust-home .home-path-grid > a {
  min-height: 196px;
  padding: 26px;
  background: linear-gradient(180deg, #fff, #fbfdfb);
  border-color: var(--lux-hairline);
  border-radius: 20px;
  box-shadow: var(--lux-lift);
  transition: transform .26s var(--lux-ease), border-color .26s var(--lux-ease), box-shadow .26s var(--lux-ease);
}
body.home-page.trust-home .home-path-grid > a::after { border-color: rgba(9, 103, 68, .07); }
body.home-page.trust-home .home-path-grid > a:hover {
  border-color: rgba(9, 103, 68, .26);
  box-shadow: var(--lux-lift-hover);
  transform: translateY(-6px);
}
body.home-page.trust-home .home-path-grid > a > i {
  width: 50px;
  height: 50px;
  color: #fff;
  background: linear-gradient(155deg, var(--lux-emerald-bright), var(--lux-emerald));
  border-radius: 15px;
  font-size: 1.02rem;
  box-shadow: 0 8px 20px rgba(9, 103, 68, .22);
}
body.home-page.trust-home .home-path-grid strong { font-size: 1.02rem; letter-spacing: -.02em; }
body.home-page.trust-home .home-path-grid small { font-size: .8rem; line-height: 1.75; }
body.home-page.trust-home .home-path-grid b {
  margin-top: 26px;
  padding-top: 16px;
  border-top-color: var(--lux-hairline);
  font-size: .78rem;
}
body.home-page.trust-home .home-path-grid > a.is-main {
  background:
    radial-gradient(circle at 86% 8%, rgba(217, 189, 131, .16), transparent 46%),
    linear-gradient(152deg, #0b4a33, #04231a);
  border-color: rgba(217, 189, 131, .22);
  box-shadow: 0 24px 58px rgba(4, 40, 26, .28);
}
body.home-page.trust-home .home-path-grid > a.is-main:hover {
  border-color: rgba(217, 189, 131, .5);
  box-shadow: 0 32px 72px rgba(4, 40, 26, .36);
}
body.home-page.trust-home .home-path-grid > a.is-main > i {
  color: #2c2413;
  background: linear-gradient(140deg, var(--lux-gold-bright), var(--lux-gold));
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
body.home-page.trust-home .home-path-grid > a.is-main small { color: #a9c6b7; }
body.home-page.trust-home .home-path-grid > a.is-main b {
  color: var(--lux-gold);
  border-top-color: rgba(217, 189, 131, .2);
}
body.home-page.trust-home .home-path-grid > a.is-main::after { border-color: rgba(217, 189, 131, .16); }

/* طريقة العمل ------------------------------------------------------------- */
body.trust-home .home-journey { padding-block: var(--lux-section); }
body.trust-home .home-journey-head { margin-bottom: clamp(30px, 3.5vw, 42px); }
body.trust-home .journey-tabs {
  gap: 6px;
  max-width: 880px;
  padding: 6px;
  background: #f2f6f3;
  border: 1px solid var(--lux-hairline);
  border-radius: 999px;
}
body.trust-home .journey-tabs button {
  min-height: 52px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  transition: color .2s var(--lux-ease), background .2s var(--lux-ease), box-shadow .2s var(--lux-ease);
}
body.trust-home .journey-tabs button:hover { color: var(--lux-emerald); background: rgba(255, 255, 255, .8); }
body.trust-home .journey-tabs button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(155deg, var(--lux-emerald-bright), var(--lux-emerald));
  box-shadow: 0 10px 24px rgba(9, 103, 68, .24);
}
body.trust-home .journey-panels { margin-top: 26px; }
body.trust-home .journey-panels > section {
  padding: clamp(30px, 4vw, 46px) clamp(22px, 3vw, 38px);
  background: linear-gradient(180deg, #fff, #f8fbf9);
  border-color: var(--lux-hairline);
  border-radius: 26px;
  box-shadow: var(--lux-lift);
}
body.trust-home .journey-panels ol { gap: 18px; }
body.trust-home .journey-panels ol::before { top: 41px; background: var(--lux-hairline-strong); }
body.trust-home .journey-panels ol::after { top: 40px; background: linear-gradient(90deg, var(--lux-emerald), var(--lux-emerald-bright)); }
body.trust-home .journey-panels li > i {
  width: 82px;
  height: 82px;
  border-color: var(--lux-hairline-strong);
  border-radius: 26px;
  font-size: 1.25rem;
  box-shadow: 0 8px 22px rgba(20, 43, 29, .06);
}
body.trust-home .journey-panels li > b {
  width: 26px;
  height: 26px;
  margin: -14px 0 12px;
  background: linear-gradient(155deg, var(--lux-emerald-bright), var(--lux-emerald));
  border-color: #fbfcfb;
  font-size: .6rem;
}
body.trust-home .journey-panels li > strong { font-size: .9rem; }
body.trust-home .journey-panels li > small { max-width: 200px; margin-top: 8px; font-size: .74rem; line-height: 1.7; }
body.trust-home .journey-panels > section > a {
  min-height: 52px;
  margin-top: 28px;
  padding: 10px 26px;
  background: linear-gradient(155deg, var(--lux-emerald-bright), var(--lux-emerald));
  border-radius: 999px;
  font-size: .8rem;
  box-shadow: 0 12px 28px rgba(9, 103, 68, .22);
  transition: transform .22s var(--lux-ease), box-shadow .22s var(--lux-ease);
}
body.trust-home .journey-panels > section > a:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(9, 103, 68, .3); }
body.trust-home .journey-panels > section > p {
  margin-top: 28px;
  padding: 13px 20px;
  background: rgba(9, 103, 68, .06);
  border: 1px solid rgba(9, 103, 68, .1);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 500;
}

/* سوق المشاريع ------------------------------------------------------------ */
body.trust-home .home-market-preview {
  padding-block: var(--lux-section);
  background: linear-gradient(180deg, #f4f8f5, #eef4f0);
  border-block-color: var(--lux-hairline);
}
body.trust-home .home-project-list { gap: 16px; }
body.trust-home .home-project-list > article {
  min-height: 250px;
  padding: 26px;
  border-color: var(--lux-hairline);
  border-radius: 20px;
  box-shadow: var(--lux-lift);
  transition: transform .26s var(--lux-ease), border-color .26s var(--lux-ease), box-shadow .26s var(--lux-ease);
}
body.trust-home .home-project-list > article:hover {
  border-color: rgba(9, 103, 68, .24);
  box-shadow: var(--lux-lift-hover);
  transform: translateY(-5px);
}
body.trust-home .home-project-top span {
  padding: 7px 12px;
  background: rgba(9, 103, 68, .07);
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .02em;
}
body.trust-home .home-project-top time { font-size: .7rem; }
body.home-page.trust-home .home-project-list h3 { margin-top: 6px; font-size: 1.18rem; letter-spacing: -.02em; }
body.trust-home .home-project-list article > p { font-size: .84rem; line-height: 1.85; }
body.trust-home .home-project-list dl { margin-top: 10px; }
body.trust-home .home-project-list dt { font-size: .68rem; }
body.trust-home .home-project-list dd { font-size: .84rem; }
body.trust-home .home-project-open {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--lux-hairline-strong);
  border-radius: 999px;
  font-size: .78rem;
  transition: color .2s var(--lux-ease), background .2s var(--lux-ease), border-color .2s var(--lux-ease);
}
body.trust-home .home-project-open:hover { color: #fff; background: var(--lux-emerald); border-color: var(--lux-emerald); }

body.trust-home .home-clean-empty {
  min-height: 262px;
  gap: 10px;
  background: linear-gradient(180deg, #fff, #fafcfb);
  border: 1px solid var(--lux-hairline);
  border-radius: 24px;
  box-shadow: var(--lux-lift);
}
body.trust-home .home-clean-empty i {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 6px;
  color: var(--lux-emerald);
  background: rgba(9, 103, 68, .07);
  border-radius: 50%;
  font-size: 1.35rem;
}
body.trust-home .home-clean-empty strong { font-size: 1.02rem; }
body.trust-home .home-clean-empty span { font-size: .84rem; }
body.trust-home .home-clean-empty a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin-top: 14px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(155deg, var(--lux-emerald-bright), var(--lux-emerald));
  border-radius: 999px;
  text-decoration: none;
  font-size: .8rem;
  box-shadow: 0 12px 28px rgba(9, 103, 68, .2);
}

/* اكتشاف الخبرات ---------------------------------------------------------- */
body.trust-home .home-hiring-discovery { padding-block: var(--lux-section); }
body.trust-home .hiring-discovery-copy > p { margin: 16px 0 30px; font-size: .92rem; line-height: 1.9; }
body.trust-home .hiring-discovery-copy form {
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--lux-hairline-strong);
  border-radius: 18px;
  box-shadow: var(--lux-lift);
  transition: border-color .22s var(--lux-ease), box-shadow .22s var(--lux-ease);
}
body.trust-home .hiring-discovery-copy form:focus-within {
  border-color: rgba(9, 103, 68, .35);
  box-shadow: var(--lux-lift-hover);
}
body.trust-home .hiring-discovery-copy label { gap: 5px; padding-inline: 13px; }
body.trust-home .hiring-discovery-copy label > span { font-size: .68rem; letter-spacing: .04em; }
body.trust-home .hiring-discovery-copy label i { font-size: .82rem; }
body.home-page.trust-home .hiring-discovery-copy input { min-height: 34px; font-size: .88rem; }
body.trust-home .hiring-discovery-copy button {
  min-width: 118px;
  min-height: 60px;
  background: linear-gradient(155deg, var(--lux-emerald-bright), var(--lux-emerald));
  border-radius: 13px;
  font-size: .84rem;
  box-shadow: 0 12px 26px rgba(9, 103, 68, .22);
  transition: transform .22s var(--lux-ease), box-shadow .22s var(--lux-ease);
}
body.trust-home .hiring-discovery-copy button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(9, 103, 68, .3); }
body.trust-home .hiring-discovery-copy nav { gap: 9px; margin-top: 18px; }
body.trust-home .hiring-discovery-copy nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border-color: var(--lux-hairline-strong);
  border-radius: 999px;
  font-size: .76rem;
  transition: color .2s var(--lux-ease), background .2s var(--lux-ease), border-color .2s var(--lux-ease);
}
body.trust-home .hiring-discovery-copy nav a:hover {
  color: #fff;
  background: var(--lux-emerald);
  border-color: var(--lux-emerald);
}
body.trust-home .hiring-discovery-steps {
  gap: 10px;
  padding: 28px;
  background: linear-gradient(170deg, #f4f8f5, #eaf2ed);
  border-color: var(--lux-hairline);
  border-radius: 26px;
  box-shadow: var(--lux-lift);
}
body.trust-home .hiring-discovery-steps > div {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 84px;
  padding: 15px 16px;
  border-color: var(--lux-hairline);
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(10, 48, 32, .04);
}
body.trust-home .hiring-discovery-steps b {
  width: 42px;
  height: 42px;
  background: linear-gradient(155deg, var(--lux-emerald-bright), var(--lux-emerald));
  border-radius: 13px;
  font-size: .82rem;
  box-shadow: 0 6px 16px rgba(9, 103, 68, .2);
}
body.trust-home .hiring-discovery-steps strong { font-size: .88rem; }
body.trust-home .hiring-discovery-steps small { font-size: .74rem; line-height: 1.7; }
body.trust-home .hiring-discovery-steps > i { color: var(--lux-gold); font-size: .78rem; }

/* المجتمع ----------------------------------------------------------------- */
body.trust-home .home-community-invite {
  position: relative;
  padding-block: var(--lux-section);
  background:
    radial-gradient(90% 80% at 12% 0%, rgba(24, 148, 101, .3), transparent 62%),
    radial-gradient(70% 70% at 92% 100%, rgba(217, 189, 131, .12), transparent 60%),
    linear-gradient(160deg, #0a4530, var(--lux-deep));
}
body.trust-home .home-community-invite::before {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--lux-gold-line) 30%, rgba(217, 189, 131, .6) 50%, var(--lux-gold-line) 70%, transparent);
}
body.trust-home .home-community-grid > div:first-child > p { margin: 16px 0 30px; font-size: .92rem; line-height: 1.95; }
body.trust-home .home-community-grid > div:first-child > a {
  min-height: 56px;
  padding: 12px 28px;
  color: #2c2413;
  background: linear-gradient(140deg, var(--lux-gold-bright), var(--lux-gold));
  border-radius: 14px;
  font-size: .86rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
  transition: transform .22s var(--lux-ease), box-shadow .22s var(--lux-ease);
}
body.trust-home .home-community-grid > div:first-child > a:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(0, 0, 0, .38); }
body.trust-home .home-topic-list { gap: 10px; }
body.trust-home .home-topic-list > a {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 5px 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  transition: background .22s var(--lux-ease), border-color .22s var(--lux-ease), transform .22s var(--lux-ease);
}
body.trust-home .home-topic-list > a:hover {
  background: rgba(255, 255, 255, .085);
  border-color: var(--lux-gold-line);
  transform: translateY(-2px);
}
body.trust-home .home-topic-list span { font-size: .72rem; }
body.trust-home .home-topic-list strong { font-size: .88rem; line-height: 1.5; }
body.trust-home .home-topic-list small { font-size: .7rem; }
body.trust-home .home-topic-empty {
  padding: 44px 28px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 18px;
  font-size: .84rem;
}

/* ظهور تدريجي -------------------------------------------------------------
 * مشروط بـ has-reveal التي يضيفها سكربت الصفحة، فإن تعطّل JavaScript
 * بقي المحتوى ظاهرًا كما هو. */
html.has-reveal body.trust-home [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--lux-ease) var(--reveal-delay, 0ms), transform .7s var(--lux-ease) var(--reveal-delay, 0ms);
}
html.has-reveal body.trust-home [data-reveal].is-visible { opacity: 1; transform: none; }

/* الاستجابة --------------------------------------------------------------- */
@media (max-width: 1100px) {
  body.home-page.trust-home .home-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.trust-home .home-ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  body.trust-home .trust-hero-grid { padding-bottom: clamp(40px, 8vw, 70px); }
  body.trust-home .home-character-card { min-height: 400px; }
  body.trust-home .home-character-card > img { height: 360px; }
  body.trust-home .hiring-discovery-steps > i { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  body.trust-home { --lux-section: clamp(44px, 9vw, 58px); }
  body.trust-home .trust-hero { min-height: 0; padding-top: 28px; }
  body.trust-home .trust-hero-grid { padding-bottom: 34px; }
  body.trust-home .trust-hero h1 { font-size: clamp(2.05rem, 8.4vw, 2.75rem); }
  body.trust-home .trust-lead { font-size: .92rem; line-height: 1.85; }
  /* الأزرار تصير شبكة عمودين في طبقة 2026، ونصّ الزر الطويل لا ينكمش داخل
   * خلية الشبكة فيتجاوز عرض الشاشة. عمود واحد يحسم ذلك على الجوال. */
  body.trust-home .trust-actions { grid-template-columns: 1fr; gap: 10px; }
  body.trust-home .trust-actions a {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 12px 18px;
    font-size: .8rem;
  }
  body.trust-home .home-character-card { min-height: 330px; }
  body.trust-home .home-character-card > img { height: 315px; }
  body.trust-home .trust-mini-flow { border-radius: 20px 20px 0 0; }
  body.trust-home .trust-mini-flow::before { inset-inline: 18px; }
  body.trust-home .trust-proof-head { align-items: center; flex-direction: column; gap: 2px; }
  body.trust-home .trust-proof-head small { font-size: .6rem; }
  body.trust-home .trust-proof-head strong { font-size: .72rem; }
  /* قواعدنا خارج الاستعلام تفوق قواعد الجوال في mahara-2026 لأن الاستعلام
   * لا يرفع الأولوية، فنعيد هنا الترتيب الرأسي للخطوة على الشاشة الضيقة. */
  body.trust-home .trust-flow-steps::before { top: 14px; right: 12%; left: 12%; }
  body.trust-home .trust-flow-steps > span {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    text-align: center;
    white-space: normal;
  }
  body.trust-home .trust-flow-steps b { width: 28px; height: 28px; border-width: 3px; font-size: .6rem; }
  body.trust-home .trust-flow-steps strong { font-size: .58rem; line-height: 1.45; }
  body.trust-home .trust-mini-flow > p { padding-top: 10px; font-size: .62rem; line-height: 1.65; text-align: center; }
  body.trust-home .journey-tabs { grid-template-columns: repeat(2, 1fr); border-radius: 20px; }
  body.trust-home .journey-tabs button { min-width: 0; min-height: 46px; padding-inline: 6px; font-size: .74rem; }
  body.trust-home .trust-flow-steps > span { min-width: 0; }
  body.trust-home .journey-panels > section { border-radius: 20px; }
  body.trust-home .home-clean-head { flex-direction: column; align-items: stretch; gap: 18px; }
  body.trust-home .home-clean-head > a { justify-content: space-between; }
  body.trust-home .home-project-list > article { min-height: 0; padding: 20px; }
  body.trust-home .home-ready-grid {
    width: calc(100% + 14px);
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(278px, 86vw);
    gap: 12px;
    margin-inline-end: -14px;
    padding-inline-end: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 14px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  body.trust-home .home-ready-grid::-webkit-scrollbar { display: none; }
  body.trust-home .home-ready-grid > article { scroll-snap-align: start; }
  body.trust-home .home-ready-copy > p { min-height: 0; }
  body.trust-home .hiring-discovery-copy form { grid-template-columns: 1fr; }
  body.trust-home .hiring-discovery-copy button { min-height: 52px; }
  body.trust-home .hiring-discovery-steps { grid-template-columns: 1fr; }
  body.trust-home .home-topic-list > a { grid-template-columns: 1fr; }
  body.trust-home .home-topic-list span { grid-row: auto; }
  body.trust-home .main-footer .footer-brand .brand-symbol { width: 40px; height: 40px; flex-basis: 40px; }
  body.trust-home .main-footer .footer-shell,
  body.trust-home .main-footer .footer-bottom { padding-inline: 16px; }
  body.trust-home .main-footer .footer-cta,
  body.trust-home .main-footer .footer-hire-link { min-height: 46px; padding: 10px 13px; font-size: .76rem; }
  body.trust-home .main-footer .footer-bottom { gap: 8px; font-size: .7rem; line-height: 1.65; }
}
@media (max-width: 560px) {
  body.home-page.trust-home .home-path-grid { grid-template-columns: 1fr; }
  body.home-page.trust-home .home-path-grid > a { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.has-reveal body.trust-home [data-reveal] { opacity: 1; transform: none; transition: none; }
  body.trust-home :is(.trust-actions a, .home-path-grid > a, .home-ready-grid > article, .home-project-list > article, .home-topic-list > a, .journey-panels > section > a, .hiring-discovery-copy button, .home-community-grid > div:first-child > a) {
    transition: none;
  }
  body.trust-home :is(.trust-actions a, .home-path-grid > a, .home-ready-grid > article, .home-project-list > article, .home-topic-list > a, .journey-panels > section > a, .hiring-discovery-copy button, .home-community-grid > div:first-child > a):hover {
    transform: none;
  }
}
