/* ============================================================
   صفحة الهبوط العامة — مركز تحفيظ القرآن (هوية المركز من الإعدادات، لا من هذا الملف)
   Mobile First (من 360px) — تمتد فوق نظام التصميم في base.css
   ============================================================ */

:root {
  /* مشتقة من لوحة الألوان في tokens.css (وتتبع تعديلات /theme.css) */
  --color-cream: color-mix(in srgb, var(--palette-wheat-light) 40%, #fff);
  --color-cream-deep: var(--palette-wheat-light);
  --color-charcoal: var(--palette-charcoal-dark);
  --color-charcoal-soft: var(--palette-charcoal-mid);
  --color-gold: var(--palette-wheat-dark);
  --color-gold-soft: var(--palette-wheat-light);
  --color-gold-line: var(--palette-wheat-mid);
  --color-sage: color-mix(in srgb, var(--palette-forest-light) 12%, #fff);
  --color-sage-deep: var(--palette-forest-light);
  --shadow-soft: 0 12px 28px -18px color-mix(in srgb, var(--palette-forest-dark) 35%, transparent);
  --shadow-lift: 0 18px 40px -20px color-mix(in srgb, var(--palette-forest-dark) 45%, transparent);
  --container: 1120px;
  --header-h: 105px; /* sticky header: 104px bar + 1px border */
}

@media (prefers-reduced-motion: no-preference) {
  html.landing {
    scroll-behavior: smooth;
  }
}

body.landing {
  background: var(--color-cream);
  color: var(--color-charcoal);
  overflow-x: hidden;
}

.landing a,
.landing button {
  font-family: inherit;
}

.landing a:focus-visible,
.landing button:focus-visible,
.landing summary:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.landing img,
.landing svg {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  right: 12px;
  top: -60px;
  background: var(--color-primary-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top .15s ease;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  padding: 56px 0;
}

.section--tight {
  padding: 40px 0;
}

.section--alt {
  background: #ffffff;
}

.section--sage {
  background: var(--color-sage);
}

.section-header {
  max-width: 640px;
  margin: 0 0 32px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  background: var(--color-sage);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.4rem, 4.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
}

.section-desc {
  color: var(--color-charcoal-soft);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
}

/* ---------- Reveal-on-scroll ---------- */

html:not(.reduce-motion) [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

html:not(.reduce-motion) [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- Buttons (landing scale) ---------- */

.landing .btn-lg,
.landing .btn-lg-outline,
.landing .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  white-space: nowrap;
}

.landing .btn-lg {
  background: var(--color-primary);
  color: #fff;
  border: none;
}

.landing .btn-lg:hover { background: var(--color-primary-dark); }
.landing .btn-lg:active { transform: scale(.98); }

.landing .btn-lg-outline {
  background: transparent;
  color: var(--color-primary-deep);
  border: 1.5px solid var(--color-primary-deep);
}

.landing .btn-lg-outline:hover { background: var(--color-sage); }

.landing .btn-text {
  min-height: auto;
  padding: 4px 2px;
  background: none;
  border: none;
  color: var(--color-primary-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Navbar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-cream) 92%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-gold-line);
  /* Pull the page up under the header so it overlays the hero. */
  margin-bottom: calc(-1 * var(--header-h));
  transition: background-color .25s ease, border-color .25s ease;
}

/* Transparent while the page is at the top (landing.js toggles this class,
   so without JS the header simply stays solid). */
.site-header.is-transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 104px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  flex-shrink: 0;
  width: auto;
  height: 46px;
  object-fit: contain;
}

.brand__mark--emblem {
  width: auto;
  height: 32px;
}

/* شعار المركز (رمز فقط) — اسم المركز نص بجواره. */
.brand__mark--logo {
  height: 56px;
}

.brand__divider {
  flex-shrink: 0;
  width: 1px;
  height: 26px;
  background: currentColor;
  opacity: .3;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__title {
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.3;
  color: var(--color-primary-deep);
}

.brand__subtitle {
  font-size: .74rem;
  color: var(--color-charcoal-soft);
}

.site-nav {
  display: none;
}

.site-header__cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold-line);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-charcoal);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle__icon::before { position: absolute; top: -6px; }
.nav-toggle__icon::after { position: absolute; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 104px 0 0 0;
  background: var(--color-cream);
  z-index: 45;
  padding: 24px 18px 32px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.mobile-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-panel__link {
  display: block;
  padding: 16px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid var(--color-gold-line);
}

.mobile-panel__ctas {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-panel__ctas .btn-lg,
.mobile-panel__ctas .btn-lg-outline {
  width: 100%;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    gap: 28px;
    align-items: center;
  }

  .site-nav a {
    font-weight: 600;
    font-size: .95rem;
    color: var(--color-charcoal-soft);
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover {
    color: var(--color-primary-deep);
    border-color: var(--color-gold-line);
  }

  .site-header__cta {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .nav-toggle,
  .mobile-panel {
    display: none;
  }
}

/* ---------- Hero ---------- */

/* Full-height hero: fills the whole viewport, with the transparent header
   overlaying its top edge (the header is pulled up by its own height, and the
   hero's top padding keeps the content clear of it). svh keeps it from jumping
   when the mobile browser toolbar shows/hides; vh is the fallback for older
   browsers. When the content is taller than the screen (stacked mobile
   layout) it simply grows. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 56px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% -10%, color-mix(in srgb, var(--color-gold) 16%, transparent), transparent),
    radial-gradient(70% 60% at -10% 30%, color-mix(in srgb, var(--color-sage-deep) 22%, transparent), transparent);
  z-index: 0;
}

/* Geometric star-tile motif (public/assets/img/pattern-geometric.png — a
   seamless 77×44 repeat unit cropped from the source pattern) — echoed
   again in .final-cta and .site-footer so the identity bookends the page. */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/pattern-geometric.png');
  background-repeat: repeat;
  background-size: 77px 44px;
  opacity: .08;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: 16px;
}

.hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-gold);
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.28;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--color-primary-deep);
}

