/* ============================================================
   مجموعة حامل المسك للحج والعمرة — الأنماط الرئيسية
   هوية بصرية مستخرجة من الشعار الجديد: عنّابي (خمري) داكن / ذهبي / أبيض / أسود
   ============================================================ */

:root {
  /* الألوان */
  --green-950: #2B0016;
  --green-900: #3D0120;
  --green:     #55012E;
  --green-600: #75023F;
  --gold:      #C6992E;
  --gold-light:#E8C888;
  --gold-pale: #F6E9D0;
  --ivory:     #FAF6F2;
  --white:     #FFFFFF;
  --ink:       #1A1A1A;
  --gray:      #6E7570;
  --line:      rgba(198, 153, 46, .35);

  /* الخطوط */
  --font-body: 'Tajawal', sans-serif;
  --font-display: 'Amiri', serif;

  /* أخرى */
  --radius: 14px;
  --shadow: 0 18px 45px -18px rgba(61,1,32, .25);
  --transition: .45s cubic-bezier(.22, .8, .3, 1);
  --container: 1200px;
}

/* ---------- تصفير وأساسيات ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(var(--container), 92%); margin-inline: auto; }

::selection { background: var(--green); color: var(--gold-light); }

/* ---------- شاشة التحميل ---------- */
.preloader {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9999;
  background: var(--green-950);
  display: grid; place-items: center;
  transition: opacity .35s ease, visibility .35s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 0 20px; max-width: 90vw;
}
.preloader__mark {
  width: 130px; height: auto; animation: pulseArch 1.8s ease-in-out infinite;
}
.preloader p { color: var(--gold-light); font-size: 15px; letter-spacing: 2px; margin: 0; white-space: nowrap; }
@keyframes pulseArch { 50% { transform: scale(1.07); opacity: .75; } }

/* ---------- شريط تقدم التمرير ---------- */
.scroll-progress {
  position: fixed; top: 0; right: 0; height: 3px; width: 0;
  background: linear-gradient(270deg, var(--gold), var(--gold-light));
  z-index: 1600;
}

/* ---------- تخطٍّ إلى المحتوى (skip-link) ---------- */
/* Hidden via scroll-safe clip pattern (NOT off-screen absolute — that inflates
   RTL scrollWidth). Revealed on keyboard focus only. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  z-index: 1700;
  background: var(--gold);
  color: var(--green-950);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
}

/* ---------- الهيدر ---------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1500;
  padding: 14px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header--solid, .header.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -15px rgba(61,1,32, .3);
  padding: 8px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 72px; width: auto; }
.brand__text { line-height: 1.3; }
.brand__text strong { display: block; font-size: 17px; color: var(--gold-light); transition: color var(--transition); }
.brand__text span { font-size: 12px; color: rgba(255,255,255,.85); transition: color var(--transition); }
.header--solid .brand__text strong, .header.scrolled .brand__text strong { color: var(--green); }
.header--solid .brand__text span, .header.scrolled .brand__text span { color: var(--gray); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 10px 14px; font-size: 15px; font-weight: 500;
  color: #fff; position: relative; transition: color var(--transition);
}
.nav__link::after {
  content: ""; position: absolute; bottom: 4px; right: 14px; left: 14px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition);
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.header--solid .nav__link, .header.scrolled .nav__link { color: var(--ink); }
.nav__link:hover { color: var(--gold); }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* أزرار */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-3px); }
.btn--gold { background: linear-gradient(120deg, var(--gold), var(--gold-light)); color: var(--green-950); box-shadow: 0 12px 28px -12px rgba(198,153,46,.7); }
.btn--outline { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--green { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn--green:hover { background: var(--green-600); }
.btn--whatsapp { background: #128C4A; color: #fff; padding: 10px 18px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 26px; height: 2px; background: #fff; transition: var(--transition); }
.header--solid .burger span, .header.scrolled .burger span { background: var(--green); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- قسم البطل Hero ---------- */
.hero {
  min-height: 100vh; position: relative; display: grid; place-items: center;
  overflow: hidden; color: #fff; text-align: center;
}
.hero__bg {
  position: absolute; inset: -60px 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,0,22,.72), rgba(43,0,22,.45) 45%, rgba(43,0,22,.85));
}
.hero__content { position: relative; z-index: 2; padding: 140px 20px 90px; max-width: 850px; }
.hero__logo { height: 160px; margin-inline: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--gold-light); letter-spacing: 3px; font-size: 14px; margin-top: 26px;
  text-shadow: 0 3px 12px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.8);
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--gold); box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.5; margin: 14px 0 10px;
  text-shadow: 0 4px 16px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.9);
}
.hero h1 em { font-style: normal; color: var(--gold-light); text-shadow: 0 4px 16px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.9); }
.hero p { font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,.95); max-width: 620px; margin-inline: auto; text-shadow: 0 3px 12px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.8); }
.hero__cta { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; right: 50%; transform: translateX(50%);
  z-index: 2; color: var(--gold-light); font-size: 22px; animation: floatDown 2s infinite;
}
@keyframes floatDown { 50% { transform: translate(50%, 10px); } }

