/* ───────── 1. الرموز والأساسيات ───────── */
:root {
  --ink: #064e4a;
  --deep: #053e3b;
  --deep-soft: #0a5b56;
  --cream: #fcf7ea;
  --cream-2: #f6efdc;
  --gold: #e5b64d;
  --gold-deep: #c9973a;
  --coral: #e56f5d;     
  --coral-ink: #c14a37; 
  --coral-deep: #b8452f; 
  --mint: #dcece1;
  --muted: #4c6661;
  --line: rgba(5, 62, 59, 0.16);
  --line-soft: rgba(5, 62, 59, 0.08);

  --shadow-sm: 0 2px 8px rgba(5, 62, 59, 0.06);
  --shadow-md: 0 12px 28px rgba(5, 62, 59, 0.1);
  --shadow-lg: 0 24px 60px rgba(5, 62, 59, 0.16);

  --header-h: 84px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--deep);
  font-family: "Noto Kufi Arabic", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(229, 182, 77, 0.1), transparent 42%),
    radial-gradient(circle at 88% 62%, rgba(220, 236, 225, 0.55), transparent 45%);
  background-attachment: fixed;
}

body.no-scroll { overflow: hidden; }


[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Amiri, "Times New Roman", serif; line-height: 1.14; font-weight: 700; margin: 0; }
h1 { font-size: clamp(46px, 6vw, 82px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h1 em, h2 em { color: var(--coral); font-style: normal; }


:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  background: var(--deep);
  color: var(--cream);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: inset-block-start 0.25s var(--ease);
}
.skip-link:focus { inset-block-start: 0; }

section[id] { scroll-margin-block-start: calc(var(--header-h) + 16px); }

.section {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(72px, 9vw, 118px) 30px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--coral-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0 0 16px;
}
.eyebrow span {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--coral-ink);
  flex: none;
}


.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 15px 26px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s;
}
.button:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.button:active { transform: translateY(-1px); }
.button span { font-size: 20px; line-height: 1; transition: transform 0.22s var(--ease); }
.button:hover span { transform: translateX(-5px); }
.button-gold { background: var(--gold); color: var(--deep); }
.button-gold:hover { background: var(--gold-deep); }
.button-dark { background: var(--deep); color: var(--cream); }
.button-dark:hover { background: var(--deep-soft); }

.text-link {
  font-size: 14px;
  font-weight: 600;
  border-block-end: 1px solid var(--deep);
  padding-block-end: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--coral-ink); border-color: var(--coral-ink); }
.text-link span { color: var(--coral-ink); font-size: 18px; margin-inline-start: 8px; }

/* ───────── 2. الترويسة ───────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(252, 247, 234, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px rgba(5, 62, 59, 0.06);
}

.nav-wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand span { display: grid; line-height: 1.3; }
.brand strong { font-family: Amiri, serif; font-size: 22px; }
.brand small { font-size: 11px; color: var(--muted); }

.main-nav { display: flex; gap: 30px; font-size: 13px; font-weight: 600; }
.main-nav a {
  position: relative;
  padding-block: 6px;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--coral-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--coral-ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s, transform 0.22s var(--ease);
}
.nav-cta svg { width: 15px; height: 15px; fill: currentColor; }
.nav-cta:hover { background: var(--deep); color: var(--cream); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(252, 247, 234, 0.7);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle .bars { display: grid; gap: 5px; }
.nav-toggle i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--deep);
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  background: var(--cream);
  border-block-start: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
}
.mobile-nav.open { max-height: 420px; }
.mobile-nav nav { display: grid; padding: 8px 22px 22px; }
.mobile-nav a {
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  border-block-end: 1px solid var(--line-soft);
}
.mobile-nav a:last-child { border-block-end: 0; color: var(--coral-ink); }

.scroll-progress {
  height: 3px;
  background: transparent;
}
.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.1s linear;
}

/* ───────── 3. الواجهة ───────── */
.hero {
  min-height: 750px;
  max-width: 1240px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 60px) 30px 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-text {
  max-width: 470px;
  color: var(--muted);
  font-size: 16px;
  margin: 26px 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 52px;
}

