/* ==============================================================================
   عُمْرَان | UMRAN — Architectural Editorial
   css/pages.css: أنماط الصفحات التحريرية الست عشرة والصفحة الرئيسية
   ============================================================================== */

/* ------------------------------------------------------------------------------
   أ) أنماط عامة مشتركة (تُستخدم في كافة الصفحات)
   ------------------------------------------------------------------------------ */

.page-header {
  padding-block: clamp(5rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border-mid);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.page-header .editorial-page-title {
  max-width: 24ch;
}

.page-header-eyebrow {
  margin-bottom: var(--space-md);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .editorial-section-title {
  max-width: 22ch;
}

/* قسم الدعوة للإجراء (CTA Section) */
.cta-section .eyebrow {
  color: var(--gold);
}

.cta-section .btn-large {
  margin-top: var(--space-md);
}

/* شبكة الخدمات في الصفحة الرئيسية */
.services-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 3vw, 3rem);
}

@media (max-width: 1024px) {
  .services-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-home-grid {
    grid-template-columns: 1fr;
  }
}

/* خلية الإحصاء وشارة النص */
.stat-cell {
  text-align: center;
}

.stat-number {
  margin-bottom: var(--space-md);
}

.stat-label {
  font-family: var(--font-numeric);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  display: block;
}

/* مواد وتفاصيل المشروع */
.project-material-item {
  padding: 1rem 1.25rem;
  background-color: var(--sand);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--charcoal);
  line-height: 1.5;
}

.project-materials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* معرض صور المشروع التفاعلي */
.project-gallery-item {
  overflow: hidden;
  cursor: pointer;
  background-color: var(--sand);
}

.project-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: var(--image-filter);
  transition: transform 900ms var(--ease-out-expo);
}

.project-gallery-item:hover img {
  transform: scale(1.04);
}

/* غلاف دراسة الحالة المعمارية (Project Hero) */
.project-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.project-hero img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  filter: var(--image-filter);
}

/* شريط مقارنة قبل وبعد (Before / After Slider) */
.split-slider {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  user-select: none;
  background-color: var(--sand);
}

.split-slider-before,
.split-slider-after {
  position: absolute;
  inset: 0;
}

.split-slider-before img,
.split-slider-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-slider-after {
  clip-path: inset(0 0 0 50%);
}

.split-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--gold);
  cursor: ew-resize;
  z-index: 5;
}

.split-slider-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: var(--cream);
  border: 1px solid var(--charcoal);
}

.split-slider-label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-numeric);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-color: var(--charcoal);
  color: var(--cream);
  z-index: 4;
}

.split-slider-label-before { right: 1.5rem; }
.split-slider-label-after  { left: 1.5rem; }

/* بيانات غلاف المشروع التحريرية */
.project-hero-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding-block: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(to top, rgba(28, 26, 23, 0.85) 0%, rgba(28, 26, 23, 0) 100%);
  color: var(--cream);
}

.project-hero-content .editorial-page-title,
.project-hero-content .project-card-category {
  color: var(--cream);
}

.project-hero-content .project-card-category {
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-sm);
}

/* سرد قصة المشروع */
.project-story {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--graphite);
  max-width: 65ch;
}

/* عنوان التنقل بين المشاريع */
.project-nav-title {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  transition: color var(--duration-hover) var(--ease-out-expo);
}

/* بطاقات المقالات والمدونة */
.journal-card-meta {
  margin-bottom: var(--space-xs);
}

.insights-featured {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* سهم الوظائف */
.career-row-arrow {
  color: var(--gold);
  font-size: 1.25rem;
}

/* تصنيفات الأسئلة الشائعة */
.faq-group {
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.faq-group-title {
  font-family: var(--font-numeric);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: block;
}

/* شاشات الرسائل (Thank You & 404) */
.message-hero {
  text-align: center;
  padding-block: clamp(6rem, 14vw, 10rem);
}

.message-hero .editorial-page-title {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--gold);
  line-height: 1;
}

/* ------------------------------------------------------------------------------
   ب) أنماط الصفحة الرئيسية المحددة (index.html Specific)
   ------------------------------------------------------------------------------ */

/* الغلاف التحريري الرئيسي (Hero Editorial) */
.hero-editorial {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-editorial-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.95);
}