/* ---------- عناوين الأقسام ---------- */
.section { padding: 100px 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--green { background: var(--green-950); color: #fff; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 2px;
}
.section__eyebrow::before, .section__eyebrow::after { content: "◆"; font-size: 8px; }
.section__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); color: var(--green); margin: 10px 0 12px; line-height: 1.5; }
.section--green .section__title { color: #fff; }
.section__desc { color: var(--gray); font-size: 16px; }
.section--green .section__desc { color: rgba(255,255,255,.75); }

/* زخرفة هندسية خلفية خفيفة */
.pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35 5l8 14 16 2-11 12 3 16-16-7-16 7 3-16L11 21l16-2z' fill='none' stroke='%2355012E' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- من نحن ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.about__media { position: relative; }
.about__img {
  width: 100%; height: 560px; object-fit: cover;
  border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.about__media::before {
  content: ""; position: absolute; inset: -18px;
  border: 1.5px solid var(--line);
  border-radius: 50% 50% calc(var(--radius) + 10px) calc(var(--radius) + 10px) / 30% 30% calc(var(--radius) + 10px) calc(var(--radius) + 10px);
}
.about__badge {
  position: absolute; bottom: 26px; left: -14px;
  background: var(--green); color: #fff; border-radius: var(--radius);
  padding: 18px 24px; text-align: center; box-shadow: var(--shadow);
  border: 1px solid rgba(232,200,136,.4);
}
.about__badge strong { display: block; font-size: 30px; color: var(--gold-light); }
.about__badge span { font-size: 13px; }
.about__text p { color: var(--gray); margin-bottom: 26px; }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point i {
  flex-shrink: 0; width: 48px; height: 58px; display: grid; place-items: center;
  color: var(--gold); font-size: 19px; background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px;
}
.point h4 { color: var(--green); font-size: 16px; margin-bottom: 4px; }
.point p { font-size: 14px; color: var(--gray); margin: 0; }

/* ---------- لماذا نحن ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature {
  background: var(--white); border: 1px solid rgba(85,1,46,.08);
  border-radius: var(--radius); padding: 36px 28px; text-align: center;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(270deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transition: var(--transition);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.feature:hover::before { transform: scaleX(1); }
.feature__icon {
  width: 66px; height: 78px; margin: 0 auto 18px; display: grid; place-items: center;
  font-size: 26px; color: var(--green); background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
  transition: var(--transition);
}
.feature:hover .feature__icon { background: var(--green); color: var(--gold-light); }
.feature h3 { color: var(--green); font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--gray); font-size: 14.5px; }

/* ---------- الخدمات ---------- */
.service {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(85,1,46,.08); transition: var(--transition);
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--line); }
.service__body { padding: 30px 26px; flex: 1; }
.service__icon { font-size: 30px; color: var(--gold); margin-bottom: 16px; }
.service h3 { font-size: 18px; color: var(--green); margin-bottom: 8px; }
.service p { font-size: 14.5px; color: var(--gray); }
.service__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 26px 24px; color: var(--green); font-weight: 700; font-size: 14px;
  transition: gap var(--transition), color var(--transition);
}
.service__more:hover { gap: 14px; color: var(--gold); }

