/* ─── About Page ────────────────────────────────────────────
   Extends styles.css. Requires legal-header from styles.css.
   ─────────────────────────────────────────────────────────── */

:root {
  --a-green:        #065f46;
  --a-green-mid:    #047857;
  --a-green-light:  #d1fae5;
  --a-green-pale:   #ecfdf5;
  --a-green-border: #a7f3d0;
  --a-text:         #1e293b;
  --a-text-sec:     #475569;
  --a-text-muted:   #64748b;
  --a-border:       #e2e8f0;
  --a-bg-subtle:    #f8fafc;
  --ease-expo:      cubic-bezier(0.23, 1, 0.32, 1);
}

body.about-page {
  background: #fff;
  color: var(--a-text);
}

/* Scroll reveal removed — content always visible (cross-browser reliability) */

/* ── Layout helpers ────────────────────────────────────────── */
.a-narrow { max-width: 680px; margin: 0 auto; padding: 0 1.25rem; }
.a-wide   { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }
.a-hr     { border: none; border-top: 1px solid var(--a-border); margin: 0; }

/* ── Hero ──────────────────────────────────────────────────── */
.a-hero {
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--a-border);
}

.a-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--a-green-border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--a-green-mid);
  background: #fff;
  margin-bottom: 1.5rem;
  animation: aFadeUp 0.6s 0.1s both var(--ease-expo);
}

.a-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--a-text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  animation: aFadeUp 0.6s 0.22s both var(--ease-expo);
}

.a-hero-sub {
  font-size: 1.05rem;
  color: var(--a-text-sec);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  animation: aFadeUp 0.6s 0.34s both var(--ease-expo);
}

.a-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: aFadeUp 0.6s 0.44s both var(--ease-expo);
}

@keyframes aFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.a-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--a-green);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms ease-out, transform 160ms ease-out;
}
.a-btn-primary:hover  { background: var(--a-green-mid); }
.a-btn-primary:active { transform: scale(0.97); }

.a-btn-outline {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--a-border);
  color: var(--a-text);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 200ms ease-out, color 200ms ease-out, transform 160ms ease-out;
}
.a-btn-outline:hover  { border-color: var(--a-green); color: var(--a-green); }
.a-btn-outline:active { transform: scale(0.97); }

/* ── Sections ──────────────────────────────────────────────── */
.a-section {
  padding: 3.5rem 1.25rem;
}
.a-section-alt {
  padding: 3.5rem 1.25rem;
  background: var(--a-bg-subtle);
}

.a-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a-green-mid);
  margin-bottom: 0.6rem;
}

.a-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--a-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.a-section-intro {
  font-size: 1.0625rem;
  color: var(--a-text-sec);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── Story ─────────────────────────────────────────────────── */
.a-story p {
  font-size: 1.0625rem;
  color: var(--a-text-sec);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.a-story p:last-child { margin-bottom: 0; }

/* Pullquote: background tint + large opening mark, no side stripe */
.a-pullquote {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem 2.75rem;
  background: var(--a-green-pale);
  border-radius: 10px;
  border: 1px solid var(--a-green-border);
  margin: 1.75rem 0;
  overflow: hidden;
}
.a-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 0.9rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--a-green-light);
  pointer-events: none;
  user-select: none;
}
.a-pullquote p {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--a-green);
  line-height: 1.65;
  font-weight: 500;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ── Scholar cards ─────────────────────────────────────────── */
.a-scholars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.a-scholar-card {
  background: #fff;
  border: 1px solid var(--a-border);
  border-top: 3px solid var(--a-green);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 250ms ease-out, transform 250ms ease-out;
}
.a-scholar-card:hover {
  box-shadow: 0 6px 24px rgba(6,95,70,0.1);
  transform: translateY(-2px);
}

.a-scholar-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-green-mid);
  margin-bottom: 0.35rem;
}
.a-scholar-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--a-text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.a-scholar-arabic {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--a-green-mid);
  margin-bottom: 0.9rem;
  display: block;
  direction: rtl;
}
.a-scholar-bio {
  font-size: 1rem;
  color: var(--a-text-sec);
  line-height: 1.65;
}
.a-tag {
  display: inline-block;
  background: var(--a-green-light);
  color: var(--a-green);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.9rem;
  margin-right: 0.35rem;
}

/* ── Review note ───────────────────────────────────────────── */
.a-review-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--a-green-pale);
  border: 1px solid var(--a-green-border);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-top: 1rem;
}
.a-review-icon {
  flex-shrink: 0;
  color: var(--a-green-mid);
  margin-top: 0.05rem;
}
.a-review-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--a-green);
  margin-bottom: 0.2rem;
}
.a-review-text {
  font-size: 1rem;
  color: var(--a-text-sec);
  line-height: 1.65;
}

