/* =====================================================================
   مركز لانتيرن للتدريب — الصفحة التعريفية
   امتداد لـ styles.css: لا يعيد تعريف أي متغيّر، ويستعمل نفس
   الألوان والخط والمقاسات حتى لا يشعر الزائر بفاصل بين هذه الصفحة
   وصفحة الدفع والتطبيق.
   ===================================================================== */

/* ---------- الترويسة ---------- */
.site-head .head-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 13px;
  line-height: 20px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.15s;
}
.site-head .head-cta:hover {
  background: var(--gold-dim);
}
.site-head .head-cta svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---------- الشريط العلوي ---------- */
.hero-lg {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-container) 60%,
    var(--secondary) 145%
  );
  color: var(--on-primary);
  padding: 56px 16px 64px;
  text-align: center;
}
.hero-lg .wrap {
  width: min(720px, 100%);
  margin: 0 auto;
}
.hero-lg .eyebrow {
  display: inline-block;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--primary-fixed);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-lg h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 46px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.hero-lg .sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--on-primary-container);
  font-size: 16px;
  line-height: 28px;
}
.hero-lg .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-lg .micro {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--on-primary-container);
}
@media (min-width: 700px) {
  .hero-lg h1 {
    font-size: 42px;
    line-height: 56px;
  }
}

/* ---------- زر المتجر ---------- */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 52px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: 0.15s;
}
.store-btn:hover {
  background: var(--gold-dim);
}
.store-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store-btn .stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}
.store-btn .stack small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}
.store-btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-primary);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.store-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- التخطيط ---------- */
.page {
  flex: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 48px 16px 56px;
  position: relative;
  z-index: 1;
}
.section {
  margin-top: 48px;
}
.section-head {
  text-align: center;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 34px;
  font-weight: 800;
  color: var(--primary-container);
}
.section-head p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.cols {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .cols.two {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .cols.four {
    grid-template-columns: repeat(4, 1fr);
  }
  .cols.three {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 640px) and (max-width: 899px) {
  .cols.four,
  .cols.three {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- بطاقة ميزة ---------- */
.feat {
  padding: 20px 18px;
}
.feat .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--container);
  color: var(--primary-container);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feat .ic svg {
  width: 22px;
  height: 22px;
}
.feat h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}
.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

/* ---------- رقائق الفئات ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lowest);
  border: 1px solid var(--line);
  color: var(--primary-container);
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- الشهادات ---------- */
.cert {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cert .tag {
  align-self: flex-start;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--container);
  color: var(--primary-container);
  margin-bottom: 10px;
}
.cert .tag.intl {
  background: #fff3d6;
  color: #6b4b00;
}
.cert h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}
.cert p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  flex: 1;
}
.cert .price {
  font-size: 22px;
  line-height: 30px;
  font-weight: 800;
  color: var(--primary-container);
  direction: ltr;
  text-align: right;
  white-space: nowrap;
}
.cert .price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--outline);
}

/* ---------- الخطوات ---------- */
.steps {
  counter-reset: s;
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  position: relative;
  padding: 20px 18px;
}
.step .num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

/* ---------- الكورس المميّز ---------- */
.spot {
  display: grid;
  gap: 0;
}
@media (min-width: 760px) {
  .spot {
    grid-template-columns: 1.25fr 1fr;
  }
}
.spot .body {
  padding: 24px 20px;
}
.spot .side {
  padding: 24px 20px;
  background: var(--low);
  border-inline-start: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 759px) {
  .spot .side {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}
.spot h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 800;
}
.spot .meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}
.spot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.spot li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.spot li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}
.spot .amount {
  font-size: 30px;
  line-height: 40px;
  font-weight: 800;
  color: var(--primary-container);
  direction: ltr;
  text-align: right;
}

/* ---------- شريط الدعوة ---------- */
.cta-band {
  margin-top: 48px;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-container) 0%,
    var(--secondary) 130%
  );
  color: var(--on-primary);
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 34px;
  font-weight: 800;
}
.cta-band p {
  margin: 0 auto 24px;
  max-width: 460px;
  color: var(--primary-fixed);
  font-size: 14px;
  line-height: 22px;
}

/* ---------- التذييل ---------- */
.foot-grid {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
  text-align: right;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
}
@media (min-width: 700px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot-grid h4 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  color: var(--on-primary);
}
.foot-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
}
.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot-grid a {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
html {
  scroll-behavior: smooth;
}

/* ---------- أدوات صغيرة (بديل عن style= لأن CSP يمنع الأنماط المضمَّنة) ---------- */
.section.first {
  margin-top: 0;
}
.self-start {
  align-self: flex-start;
}
.note.flush {
  margin: 0;
}
.foot-grid .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* ---------- من نحن ---------- */
.about {
  padding: 28px 24px;
  text-align: center;
}
.about h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 800;
  color: var(--primary-container);
}
.about p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 28px;
}
.about p + p {
  margin-top: 10px;
}

/* ---------- إبطال .card + .card داخل الشبكات ----------
   styles.css يضيف margin-top:16px لكل بطاقة تلي بطاقة، وهو سلوك
   صحيح في التتابع الرأسي وخاطئ في الشبكة: يُنزل كل البطاقات عدا
   الأولى في ترتيب HTML (اليمنى في RTL) فتختل الأطوال. */
.cols > .card + .card,
.steps > .card + .card {
  margin-top: 0;
}
.cols > .card,
.steps > .card {
  height: 100%;
}

/* ---------- الترويسة على الشاشات الضيّقة ----------
   styles.css يضع flex-wrap:wrap على .site-head، فينزل الزر سطراً
   كاملاً تحت الاسم على الهاتف. نمنع الالتفاف ونضغط المقاسات. */
.site-head {
  flex-wrap: nowrap;
}
.brand {
  min-width: 0;
}
.head-cta .t-short {
  display: none;
}
@media (max-width: 560px) {
  .site-head {
    padding: 10px 14px;
    gap: 10px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand img {
    height: 32px;
  }
  .head-cta {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .head-cta svg {
    width: 14px;
    height: 14px;
  }
  .head-cta .t-long {
    display: none;
  }
  .head-cta .t-short {
    display: inline;
  }
}
@media (max-width: 380px) {
  .brand {
    font-size: 13px;
  }
  .brand img {
    height: 28px;
  }
  .head-cta {
    padding: 7px 10px;
    font-size: 11px;
  }
}
