/* ============================================================
   أكاديمية الكُتَّاب — أوراق الأنماط
   Mobile-first, RTL. Colors sampled from the academy logo.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Amiri";
  src: url("../fonts/amiri-400-arabic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Amiri";
  src: url("../fonts/amiri-700-arabic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}

/* ---------- Tokens ---------- */
:root {
  --green-950: #0E3B31;
  --green-900: #17564A;
  --green-800: #1E6B57;
  --green-700: #2A7E68;
  --green-600: #2E7F69;
  --green-500: #43A084;
  --gold-600: #B08C2E;
  --gold-500: #CFA845;
  --gold-400: #E6C878;
  --gold-100: #F8EBC9;
  --cream: #FCF8F0;
  --cream-200: #F4EDDF;
  --white: #FFFFFF;
  --ink: #1B2B25;
  --ink-soft: #3B544B;
  --muted: #63776E;
  --line: rgba(30, 107, 87, 0.14);
  --shadow-sm: 0 1px 2px rgba(14, 59, 49, 0.05), 0 6px 18px rgba(14, 59, 49, 0.045);
  --shadow-md: 0 10px 30px rgba(14, 59, 49, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 59, 49, 0.14);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1140px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -60px;
  transform: translateX(50%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--green-800);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
section[id],
div[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 64px; }

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}
.section-head.center .eyebrow::before { display: none; }

h2 { font-size: clamp(1.55rem, 4.4vw, 2.3rem); color: var(--green-900); }

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn .icon { width: 20px; height: 20px; flex: 0 0 auto; }

.btn-wa {
  --btn-bg: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 8px 22px rgba(18, 140, 126, 0.28);
}
.btn-wa:hover { box-shadow: 0 14px 30px rgba(18, 140, 126, 0.34); }

.btn-gold {
  --btn-bg: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 55%, var(--gold-600) 100%);
  --btn-fg: var(--green-950);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.28);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--green-800);
  border: 1.5px solid rgba(11, 74, 60, 0.28);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(11, 74, 60, 0.05); border-color: var(--green-700); }

.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 239, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(14, 59, 49, 0.05);
  background: rgba(250, 247, 239, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(14, 59, 49, 0.14);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-size: 1.06rem;
  font-weight: 900;
  color: var(--green-900);
}
.brand-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav a:hover { color: var(--green-800); background: rgba(30, 107, 87, 0.08); }

.header-cta { display: none; margin-inline-start: 8px; }

.nav-toggle {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Mobile panel */
.nav.is-open {
  display: flex;
  position: absolute;
  inset-inline: 16px;
  top: calc(var(--header-h) - 6px);
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.nav.is-open a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 56px;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(212, 175, 55, 0.20), transparent 62%),
    radial-gradient(900px 600px at 0% 110%, rgba(26, 147, 117, 0.28), transparent 60%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23EBC57C' stroke-width='1' stroke-opacity='0.30'%3E%3Cpath d='M60 8 76 24 60 40 44 24Z'/%3E%3Cpath d='M60 80 76 96 60 112 44 96Z'/%3E%3Cpath d='M8 60 24 44 40 60 24 76Z'/%3E%3Cpath d='M80 60 96 44 112 60 96 76Z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.16;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }

.hero h1 {
  font-size: clamp(1.95rem, 7.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.24;
  margin-bottom: 16px;
  color: #fff;
}
.hero h1 .hl {
  position: relative;
  color: var(--gold-400);
  white-space: nowrap;
}

.hero .lead {
  max-width: 34em;
  margin-bottom: 26px;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-actions .btn { flex: 1 1 220px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.hero-points .icon { width: 15px; height: 15px; color: var(--gold-400); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.hero-card {
  position: relative;
  width: min(100%, 300px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(235, 197, 124, 0.34);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
}
.hero-card figcaption {
  padding: 12px 6px 4px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.play-btn {
  position: absolute;
  inset-inline-start: 50%;
  top: 44%;
  transform: translate(50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-800);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.play-btn:hover { transform: translate(50%, -50%) scale(1.07); background: #fff; }
.play-btn svg { width: 26px; height: 26px; margin-inline-start: -2px; }

.hero-quote {
  width: min(100%, 300px);
  padding: 16px 20px;
  border: 1px solid rgba(235, 197, 124, 0.30);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  text-align: center;
}
.hero-quote .verse {
  margin: 0 0 4px;
  font-family: "Amiri", serif;
  font-size: 1.42rem;
  line-height: 1.9;
  color: var(--gold-100);
}
.hero-quote span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Trust strip ---------- */
.trust {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  padding-inline: 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-md);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: #fff;
}
.trust-item .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--green-600);
}
.trust-item span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.35;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
.about-copy p { color: var(--ink-soft); }

.checks {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}
.checks .icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--green-600);
}

.hadith-card {
  position: relative;
  text-align: start;
  overflow: hidden;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(212, 175, 55, 0.18), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-700));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.hadith-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -30px;
  top: -30px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(235, 197, 124, 0.28);
  border-radius: 50%;
}
.hadith-card .mark {
  display: block;
  margin-bottom: 10px;
  font-family: "Amiri", serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-400);
}
.hadith-card blockquote {
  margin: 0 0 14px;
  font-family: "Amiri", serif;
  font-size: 1.6rem;
  line-height: 2;
  color: var(--gold-100);
}
.hadith-card cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}
.hadith-card .tagline {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(235, 197, 124, 0.22);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- Benefit cards ---------- */
.benefits {
  display: grid;
  gap: 16px;
}
.benefit {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.45);
}
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(30, 107, 87, 0.10), rgba(212, 175, 55, 0.16));
  color: var(--green-700);
}
.benefit-icon .icon { width: 26px; height: 26px; }
.benefit h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 8px;
}
.benefit p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Videos ---------- */
.videos {
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(212, 175, 55, 0.10), transparent 65%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-block: 1px solid var(--line);
}
.videos .section-head { max-width: 700px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

.video-card {
  min-width: 0;
  border: 0;
  padding: 0;
  background: none;
  text-align: start;
  cursor: pointer;
}
.video-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-800);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.video-thumb img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.video-card:hover .video-thumb { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 59, 49, 0) 45%, rgba(14, 59, 49, 0.45) 100%);
}
.video-play {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-800);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease);
}
.video-play svg { width: 22px; height: 22px; margin-inline-start: -2px; }
.video-card:hover .video-play { transform: translate(50%, -50%) scale(1.08); }

