/* About page (about.html): reuses site.css tokens and components.
   Layout ported from the platform's About page (pharmacy.afrimedlink.health/about). */
.page-about { --r-media: 24px; }
.page-about ol, .page-about ul { list-style: none; }

/* ---------- hero ---------- */
.page-hero { padding-block: calc(var(--header-h) + clamp(56px, 8vw, 104px)) clamp(40px, 5vw, 64px); }
.page-hero .display { font-size: clamp(2.4rem, 1.4rem + 3vw, 3.9rem); max-width: 16em; }
.page-hero .lead { margin-block-start: 20px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--ink-3); margin-block-end: 20px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .i { width: 14px; height: 14px; }
[dir="rtl"] .crumbs .i { transform: scaleX(-1); }
.about-hero-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-block-start: 48px; }
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-media); aspect-ratio: 16 / 10; }
.about-hero-media img:last-child { aspect-ratio: auto; object-position: 70% 50%; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.story blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--forest); }
.story .prose { font-size: 1.075rem; }
.story .prose p + p { margin-block-start: 16px; }
.prose strong { color: var(--ink); }

/* ---------- facts ---------- */
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { padding: 20px 24px 0 0; border-block-start: 2px solid var(--line-2); }
.fact + .fact { padding-inline-start: 24px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.fact p:not(.stat-value) { margin-block-start: 10px; color: var(--ink-2); font-size: .95rem; }

/* ---------- mission / vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-media); background: var(--mint); }
.mv.dark { background: var(--forest); color: #fff; }
.mv.dark h2 { color: #fff; }
.mv.dark p { color: rgba(255,255,255,.82); }
.mv h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.mv p { margin-block-start: 12px; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- principles ---------- */
.section-head { max-width: 760px; margin-block-end: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-block-start: 18px; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.principles li { padding: 24px 0; border-block-start: 1px solid var(--line); display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.principles h3 { font-size: 1.1rem; font-weight: 600; }
.principles p { margin-block-start: 6px; color: var(--ink-2); }
.tile-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--green-ink); }
.tile-icon .i { width: 22px; height: 22px; }

/* ---------- team (founder cards) ---------- */
.about-grid { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.about-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--sh-1); }
.team-card .title { margin-block-end: 6px; }
.team-card .role { color: var(--green-ink); font-weight: 600; font-size: .95rem; }
.team-card .prose { margin-block-start: 10px; }
.team-card .link-arrow { margin-block-start: 16px; }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 26px 0; border-block-start: 1px solid var(--line); }
.timeline li:last-child { border-block-end: 1px solid var(--line); }
.timeline time { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--green-ink); }
.timeline h3 { font-size: 1.15rem; font-weight: 600; }
.timeline p { margin-block-start: 6px; color: var(--ink-2); max-width: 60ch; }
.timeline a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- official channels ---------- */
.official dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px 24px; margin-block-start: 8px; }
.official dt { color: var(--on-dark-2); }
.official dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.official dd a { text-decoration: underline; text-underline-offset: 3px; }
.official .notice { margin-block-start: 32px; padding: 18px 20px; border-radius: 14px; background: rgba(124,224,162,.10); color: var(--on-dark); max-width: 70ch; }

/* ---------- closing CTA panel ---------- */
.cta-section { padding-block: var(--section); }
.cta-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-media); min-height: 440px; display: grid; align-items: center; background: var(--forest); }
.cta-panel > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; }
.cta-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,42,27,.94) 0%, rgba(12,42,27,.86) 38%, rgba(12,42,27,.2) 72%, rgba(12,42,27,0) 100%); }
[dir="rtl"] .cta-panel::before { transform: scaleX(-1); }
.cta-content { padding: clamp(36px, 6vw, 72px); max-width: 640px; color: #fff; }
.cta-content .headline { color: #fff; }
.cta-content .headline em { color: var(--leaf); }
.cta-content p { margin-block-start: 16px; color: rgba(255,255,255,.84); max-width: 44ch; }
.cta-content .hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-start: 30px; }
.btn-on-dark { background: #fff; color: var(--forest); }
.btn-on-dark:hover { background: var(--mint); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .about-hero-media, .story, .mv-grid, .principles { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(odd) { padding-inline-start: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .cta-panel { align-items: end; min-height: 560px; }
  .cta-panel::before { background: linear-gradient(0deg, rgba(12,42,27,.96) 0%, rgba(12,42,27,.86) 55%, rgba(12,42,27,.35) 100%); }
}
@media (max-width: 560px) {
  .official dl { grid-template-columns: 1fr; gap: 2px; }
  .official dd { margin-block-end: 12px; }
  .cta-content .hero-ctas .btn { flex: 1 1 100%; }
}
