/* ============================================================
   أكاديمية آيات — style.css
   الهوية: أخضر مائي، ذهب هادئ، ورق كريمي.
   ============================================================ */

/* ---------- الخطوط ---------- */
@font-face {
  font-family: "Thmanyah";
  src: url("../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("../fonts/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alyamama";
  src: url("../fonts/alyamama-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alyamama";
  src: url("../fonts/alyamama-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alyamama";
  src: url("../fonts/alyamama-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-var.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amiri Quran";
  src: url("../fonts/amiri-quran.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* ---------- المتغيرات ---------- */
:root {
  --paper: #f8f4ec;
  --paper-2: #f2ebdd;
  --paper-3: #e9dfcc;
  --cream: #fbf8f1;
  --ink: #1b333a;
  --ink-soft: #526a70;
  --teal: #3e6d7d;
  --teal-2: #5e96a8;
  --deep: #254b57;
  --deepest: #17343d;
  --sky: #a1c6d1;
  --gold: #c9973f;
  --gold-2: #e3b04b;
  --gold-soft: #efd9a6;
  --line: rgba(37, 75, 87, 0.14);
  --line-strong: rgba(37, 75, 87, 0.26);
  --shadow-soft: 0 26px 70px -34px rgba(23, 52, 61, 0.42);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Thmanyah", "Amiri", "Noto Naskh Arabic", serif;
  --font-body: "Alyamama", "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
}

/* English keeps the same type families. The supplied Thmanyah and Alyamama
   faces include Latin glyphs; the fallback stacks below cover failed loads
   and any missing glyphs. */
html[lang="en"] {
  --font-display: "Thmanyah", "Iowan Old Style", "Palatino Linotype",
    "Book Antiqua", Georgia, serif;
  --font-body: "Alyamama", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="en"] body {
  line-height: 1.85;
}
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
  letter-spacing: -0.02em;
}
html[lang="en"] .hero__chips li {
  max-width: 100%;
  white-space: normal;
  text-align: start;
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.95;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--deepest);
}
em { font-style: normal; }
mark { color: inherit; background: none; }

::selection { background: var(--gold-soft); color: var(--deepest); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.container {
  width: min(1220px, 91vw);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(78px, 10vw, 138px);
}

.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--deepest);
  color: var(--cream);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background-image: url("../img/grain.svg");
  background-size: 220px 220px;
  opacity: 0.28;
  mix-blend-mode: multiply;
}

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0);
  transform-origin: right center;
}

/* ---------- أدوات نصية ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.eyebrow--light { color: var(--gold-soft); }

.gold { color: var(--gold); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.62fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5.5vw, 72px);
}
.section-head h2 { font-size: clamp(2rem, 3.5vw, 3.15rem); }
.section-head > p {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 44ch;
  padding-bottom: 8px;
}
.section-head--split { align-items: end; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--deep);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
  color: var(--gold);
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link:hover .text-link__arrow { transform: translateX(-5px); }

/* ---------- الأزرار ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
  background: linear-gradient(160deg, #325e6b, var(--deepest));
  box-shadow: 0 14px 30px -18px rgba(23, 52, 61, 0.85);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(239, 217, 166, 0.22);
  border-radius: 4px;
  pointer-events: none;
  z-index: -1;
}
.btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -18px rgba(23, 52, 61, 0.7); }
.btn:hover svg { transform: translateX(-4px); }
.btn:active { transform: translateY(0); }

.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 14px; border-radius: 6px; }
.btn--sm svg { width: 17px; height: 17px; }

.btn--ghost {
  color: var(--deep);
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost::after { border-color: rgba(37, 75, 87, 0.12); }
.btn--ghost:hover { background: rgba(37, 75, 87, 0.05); border-color: var(--deep); }

.btn--gold {
  color: var(--deepest);
  background: linear-gradient(155deg, #f0d391, var(--gold-2) 55%, var(--gold));
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6);
}
.btn--gold::after { border-color: rgba(23, 52, 61, 0.25); }
.btn--gold svg { stroke: var(--deepest); }

/* ---------- الهيدر ---------- */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: calc(16px + env(safe-area-inset-top, 0px)) 16px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px;
  background: rgba(248, 244, 236, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 40px -30px rgba(23, 52, 61, 0.5);
}
.site-header.is-scrolled::after { opacity: 1; }

.header-inner {
  width: min(1320px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-mark { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding-block: 6px;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover { color: var(--deep); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- مبدّل اللغة ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-toggle:hover {
  color: var(--deep);
  border-color: var(--gold);
  background: rgba(201, 151, 63, 0.07);
}
.lang-toggle__sep { opacity: 0.35; font-weight: 400; }
.lang-toggle [data-lang-option] {
  opacity: 0.5;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
html[lang="ar"] .lang-toggle [data-lang-option="ar"],
html[lang="en"] .lang-toggle [data-lang-option="en"] {
  opacity: 1;
  color: var(--gold);
}
.main-nav__lang { display: none; }
.no-js .lang-toggle,
.no-js .main-nav__lang { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- الواجهة الرئيسية (Hero v2) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding-block:
    calc(clamp(124px, 15vh, 172px) + env(safe-area-inset-top, 0px))
    calc(clamp(64px, 9vh, 104px) + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 96% 80% at 72% 18%, #264e5a 0%, #1b414c 48%, #12323b 100%);
  color: var(--cream);
}

@supports (height: 100svh) {
  .hero { min-height: 100svh; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/grain.svg");
  background-size: 220px 220px;
  opacity: 0.16;
  mix-blend-mode: soft-light;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 78% 26%, rgba(227, 176, 75, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(7, 25, 30, 0.08), transparent 22%, rgba(7, 25, 30, 0.24));
}

.hero__watermark {
  position: absolute;
  top: 52%;
  left: clamp(-240px, -14vw, -70px);
  width: min(920px, 72vw);
  height: auto;
  opacity: 0.07;
  transform: translate3d(0, -50%, 0) rotate(-3deg);
  transform-origin: center;
  animation: hero-drift 20s ease-in-out infinite alternate;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.14));
  user-select: none;
}
.hero.is-offscreen .hero__watermark,
.hero.is-tab-hidden .hero__watermark { animation-play-state: paused; }

.hero__arch {
  position: absolute;
  top: 51%;
  left: 3vw;
  width: min(520px, 37vw);
  height: auto;
  transform: translateY(-50%);
  color: var(--gold-2);
  opacity: 0.36;
  overflow: visible;
}
.hero__arch path {
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
}
.hero__content {
  width: min(660px, 100%);
  text-align: right;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.6vh, 26px);
  color: var(--gold-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero__label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.72;
}

.hero__title {
  margin: 0 0 clamp(20px, 2.8vh, 28px);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.4vw, 5.4rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  animation: hero-rise 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}
.hero__line:nth-child(2) { animation-delay: 0.2s; }

.hero__accent {
  position: relative;
  display: inline-block;
  color: var(--gold-soft);
}
.hero__accent::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.02em;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2) 18%, var(--gold-2) 82%, transparent);
  transform: scaleX(0);
  transform-origin: right center;
  animation: hero-underline 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero__sub {
  max-width: 58ch;
  margin: 0 0 clamp(28px, 3.6vh, 38px);
  color: rgba(251, 248, 241, 0.72);
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: clamp(26px, 3.4vh, 36px);
}
.hero__cta {
  min-height: 56px;
  padding: 13px 30px;
  font-size: 16px;
}
.hero__secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  color: var(--gold-soft);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}
.hero__secondary::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform-origin: right center;
  transition: opacity 0.25s var(--ease);
}
.hero__secondary:hover { color: var(--gold-2); }
.hero__secondary:hover::after { opacity: 1; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 14px;
  border: 1px solid rgba(227, 176, 75, 0.24);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.025);
  color: rgba(251, 248, 241, 0.64);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: nowrap;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hero-underline {
  to { transform: scaleX(1); }
}
@keyframes hero-drift {
  from { transform: translate3d(0, -50%, 0) rotate(-3deg); }
  to { transform: translate3d(12px, -50%, 0) rotate(-3deg); }
}

/* Keep the fixed header readable over the dark hero until it scrolls. */
.site-header:not(.is-scrolled) .main-nav a { color: rgba(251, 248, 241, 0.8); }
.site-header:not(.is-scrolled) .main-nav a::after { background: var(--gold-2); }
.site-header:not(.is-scrolled) .main-nav a:hover { color: var(--gold-soft); }
.site-header:not(.is-scrolled) .nav-toggle {
  border-color: rgba(251, 248, 241, 0.3);
}
.site-header:not(.is-scrolled) .nav-toggle span { background: var(--cream); }
.site-header:not(.is-scrolled) .lang-toggle {
  color: rgba(251, 248, 241, 0.72);
  border-color: rgba(251, 248, 241, 0.28);
}
.site-header:not(.is-scrolled) .lang-toggle:hover {
  color: var(--cream);
  border-color: rgba(239, 217, 166, 0.5);
  background: rgba(251, 248, 241, 0.06);
}
.site-header .main-nav.is-open a { color: var(--ink); }

/* Anchor targets land below the fixed header. */
main section[id],
#main { scroll-margin-top: calc(clamp(92px, 10vh, 108px) + env(safe-area-inset-top, 0px)); }

@media (max-width: 1024px) {
  .hero__content { width: min(570px, 100%); }
  .hero__title { font-size: clamp(2.55rem, 5.8vw, 4.3rem); }
  .hero__watermark { left: -20%; width: min(780px, 80vw); }
  .hero__arch { left: 1vw; width: min(430px, 40vw); }
}

@media (max-width: 900px) {
  .hero {
    justify-content: center;
    padding-block:
      calc(104px + env(safe-area-inset-top, 0px))
      calc(48px + env(safe-area-inset-bottom, 0px));
  }
  .hero__inner { justify-content: center; }
  .hero__content { width: min(560px, 100%); text-align: center; }
  .hero__sub { margin-inline: auto; max-width: 54ch; }
  .hero__actions { flex-direction: column; justify-content: center; gap: 12px; }
  .hero__chips { justify-content: center; }
  .hero__title {
    font-size: clamp(2.15rem, 8.4vw, 3.2rem);
    line-height: 1.18;
  }
  .hero__sub { font-size: 15px; line-height: 1.85; }
  .hero__cta { width: 100%; }
  .hero__secondary { font-size: 14px; }
  .hero__watermark {
    top: 46%;
    left: -28vw;
    width: 140vw;
    opacity: 0.06;
  }
  .hero__arch {
    top: 52%;
    left: 50%;
    width: min(480px, 92vw);
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 620px) {
  .hero {
    padding-block:
      calc(94px + env(safe-area-inset-top, 0px))
      calc(40px + env(safe-area-inset-bottom, 0px));
  }
  .hero__title { font-size: clamp(2rem, 9.4vw, 2.75rem); }
  .hero__sub { font-size: 14.5px; }
  .hero__chips { gap: 7px; }
  .hero__chips li { padding: 4px 12px; font-size: 12px; }
  .hero__watermark { left: -38vw; width: 160vw; }
  .hero__arch { width: 118vw; opacity: 0.22; }
}

@media (max-width: 400px) {
  .hero__title { font-size: clamp(1.9rem, 9.2vw, 2.2rem); }
  .hero__cta { padding-inline: 18px; font-size: 15px; gap: 10px; }
  .hero__chips { gap: 6px; }
  .hero__chips li { padding-inline: 10px; }
}

/* Keep the hero inside one viewport on short phones (e.g. 320x568). */
@media (max-width: 900px) and (max-height: 620px) {
  .hero {
    padding-block:
      calc(84px + env(safe-area-inset-top, 0px))
      calc(30px + env(safe-area-inset-bottom, 0px));
  }
  .hero__label { margin-bottom: 12px; }
  .hero__title { margin-bottom: 14px; }
  .hero__sub { margin-bottom: 18px; line-height: 1.75; }
  .hero__actions { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__line,
  .hero__accent::after,
  .hero__watermark { animation: none; }
  .hero__line {
    opacity: 1;
    transform: none;
  }
  .hero__accent::after { transform: scaleX(1); }
  .hero__watermark {
    transform: translate3d(0, -50%, 0) rotate(-3deg);
  }
}

/* ---------- الظهور عند التمرير ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }


/* ============================================================
   الأقسام
   ============================================================ */

/* ---------- شريط الثقة ---------- */
.trust-strip {
  position: relative;
  z-index: 2;
  background: var(--deepest);
  color: rgba(251, 248, 241, 0.9);
  padding-block: 17px;
  border-top: 1px solid rgba(227, 176, 75, 0.25);
  border-bottom: 1px solid rgba(227, 176, 75, 0.15);
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px clamp(18px, 3vw, 40px);
  font-size: 13.5px;
  font-weight: 500;
}
.trust-strip i {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--gold-2);
  opacity: 0.7;
}

/* ---------- لماذا آيات ---------- */
.why { background: var(--paper); }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.why-head h2 { font-size: clamp(2.15rem, 3.9vw, 3.5rem); margin-bottom: 24px; }
.why-head > p {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 40ch;
  margin-bottom: 30px;
}
.why-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 600;
}
.why-sign__line { width: 46px; height: 1px; background: var(--gold); opacity: 0.55; }

.pillars { display: flex; flex-direction: column; }
.pillar {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 30px);
  padding: 27px 0 30px;
  border-top: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__num {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  padding-top: 7px;
  letter-spacing: 0.06em;
}
.pillar h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.9; max-width: 54ch; }
.pillar:hover { padding-inline-start: 14px; }

.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line-strong);
}
.audience-item {
  position: relative;
  padding-block: 30px 6px;
  padding-inline-start: clamp(20px, 2.6vw, 40px);
  padding-inline-end: 0;
}
.audience-item + .audience-item {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(20px, 2.6vw, 40px);
}
.audience-item__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}
.audience-item h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin-bottom: 9px;
}
.audience-item p { color: var(--ink-soft); font-size: 15px; line-height: 1.85; }

