/* ============================================================
   Jesus (Prophet Isa, peace be upon him) in Islam — site styles
   ============================================================ */

:root {
  --color-bg: #faf7f0;
  --color-bg-alt: #f2ecdc;
  --color-surface: #ffffff;
  --color-border: #e3d9bd;
  --color-text: #2b2620;
  --color-text-muted: #5c5445;
  --color-primary: #0f5c4a;
  --color-primary-dark: #0a4436;
  --color-primary-light: #e6f0ec;
  --color-accent: #b8860b;
  --color-accent-light: #f7ecd1;
  --color-royal: #1e3f9c;
  --color-royal-dark: #142c6e;
  --color-royal-light: #e8edfc;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 30, 25, 0.07);
  --shadow-lg: 0 8px 30px rgba(20, 30, 25, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #14201b;
    --color-bg-alt: #192921;
    --color-surface: #1c2e26;
    --color-border: #2c4238;
    --color-text: #eee7d6;
    --color-text-muted: #b9ad8f;
    --color-primary: #4fae91;
    --color-primary-dark: #3c9078;
    --color-primary-light: #203830;
    --color-accent: #dbb04a;
    --color-accent-light: #2c2717;
    --color-royal: #6f93e6;
    --color-royal-dark: #4468c4;
    --color-royal-light: #1b2440;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(111,147,230,0.35), rgba(30,63,156,0.06) 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
    margin-top: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(15,92,74,0.08), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(30,63,156,0.12), transparent 40%),
    var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 72px 0 60px;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  opacity: 0.06;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero-watermark { opacity: 0.1; }
}

.hero-watermark svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.hero-logo {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 6px 16px rgba(30,63,156,0.35));
}

.hero-logo svg { width: 100%; height: 100%; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.2;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 auto 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.stat-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 12px;
  box-shadow: var(--shadow);
}

.stat-item .num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-royal);
}

.stat-item .label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

@media (max-width: 700px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.section:last-of-type { border-bottom: none; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin: 0 0 10px;
}

.section-sub {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 0 32px;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-royal), var(--color-primary));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.card p { color: var(--color-text-muted); margin: 0; }

.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-royal-light);
  color: var(--color-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* ---------- Verse / Quote blocks ---------- */

.verse {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}

.verse p.arabic {
  font-size: 1.3rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
  margin: 0 0 12px;
  color: var(--color-text);
}

.verse p.translation {
  font-style: italic;
  margin: 0 0 8px;
  color: var(--color-text);
}

.verse cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
}

.pull-quote {
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-light);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

/* ---------- Content / prose ---------- */

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 40px 0 14px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
}

.prose p { margin: 0 0 16px; }

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li { margin-bottom: 8px; }

.page-header {
  padding: 44px 0 8px;
}

.page-header .eyebrow { margin-bottom: 14px; }

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  margin: 0 0 12px;
}

.page-header p.lead {
  color: var(--color-text-muted);
  max-width: 700px;
  font-size: 1.05rem;
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.toc {
  position: sticky;
  top: 90px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  align-self: start;
}

.toc h4 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

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

.toc li { margin-bottom: 8px; }

.toc a {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.toc a:hover { color: var(--color-primary); }

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  background: var(--color-surface);
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 0.95rem;
}

th {
  background: var(--color-bg-alt);
  font-family: var(--font-serif);
  font-size: 1rem;
}

tr:last-child td { border-bottom: none; }

/* ---------- Names grid ---------- */

.names-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 24px 0;
}

.name-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.name-chip .ar {
  font-size: 1.3rem;
  direction: rtl;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.name-chip .en { font-weight: 700; }
.name-chip .desc { color: var(--color-text-muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 28px;
  border-left: 2px solid var(--color-border);
}

.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-primary-light);
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.timeline-item p { margin: 0; color: var(--color-text-muted); }

/* ---------- Callout ---------- */

.callout {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout strong { color: var(--color-primary-dark); }

.note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 10px;
}

/* ---------- Quote / journey / CTA (homepage) ---------- */

.quote-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-royal-light), var(--color-bg-alt));
}

.quote-band .hero-watermark {
  right: auto;
  left: -80px;
  opacity: 0.08;
}

.journey {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 720px;
  margin: 0 auto;
}

.journey-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.journey-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.journey-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-royal-light);
  color: var(--color-royal);
  font-family: var(--font-serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.journey-body h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.journey-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.journey-item a.journey-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius);
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--color-royal-dark), var(--color-royal));
  color: #fff;
  margin: 0 24px;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 12px;
  color: #fff;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 26px;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-royal-dark);
}

.cta-banner .btn-primary:hover {
  background: var(--color-accent-light);
}

.cta-banner .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.cta-banner .btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.1);
}

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

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 30px;
  margin-top: 30px;
}

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

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

.footer-grid h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--color-text); font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