/* ── Pillars ───────────────────────────────────────────────── */
.a-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.a-pillar {
  background: #fff;
  border: 1px solid var(--a-border);
  border-radius: 12px;
  padding: 1.4rem;
  transition: box-shadow 250ms ease-out, transform 250ms ease-out;
}
.a-pillar:hover {
  box-shadow: 0 6px 24px rgba(6,95,70,0.08);
  transform: translateY(-2px);
}

.a-pillar-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--a-green);
  line-height: 1;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.a-pillar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--a-text);
  margin-bottom: 0.4rem;
}
.a-pillar-desc {
  font-size: 1rem;
  color: var(--a-text-sec);
  line-height: 1.6;
}

/* ── Legal clarity grid ────────────────────────────────────── */
.a-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.a-legal-item {
  background: #fff;
  border: 1px solid var(--a-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 250ms ease-out, transform 250ms ease-out;
}
.a-legal-item:hover {
  box-shadow: 0 4px 16px rgba(6,95,70,0.07);
  transform: translateY(-2px);
}
.a-legal-icon {
  margin-bottom: 0.6rem;
  color: var(--a-green-mid);
}
.a-legal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--a-text);
  margin-bottom: 0.35rem;
}
.a-legal-desc {
  font-size: 1rem;
  color: var(--a-text-sec);
  line-height: 1.6;
}

/* ── Feature list ──────────────────────────────────────────── */
.a-feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.a-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1.0625rem;
  color: var(--a-text-sec);
  line-height: 1.55;
}
.a-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--a-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Ayah block ────────────────────────────────────────────── */
.a-ayah {
  background: var(--a-green-pale);
  border: 1px solid var(--a-green-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 600ms ease-out;
}
.a-ayah.vis {
  box-shadow: 0 0 0 4px rgba(6,95,70,0.06);
}
.a-ayah-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.65rem;
  color: var(--a-green);
  line-height: 2;
  direction: rtl;
  margin-bottom: 0.75rem;
  display: block;
}
.a-ayah-translation {
  font-size: 1rem;
  font-style: italic;
  color: var(--a-text-sec);
  margin-bottom: 0.3rem;
}
.a-ayah-ref {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--a-green-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Notice ────────────────────────────────────────────────── */
.a-notice {
  background: var(--a-bg-subtle);
  border: 1px solid var(--a-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--a-text-sec);
  line-height: 1.65;
  margin-top: 2rem;
}
.a-notice strong { color: var(--a-text); }

/* ── CTA section ───────────────────────────────────────────── */
.a-cta {
  background: var(--a-green);
  padding: 3.5rem 1.25rem;
  text-align: center;
}
.a-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.a-cta p {
  color: rgba(255,255,255,0.75);
  max-width: 460px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.a-cta-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.a-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--a-green);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 200ms ease-out, transform 160ms ease-out;
}
.a-btn-white:hover  { opacity: 0.92; }
.a-btn-white:active { transform: scale(0.97); }

.a-btn-ghost-white {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 200ms ease-out, transform 160ms ease-out;
}
.a-btn-ghost-white:hover  { border-color: rgba(255,255,255,0.7); }
.a-btn-ghost-white:active { transform: scale(0.97); }

/* ── Responsive ────────────────────────────────────────────── */

/* Header: wrap links on narrow screens */
@media (max-width: 600px) {
  .about-page .legal-header {
    flex-wrap: wrap;
    padding: 10px 16px 8px;
    gap: 4px 0;
  }
  .about-page .legal-logo {
    flex: 0 0 100%;
    margin-bottom: 4px;
  }
  .about-page .legal-back {
    font-size: 13px;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .a-scholars-grid { grid-template-columns: 1fr; }
  .a-pillars       { grid-template-columns: 1fr; }
  .a-legal-grid    { grid-template-columns: 1fr; }

  .a-hero-actions { flex-direction: column; align-items: center; }
  .a-btn-primary,
  .a-btn-outline  { width: 100%; max-width: 300px; justify-content: center; }

  .a-cta-btns { flex-direction: column; align-items: center; }
  .a-btn-white,
  .a-btn-ghost-white { width: 100%; max-width: 300px; justify-content: center; }

  .a-hero   { padding: 2.5rem 1.25rem 2rem; }
  .a-section,
  .a-section-alt { padding: 2.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .a-hero h1 { font-size: 1.65rem; }
  .a-section h2 { font-size: 1.35rem; }
  .a-pillar-num { font-size: 1.65rem; }
  .a-ayah-arabic { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .a-badge, .a-hero h1, .a-hero-sub, .a-hero-actions {
    animation: none !important;
  }
}