/* ---------- لوحة الآية ---------- */
.ayah-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 110% at 50% 0%, rgba(94, 150, 168, 0.23), transparent 62%),
    linear-gradient(150deg, #234751, #17343d 70%);
  color: var(--cream);
  padding-block: clamp(80px, 9vw, 124px);
}
.ayah-panel::before,
.ayah-panel::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 176, 75, 0.32), transparent);
}
.ayah-panel::before { top: 0; }
.ayah-panel::after { bottom: 0; }
.ayah-panel__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ayah-panel__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 22px;
}
.ayah-panel__text {
  font-family: "Amiri Quran", "Traditional Arabic", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.8;
  color: #fbf4e2;
  display: flex;
  align-items: baseline;
  gap: clamp(6px, 1vw, 16px);
  flex-wrap: wrap;
  justify-content: center;
}
.ayah-panel__text span { color: var(--gold-2); font-size: 0.7em; opacity: 0.85; }
.ayah-panel__ref {
  margin-top: 20px;
  font-size: 12.5px;
  color: rgba(251, 248, 241, 0.55);
  letter-spacing: 0.02em;
}
.ayah-panel__line {
  display: block;
  width: 1px;
  height: 38px;
  margin-top: 26px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0.5;
}
.ayah-panel__ornament {
  position: absolute;
  top: 50%;
  inset-inline-end: -60px;
  width: min(400px, 34vw);
  transform: translateY(-50%) rotate(-8deg);
  stroke: rgba(227, 176, 75, 0.3);
  stroke-width: 0.6;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- المسارات ---------- */
.programs { background: var(--cream); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.program {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px clamp(18px, 2.1vw, 30px) 34px;
  border-inline-start: 1px solid var(--line);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.program:first-child { border-inline-start: 0; }
.program:hover {
  background: var(--paper);
  box-shadow: 0 28px 50px -40px rgba(23, 52, 61, 0.55);
}
.program__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.program__num {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.program__line { flex: 1; height: 1px; background: var(--line); }
.program h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); margin-bottom: 6px; }
.program__sub {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.program > p:not(.program__sub) {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.program ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.program li {
  position: relative;
  padding-inline-start: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink);
}
.program li::before {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  top: 0.78em;
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.8;
}
.program .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- المنهج ---------- */
.method {
  background:
    radial-gradient(ellipse 65% 90% at 15% 0%, rgba(94, 150, 168, 0.18), transparent 60%),
    var(--deepest);
  color: rgba(251, 248, 241, 0.82);
}
.method h2 { color: #fbf4e2; }
.method .section-head > p { color: rgba(251, 248, 241, 0.62); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}
.step {
  position: relative;
  padding-block: 34px 0;
  padding-inline-start: clamp(16px, 2.2vw, 32px);
  padding-inline-end: 0;
  border-top: 1px solid rgba(239, 217, 166, 0.22);
}
.step__dot {
  position: absolute;
  top: -4px;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 5px rgba(227, 176, 75, 0.1);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(227, 176, 75, 0.4);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.step h3 { color: #fbf4e2; font-size: 1.35rem; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.85; color: rgba(251, 248, 241, 0.55); max-width: 26ch; }
.method-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 76px);
  padding: 24px clamp(20px, 3vw, 38px);
  border: 1px solid rgba(239, 217, 166, 0.18);
  border-radius: 8px;
  background: rgba(251, 248, 241, 0.04);
}
.method-cta p { font-size: 14.5px; color: rgba(251, 248, 241, 0.7); }

/* ---------- الباقات ---------- */
.pricing {
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(227, 176, 75, 0.09), transparent 66%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 3.6vw, 44px);
}
.country-tabs,
.duration-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  background: rgba(251, 248, 241, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.country-tabs button,
.duration-tabs button {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.country-tabs button:hover,
.duration-tabs button:hover { color: var(--deep); background: rgba(37, 75, 87, 0.05); }
.country-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 12px;
}
.country-tabs__globe {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.country-tabs button.is-active,
.duration-tabs button.is-active {
  background: var(--deep);
  color: var(--cream);
  box-shadow: 0 8px 18px -12px rgba(23, 52, 61, 0.9);
}
.duration-tabs__label {
  font-size: 12px;
  color: var(--ink-soft);
  padding-inline: 10px 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 27px 24px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 151, 63, 0.45);
  box-shadow: 0 30px 50px -34px rgba(23, 52, 61, 0.45);
}
.price-card::before {
  content: "";
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(201, 151, 63, 0.35);
  border-inline-end: 1px solid rgba(201, 151, 63, 0.35);
  border-start-end-radius: 2px;
  pointer-events: none;
}
.price-card__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--gold-2);
  color: var(--deepest);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(23, 52, 61, 0.6);
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-card__tagline {
  font-size: 12.5px;
  color: var(--ink-soft);
  min-height: 2.6em;
  line-height: 1.5;
}
.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--deepest);
}
.price-card__amount strong {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-card__cur {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.price-card__per {
  font-size: 11.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.price-card__meta {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}
.price-card__meta b { color: var(--deep); font-weight: 600; }
.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}
.price-card__features li {
  position: relative;
  padding-inline-start: 17px;
  font-size: 12.8px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.price-card__features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: transparent;
}
.price-card .btn { width: 100%; margin-top: auto; min-height: 45px; padding: 8px 12px; font-size: 13.5px; }

.price-card.is-popular {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(94, 150, 168, 0.3), transparent 70%),
    linear-gradient(160deg, #2c5764, var(--deepest));
  border-color: rgba(227, 176, 75, 0.5);
  color: var(--cream);
  box-shadow: 0 30px 60px -38px rgba(23, 52, 61, 0.85);
}
.price-card.is-popular::before { border-color: rgba(227, 176, 75, 0.5); }
.price-card.is-popular h3 { color: #fbf4e2; }
.price-card.is-popular .price-card__tagline { color: rgba(251, 248, 241, 0.55); }
.price-card.is-popular .price-card__amount { color: #fbf4e2; border-bottom-color: rgba(239, 217, 166, 0.18); }
.price-card.is-popular .price-card__cur { color: var(--gold-2); }
.price-card.is-popular .price-card__per { color: rgba(251, 248, 241, 0.55); }
.price-card.is-popular .price-card__meta { color: rgba(251, 248, 241, 0.55); }
.price-card.is-popular .price-card__meta b { color: var(--gold-soft); }
.price-card.is-popular .price-card__features li { color: rgba(251, 248, 241, 0.72); }
.price-card.is-popular .price-card__features li::before { border-color: var(--gold-2); }
.price-card.is-popular .btn { color: var(--deepest); background: linear-gradient(155deg, #f0d391, var(--gold-2) 58%, var(--gold)); }
.price-card.is-popular .btn::after { border-color: rgba(23, 52, 61, 0.22); }
.price-card.is-popular .btn svg { stroke: var(--deepest); }

.pricing-noscript {
  margin-top: 20px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}
.pricing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 3.4vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pricing-foot p {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}
.pricing-foot__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- الأسئلة ---------- */
.faq { background: var(--paper); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.faq-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 20px; }
.faq-head p { color: var(--ink-soft); font-size: 15.5px; max-width: 36ch; margin-bottom: 26px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  padding-inline-end: 9px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--deepest);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary { color: var(--deep); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-answer { padding: 0 0 22px; }
.faq-answer p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.95; max-width: 60ch; }

/* ---------- الختام ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(86px, 11vw, 150px);
  background:
    radial-gradient(ellipse 55% 80% at 50% 100%, rgba(94, 150, 168, 0.22), transparent 65%),
    linear-gradient(160deg, #214751, #17343d 72%);
  color: var(--cream);
  text-align: center;
}
.final-cta__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.final-cta__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(227, 176, 75, 0.14);
  border-radius: 50%;
}
.final-cta__ring--2 { width: min(610px, 62vw); border-color: rgba(227, 176, 75, 0.1); }
.final-cta__star {
  position: absolute;
  top: 16%;
  inset-inline-start: 13%;
  width: clamp(34px, 4vw, 56px);
  aspect-ratio: 1;
  background: var(--gold-2);
  opacity: 0.28;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.final-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-cta__mark {
  height: clamp(60px, 5.8vw, 86px);
  width: auto;
  margin-bottom: 26px;
  opacity: 0.95;
}
.final-cta h2 {
  color: #fbf4e2;
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  line-height: 1.22;
  margin-bottom: 18px;
}
.final-cta h2 span { color: var(--gold-soft); }
.final-cta h2 .final-cta__lead { color: #fbf4e2; }
.final-cta p {
  max-width: 52ch;
  font-size: 15.5px;
  color: rgba(251, 248, 241, 0.62);
  margin-bottom: 30px;
}
.final-cta .btn { min-height: 55px; padding-inline: 36px; }
.final-cta__note {
  margin-top: 18px;
  font-size: 11.5px;
  color: rgba(251, 248, 241, 0.4);
}

/* ---------- الفوتر ---------- */
.site-footer {
  background: #122c34;
  color: rgba(251, 248, 241, 0.72);
  padding-top: clamp(56px, 7vw, 86px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: clamp(30px, 4vw, 64px);
  padding-bottom: clamp(44px, 5vw, 66px);
}
.footer-logo { height: clamp(108px, 10.5vw, 136px); width: auto; margin-bottom: clamp(27px, 2.4vw, 34px); opacity: 0.94; }
.footer-brand p { font-size: 13.5px; line-height: 1.95; max-width: 38ch; color: rgba(251, 248, 241, 0.5); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 13.5px;
  line-height: 1.7;
  padding: 5px 0;
  color: rgba(251, 248, 241, 0.65);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--gold-2); }
.footer-col a[dir="ltr"] { unicode-bidi: isolate; }
.footer-muted { font-size: 11.5px; color: rgba(251, 248, 241, 0.32); line-height: 1.8; margin-top: 10px; }
.footer-social .social-row { display: flex; gap: 8px; margin-bottom: 4px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(251, 248, 241, 0.14);
  border-radius: 6px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.social-row a:hover { border-color: rgba(227, 176, 75, 0.5); background: rgba(227, 176, 75, 0.06); }
.social-row svg {
  width: 17px;
  height: 17px;
  stroke: rgba(251, 248, 241, 0.65);
  stroke-width: 1.4;
  fill: none;
}
.social-row a:hover svg { stroke: var(--gold-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(251, 248, 241, 0.08);
  font-size: 11.5px;
  color: rgba(251, 248, 241, 0.38);
}

/* ---------- واتساب العائم ---------- */
.wa-float {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(26px + env(safe-area-inset-right, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  box-shadow: 0 18px 38px -16px rgba(16, 88, 47, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease), box-shadow 0.3s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float svg { width: 25px; height: 25px; fill: currentColor; flex-shrink: 0; }
.wa-float__label { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.wa-float.is-visible:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -16px rgba(16, 88, 47, 0.8); }

/* ---------- شريط الجوال ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px max(4.5vw, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(4.5vw, env(safe-area-inset-left, 0px));
  background: rgba(248, 244, 236, 0.96);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta > div { display: flex; flex-direction: column; line-height: 1.5; }
.mobile-cta strong { font-size: 13.5px; color: var(--deepest); }
.mobile-cta span { font-size: 11px; color: var(--ink-soft); }


/* ============================================================
   الاستجابة
   ============================================================ */
@media (max-width: 1180px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program { border-top: 1px solid var(--line); }
  .program:nth-child(odd) { border-inline-start: 0; }
  .program:nth-child(-n + 2) { border-top: 0; }
  .price-card__tagline { min-height: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr); }
  .footer-social { grid-column: 1 / -1; }
  .footer-social .social-row { margin-top: 2px; }
}

@media (max-width: 1024px) {
  .why-grid { gap: 48px; }
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(240px, 0.66fr); gap: 36px; }
  .faq-grid { grid-template-columns: 1fr; gap: 38px; }
  .faq-head { max-width: 540px; }
  .faq-head p { max-width: 50ch; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .container { width: 90vw; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* الهيدر */
  .site-header { padding-block: calc(11px + env(safe-area-inset-top, 0px)) 11px; }
  .site-header.is-scrolled { padding-block: calc(11px + env(safe-area-inset-top, 0px)) 11px; }
  .header-inner { width: 92vw; gap: 12px; }
  .brand-mark { height: 44px; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top, 0px));
    left: 4vw;
    right: 4vw;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 88px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - 88px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav > a:last-of-type { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .main-nav__lang {
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding-block: 10px 2px;
    border-top: 1px solid var(--line);
  }
  .main-nav__lang .lang-toggle { width: 100%; }


  /* الأقسام */
  .section { padding-block: clamp(62px, 9vw, 90px); }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 38px; }
  .section-head > p { max-width: 56ch; padding-bottom: 0; }
  .why-grid { grid-template-columns: 1fr; gap: 46px; }
  .why-head > p { max-width: 54ch; }
  .audience { grid-template-columns: 1fr; margin-top: 52px; border-top: 1px solid var(--line-strong); }
  .audience-item { padding: 24px 0 20px; border-bottom: 1px solid var(--line); }
  .audience-item + .audience-item { border-inline-start: 0; padding-inline-start: 0; }
  .audience-item:last-child { border-bottom: 0; padding-bottom: 0; }
  .audience-item p { max-width: 56ch; }

  .ayah-panel { padding-block: 70px; }
  .ayah-panel__ornament { inset-inline-end: -90px; opacity: 0.35; }

  .program-grid { grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
  .program { border-inline-start: 0; border-top: 1px solid var(--line); padding: 26px 0; }
  .program:nth-child(2) { border-top: 1px solid var(--line); }
  .program:hover { padding-inline-start: 14px; }
  .program ul { margin-bottom: 18px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step {
    padding-block: 28px 30px;
    padding-inline-start: 18px;
    padding-inline-end: 0;
    border-top: 1px solid rgba(239, 217, 166, 0.22);
  }
  .step:nth-child(n + 3) { margin-top: 0; }
  .method-cta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .method-cta p { max-width: 48ch; }

  .pricing-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .country-tabs { justify-content: flex-start; }
  .duration-tabs { align-self: flex-start; }

  .final-cta { padding-block: 84px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 620px) {

  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { padding: 24px 22px 22px; }
  .price-card__tagline { min-height: 0; }
  .price-card__features { display: grid; grid-template-columns: 1fr; gap: 8px; }

  .country-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .country-tabs::-webkit-scrollbar { display: none; }
  .country-tabs button {
    flex: 0 0 auto;
    min-width: 92px;
    padding-inline: 14px;
    font-size: 14px;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .duration-tabs { width: 100%; }
  .duration-tabs button { flex: 1; }
  .duration-tabs__label { width: 100%; padding: 3px 8px 5px; }

  .steps { grid-template-columns: 1fr; }
  .step { padding-bottom: 24px; }
  .step p { max-width: 46ch; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand, .footer-social { grid-column: auto; }
  .footer-social .social-row { margin-bottom: 0; }
  .site-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }

  .mobile-cta { display: flex; }
  .wa-float { display: none; }

  .final-cta p { font-size: 14.5px; }
  .final-cta .btn { width: 100%; }

  .ayah-panel__text { font-size: clamp(2.1rem, 9vw, 3rem); }

  /* قراءة مريحة على الهواتف: نصوص المحتوى لا تقل عن 16px */
  .hero__sub,
  .trust-strip__inner,
  .section-head > p,
  .why-head > p,
  .pillar p,
  .audience-item p,
  .program > p:not(.program__sub),
  .program li,
  .step p,
  .method-cta p,
  .price-card__tagline,
  .price-card__meta,
  .price-card__features li,
  .pricing-noscript,
  .pricing-foot p,
  .faq-head p,
  .faq-answer p,
  .final-cta p,
  .footer-brand p,
  .footer-col a,
  .text-link,
  .hero__secondary { font-size: 16px; }
}

/* ============================================================
   تحسينات الاتجاه من اليسار إلى اليمين
   ============================================================ */
[dir="ltr"] .hero__content { text-align: left; }
[dir="ltr"] .hero__watermark {
  left: auto;
  right: clamp(-240px, -14vw, -70px);
}
[dir="ltr"] .hero__arch {
  left: auto;
  right: 3vw;
}
[dir="ltr"] .scroll-progress span { transform-origin: left center; }
[dir="ltr"] .main-nav a::after { transform-origin: left; }
[dir="ltr"] .hero__accent::after { transform-origin: left center; }
[dir="ltr"] .hero__secondary::after { transform-origin: left center; }
[dir="ltr"] .text-link:hover .text-link__arrow { transform: translateX(5px); }
[dir="ltr"] .btn:hover svg { transform: translateX(4px); }

@media (max-width: 1024px) {
  [dir="ltr"] .hero__watermark { right: -20%; }
  [dir="ltr"] .hero__arch { right: 1vw; }
}

@media (max-width: 900px) {
  [dir="ltr"] .hero__content { text-align: center; }
  [dir="ltr"] .hero__watermark { right: -28vw; }
  [dir="ltr"] .hero__arch {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 620px) {
  [dir="ltr"] .hero__watermark { right: -38vw; }
}

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* == END == */
