/* AyahFlow static pages (blog + FAQ) — brand-matched, no JS required */
:root {
  --bg: #050505;
  --surface: #0d0f0e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --faint: #6b7280;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --gold: #d4af37;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.site-header .brand img { width: 40px; height: 40px; }
.site-header .brand span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-header nav a:hover { color: #fff; }
.site-header nav a.cta {
  background: linear-gradient(90deg, #059669, #10b981);
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 500;
}
.site-header nav a.cta:hover { filter: brightness(1.1); }
@media (max-width: 640px) {
  .site-header nav a.hide-mobile { display: none; }
}

/* ── Layout ── */
.page {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-wide { max-width: 980px; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
h1 { font-size: 42px; margin: 18px 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 30px; margin: 48px 0 14px; }
h3 { font-size: 23px; margin: 32px 0 10px; }
p { margin: 0 0 18px; color: var(--text); }
a { color: var(--emerald-light); }
a:hover { color: var(--emerald); }
strong { font-weight: 500; color: #fff; }
ul, ol { padding-left: 24px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
.lead { font-size: 19px; color: var(--muted); }
.meta-line {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 28px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 8px;
}
.breadcrumbs a { color: var(--faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--emerald-light); }

.arabic {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 1.45em;
  line-height: 2;
  direction: rtl;
}

blockquote {
  border-right: 3px solid var(--emerald);
  border-left: none;
  margin: 24px 0;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 8px;
  color: var(--muted);
}
blockquote.ltr { border-left: 3px solid var(--emerald); border-right: none; }

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
td:first-child { color: #fff; font-weight: 400; }
.table-scroll { overflow-x: auto; }
.yes { color: var(--emerald-light); }
.no { color: #f87171; }
.partial { color: #fbbf24; }

/* ── Cards (blog index) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(16, 185, 129, 0.4); transform: translateY(-2px); }
.card h2 {
  font-size: 24px;
  margin: 0 0 10px;
}
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

/* ── CTA box ── */
.cta-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}
.cta-box h3 { margin-top: 0; }
.cta-box p { color: var(--muted); }
.cta-box .button {
  display: inline-block;
  background: linear-gradient(90deg, #059669, #10b981);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 12px;
  margin-top: 6px;
}
.cta-box .button:hover { filter: brightness(1.1); }
.cta-box .fine { font-size: 13px; color: var(--faint); margin: 12px 0 0; }

/* ── FAQ accordions ── */
details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--surface);
}
details summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 400;
  color: #fff;
  font-size: 16.5px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--emerald-light);
  font-size: 20px;
}
details[open] summary::after { content: '−'; }
details .answer { padding: 0 20px 16px; color: var(--muted); }
details .answer p { color: var(--muted); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--emerald-light); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .page { padding: 32px 18px 60px; }
}
