/* home.css — الصفحة الرئيسية الترحيبية (2.9.31) وفق الصورة المعتمدة الأولى وألوان دليل هوية رتيم */
.home { padding: 0 0 36px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 300px; background: var(--rb-bg2); border-bottom: 1px solid var(--rb-line); overflow: hidden; }
.hero-text { position: relative; z-index: 1; padding: 44px 48px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-eyebrow { margin: 0 0 14px; direction: ltr; font-size: 13px; letter-spacing: .3em; color: var(--rb-ink2); }
.hero h1 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.25; font-weight: 700; color: var(--rb-ink); }
.hero h1 span { font-size: 1.15em; }
.hero-desc { margin: 16px 0 0; font-size: 17px; color: var(--rb-text-2); }
.hero-hello { margin: 10px 0 0; font-size: 15px; color: var(--rb-olive-deep); font-weight: 600; }
.hero-rule { display: block; width: 64px; height: 2px; margin-top: 22px; background: var(--rb-olive); }
/* أصل معماري موجود في المشروع (صفحة الدخول) — لا صور خارجية */
.hero-media { /* 2.9.32: صورة المبنى من المرجع المعتمد (لا صورة الفيلا الخاصة بصفحة الدخول) */ background: url("/home/home-hero.jpg") 46% 50% / cover no-repeat; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 22%); mask-image: linear-gradient(to left, transparent 0, #000 22%); }
.depts { padding: 28px 32px 8px; }
.dept-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.dept-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 176px; padding: 22px 14px 18px; border-radius: 18px; border: 1px solid var(--rb-line); background: var(--rb-bg2); color: var(--rb-ink); text-align: center; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dept-card:hover { border-color: #B8B0A5; box-shadow: var(--rb-shadow); transform: translateY(-1px); }
.dept-card .rb-ic { width: 40px; height: 40px; stroke-width: 1.4; }
.dept-card b { font-size: 17px; line-height: 1.4; }
.dept-card small { font-size: 13px; color: var(--rb-text-2); line-height: 1.5; }
.dept-card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 18px; border-radius: 999px; background: #fff; color: var(--rb-olive-deep); font-weight: 700; font-size: 14px; }
.dept-card.lead { background: var(--rb-olive); border-color: var(--rb-olive); color: #fff; }
.dept-card.lead small { color: #EEF0E6; }
.dept-card.lead:hover { background: var(--rb-olive-deep); }
.panels { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; padding: 22px 32px 0; align-items: start; }
.panel { background: #fff; border: 1px solid var(--rb-line); border-radius: 18px; padding: 18px 20px 14px; box-shadow: var(--rb-shadow); min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rb-mist); }
.panel-h h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; }
.panel-h small { font-size: 12.5px; color: var(--rb-text-2); }
.panel-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--rb-ink); font-size: 14px; text-decoration: none; }
.panel-more:hover { color: var(--rb-olive-deep); text-decoration: underline; }
.proj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding-top: 14px; }
.proj { display: flex; flex-direction: column; border: 1px solid var(--rb-line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; }
.proj:hover { border-color: #B8B0A5; box-shadow: var(--rb-shadow); }
/* لا صور وهمية للمشاريع: شارة نصية هادئة بالحرف الأول */
.proj-mark { display: grid; place-items: center; height: 74px; background: var(--rb-bg2); border-bottom: 1px solid var(--rb-mist); color: var(--rb-olive-deep); font-size: 26px; font-weight: 700; }
.proj-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.proj-b b { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.proj-b .meta { font-size: 12.5px; color: var(--rb-text-2); }
.task-list { list-style: none; margin: 0; padding: 4px 0 0; }
.task-list li + li { border-top: 1px solid var(--rb-mist); }
.task { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 2px; color: inherit; text-decoration: none; }
.task:hover b { color: var(--rb-olive-deep); }
.task .dot { width: 12px; height: 12px; border-radius: 99px; background: var(--rb-stone); }
.task .dot.late { background: #E7A2A9; } .task .dot.soon { background: #EBCF96; } .task .dot.ok { background: #B9CFB4; }
.task b { display: block; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.task small { display: block; font-size: 12.5px; color: var(--rb-text-2); }
.task .due { padding: 4px 12px; border-radius: 999px; background: var(--rb-bg2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.task .due.late { background: var(--rb-bad-bg); color: var(--rb-bad); }
.h-loading, .h-empty { padding: 18px; text-align: center; color: var(--rb-text-2); font-size: 14px; list-style: none; }
@media (max-width: 1100px) { .panels { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { order: -1; height: 180px; background-image: url("/home/home-hero.jpg"); background-position: 44% 45%; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 30%); mask-image: linear-gradient(to top, transparent 0, #000 30%); }
  .hero-text { padding: 4px 18px 22px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .depts { padding: 18px 14px 4px; }
  .dept-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dept-card { min-height: 140px; padding: 16px 10px 14px; }
  .dept-card .rb-ic { width: 32px; height: 32px; }
  .dept-card b { font-size: 15px; }
  .panels { padding: 16px 14px 0; gap: 14px; }
  .panel { padding: 14px 14px 10px; }
  .proj-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
