/* Nahj al-Balagha — Landing website
   Palette mirrors the mobile app (constants/AppColors.ts) */

:root {
  --bg: #FDF6EC;
  --surface: #FFFFFF;
  --gold: #96700A;
  --gold-light: #C8A84B;
  --text: #1E1208;
  --text-muted: #9A8060;
  --border: #E2CFA0;
  --border-light: #F0E2C0;
  --radius: 18px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  direction: rtl;
  text-align: right;
}

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

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand .mark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.brand .mark img {
  width: 44px;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(200, 168, 75, 0.18), transparent 60%);
  pointer-events: none;
}
.ornament {
  font-size: 1.6rem;
  color: var(--gold-light);
  letter-spacing: 8px;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 6px 0 14px;
  color: var(--text);
  font-weight: 700;
}
.hero .subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 18px;
}
.hero p.lead {
  max-width: 680px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Store buttons ---------- */
.stores {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  min-width: 230px;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  border: 1px solid #2c1d0e;
  cursor: default;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 18, 8, 0.18);
  text-decoration: none;
}
.store-btn .icon {
  font-size: 1.9rem;
  line-height: 1;
}
.store-btn .txt { text-align: right; }
.store-btn .txt small {
  display: block;
  font-size: 0.72rem;
  color: var(--gold-light);
  font-weight: 600;
}
.store-btn .txt strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}
.badge-soon {
  position: absolute;
  top: -10px;
  inset-inline-start: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(150, 112, 10, 0.3);
}

/* ---------- Features ---------- */
.section {
  padding: 64px 0;
}
.section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 8px;
}
.section .section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(150, 112, 10, 0.12);
}
.card .emoji {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.2rem;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Quote band ---------- */
.quote-band {
  background: linear-gradient(135deg, #2a1f10, #3a2c14);
  color: #f6ecd2;
  text-align: center;
  padding: 60px 20px;
}
.quote-band .ornament { color: var(--gold-light); }
.quote-band blockquote {
  max-width: 760px;
  margin: 10px auto 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 2;
}
.quote-band cite {
  display: block;
  margin-top: 16px;
  color: var(--gold-light);
  font-style: normal;
  font-size: 1rem;
}

/* ---------- Content pages ---------- */
.page {
  padding: 56px 0 72px;
}
.page-head {
  text-align: center;
  margin-bottom: 36px;
}
.page-head h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 8px;
}
.page-head p { color: var(--text-muted); margin: 0; }
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.prose h2 {
  color: var(--gold);
  font-size: 1.3rem;
  margin: 28px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); font-size: 1.02rem; }
.prose ul { padding-inline-start: 22px; }
.prose .updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.contact-item .icon {
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--border-light);
  border-radius: 12px;
  flex-shrink: 0;
}
.contact-item small {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.contact-item strong { font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--surface);
  padding: 34px 0;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--gold); }
.copyright { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .store-btn { min-width: 100%; justify-content: center; }
}
