/* ============================================================================
   شمس — كتل الصفحات
   ========================================================================= */

/* ── البانر الرئيسي ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding-block: calc(var(--header-h) + var(--s-8)) clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}

/* المشهد يصنع سياق تكديس خاصًّا به: الطبقات ثم الشمس ثم الوهج ثم الستارة */
.hero__stage { position: absolute; inset: 0; z-index: -3; isolation: isolate; }

.hero__layer {
  position: absolute;
  inset: -6% -3%;
  z-index: 0;
  transform-origin: 50% 40%;
}
.hero__slide { position: absolute; inset: 0; }
.hero__slide img { inline-size: 100%; block-size: 100%; object-fit: cover; }

/* ستارة كحلية + وهج ليموني — يضمنان تباين النصّ فوق أي صورة */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--navy-abyss) 1%, rgb(23 24 51 / .82) 26%, rgb(23 24 51 / .48) 62%, rgb(23 24 51 / .62)),
    linear-gradient(to left, rgb(35 36 74 / .55), transparent 58%);
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(58% 44% at 74% 26%, rgb(182 183 27 / .3), transparent 68%);
  mix-blend-mode: soft-light;
}

/* قرص الشمس — بطل الهوية، مصاغ كضوء لا كشكل مصمت */
.hero__sun {
  position: absolute;
  z-index: 2;
  inset-block-start: clamp(9%, 12vh, 16%);
  inset-inline-end: clamp(5%, 9vw, 13%);
  inline-size: clamp(7rem, 16vw, 14rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgb(244 243 190 / .62) 0 18%,
    rgb(226 227 118 / .34) 32%,
    rgb(182 183 27 / .14) 52%,
    transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__sun::before {                         /* حلقة رفيعة — دائرة الشعار */
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgb(240 241 160 / .3);
}
.hero__sun::after {                          /* هالة واسعة تذوب في السماء */
  content: "";
  position: absolute;
  inset: -110%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(212 213 74 / .16), transparent 60%);
}

.hero__content {
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-content: end;
  max-inline-size: 54rem;
  padding-block-end: clamp(1rem, 2.5vw, 2.25rem);
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.22;
  letter-spacing: -.015em;
}
.hero h1 .line { display: block; }
.hero__lead {
  font-size: var(--fs-lead);
  color: rgb(247 245 238 / .82);
  font-weight: 300;
  max-inline-size: 46rem;
  line-height: 1.8;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block-start: var(--s-3); }

.hero__foot {
  display: grid;
  gap: var(--s-4);
}
.hero__foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

/* شارة «منذ 1991» أعلى العنوان */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1.1rem .5rem .5rem;
  border: 1px solid rgb(247 245 238 / .22);
  border-radius: var(--r-pill);
  background: rgb(23 24 51 / .35);
  backdrop-filter: blur(10px);
  font-size: var(--fs-micro);
  color: rgb(247 245 238 / .88);
  inline-size: fit-content;
}
.hero__badge b {
  display: grid;
  place-items: center;
  min-inline-size: 3.5rem;
  padding: .3rem .6rem;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--navy-abyss);
  font-family: var(--font-display);
  font-weight: 500;
}

/* أزرار شرائح البانر */
.hero__dots { display: flex; gap: .5rem; }
.hero__dot {
  inline-size: 2.25rem;
  block-size: 3px;
  border-radius: var(--r-pill);
  background: rgb(247 245 238 / .28);
  transition: background-color var(--dur-2), inline-size var(--dur-2) var(--ease-out);
}
.hero__dot[aria-selected="true"] { background: var(--lime-bright); inline-size: 3.5rem; }

/* ── جملة كبرى (Statement) ─────────────────────────────────────────────── */

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw, 4rem);
  line-height: 1.28;
  letter-spacing: -.012em;
  max-inline-size: 22ch;
  text-wrap: balance;
}
.statement .dim { color: var(--fg-mute); }

/* ── الركائز الأربع (تمرير أفقي مثبَّت) ───────────────────────────────── */

.pillar {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: var(--s-8);
  min-block-size: clamp(20rem, 46vh, 26rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: linear-gradient(155deg, rgb(from var(--fg) r g b / .06), transparent 65%);
  overflow: hidden;
}
.pillar__n {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgb(from var(--accent) r g b / .55);
}
.pillar h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.pillar p { font-size: var(--fs-small); color: var(--fg-dim); }
.pillar::after {                              /* قوس شمسي في الزاوية */
  content: "";
  position: absolute;
  inset-block-end: -35%;
  inset-inline-end: -18%;
  inline-size: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(from var(--accent) r g b / .22);
}

/* عدّاد الشرائح الأفقية */
.hpin__meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-inline: var(--gutter);
  margin-block-end: var(--s-6);
  font-size: var(--fs-micro);
  color: var(--fg-mute);
}
.hpin__bar { flex: 1; max-inline-size: 14rem; block-size: 2px; background: var(--rule); overflow: hidden; }
.hpin__bar i { display: block; block-size: 100%; inline-size: var(--hp, 12%); background: var(--accent); transition: inline-size .2s linear; }

