:root {
  --green-900: #0b3f2a;
  --green-800: #0e4d33;
  --green-700: #115c3e;
  --gold: #c9a23a;
  --gold-soft: #e8c86a;
  --gold-text: #8a6a12;
  --cream: #f5f1e8;
  --ink: #1f2d27;
  --muted: #4a5a53;
  --line: #e6e2d8;
  --white: #ffffff;
  --radius: 14px;
  --max: 1080px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ar: "Noto Naskh Arabic", "Amiri", "Geeza Pro", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--green-800);
}

p { margin: 0; }

.ar {
  font-family: var(--font-ar);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.salawat { font-family: var(--font-ar); white-space: nowrap; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--gold);
  color: var(--green-900);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-white { background: var(--white); color: var(--green-800); }
.btn-white:hover { background: var(--cream); }
.btn-outline { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-green { background: var(--green-800); color: var(--white); }
.btn-green:hover { background: var(--green-700); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.link-arrow {
  color: var(--gold-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green-800);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.brand img { width: 38px; height: 38px; }
.brand .mor { color: var(--gold-soft); margin-left: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:not(.btn):hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: var(--white);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-cream { background: var(--cream); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.section-title { font-size: clamp(26px, 3vw, 32px); }
.section-lead {
  margin-top: 14px;
  max-width: 600px;
  color: var(--muted);
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green-800);
  color: var(--white);
  padding: 72px 0 88px;
}
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold-soft); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.03em;
}
.hero-text {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-caption {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero { padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 48px); }
.page-hero .hero-text { max-width: 560px; }

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.about-emblem {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
}

/* ---------- Video embeds ---------- */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}
.embed.is-live { padding: 0; border: 0; }
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed .play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
}
.embed .play::after {
  content: "";
  border-left: 14px solid var(--white);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.embed strong { font-size: 17px; }
.embed small { color: rgba(255, 255, 255, 0.7); font-size: 13px; max-width: 360px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-text);
}
.step h3 { margin-top: 12px; font-size: 19px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Series cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 14px 32px rgba(14, 77, 51, 0.12);
  transform: translateY(-2px);
}
.card-art {
  height: 150px;
  display: grid;
  place-items: center;
  font-family: var(--font-ar);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
}
.card-art.art-seera { background: var(--green-800); color: var(--gold-soft); }
.card-art.art-hadith { background: var(--gold); color: var(--green-900); }
.card-art.art-lessons { background: var(--green-700); color: var(--white); }
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.card-body h3 { margin-top: 8px; font-size: 22px; }
.card-body p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.card-body .link-arrow { margin-top: auto; padding-top: 18px; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--green-700);
  color: var(--white);
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { color: var(--white); font-size: clamp(24px, 3vw, 30px); }
.cta p { margin-top: 8px; color: #f3e3ad; }

.cta-light { background: var(--cream); color: var(--ink); }
.cta-light h2 { color: var(--green-800); }
.cta-light p { color: var(--muted); }

/* ---------- Watch page ---------- */
.filters-bar {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 10px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters a {
  flex: none;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--green-800);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.filters a:hover { border-color: var(--green-800); }
.filters a.is-active { background: var(--green-800); border-color: var(--green-800); color: var(--white); }

.series { scroll-margin-top: 150px; }
.series-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 4px;
  font-size: clamp(24px, 3vw, 30px);
}
.series-title .ar { font-size: 0.85em; color: var(--gold-text); }
.series .section-lead { margin-bottom: 28px; }

.placeholder-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- About page ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.two-col h2 { font-size: 28px; margin-bottom: 18px; }
.two-col p { color: var(--muted); }
.prose p + p { margin-top: 16px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green-800);
  border-bottom: 2px solid var(--green-800);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--green-800); }

/* ---------- Placeholder text to fill in ---------- */
.todo {
  background: #fff6d6;
  border-radius: 4px;
  padding: 0 4px;
  color: var(--gold-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner .brand { font-size: 18px; }
.footer-inner .brand img { width: 32px; height: 32px; }
.footer-tag { margin-top: 8px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: rgba(255, 255, 255, 0.9); }
.footer-links a:hover { color: var(--white); }
.footer-copy { margin-top: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .steps,
  .cards { grid-template-columns: 1fr; }
  .card-art { height: 120px; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-emblem { width: 140px; height: 140px; order: -1; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--green-800);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav .btn { margin-top: 16px; }

  .filters-bar { top: 72px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