/* ---------- البرامج ---------- */
.program {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 35px -20px rgba(61,1,32,.25);
  transition: var(--transition); display: flex; flex-direction: column;
}
.program:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.program__media { position: relative; height: 240px; overflow: hidden; }
.program__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.program:hover .program__media img { transform: scale(1.08); }
.program__tag {
  position: absolute; top: 16px; right: 16px;
  background: rgba(43,0,22,.85); color: var(--gold-light);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(232,200,136,.4); backdrop-filter: blur(4px);
}
.program__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.program h3 { font-size: 20px; color: var(--green); margin-bottom: 10px; }
.program__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--gray); font-size: 13.5px; margin-bottom: 14px; }
.program__meta i { color: var(--gold); margin-left: 6px; }
.program__features { margin-bottom: 20px; flex: 1; }
.program__features li { font-size: 14px; color: var(--gray); padding: 4px 0; }
.program__features i { color: var(--gold); margin-left: 8px; font-size: 12px; }
.program__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 18px; }
.program__price { color: var(--green); font-weight: 800; font-size: 20px; }
.program__price span { font-size: 12px; color: var(--gray); font-weight: 400; display: block; }

/* ---------- خطوات الحجز (Timeline) ---------- */
.timeline { position: relative; max-width: 800px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 50%;
  width: 1.5px; background: linear-gradient(var(--gold) 60%, transparent 0) center / 1.5px 14px;
}
.step {
  position: relative; width: 50%; padding: 0 46px 46px 0;
}
.step:nth-child(even) { margin-right: 50%; padding: 0 46px 46px; padding-right: 46px; padding-left: 0; text-align: left; direction: ltr; }
.step:nth-child(even) .step__card { direction: rtl; text-align: right; }
.step__num {
  position: absolute; top: 0; right: -27px;
  width: 54px; height: 62px; display: grid; place-items: center;
  background: var(--green); color: var(--gold-light); font-weight: 800; font-size: 18px;
  border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
  border: 1px solid rgba(232,200,136,.5); z-index: 2;
}
.step:nth-child(even) .step__num { right: auto; left: -27px; }
.step__card {
  background: #fff; border-radius: var(--radius); padding: 22px 24px;
  border: 1px solid rgba(85,1,46,.08); box-shadow: 0 10px 30px -20px rgba(61,1,32,.3);
  transition: var(--transition);
}
.step__card:hover { border-color: var(--line); transform: translateY(-4px); }
.step__card i { color: var(--gold); font-size: 20px; margin-bottom: 8px; }
.step__card h3 { color: var(--green); font-size: 17px; margin-bottom: 6px; }
.step__card p { color: var(--gray); font-size: 14px; }

/* ---------- المعرض ---------- */
.masonry { columns: 3 300px; column-gap: 18px; }
.masonry__item {
  position: relative; margin-bottom: 18px; border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; break-inside: avoid;
}
.masonry__item img { width: 100%; transition: transform .8s ease; }
.masonry__item::after {
  content: attr(data-caption); position: absolute; inset-inline: 0; bottom: 0;
  padding: 40px 18px 14px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(43,0,22,.85));
  opacity: 0; transition: var(--transition);
}
.masonry__item:hover img { transform: scale(1.07); }
.masonry__item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: rgba(43,0,22,.92); opacity: 0; visibility: hidden; transition: var(--transition);
  padding: 30px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 24px; left: 28px; color: var(--gold-light); font-size: 30px; }
.lightbox__caption { position: absolute; bottom: 26px; color: var(--gold-light); font-size: 15px; }