.hero-editorial-content {
  position: relative;
  z-index: 1;
  color: var(--cream);
}

.hero-editorial-content .eyebrow {
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: block;
}

.hero-editorial-content .editorial-hero-title {
  color: var(--cream);
  max-width: 18ch;
  margin-bottom: var(--space-lg);
}

.hero-editorial-lead {
  color: rgba(244, 239, 230, 0.85);
  max-width: 55ch;
  margin-bottom: var(--space-xl);
}

.hero-editorial-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: var(--space-xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(244, 239, 230, 0.2);
  font-family: var(--font-numeric);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.72);
}

@media (max-width: 768px) {
  .hero-editorial {
    min-height: auto;
    padding-block: clamp(6rem, 18vw, 10rem) clamp(3rem, 8vw, 5rem);
  }
  .hero-editorial-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* مقولة الفلسفة المعمارية */
.statement {
  margin-block: var(--space-lg);
}

/* ------------------------------------------------------------------------------
   ج) أنماط projects.html
   ------------------------------------------------------------------------------ */
/* تستخدم شبكة portfolio-grid من layout.css وشريط filter-bar من components.css */

/* ------------------------------------------------------------------------------
   د) أنماط project.html
   ------------------------------------------------------------------------------ */
.pull-quote {
  text-align: right;
  max-width: 32ch;
  margin-inline: auto;
}

.pull-quote-centered {
  text-align: center;
  border: none;
  padding: 0;
  margin-inline: auto;
  max-width: 30ch;
}

/* ------------------------------------------------------------------------------
   هـ) أنماط services.html
   ------------------------------------------------------------------------------ */
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--border-thin);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--charcoal);
  line-height: 1.6;
}

.service-features li::before {
  content: "—";
  color: var(--gold);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* ------------------------------------------------------------------------------
   و) أنماط process.html
   ------------------------------------------------------------------------------ */
/* .process-steps و .process-step معرّفة بالكامل في layout.css */

/* ------------------------------------------------------------------------------
   ز) أنماط about.html و sustainability.html و certifications.html
   ------------------------------------------------------------------------------ */
/* تستخدم team-grid و stats-grid و certs-grid و cert-card المعرفة في layout.css و components.css */

/* ------------------------------------------------------------------------------
   ح) أنماط insights.html و careers.html و press.html و faq.html
   ------------------------------------------------------------------------------ */
.insights-featured a {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .insights-featured a {
    grid-template-columns: 1fr;
  }
}

.career-row {
  text-decoration: none;
}

/* ------------------------------------------------------------------------------
   ط) أنماط contact.html
   ------------------------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-block {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--border-thin);
}

.contact-info-block:first-child {
  padding-top: 0;
}

.contact-info-block:last-child {
  border-bottom: none;
}

.contact-info-block h4 {
  font-family: var(--font-numeric);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.contact-info-block p,
.contact-info-block a {
  display: block;
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
  transition: color var(--duration-hover) var(--ease-out-expo);
}

.contact-info-block a:hover {
  color: var(--gold);
}

.office-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.office-hours-table td {
  padding-block: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--graphite);
  border-bottom: 1px solid var(--border-thin);
}

.office-hours-table td:first-child {
  color: var(--charcoal);
  font-weight: var(--fw-medium);
}

.office-hours-table tr:last-child td {
  border-bottom: none;
}

/* الخريطة المعمارية التوضيحية (Map Placeholder) */
.map-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background-color: var(--sand);
  border: 1px solid var(--border-mid);
  overflow: hidden;
}

.map-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

/* ------------------------------------------------------------------------------
   ي) أنماط privacy.html
   ------------------------------------------------------------------------------ */

.legal-section {
  padding-block: var(--space-lg);
}

.legal-section p {
  margin-top: var(--space-md);
}

/* ------------------------------------------------------------------------------
   ك) أنماط thank-you.html و 404.html
   ------------------------------------------------------------------------------ */
/* تعتمد بالكامل على .message-hero المنسقة في الأنماط العامة المشتركة */
