@charset "UTF-8";
/* ==========================================================================
   بريق التاج — نظام التصميم (داكن)
   ========================================================================== */

/* ------------------------------------------------------------------ الخطوط */
@font-face {
  font-family: "GE SS Two";
  src: url("../fonts/gess-two-medium.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GE SS Two";
  src: url("../fonts/gess-two-bold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- المتغيرات */
:root {
  color-scheme: dark;

  --night: #070c1a;
  --night-2: #0b1226;
  --navy: #101b3e;

  --paper: #f2eee4;
  --soft: rgba(242, 238, 228, 0.7);
  --dim: rgba(242, 238, 228, 0.55);

  --gold: #c9a44c;
  --gold-bright: #e3c77c;
  --gold-line: rgba(201, 164, 76, 0.28);
  --hair: rgba(242, 238, 228, 0.1);

  --font: "GE SS Two", "Noto Naskh Arabic", "Geeza Pro", "Segoe UI",
    system-ui, -apple-system, sans-serif;

  --wrap: 82rem;
  --wrap-narrow: 48rem;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4rem);
  --section-y: clamp(4.5rem, 2.5rem + 8vw, 9rem);

  --r-sm: 12px;      /* الحقول */
  --r-md: 18px;      /* البطاقات والكتل */
  --r-pill: 999px;   /* الأزرار */
  --arch: 50% 50% 18px 18px / 30% 30% 18px 18px;

  --shadow-soft: 0 18px 44px -26px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 12px 30px -14px rgba(201, 164, 76, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 5rem;
  --tabbar-h: 4.25rem;
}

/* ------------------------------------------------------------ إعادة الضبط */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.9;
  color: var(--paper);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
::selection { background: var(--gold); color: var(--night); }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -6rem;
  z-index: 999;
  background: var(--gold);
  color: var(--night);
  border-radius: var(--r-pill);
  padding: 0.75rem 1.5rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ----------------------------------------------------------------- الطباعة */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0;          /* لا تباعد بين الحروف العربية */
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.2rem + 4vw, 4.25rem); line-height: 1.22; }
h2 { font-size: clamp(1.7rem, 1.15rem + 2.4vw, 3rem); line-height: 1.26; }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.45rem); line-height: 1.4; }

p { text-wrap: pretty; }
p + p { margin-top: 0.85em; }

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem);
  line-height: 1.85;
  color: var(--soft);
}
.small { font-size: 0.875rem; line-height: 1.75; }
.muted { color: var(--soft); }
.dim { color: var(--dim); }

/* الأرقام — GE SS يرسم الأرقام بالشكل العربي-الهندي، فنستعمل خطًا محايدًا */
.num {
  font-family: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.link {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--gold-line);
  transition: text-decoration-color 0.25s var(--ease);
}
.link:hover { text-decoration-color: var(--gold-bright); }

/* ---------------------------------------------------------------- التخطيط */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.58); }
.section--alt { background: var(--night-2); }

.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 1.4rem + 3vw, 4.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  align-items: center;
}
.split--top { align-items: start; }
.split--flip > *:first-child { order: 2; }

/* --------------------------------------------------------------- الزخارف */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, currentColor 25%, currentColor 75%, transparent);
  opacity: 0.5;
}
.ornament i {
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.ornament--short { max-width: 14rem; margin-inline: auto; }

/* إطار بأركان ذهبية */
.corners { position: relative; }
.corners::before,
.corners::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
  z-index: 2;
}
.corners::before {
  inset-block-start: 0; inset-inline-start: 0;
  border-inline-end: 0; border-block-end: 0;
}
.corners::after {
  inset-block-end: 0; inset-inline-end: 0;
  border-inline-start: 0; border-block-start: 0;
}

/* --------------------------------------------------------------- الأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.15rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--slow), color 0.35s var(--slow),
    border-color 0.35s var(--slow), transform 0.35s var(--slow),
    box-shadow 0.35s var(--slow);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--gold { background: var(--gold); color: var(--night); box-shadow: var(--shadow-gold); }
.btn--gold:hover { background: var(--gold-bright); box-shadow: 0 18px 40px -16px rgba(201, 164, 76, 0.7); }

.btn--outline {
  border-color: rgba(242, 238, 228, 0.24);
  color: var(--paper);
  background: rgba(242, 238, 228, 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(201, 164, 76, 0.08);
}

.btn--quiet { border-color: var(--gold-line); color: var(--gold-bright); }
.btn--quiet:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row--center { justify-content: center; }

/* -------------------------------------------------------------- الترويسة */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(7, 12, 26, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--hair);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.2rem + 2.4vw, 3rem);
}