/* ---------- الإحصائيات ---------- */
.stats { position: relative; background: var(--green-950); overflow: hidden; }
.stats::after {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35 5l8 14 16 2-11 12 3 16-16-7-16 7 3-16L11 21l16-2z' fill='none' stroke='%23E8C888' stroke-width='1'/%3E%3C/svg%3E");
}
.stat { text-align: center; position: relative; z-index: 1; }
.stat i { font-size: 28px; color: var(--gold); margin-bottom: 12px; }
.stat strong { display: block; font-size: clamp(34px, 4vw, 48px); color: #fff; font-weight: 800; line-height: 1.2; }
.stat strong small { font-size: .6em; color: var(--gold-light); }
.stat span { color: rgba(255,255,255,.75); font-size: 15px; }

/* ---------- آراء العملاء ---------- */
.slider { position: relative; max-width: 820px; margin-inline: auto; }
.slider__track { overflow: hidden; }
.slider__inner { display: flex; transition: transform .6s cubic-bezier(.22,.8,.3,1); }
.testimonial { min-width: 100%; padding: 10px; }
.testimonial__card {
  background: #fff; border-radius: var(--radius); padding: 42px 40px;
  border: 1px solid rgba(85,1,46,.08); box-shadow: var(--shadow); text-align: center;
}
.testimonial__card > i { font-size: 30px; color: var(--gold); margin-bottom: 16px; }
.testimonial__card blockquote { color: var(--gray); font-size: 16.5px; margin-bottom: 22px; }
.testimonial__stars { color: var(--gold); font-size: 14px; margin-bottom: 14px; letter-spacing: 3px; }
.testimonial__name { color: var(--green); font-weight: 800; }
.testimonial__role { color: var(--gray); font-size: 13px; }
.slider__nav { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: var(--transition); }
.slider__dot.active { background: var(--gold); width: 28px; border-radius: 999px; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--green); box-shadow: var(--shadow); font-size: 16px;
  transition: var(--transition); z-index: 2;
}
.slider__arrow:hover { background: var(--green); color: var(--gold-light); }
.slider__arrow--prev { right: -20px; }
.slider__arrow--next { left: -20px; }

/* ---------- الأسئلة الشائعة ---------- */
.accordion { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.accordion__item { background: #fff; border: 1px solid rgba(85,1,46,.1); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.accordion__item.open { border-color: var(--line); box-shadow: var(--shadow); }
.accordion__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 16.5px; font-weight: 700; color: var(--green); text-align: right;
}
.accordion__q i { color: var(--gold); transition: transform var(--transition); }
.accordion__item.open .accordion__q i { transform: rotate(180deg); }
.accordion__a { max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.accordion__a p { padding: 0 24px 22px; color: var(--gray); font-size: 15px; }

/* ---------- الأخبار ---------- */
.post { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(85,1,46,.08); transition: var(--transition); display: flex; flex-direction: column; }
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.post__media { height: 220px; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.post:hover .post__media img { transform: scale(1.08); }
.post__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post__date { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.post h3 { font-size: 18px; color: var(--green); margin-bottom: 8px; line-height: 1.6; }
.post p { color: var(--gray); font-size: 14.5px; flex: 1; }
.post .service__more { margin: 14px 0 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; text-align: center; color: #fff;
  background: linear-gradient(rgba(43,0,22,.82), rgba(43,0,22,.82)), var(--cta-img, var(--green-950)) center / cover fixed;
  padding: 110px 0;
}
.cta h2 { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 14px; line-height: 1.6; }
.cta h2 em { font-style: normal; color: var(--gold-light); }
.cta p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 32px; }

/* ---------- التواصل ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact__list { display: grid; gap: 18px; margin-bottom: 28px; }
.contact__item { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid rgba(85,1,46,.08); border-radius: var(--radius); padding: 18px 20px; transition: var(--transition); }
.contact__item:hover { border-color: var(--line); box-shadow: var(--shadow); }
.contact__item i {
  flex-shrink: 0; width: 50px; height: 58px; display: grid; place-items: center;
  color: var(--gold); background: var(--ivory); font-size: 19px;
  border: 1px solid var(--line); border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px;
}
.contact__item h4 { color: var(--green); font-size: 15px; }
.contact__item p, .contact__item a { color: var(--gray); font-size: 14.5px; direction: ltr; text-align: right; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; }

.form { background: #fff; border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow); border: 1px solid rgba(85,1,46,.08); }
.form h3 { color: var(--green); font-family: var(--font-display); font-size: 24px; margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 16px; }
.form label { display: block; font-size: 14px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid rgba(85,1,46,.15);
  border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--ivory); transition: var(--transition);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(198,153,46,.12);
}
.form textarea { min-height: 130px; resize: vertical; }
.form__msg { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.form__msg.ok { display: block; background: #E8F5EE; color: var(--green); border: 1px solid rgba(85,1,46,.2); }

/* ---------- الفوتر ---------- */
.footer { background: var(--green-950); color: rgba(255,255,255,.8); position: relative; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 80px 0 50px; }
.footer__brand img { height: 84px; margin-bottom: 16px; }
.footer__brand p { font-size: 14.5px; }
.footer h4 { color: var(--gold-light); font-size: 17px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 34px; height: 2px; background: var(--gold); }
.footer__links li { padding: 5px 0; }
.footer__links a { font-size: 14.5px; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.footer__links a::before { content: "◂"; color: var(--gold); font-size: 10px; }
.footer__links a:hover { color: var(--gold-light); padding-right: 6px; }
.footer__contact li { display: flex; gap: 10px; padding: 6px 0; font-size: 14.5px; align-items: baseline; }
.footer__contact i { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(232,200,136,.4); color: var(--gold-light); transition: var(--transition);
}
.socials a:hover { background: var(--gold); color: var(--green-950); transform: translateY(-4px); }
.footer__bottom { border-top: 1px solid rgba(232,200,136,.18); padding: 20px 0; text-align: center; font-size: 13.5px; }
.footer__bottom strong { color: var(--gold-light); }

/* ---------- عناصر عائمة ---------- */
.float-wa {
  position: fixed; bottom: 26px; right: 26px; z-index: 1400;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #128C4A; color: #fff; font-size: 26px;
  box-shadow: 0 14px 30px -10px rgba(18,140,74,.7); transition: var(--transition);
}
.float-wa:hover { transform: scale(1.1); }
.to-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 1400;
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green); color: var(--gold-light); font-size: 17px;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: var(--transition);
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--green-950); }

/* ---------- صفحات داخلية ---------- */
.page-hero {
  position: relative; padding: 190px 0 110px; color: #fff; text-align: center;
  background: linear-gradient(rgba(43,0,22,.78), rgba(43,0,22,.78)), var(--ph-img, var(--green-950)) center / cover;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 50px); }