.hero__lede {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-charcoal-soft);
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero__tertiary {
  margin-top: 18px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__art {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* Scroll cue — small arrow pinned to the bottom of the hero. It sits in the
   hero's bottom padding (56px) so it never overlaps the content. */
.hero__scroll {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-gold-line);
  background: color-mix(in srgb, var(--color-cream) 85%, transparent);
  color: var(--color-primary-deep);
  transition: background-color .15s ease, border-color .15s ease;
}

.hero__scroll:hover {
  background: var(--color-gold-soft);
  border-color: var(--color-gold);
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion) .hero__scroll svg {
    animation: hero-scroll-bob 1.8s ease-in-out infinite;
  }
}

@keyframes hero-scroll-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

#quick-facts {
  scroll-margin-top: var(--header-h);
}

/* Stacked layout: the copy keeps its natural height and the illustration
   shrinks to whatever room is left, so the hero fits the screen exactly
   (never below 180px — on very short screens the hero grows instead). */
@media (max-width: 899px) {
  .hero__grid {
    align-self: stretch;
    grid-template-rows: auto minmax(180px, 1fr);
  }

  /* The SVG is taken out of flow so its intrinsic size doesn't force the
     row taller; it scales (aspect ratio preserved) inside the leftover room. */
  .hero__visual {
    min-height: 0;
  }

  .hero__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .hero__visual {
    order: 2;
  }
}

/* ---------- Value / Benefit cards ---------- */

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

.benefit-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-sage);
  color: var(--color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.benefit-card__icon svg { width: 24px; height: 24px; }

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.benefit-card p {
  margin: 0;
  color: var(--color-charcoal-soft);
  font-size: .92rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .benefit-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Journey ---------- */

.journey-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.journey-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 30px;
}

.journey-step:last-child { padding-bottom: 0; }

.journey-step__marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.journey-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 0;
  right: 19px;
  width: 2px;
  background: var(--color-gold-line);
}

.journey-step__title {
  font-weight: 700;
  margin: 6px 0 4px;
}

.journey-step__desc {
  color: var(--color-charcoal-soft);
  font-size: .92rem;
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 900px) {
  .journey-list {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .journey-step {
    flex-direction: column;
    padding-bottom: 0;
    flex: 1;
  }

  .journey-step:not(:last-child)::before {
    top: 19px;
    right: auto;
    left: 46px;
    bottom: auto;
    width: calc(100% - 40px);
    height: 2px;
  }

  .journey-step__body { padding-top: 14px; }
}

/* ---------- Guardian / parent mockup ---------- */

.guardian {
  display: grid;
  gap: 32px;
}

.guardian__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.guardian__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--color-charcoal-soft);
}

.guardian__list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--color-gold);
}

.parent-mockup {
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

.parent-mockup__frame {
  background: var(--color-charcoal);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lift);
}

.parent-mockup__screen {
  background: var(--color-cream);
  border-radius: 28px;
  padding: 20px 16px 24px;
  min-height: 420px;
}

.parent-mockup__notch {
  width: 70px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  margin: 0 auto 16px;
}

.parent-mockup__label {
  font-size: .74rem;
  color: var(--color-charcoal-soft);
  margin-bottom: 4px;
}

.parent-mockup__name {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.parent-mockup__stat {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--color-border);
}

.parent-mockup__stat-label {
  font-size: .78rem;
  color: var(--color-charcoal-soft);
  margin-bottom: 4px;
}

.parent-mockup__stat-value {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary-deep);
}

.parent-mockup__ring {
  display: flex;
  align-items: center;
  gap: 12px;
}

.parent-mockup__ring svg { flex-shrink: 0; }

.parent-mockup__note {
  font-size: .85rem;
  color: var(--color-charcoal-soft);
  line-height: 1.6;
}

.parent-mockup__cta {
  display: block;
  text-align: center;
  margin-top: 14px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  font-weight: 700;
  font-size: .9rem;
}

@media (min-width: 900px) {
  .guardian {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .guardian__visual { order: 2; }
}

/* ---------- Child experience ---------- */

.child-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.child-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.child-point__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-gold-soft);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.child-point__icon svg { width: 18px; height: 18px; }