.brand { display: flex; align-items: center; gap: 0.8rem; flex: none; }
.brand__mark { width: 3.1rem; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 700; font-size: 1.1875rem; color: var(--paper); }
.brand__tag { font-size: 0.6875rem; color: var(--dim); }

.nav { display: flex; align-items: center; gap: 0.4rem; margin-inline-start: auto; }
.nav__link {
  position: relative;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  color: var(--soft);
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold-bright); font-weight: 700; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { flex: none; }

.btn.header__wa {
  display: none;
  margin-inline-start: auto;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 auto;
}
.btn.header__wa svg { width: 1.2rem; height: 1.2rem; }

/* ------------------------------------------------- شريط التنقل السفلي */
.tabbar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(7, 12, 26, 0.93);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-top: 1px solid var(--hair);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabbar-h); }
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  font-size: 0.6875rem;
  color: var(--dim);
  position: relative;
  transition: color 0.25s var(--ease);
}
.tab svg { width: 1.4rem; height: 1.4rem; stroke-width: 1.4; }
.tab::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 30%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.tab[aria-current="page"] { color: var(--gold-bright); font-weight: 700; }
.tab[aria-current="page"]::before { transform: scaleX(1); }
.tab[aria-current="page"] svg { stroke-width: 1.8; }

/* ------------------------------------------------------- واتساب العائم */
.wa-float {
  position: fixed;
  z-index: 65;
  inset-inline-end: clamp(1rem, 2.5vw, 2.25rem);
  bottom: clamp(1rem, 2.5vw, 2.25rem);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.9);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.wa-float:hover { background: var(--gold-bright); transform: translateY(-3px); }
.wa-float svg { width: 1.6rem; height: 1.6rem; }

/* ------------------------------------------------------------- الواجهة */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
/* نلغي display:contents هنا كي يكون <picture> نفسه خليّة الشبكة،
   وإلا صار كل <source> عنصرًا مستقلًا واختلّت الأعمدة الثلاثة. */
.hero__bg picture { display: block; overflow: hidden; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.08) saturate(1.1);
}
/* التعتيم يعمل في الثلث السفلي حيث يجلس النص، ويترك الثلثين العلويين
   للمجوهرات. شريط خفيف في الأعلى ليقرأ محتوى الترويسة فوق الصور. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(7, 12, 26, 0.72) 0%,
    rgba(7, 12, 26, 0.04) 14%,
    rgba(7, 12, 26, 0.04) 30%,
    rgba(7, 12, 26, 0.5) 48%,
    rgba(7, 12, 26, 0.9) 70%,
    var(--night) 100%);
}

.hero__inner {
  position: relative;
  text-align: center;
  padding-block: calc(var(--header-h) + 3rem) clamp(3.25rem, 1.75rem + 3vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;   /* النص في الثلث السفلي فوق التعتيم */
  min-height: 100svh;
  align-self: stretch;
}
.hero__mark {
  width: clamp(4rem, 3rem + 3.5vw, 6rem);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.75));
}
.hero__title { max-width: 46rem; }
.hero__title span { color: var(--gold-bright); display: block; }
.hero__lead { margin-top: 1.15rem; max-width: 36rem; color: var(--soft); }
.hero .btn-row { margin-top: 2.25rem; }
.hero__ornament { width: min(22rem, 74%); margin-top: 3rem; }

/* دليل التمرير */
.scrolldot {
  position: absolute;
  bottom: 1.75rem;
  inset-inline: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
}
.scrolldot span {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, currentColor);
  animation: dropline 2.6s var(--ease) infinite;
}
@keyframes dropline {
  0% { transform: scaleY(0.15); transform-origin: top; opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ترويسة الصفحات الداخلية */
.pagehead {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) clamp(3rem, 2rem + 4vw, 5.5rem);
  text-align: center;
  isolation: isolate;
}
.pagehead__bg { position: absolute; inset: 0; z-index: -2; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(110% 80% at 50% 50%, rgba(7, 12, 26, 0.6), rgba(7, 12, 26, 0.94) 70%),
    linear-gradient(to bottom, rgba(7, 12, 26, 0.92), rgba(7, 12, 26, 0.55) 45%, var(--night));
}
.pagehead__inner { position: relative; max-width: 44rem; margin-inline: auto; }
.pagehead p { color: var(--soft); margin-top: 1rem; }

/* --------------------------------------------------------- بطاقات الفئات */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 0.4rem + 1.8vw, 2rem);
}