.page-hero .breadcrumb { margin-top: 12px; color: var(--gold-light); font-size: 14px; display: flex; justify-content: center; gap: 10px; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* صفحة تفاصيل البرنامج */
.details { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; align-items: start; }
.details__main img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.details__main h2 { font-family: var(--font-display); color: var(--green); font-size: 30px; margin-bottom: 14px; }
.details__main h3 { color: var(--green); font-size: 21px; margin: 30px 0 12px; display: flex; align-items: center; gap: 10px; }
.details__main h3 i { color: var(--gold); font-size: 17px; }
.details__main p { color: var(--gray); }
.details__main ul { display: grid; gap: 8px; }
.details__main ul li { color: var(--gray); font-size: 15px; }
.details__main ul i { color: var(--gold); margin-left: 8px; font-size: 13px; }
.day { border-right: 2px solid var(--line); padding: 0 22px 24px 0; position: relative; }
.day::before { content: ""; position: absolute; top: 6px; right: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.day h4 { color: var(--green); font-size: 16px; }
.day p { font-size: 14.5px; }
.aside-card { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); border: 1px solid rgba(85,1,46,.08); position: sticky; top: 100px; }
.aside-card .program__price { font-size: 32px; }
.aside-card hr { border: 0; border-top: 1px dashed var(--line); margin: 20px 0; }
.aside-card li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; color: var(--gray); }
.aside-card li strong { color: var(--green); }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 10px; }

/* مقال الخبر */
.article { max-width: 800px; margin-inline: auto; }
.article img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 28px; }
.article h1 { font-family: var(--font-display); color: var(--green); font-size: clamp(26px, 4vw, 38px); line-height: 1.6; margin-bottom: 10px; }
.article .post__date { margin-bottom: 22px; }
.article p { color: var(--gray); margin-bottom: 18px; font-size: 16px; }
.article h2 { color: var(--green); font-size: 22px; margin: 26px 0 10px; }

/* ---------- إصلاحات هامشية (admin bar + RTL overflow) ---------- */
html { overflow-x: hidden; }  /* RTL: prevent .reveal--left/.reveal--right pre-animation transforms from inflating scroll */
/* Admin bar covers fixed header — position:fixed ignores WP's margin-top on <html>. */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .header { top: 46px; }
}
/* Active nav link — JS toggles .active; ensure gold underline persists. */
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--gold); }
.header--solid .nav__link.active { color: var(--gold); }
/* wp_nav_menu emits <li><a class="nav__link">…; neutralize the <li> wrapper
   so .nav's flex layout treats the <a> as direct children (1:1 with template). */
.nav li { list-style: none; }
.nav li.menu-item { display: contents; }

/* ---------- حركات الظهور (Reveal) ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,.8,.3,1); }
.reveal--right { transform: translateX(60px); }
.reveal--left { transform: translateX(-60px); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