.child-point p {
  margin: 0;
  font-size: .92rem;
  color: var(--color-charcoal-soft);
  line-height: 1.7;
}

@media (min-width: 700px) {
  .child-points { grid-template-columns: 1fr 1fr; }
}

/* ---------- Quick facts (gender / grade / schedule, right under the hero) ---------- */

.quick-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quick-fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--color-gold-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.quick-fact__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-sage);
  color: var(--color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-fact__icon svg { width: 19px; height: 19px; }

.quick-fact strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 2px;
}

.quick-fact span {
  display: block;
  font-size: .85rem;
  color: var(--color-charcoal-soft);
  line-height: 1.6;
}

@media (min-width: 700px) {
  .quick-facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Verse ---------- */

.verse {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 2.1;
  color: var(--color-primary-deep);
  font-weight: 700;
}

/* ---------- Courses ---------- */

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.course-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.course-card__status {
  align-self: flex-start;
}

.course-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: .85rem;
  color: var(--color-charcoal-soft);
}

.course-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-card .btn-lg-outline {
  margin-top: auto;
  align-self: flex-start;
}

@media (min-width: 700px) {
  .course-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1050px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-sage);
  color: var(--color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-item__icon svg { width: 20px; height: 20px; }

.trust-item h3 {
  margin: 0 0 4px;
  font-size: .98rem;
}

.trust-item p {
  margin: 0;
  font-size: .88rem;
  color: var(--color-charcoal-soft);
  line-height: 1.6;
}

@media (min-width: 700px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Community ---------- */

.community {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 24px auto 0;
  border-top: 1px solid var(--color-gold-line);
}

.faq-item {
  border-bottom: 1px solid var(--color-gold-line);
}

.faq-item__q {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform .2s ease;
}

.faq-item__q[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.faq-item__a p {
  margin: 0 0 18px;
  color: var(--color-charcoal-soft);
  font-size: .92rem;
  line-height: 1.8;
  padding-inline-end: 38px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/pattern-geometric.png');
  background-repeat: repeat;
  background-size: 77px 44px;
  opacity: .14;
}

.final-cta > * {
  position: relative;
}

.final-cta h2 {
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  margin: 0 0 12px;
}

.final-cta p {
  color: rgba(255,255,255,.85);
  max-width: 52ch;
  margin: 0 auto 26px;
  line-height: 1.8;
}

.final-cta .btn-row {
  justify-content: center;
}

.final-cta .btn-lg {
  background: var(--color-gold);
}

.final-cta .btn-lg:hover { background: color-mix(in srgb, var(--color-gold) 85%, #000); }

.final-cta .btn-lg-outline {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

.final-cta .btn-lg-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--color-charcoal);
  color: rgba(255,255,255,.72);
  padding: 48px 0 100px;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/pattern-geometric.png');
  background-repeat: repeat;
  background-size: 77px 44px;
  opacity: .08;
}

.site-footer > .container {
  position: relative;
}

.site-footer strong {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.8;
  max-width: 40ch;
  margin: 10px 0 0;
}

.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.72);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.footer-location h4 {
  color: #fff;
  font-size: .9rem;
  margin: 0 0 10px;
}

.footer-location__address {
  font-size: .88rem;
  line-height: 1.8;
  margin: 0 0 14px;
}

.footer-map {
  border-radius: var(--radius-surface);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  aspect-ratio: 4 / 3;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-location__link {
  display: inline-block;
  margin-top: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-location__link:hover { color: #fff; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .footer-map { aspect-ratio: 16 / 9; }
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-cream) 96%, transparent);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--color-gold-line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 24px -20px color-mix(in srgb, var(--palette-forest-dark) 50%, transparent);
  transition: transform .25s ease;
}

.sticky-cta.is-hidden {
  transform: translateY(110%);
}

.sticky-cta .btn-lg {
  width: 100%;
}

body.landing {
  padding-bottom: 78px;
}

@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body.landing { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
  .mobile-panel { transition: none; }
}


/* ==================== Utilities استُخرجت من القوالب (كانت style="" محلية) ==================== */

.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-4); }
.hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
}
.hero__tag--muted { background: var(--color-fill); color: var(--color-text-muted); }

.hero__tertiary--eligibility { margin: 0 0 22px; font-size: .92rem; color: var(--color-charcoal-soft); }
.hero__tertiary--sponsor { margin-top: 18px; font-size: .82rem; color: var(--color-charcoal-soft); }
.section-desc--narrow { max-width: 60ch; }
.btn-row--spaced { margin-top: 24px; }
.parent-mockup__stat--last { margin-bottom: 0; }
.faq-item__heading { margin: 0; }
.site-footer__sponsor { margin-top: 6px; }
.map-frame { border: 0; }

.container--prose { max-width: 760px; }
.section-title--page { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.trust-grid--spaced { margin-top: 32px; }
.site-footer--compact { padding-bottom: 48px; }
.footer-bottom--plain { border-top: none; padding-top: 0; }
.footer-link { color: inherit; }

/* قائمة بيانات التواصل في تذييل الصفحة العامة (الهاتف/واتساب/البريد/الموقع) — تظهر بنود الموجود منها فقط. */
.footer-contact {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
}