.tile {
  position: relative;
  display: block;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--night-2);
  aspect-ratio: 3 / 4;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.5s var(--slow), transform 0.5s var(--slow);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 26px 56px -28px rgba(0, 0, 0, 0.95); }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--slow), filter 0.6s var(--ease);
  filter: brightness(0.92);
}
.tile:hover img { transform: scale(1.06); filter: brightness(1); }

/* تدرّج سفلي يحمل الاسم */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(7, 12, 26, 0.94) 4%, rgba(7, 12, 26, 0.3) 42%, transparent 68%);
  pointer-events: none;
}
/* إطار داخلي رفيع */
.tile::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  z-index: 2;
  border: 1px solid rgba(242, 238, 228, 0.16);
  border-radius: var(--arch);
  pointer-events: none;
  transition: border-color 0.45s var(--ease);
}
.tile:hover::after { border-color: var(--gold); }

.tile__body {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: 0;
  padding: 1.6rem clamp(1rem, 0.6rem + 1vw, 1.75rem);
  text-align: center;
}
.tile__name {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 700;
  color: var(--paper);
}
.tile__desc {
  font-size: 0.8125rem;
  color: var(--dim);
  margin-top: 0.25rem;
  transition: color 0.35s var(--ease);
}
.tile:hover .tile__desc { color: var(--soft); }
.tile__rule {
  width: 2rem;
  height: 1px;
  background: var(--gold);
  margin: 0.85rem auto 0;
  transform: scaleX(0.35);
  transition: transform 0.5s var(--ease);
}
.tile:hover .tile__rule { transform: scaleX(1); }

/* ------------------------------------------------------- كتلة مميّزة */
.feature__media {
  position: relative;
  max-width: 30rem;
  margin-inline: auto;
  isolation: isolate;
}
.feature__media img { width: 100%; border-radius: var(--arch); box-shadow: var(--shadow-soft); }
.feature__media::after {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--arch);
  z-index: -1;
}

/* ------------------------------------------------------ النقاط الثلاث */
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}
.point { text-align: center; }
.point__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-bright);
}
.point__icon svg { width: 1.5rem; height: 1.5rem; stroke-width: 1.3; }
.point h3 { margin-bottom: 0.6rem; }
.point p { color: var(--soft); font-size: 0.9375rem; }

/* ------------------------------------------------------------ الخريطة */
.map {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--night-2);
  aspect-ratio: 5 / 3;
  max-height: 22rem;
  max-width: 54rem;
  margin-inline: auto;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: invert(0.92) hue-rotate(185deg) saturate(0.6) brightness(0.95) contrast(0.9);
}
@media (min-width: 900px) { .map { aspect-ratio: 21 / 9; max-height: 20rem; } }

/* ------------------------------------------------------ بطاقات التواصل */
.contact-cards {
  display: grid;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
}
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem clamp(1rem, 0.6rem + 1vw, 1.75rem);
  background: var(--night-2);
  min-height: 3.5rem;
  transition: background-color 0.3s var(--ease);
}
a.contact-card:hover { background: var(--navy); }
.contact-card svg {
  width: 1.35rem; height: 1.35rem;
  color: var(--gold-bright); flex: none; margin-top: 0.32rem; stroke-width: 1.4;
}
.contact-card__k { font-size: 0.8125rem; color: var(--dim); }
.contact-card__v { font-weight: 700; color: var(--paper); word-break: break-word; }

/* -------------------------------------------------------- بيانات رسمية */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
}
.fact { background: var(--night-2); padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); text-align: center; }
.fact__k { font-size: 0.8125rem; color: var(--dim); }
.fact__v { font-weight: 700; color: var(--gold-bright); font-size: 1.0625rem; margin-top: 0.4rem; }

/* --------------------------------------------------------------- النموذج */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 700; color: var(--soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1.05rem;
  background: var(--night-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper);
  -webkit-appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; border-radius: var(--r-sm); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.6rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23E3C77C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1.05rem center;
  background-size: 0.7rem auto;
}
.field option { background: var(--night-2); color: var(--paper); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 76, 0.18);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 238, 228, 0.4); }

/* حقول الأرقام: خط محايد كي تُكتب الأرقام بالشكل اللاتيني لا العربي-الهندي */
.field input[type="tel"],
.field input[type="number"],
.field input[type="email"],
.field input[inputmode="numeric"] {
  font-family: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.02em;
}
.field--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.form__note { font-size: 0.8125rem; color: var(--dim); }

/* حقل مصيدة السبام: display:none فقط.
   إخفاؤه بـ left:-9999px يوسّع عرض المستند في اتجاه RTL ويكسر الصفحة. */
.hidden { display: none; }

