/* ==========================================================================
   About page (page-about.php). Builds on main.css components.
   ========================================================================== */

/* ---------- Who we are ---------- */
.about-story .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
.about-story .lead strong { color: var(--ink); }
.about-checklist { margin: 4px 0 30px; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* At-a-glance card */
.about-glance {
  position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius-lg);
  background: var(--navy-900); color: var(--on-dark); box-shadow: var(--shadow-lg);
}
.about-glance::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -150px; top: -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 174, 78, 0.3), rgba(95, 174, 78, 0) 70%); pointer-events: none;
}
.about-glance > * { position: relative; }
.about-glance-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.about-glance-head img { width: 58px; height: auto; padding: 8px; border-radius: 14px; background: #fff; flex: none; }
.about-glance-head span { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-500); }
.about-glance-head h3 { margin: 4px 0 0; font-size: 1.22rem; color: #fff; }
.about-glance-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 24px; }
.about-glance-stats li { padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09); }
.about-glance-stats strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--green-500); }
.about-glance-stats span { display: block; margin-top: 8px; font-size: 0.9rem; }
.about-glance-list { display: grid; margin: 0; }
.about-glance-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.about-glance-list > div:first-child { padding-top: 0; border-top: 0; }
.about-glance-list dt { display: flex; align-items: center; gap: 10px; flex: none; font-size: 0.93rem; }
.about-glance-list dt .icon { width: 17px; height: 17px; color: var(--green-500); align-self: center; }
.about-glance-list dd { margin: 0; font-weight: 600; text-align: right; color: #fff; }
.about-glance-foot {
  display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 14px 16px; border-radius: 14px;
  background: rgba(95, 174, 78, 0.14); border: 1px solid rgba(95, 174, 78, 0.25); font-weight: 600; color: #fff;
}
.about-glance-foot .icon { width: 18px; height: 18px; color: var(--green-500); stroke-width: 3; }

/* ---------- Meet the founder ---------- */
.about-meet-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
.about-meet h2 { position: relative; z-index: 0; }
.about-bio > p { color: var(--ink-2); }
.about-bio .lead { color: var(--muted); }
.about-sub { margin: 34px 0 16px; font-size: 1.1rem; }
.about-feats { display: grid; gap: 12px; margin-bottom: 34px; }
.about-feats .feature { align-items: center; padding: 14px 18px 14px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.about-feats .feature p { margin: 0; font-size: 0.97rem; color: var(--ink-2); }
.about-feats .feature strong { color: var(--ink); }

.about-profile { position: sticky; top: calc(var(--header-h) + 28px); }
.about-profile .advisor-head { align-items: center; padding-bottom: 22px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.about-profile .advisor-photo, .about-profile .advisor-initials { width: 92px; height: 92px; }
.about-profile .advisor-initials { font-size: 1.9rem; box-shadow: 0 0 0 6px var(--green-50); }
.about-profile-loc { display: flex; align-items: center; gap: 6px; margin-top: 6px !important; font-size: 0.9rem; }
.about-profile-loc .icon { width: 15px; height: 15px; color: var(--green-700); }
.about-profile-badge { margin-top: 10px; }
.about-profile-badge .icon { width: 14px; height: 14px; }
.about-profile-label { margin: 22px 0 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.about-creds { display: grid; gap: 10px; }
.about-creds li { display: block; }
.about-cred-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); color: inherit; transition: border-color .2s, background-color .2s; }
a.about-cred-link:hover, a.about-cred-link:focus-visible { border-color: var(--green-700); background: #fff; }
.about-cred-text { flex: 1; min-width: 0; }
.about-cred-view { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 0.82rem; font-weight: 700; color: var(--green-700); }
.about-cred-view .icon { width: 15px; height: 15px; }
.about-cred-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--green-50); color: var(--green-700); }
.about-cred-ic .icon { width: 20px; height: 20px; }
.about-creds strong { display: block; font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.about-creds small { display: block; margin-top: 2px; font-size: 0.86rem; color: var(--muted); }
.about-profile-also { margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); }
.about-regs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.about-profile-link { margin-top: 24px; }

/* ---------- Journey timeline ---------- */
.about-timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.about-timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px;
  background: linear-gradient(90deg, var(--green-100), var(--green-700) 70%, rgba(95, 174, 78, 0));
}
.tl-item { position: relative; display: flex; flex-direction: column; }
.tl-year {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; height: 46px; margin-bottom: 20px; padding: 0 20px;
  border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; box-shadow: 0 0 0 6px #fff;
}
.tl-now .tl-year { background: var(--grad); }
.tl-card { flex: 1; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.tl-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.tl-card p { margin: 0; font-size: 0.95rem; color: var(--muted); overflow-wrap: anywhere; }
.tl-card .tl-cert { margin-top: 12px; font-size: 0.92rem; }
.tl-now .tl-card { background: var(--green-50); border-color: var(--green-100); }

/* ---------- Mission & values ---------- */
.about-mission { max-width: 860px; margin: -16px auto 56px; text-align: center; }
.about-mission-mark { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--green-500); fill: currentColor; stroke: none; }
.about-mission p { margin: 0; text-wrap: balance; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); }
.about-values-grid .card h3 { margin-bottom: 8px; }
.about-values-grid .card p { margin: 0; font-size: 0.97rem; }