/* ── القيم (بطاقات متراكمة) ────────────────────────────────────────────── */

.value__head { display: flex; align-items: baseline; gap: var(--s-4); }
.value__n {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  color: var(--accent);
}
.value h3 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
.value p { color: var(--fg-dim); max-inline-size: 52ch; }

/* ── عرض المشروع ───────────────────────────────────────────────────────── */

.showcase {
  position: relative;
  display: grid;
  align-content: end;
  gap: var(--s-5);
  min-block-size: clamp(30rem, 72vh, 44rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--r-4);
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}
.showcase__media { position: absolute; inset: 0; z-index: -2; }
.showcase__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(23 24 51 / .93), rgb(23 24 51 / .35) 55%, rgb(23 24 51 / .1)),
    radial-gradient(90% 60% at 15% 100%, rgb(182 183 27 / .18), transparent 60%);
}
.showcase__body { display: grid; gap: var(--s-4); max-inline-size: 44rem; }
.showcase h3 { font-size: var(--fs-h2); }
.showcase p { color: rgb(247 245 238 / .8); max-inline-size: 52ch; }
.showcase__place {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  color: var(--lime-bright);
}
.showcase__place::before {
  content: "";
  inline-size: .4rem; block-size: .4rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgb(212 213 74 / .2);
}

/* ── «لماذا شمس؟» — أكورديون مع صورة متبدّلة ──────────────────────────── */

.why { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 62rem) { .why { grid-template-columns: 1fr 1fr; } }
.why__visual {
  position: relative;
  border-radius: var(--r-3);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: sticky;
  inset-block-start: calc(var(--header-h) + 2rem);
}
.why__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease-soft), transform 1.6s var(--ease-soft);
}
.why__img.is-active { opacity: 1; transform: none; }
.why__img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (max-width: 61.99rem) { .why__visual { aspect-ratio: 16/10; position: relative; inset-block-start: auto; } }

/* ── نداء الختام ───────────────────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {                                /* شروق ليموني من الحافة السفلى */
  content: "";
  position: absolute;
  inset-block-end: -60%;
  inset-inline-start: 50%;
  translate: -50% 0;
  inline-size: min(120vw, 68rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(182 183 27 / .22), transparent 62%);
  pointer-events: none;
}
.cta__inner { display: grid; gap: var(--s-5); justify-items: center; position: relative; }
.cta h2 { font-size: var(--fs-display); max-inline-size: 18ch; }
.cta .lead { text-align: center; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* ── معرض صور ──────────────────────────────────────────────────────────── */

.gallery { display: grid; gap: clamp(.75rem, 1.4vw, 1.25rem); grid-template-columns: repeat(6, 1fr); }
.gallery .media { grid-column: span 6; aspect-ratio: 16/10; border-radius: var(--r-2); }
@media (min-width: 48rem) {
  .gallery .media { grid-column: span 2; }
  .gallery .media--w3 { grid-column: span 3; }
  .gallery .media--w4 { grid-column: span 4; }
  .gallery .media--tall { aspect-ratio: 3/4; }
}

/* ── بطاقة تواصل ───────────────────────────────────────────────────────── */

.contact-card {
  display: grid;
  gap: var(--s-5);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: var(--bg-raised);
}
.contact-row { display: flex; gap: var(--s-4); align-items: start; }
.contact-row h3 { font-size: var(--fs-micro); letter-spacing: .12em; color: var(--accent); font-family: var(--font-body); font-weight: 500; }
.contact-row p, .contact-row a { font-size: var(--fs-small); color: var(--fg-dim); text-decoration: none; }
.contact-row a:hover { color: var(--accent); }

.map {
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  overflow: hidden;
  min-block-size: 22rem;
  position: relative;
  background: var(--bg-raised);
}
.map iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ── صفحة الخطأ ────────────────────────────────────────────────────────── */

.error-page {
  min-block-size: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: calc(var(--header-h) + var(--s-9)) var(--s-9);
  position: relative;
  overflow: hidden;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 24vw, 16rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(182 183 27 / .5);
}

/* ── محتوى قانوني ──────────────────────────────────────────────────────── */

.prose { max-inline-size: 70ch; display: grid; gap: var(--s-5); }
.prose h2 { font-size: var(--fs-h3); margin-block-start: var(--s-5); }
.prose h3 { font-size: var(--fs-h4); }
.prose p, .prose li { font-size: var(--fs-small); color: var(--fg-dim); line-height: 1.95; }
.prose ul { display: grid; gap: .65rem; padding-inline-start: 1.25rem; }
.prose li { list-style: disc; }
.prose li::marker { color: var(--accent); }

.toc {
  position: sticky;
  inset-block-start: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: .55rem;
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  align-self: start;
  font-size: var(--fs-micro);
}
.toc a { text-decoration: none; color: var(--fg-dim); }
.toc a:hover { color: var(--accent); }
@media (max-width: 61.99rem) { .toc { position: static; } }

.legal-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 62rem) { .legal-layout { grid-template-columns: 16rem 1fr; } }