.hero-facts { display: flex; gap: 34px; margin: 0; }
.hero-facts div {
  display: flex;
  flex-direction: column-reverse; /* القيمة أعلى، والوصف أسفلها */
  border-inline-end: 1px solid var(--line);
  padding-inline-end: 20px;
}
.hero-facts div:last-child { border-inline-end: 0; padding-inline-end: 0; }
.hero-facts dt { color: var(--muted); font-size: 12px; }
.hero-facts dd {
  margin: 0;
  font-family: Amiri, serif;
  font-size: 27px;
  line-height: 1.25;
}
.hero-facts dd i { font-style: normal; color: var(--coral-ink); }
.hero-facts bdi, .start-date bdi { display: inline-block; }

.hero-visual { position: relative; height: 560px; }
.sun-disc {
  position: absolute;
  inset: 45px 35px 15px 15px;
  background: radial-gradient(circle at 35% 30%, #f6e2a4, #f1d984);
  border-radius: 52% 48% 45% 55%;
  opacity: 0.55;
  animation: float 9s ease-in-out infinite;
}
.hero-logo {
  position: absolute;
  width: 150px;
  height: auto;
  inset-block-start: 0;
  inset-inline-start: 40px;
  z-index: 2;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow-md);
}
.hero-photo-frame {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 20px;
  width: 78%;
  height: 420px;
  margin: 0;
  border: 12px solid var(--cream);
  outline: 1px solid var(--gold);
  overflow: hidden;
  background: var(--mint);
  transform: rotate(-3deg);
  box-shadow: 18px 22px 0 var(--deep);
  transition: transform 0.4s var(--ease);
}
.hero-photo-frame:hover { transform: rotate(-1deg) scale(1.01); }
.hero-photo-frame picture { display: block; width: 100%; height: 100%; }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  background: var(--gold);
  color: var(--deep);
  padding: 8px 15px;
  font-family: Amiri, serif;
  font-size: 19px;
}
.arabic-stamp {
  position: absolute;
  inset-block-end: 45px;
  inset-inline-start: 0;
  background: var(--coral-deep);
  color: #fff7e5;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: Amiri, serif;
  font-size: 18px;
  line-height: 1.15;
  transform: rotate(12deg);
  z-index: 3;
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite reverse;
}
.arabic-stamp span { color: var(--gold); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ───────── 4. البرامج ───────── */
.intro { border-block-start: 1px solid var(--line); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-block-start: 55px;
}
.program-card {
  min-height: 320px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.program-card::before {
  content: "";
  position: absolute;
  inset-block-start: -70px;
  inset-inline-start: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.07;
  transition: transform 0.5s var(--ease);
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.program-card:hover::before { transform: scale(1.5); }
.card-green { background: var(--deep); color: var(--cream); }
.card-coral { background: var(--coral-deep); color: #fff7e5; }
.card-gold { background: var(--gold); color: var(--deep); }
.card-number {
  position: absolute;
  inset-inline-end: 26px;
  inset-block-start: 20px;
  font-family: Amiri, serif;
  font-size: 26px;
  opacity: 0.55;
}
.card-icon { font-family: Amiri, serif; font-size: 46px; margin-block-start: 52px; line-height: 1; }
.program-card h3 { font-size: 29px; margin: 22px 0 10px; }
.program-card p { font-size: 14px; max-width: 290px; opacity: 0.92; margin: 0; }

/* ───────── 5. الأفواج ───────── */
.admission {
  max-width: none;
  background: var(--mint);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.3fr;
  gap: 80px;
  padding-inline: max(30px, calc((100% - 1180px) / 2));
  align-items: center;
}
.admission-copy > p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  max-width: 390px;
  margin: 22px 0 32px;
}
.age-groups { display: flex; gap: 18px; }
.age-group {
  flex: 1;
  min-height: 300px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.age-group:hover { box-shadow: var(--shadow-md); }
.age-group.featured { background: var(--deep); color: var(--cream); transform: translateY(-18px); }
.age-group.featured:hover { transform: translateY(-26px); }
.age-group:not(.featured):hover { transform: translateY(-8px); }
.age-group span { font-family: Amiri, serif; font-size: 25px; }
.age-group b { font-family: Amiri, serif; font-size: 100px; line-height: 1; color: var(--coral); }
.age-group.featured b { color: var(--gold); }
.age-group small { font-size: 14px; color: var(--muted); }
.age-group em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-ink);
  margin-block-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.age-group em i { font-style: normal; font-size: 16px; transition: transform 0.22s var(--ease); }
.age-group:hover em i { transform: translateX(-5px); }
.age-group.featured em { color: var(--gold); }
.age-group.featured small { color: #b8d1c8; }

/* ───────── 6. الوثائق ───────── */
.documents { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 55px; align-items: start; }
.documents-top > p:not(.eyebrow) { font-size: 15px; color: var(--muted); max-width: 380px; }

.poster-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-start: 32px;
  padding: 12px;
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  max-width: 340px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.poster-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.poster-card picture { flex: none; display: block; }
.poster-card img { width: 76px; height: 95px; object-fit: cover; border-radius: 2px; }
.poster-card span { display: grid; }
.poster-card b { font-family: Amiri, serif; font-size: 21px; }
.poster-card small { font-size: 12px; color: var(--muted); }

.document-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block-start: 1px solid var(--line);
}
.document-list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 8px;
  border-block-end: 1px solid var(--line);
  transition: background 0.22s;
}
.document-list li:hover { background: var(--cream-2); }
.document-list span { font-family: Amiri, serif; color: var(--coral-ink); font-size: 20px; flex: none; }
.document-list strong { font-family: Amiri, serif; font-size: 23px; font-weight: 400; }
.document-list strong i { font-style: normal; color: var(--muted); font-size: 17px; }

.start-date {
  grid-column: 1 / -1;
  margin: 0;
  border-block: 1px solid var(--deep);
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}
.start-date span { font-size: 15px; }
.start-date strong { font-family: Amiri, serif; font-size: 36px; color: var(--coral); }
.start-date i { font-family: Amiri, serif; font-size: 19px; font-style: normal; color: var(--muted); }

/* ───────── 7. الصور ───────── */
.gallery { padding-block-start: 40px; }
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-block-end: 42px;
}
.gallery-heading > p { font-size: 14px; color: var(--muted); max-width: 320px; margin: 0; }

/* مقطع من الأنشطة */
.video-feature {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
  align-items: center;
  margin-block-end: 48px;
  padding: 34px;
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.video-copy h3 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 12px; }
.video-copy p { margin: 0; color: var(--muted); font-size: 15px; max-width: 430px; }
.video-copy small {
  display: block;
  margin-block-start: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.video-wrap video {
  display: block;
  height: min(500px, 66vh);
  width: auto;
  max-width: 100%;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deep);
  height: 300px;
}
.gallery-item.gallery-large,
.gallery-item.gallery-wide { grid-column: span 2; }
.gallery-item a, .gallery-item picture { display: block; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 32px 18px 14px;
  color: #fff;
  font-family: Amiri, serif;
  font-size: 21px;
  background: linear-gradient(transparent, rgba(5, 62, 59, 0.85));
  pointer-events: none;
}
.gallery-item::after {
  content: "⤢";
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  background: rgba(252, 247, 234, 0.92);
  color: var(--deep);
  border-radius: 50%;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  pointer-events: none;
}
.gallery-item:hover::after, .gallery-item:focus-within::after { opacity: 1; transform: scale(1); }

/* ───────── 8. التواصل ───────── */
.contact { padding-block-start: 40px; }
.contact-card {
  background: var(--deep);
  color: var(--cream);
  padding: 70px 80px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(229, 182, 77, 0.35);
  border-radius: 50%;
  inset-inline-end: -80px;
  inset-block-end: -180px;
}
.contact-copy { position: relative; z-index: 1; }
.contact-card .eyebrow { color: var(--gold); }
.contact-card .eyebrow span { background: var(--gold); }
.contact-card h2 em { color: var(--gold); }
.contact-copy > p:last-child { color: #b8d1c8; font-size: 15px; margin-block-end: 0; }

.contact-actions {
  display: grid;
  gap: 12px;
  min-width: 300px;
  position: relative;
  z-index: 1;
}
.phone {
  display: grid;
  gap: 4px;
  background: var(--gold);
  color: var(--deep);
  padding: 26px 36px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.phone:hover { transform: translateY(-4px); background: #edc264; box-shadow: var(--shadow-lg); }
.phone small { font-size: 12px; }
.phone strong { font-family: Amiri, serif; font-size: 44px; line-height: 1.1; direction: ltr; }
.phone span { font-size: 12px; border-block-start: 1px solid rgba(5, 62, 59, 0.35); padding-block-start: 8px; }

.whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #8cc9a1;
  color: #d3efdb;
  border-radius: var(--radius);
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.22s, color 0.22s;
}
.whatsapp svg { width: 18px; height: 18px; fill: #8cc9a1; transition: fill 0.22s; }
.whatsapp:hover { background: #8cc9a1; color: var(--deep); }
.whatsapp:hover svg { fill: var(--deep); }

/* ───────── 9. التذييل ───────── */
.site-footer {
  max-width: 1240px;
  margin-inline: auto;
  padding: 38px 30px 46px;
  border-block-start: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-brand { display: grid; color: var(--deep); }
.footer-brand strong { font-family: Amiri, serif; font-size: 20px; }
.footer-brand span { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; font-weight: 600; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--coral-ink); }
.to-top { color: var(--coral-ink); font-weight: 600; }

/* الشريط السفلي: حقوق الموقع واعتماد المطوّر */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 26px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line-soft);
}
.footer-copy { font-size: 12px; }
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
}
.credit-label { color: var(--muted); }
.credit-link,
.credit-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--deep);
  font-weight: 700;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.22s, border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.credit-link svg,
.credit-icon svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.credit-link:hover,
.credit-icon:hover {
  color: var(--cream);
  background: var(--deep);
  border-color: var(--deep);
  transform: translateY(-2px);
}
.credit-icon { padding: 5px; }

/* شريط التواصل السريع (الجوال) */
.quick-bar {
  display: none;
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 45;
  background: var(--deep);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(5, 62, 59, 0.18);
}
.quick-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}
.quick-bar svg { width: 17px; height: 17px; fill: currentColor; }
.quick-bar a:first-child { background: var(--gold); color: var(--deep); }
.quick-bar a:last-child { background: transparent; color: #d3efdb; border: 1px solid #8cc9a1; }

/* ───────── 10. عارض الصور ───────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 62, 59, 0.94);
  display: grid;
  place-items: center;
  padding: 60px 20px;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.lightbox.open { opacity: 1; }
.lb-stage { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; }
.lb-stage img {
  max-width: min(1100px, 92vw);
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.28s var(--ease);
}
.lightbox.open .lb-stage img { transform: scale(1); }
.lb-stage figcaption {
  color: var(--cream);
  font-family: Amiri, serif;
  font-size: 21px;
  text-align: center;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(252, 247, 234, 0.12);
  border: 1px solid rgba(252, 247, 234, 0.3);
  color: var(--cream);
  cursor: pointer;
  border-radius: 50%;
  font-family: inherit;
  display: grid;
  place-content: center;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: rgba(252, 247, 234, 0.28); transform: scale(1.08); }
.lb-close {
  inset-block-start: 18px;
  inset-inline-end: 18px;
  width: 46px;
  height: 46px;
  font-size: 18px;
}
.lb-nav {
  inset-block-start: 50%;
  translate: 0 -50%;
  width: 50px;
  height: 50px;
  font-size: 34px;
  line-height: 0.8;
  padding-block-end: 6px;
}
.lightbox[data-single="true"] .lb-nav { display: none; }
.lb-prev { inset-inline-start: 18px; }
.lb-next { inset-inline-end: 18px; }

/* ───────── 11. الحركة ───────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ───────── 12. الشاشات الصغيرة ───────── */
@media (max-width: 1000px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
  .admission { grid-template-columns: 1fr; gap: 48px; }
  .documents { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.gallery-large,
  .gallery-item.gallery-wide { grid-column: 1 / -1; }
  .contact-card { padding: 56px 44px; }
}

@media (max-width: 800px) {
  :root { --header-h: 72px; }

  body { padding-block-end: 76px; } /* مساحة لشريط التواصل السريع */

  .nav-wrap { padding: 12px 18px; gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 10px; }
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: grid; }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: calc(var(--header-h) + 28px) 20px 70px;
    gap: 18px;
    align-items: stretch;
  }
  .hero-visual { height: 430px; order: -1; }
  .hero-logo { width: 108px; inset-inline-start: 4%; inset-block-start: -6px; }
  .hero-photo-frame { inset-inline-end: 6%; height: 320px; width: 86%; border-width: 9px; box-shadow: 12px 15px 0 var(--deep); }
  .arabic-stamp { width: 80px; height: 80px; font-size: 14px; inset-block-end: 24px; }
  .sun-disc { inset: 25px 10px 15px; }
  .hero-text { font-size: 15px; }
  .hero-actions { margin: 26px 0 34px; gap: 18px; }
  .hero-facts { gap: 14px; justify-content: space-between; }
  .hero-facts div { padding-inline-end: 10px; }
  .hero-facts dd { font-size: 21px; }
  .hero-facts dt { font-size: 10px; }

  .section { padding: 70px 20px; }
  .program-grid { grid-template-columns: 1fr; margin-block-start: 40px; }
  .program-card { min-height: 0; }
  .card-icon { margin-block-start: 34px; }
  .admission { padding-block: 70px; }
  .age-groups { margin-block-start: 8px; }
  .age-group { min-height: 220px; }
  .age-group.featured { transform: translateY(-10px); }
  .age-group span { font-size: 20px; }
  .age-group b { font-size: 74px; }

  .poster-card { max-width: none; }
  .document-list strong { font-size: 20px; }
  .start-date { margin-block-start: 8px; }
  .start-date strong { font-size: 30px; }

  .video-feature { gap: 24px; padding: 22px; margin-block-end: 34px; }
  .video-wrap { display: flex; justify-content: center; }
  .video-wrap video { height: auto; width: 100%; max-width: 290px; }

  .gallery-heading { display: block; }
  .gallery-heading > p { margin-block-start: 18px; max-width: none; }
  .gallery-item { height: 210px; }
  .gallery-item.gallery-large,
  .gallery-item.gallery-wide { height: 250px; }
  .gallery-item figcaption { font-size: 17px; padding: 26px 14px 12px; }

  .contact-card { display: block; padding: 44px 26px; }
  .contact-actions { margin-block-start: 32px; min-width: 0; }
  .phone strong { font-size: 38px; }

  .site-footer { text-align: center; padding-block-end: 34px; }
  .footer-main { justify-content: center; }
  .footer-brand { justify-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; }

  .quick-bar { display: flex; }

  .lightbox { padding: 20px 12px 78px; }
  .lb-nav { inset-block-start: auto; inset-block-end: 18px; translate: none; width: 46px; height: 46px; }
  .lb-close { inset-block-start: 12px; inset-inline-end: 12px; }
  .lb-stage img { max-height: 66vh; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.gallery-large, .gallery-item.gallery-wide { height: 230px; }
  .age-groups { flex-direction: column; }
  .age-group.featured { transform: none; }
  .hero-facts { flex-wrap: wrap; gap: 12px 18px; }
}