/* ---------- How we work ---------- */
.about-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-steps .step h3 { margin-bottom: 10px; }

/* ---------- Safeguards ---------- */
.about-safe-box { padding: 44px; border-radius: 28px; background: var(--bg-soft); border: 1px solid var(--line); }
.about-safe-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 36px; }
.about-safe-list .icon-box { background: #fff; border: 1px solid var(--green-100); }
.about-safe-list h3 { margin-bottom: 6px; font-size: 1.05rem; }
.about-safe-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.about-safe-extra a { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Even line lengths for the centred section headings */
.pe-about .section-head h2 { text-wrap: balance; }

/* Brand word in the dark page hero: solid green keeps AA contrast on navy. */
.pe-about .page-hero .hl { background: none; color: var(--green-500); -webkit-text-fill-color: currentColor; }
.pe-about .page-hero .hl::after { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .about-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .about-timeline::before { display: none; }
}

@media (max-width: 980px) {
  .about-story .split, .about-meet-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-profile { position: static; }
  .about-safe-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .about-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .about-glance { padding: 26px 20px; }
  .about-glance-stats strong { font-size: 1.9rem; }
  .about-glance-list dd { max-width: 60%; }
  .about-actions .btn { flex: 1 1 100%; }
  .about-feats .feature { align-items: flex-start; padding: 14px; }
  .about-profile .advisor-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .about-safe-box { padding: 28px 20px; border-radius: 22px; }
  .about-safe-list { grid-template-columns: 1fr; gap: 26px; }
  .about-values-grid .card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 22px 20px; }
  .about-values-grid .icon-box { width: 46px; height: 46px; margin: 0; flex: none; border-radius: 13px; }
  .about-values-grid .icon-box .icon { width: 22px; height: 22px; }
  .about-mission { margin-top: -8px; margin-bottom: 40px; }

  /* Vertical timeline on phones */
  .about-timeline { grid-template-columns: 1fr; row-gap: 18px; }
  .about-timeline::before {
    display: block; left: 44px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--green-100), var(--green-700) 80%, var(--green-500));
  }
  .tl-item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: start; }
  .tl-year { align-self: start; justify-content: center; height: 36px; margin: 0; padding: 0 8px; font-size: 0.82rem; white-space: nowrap; box-shadow: 0 0 0 5px #fff; }
  .tl-card { padding: 18px 20px; }
}

.about-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 28px 0 0; font-weight: 600; color: var(--ink-2); }
