/* client/about/styles.css — styling for the About page.
   Self-contained, but uses the same palette and fonts as the hub. */

:root {
  --green: #10b981;
  --green-deep: #059669;
  --teal: #06b6d4;
  --indigo: #6366f1;

  --bg: #f3f5fb;
  --card: #ffffff;
  --text: #16233a;
  --muted: #6b7a90;
  --line: #e9edf5;

  --hero-gradient: linear-gradient(120deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(22, 35, 58, 0.08);
  --shadow-hover: 0 16px 40px rgba(22, 35, 58, 0.14);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* --- Top bar --------------------------------------------------------------- */

.a-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.a-hub {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.a-hub:hover { border-color: color-mix(in srgb, var(--indigo) 45%, var(--line)); }
.a-brand { font-family: var(--font-head); font-weight: 800; }
.a-spacer { flex: 1; }

/* --- Hero ------------------------------------------------------------------ */

.a-hero {
  background: var(--hero-gradient);
  color: #fff;
  text-align: center;
  padding: 56px 20px 48px;
  box-shadow: var(--shadow);
}
.a-hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}
.a-hero-sub { font-size: 1.05rem; opacity: 0.95; }

/* --- Main + cards ---------------------------------------------------------- */

.a-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.a-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.a-card p { margin-bottom: 12px; color: var(--text); }
.a-card p:last-child { margin-bottom: 0; }

.a-h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.a-h2-center { text-align: center; margin-bottom: 22px; }

/* --- Learning grid ("The bigger goal") ------------------------------------- */

.a-learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 620px) {
  .a-learn-grid { grid-template-columns: 1fr; }
}

.a-learn {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.a-learn-icon { font-size: 1.5rem; }
.a-learn h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin: 6px 0 4px;
}
.a-learn p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* --- Founders -------------------------------------------------------------- */

.a-founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 620px) {
  .a-founder-grid { grid-template-columns: 1fr; }
}

.a-founder {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.a-founder:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.a-founder-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden; /* clip the photo into a circle */
  font-size: 2.4rem;
  text-decoration: none;
  background: color-mix(in srgb, var(--c) 18%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); /* colored ring around the photo */
}
.a-founder-avatar:hover { box-shadow: 0 0 0 3px var(--c); }

/* Founder photo fills the circular avatar; biased slightly up to keep faces in frame. */
.a-founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.a-founder-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}
.a-founder-role {
  color: var(--indigo);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.a-founder-bio { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }

.a-founder-link {
  display: inline-block;
  color: var(--indigo);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}
.a-founder-link:hover { border-color: color-mix(in srgb, var(--indigo) 45%, var(--line)); }

/* --- Back link + footer ---------------------------------------------------- */

.a-back { text-align: center; padding: 8px 0 4px; }
.a-back a { color: var(--indigo); font-weight: 700; text-decoration: none; }
.a-back a:hover { text-decoration: underline; }

.a-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 20px 32px;
}

/* Default hover/press feedback for every link and button that doesn't already
   define its own. :where() = zero specificity, so existing component styles win. */
:where(a, button) { transition: filter 0.15s ease, opacity 0.15s ease, transform 0.1s ease; }
:where(button:not(:disabled)) { cursor: pointer; }
:where(a:hover) { opacity: 0.82; }
:where(button:not(:disabled):hover) { filter: brightness(1.08); }
:where(button:not(:disabled):active) { transform: translateY(1px); }