/* ------------------------------------------------------------- نص مقالي */
.prose { max-width: 44rem; }
.prose p { color: var(--soft); margin-top: 1rem; }
.prose h2 { margin-top: 2.75rem; margin-bottom: 0.5rem; font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.55rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin-top: 1rem; display: grid; gap: 0.6rem; }
.prose ul li { display: flex; gap: 0.8rem; color: var(--soft); font-size: 0.9375rem; line-height: 1.8; }
.prose ul li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  margin-top: 0.75em;
}

/* --------------------------------------------------------- صفحة الخطأ */
.err {
  min-height: 68svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: calc(var(--header-h) + 2rem) 3rem;
}
.err__code {
  font-size: clamp(3.5rem, 2rem + 8vw, 7rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.85;
}

/* --------------------------------------------------------------- الذيل */
.footer { background: #04070f; border-top: 1px solid var(--hair); }
.footer__inner { padding-block: clamp(3.25rem, 2rem + 3.5vw, 5rem) 0; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}
.footer__about { margin-top: 1.25rem; font-size: 0.875rem; max-width: 26rem; color: var(--dim); }
.footer h2 { color: var(--gold-bright); font-size: 0.8125rem; font-weight: 700; margin-bottom: 1rem; }
.footer__links { display: grid; font-size: 0.9375rem; }
.footer__links a { padding-block: 0.6rem; color: var(--soft); transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--gold-bright); }
.footer__contact { display: grid; font-size: 0.9375rem; }
.footer__contact a, .footer__contact div {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding-block: 0.6rem; color: var(--soft);
  transition: color 0.25s var(--ease);
}
.footer__contact a:hover { color: var(--gold-bright); }
.footer__contact svg {
  width: 1.05rem; height: 1.05rem;
  color: var(--gold); flex: none; margin-top: 0.45rem; stroke-width: 1.4;
}

.footer__bottom {
  margin-top: clamp(2.25rem, 1.4rem + 2vw, 3.25rem);
  border-top: 1px solid var(--hair);
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--dim);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__bottom a { padding-block: 0.45rem; }
.footer__bottom a:hover { color: var(--gold-bright); }

/* ------------------------------------------------- الظهور عند التمرير */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--slow), transform 0.9s var(--slow);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- الاستجابة */
@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip > *:first-child { order: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature__media::after { inset: 1rem -1rem -1rem 1rem; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .btn.header__wa { display: inline-flex; }
  .tabbar { display: block; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .wa-float { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 0.85rem); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  /* صورة واحدة على الهاتف. نستهدف <picture> لأن <source> هو الابن الأول
     داخلها، فلا ينفع nth-child على <img>. */
  .hero__bg { grid-template-columns: 1fr; }
  .hero__bg picture:nth-child(1),
  .hero__bg picture:nth-child(3) { display: none; }
  /* على الهاتف الصورة عمودية أصلًا، فنؤخّر بداية التعتيم لتظهر القطعة كاملة */
  .hero::before {
    background: linear-gradient(to bottom,
      rgba(7, 12, 26, 0.66) 0%,
      rgba(7, 12, 26, 0.02) 14%,
      rgba(7, 12, 26, 0.02) 40%,
      rgba(7, 12, 26, 0.45) 56%,
      rgba(7, 12, 26, 0.92) 76%,
      var(--night) 100%);
  }
  /* مساحة أسفل الواجهة حتى لا تختفي الأزرار خلف شريط التنقل وزر واتساب */
  .hero__inner { padding-bottom: calc(var(--tabbar-h) + 5.25rem); }
}

@media (max-width: 640px) {
  :root { --header-h: 4.25rem; }
  .brand__mark { width: 2.6rem; }
  .brand__tag { display: none; }
  .field--2 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { justify-content: flex-start; }
  .btn-row .btn { flex: 1 1 12rem; }
  .tile::after { inset: 0.5rem; }
  .tile__body { padding: 1.15rem 0.75rem; }
  /* الواجهة على الهاتف: نُبقي العنوان وحده فوق الصورة */
  .hero__inner .eyebrow { display: none; }
}

/* ------------------------------------------------------ تفضيلات المستخدم */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .scrolldot { display: none; }
}

@media (prefers-contrast: more) {
  :root { --soft: rgba(242,238,228,.92); --dim: rgba(242,238,228,.8); --hair: rgba(242,238,228,.28); }
}

/* ----------------------------------------------------------- الطباعة */
@media print {
  .header, .tabbar, .wa-float, .btn-row, .skip-link, .map, .scrolldot { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .pagehead, .footer, .section--alt { background: #fff !important; color: #000 !important; }
  .hero__bg, .pagehead__bg, .hero::before, .pagehead::before { display: none; }
  .section { padding-block: 1.5rem; }
}