.video-meta { display: block; padding: 12px 4px 0; }
.video-meta h3 {
  margin: 0 0 3px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--green-900);
}
.video-meta span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.videos-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.videos-foot .hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--gold-400);
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(11, 74, 60, 0.24);
}
.step h3 {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 6px;
}
.step p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--green-900);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11, 74, 60, 0.08);
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-700);
  transform: translate(50%, -50%);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.faq-item summary .plus::after { transform: translate(50%, -50%) rotate(90deg); }
.faq-item[open] summary .plus::after { transform: translate(50%, -50%) rotate(0deg); opacity: 0; }
.faq-item .faq-body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: 64px;
}
.cta-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 40px 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 340px at 100% 0%, rgba(212, 175, 55, 0.26), transparent 60%),
    linear-gradient(150deg, var(--green-700), var(--green-800));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 {
  color: #fff;
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 4.6vw, 2.1rem);
}
.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { flex: 1 1 220px; }
.cta-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 44px 88px;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.3;
}
.footer-brand small { font-size: 0.76rem; color: rgba(255, 255, 255, 0.6); }
.footer-about {
  max-width: 40ch;
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold-400);
}
.footer-links { display: grid; gap: 9px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.16s var(--ease);
}
.footer-links a:hover { color: #fff; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.socials a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(235, 197, 124, 0.5);
  color: var(--gold-400);
  transform: translateY(-2px);
}
.socials .icon { width: 20px; height: 20px; }

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #8CF0B4;
  font-size: 0.86rem;
  font-weight: 700;
}
.footer-wa .icon { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(18, 140, 126, 0.36);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.float-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(18, 140, 126, 0.42); }
.float-wa .icon { width: 22px; height: 22px; }
.float-wa span { display: none; }

/* ---------- Video modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 31, 25, 0.82);
  backdrop-filter: blur(6px);
}
.modal-body {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: 92vh;
}
.modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 88vh;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.modal-close {
  position: absolute;
  inset-inline-end: 0;
  top: -46px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
body.is-locked { overflow: hidden; }

/* ---------- Breakpoints ---------- */
@media (max-width: 639px) {
  .hero-card, .hero-quote { width: min(100%, 272px); }
  .site-footer { padding-bottom: 96px; }
}
@media (min-width: 640px) {
  .trust-inner { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
  .video-play { width: 56px; height: 56px; }
  .float-wa span { display: inline; }
}

@media (min-width: 900px) {
  :root { --header-h: 82px; }
  .section { padding-block: 88px; }
  .hero { padding-block: 64px 92px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-visual { justify-items: stretch; }
  .hero-card, .hero-quote { width: min(100%, 330px); margin-inline: auto; }
  .about-grid { grid-template-columns: 1.25fr 0.75fr; gap: 48px; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .cta-inner { grid-template-columns: 1.2fr auto; padding: 52px 46px; }
  .cta-actions { justify-content: flex-end; }
  .cta-actions .btn { flex: 0 0 auto; }
  .footer-grid { grid-template-columns: 1.3fr 0.6fr 0.95fr 0.75fr; gap: 36px; }
  .float-wa { inset-inline-end: 24px; bottom: 24px; }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav.is-open { position: static; display: flex; flex-direction: row; padding: 0; border: 0; box-shadow: none; background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* بطاقة المصحف في الرئيسية */
.mushaf-card {
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center;
  padding: 26px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #fff 0%, var(--cream) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) { .mushaf-card { grid-template-columns: 1.25fr 1fr; padding: 34px 38px; gap: 34px; } }
.mushaf-card h2 { margin: 6px 0 10px; }
.mushaf-card p { color: var(--ink-soft); margin: 0 0 18px; max-width: 52ch; }
.mushaf-art {
  border: 1px solid rgba(207, 168, 69, 0.55); border-radius: 16px; padding: 22px 18px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(207, 168, 69, 0.10), transparent 70%), #FFFDF8;
  box-shadow: inset 0 0 0 6px #FFFDF8, inset 0 0 0 7px rgba(207, 168, 69, 0.28);
  text-align: center; font-family: "Amiri", serif; color: var(--green-800);
  font-size: 1.35rem; line-height: 2;
}
.mushaf-art span { display: block; }
.mushaf-art .dots { color: rgba(207, 168, 69, 0.9); font-size: 0.85rem; letter-spacing: 0.35em; margin-top: 12px; }
