/* ============================================================
   ABOUT PAGE STYLES
   Scoped narrowly — reuses foundation.css tokens and classes.
   Does NOT redefine .card, .btn-*, .badge, .grid-*, .fade-in,
   .sec, .section-pad or any home.css rule.
   ============================================================ */

/* ---- Page hero override for about ---- */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 2.5rem;
  background: var(--marble);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .4rem; }
.page-hero-sub { color: var(--muted); font-size: .95rem; margin-top: .6rem; }

.about-hero { background: var(--ink); }
.about-hero .sec-eyebrow { color: var(--brass); }
.about-hero h1 { color: var(--marble); }
.about-hero .page-hero-sub { color: rgba(250,249,246,.65); }

/* ---- Stats bar ---- */
.about-stats-bar {
  background: var(--marble);
  border-bottom: 1px solid var(--border);
}
.about-stats-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  padding: 1.6rem 0;
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.about-stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--verdigris);
  line-height: 1;
}
.about-stat span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---- Mission ---- */
.about-mission { background: var(--parchment); }
.about-mission-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.about-mission-inner .sec-title { margin-bottom: .75rem; }
.about-mission-body {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.about-mission-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  color: var(--marble);
}
.about-mission-card blockquote {
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--parchment);
  border-left: 3px solid var(--brass);
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}
.about-mission-card footer {
  font-size: .82rem;
  font-family: var(--font-mono);
  color: rgba(250,249,246,.5);
}

/* ---- Timeline section ---- */
.about-timeline-section { background: var(--marble); }

/*
  Extend home.css .v-timeline to support a centered line +
  alternating left/right items on wider viewports.
  Selector specificity is higher than home.css rules so
  we safely override without touching home.css.
*/
.about-v-timeline {
  max-width: 860px;
  padding-left: 0;
  padding-top: 1rem;
}
/* Center the vertical line */
.about-v-timeline::before {
  left: 50%;
  transform: translateX(-50%);
}
/* Base item: flex row with a gap on each side */
.about-v-timeline .v-item {
  width: 46%;
  margin-bottom: 2.8rem;
  position: relative;
}
/* Left items: on the left half, text to the right of marker */
.about-v-timeline .v-left {
  margin-left: 0;
  flex-direction: row;
  text-align: left;
}
/* Right items: on the right half (shifted past center), text to the right */
.about-v-timeline .v-right {
  margin-left: 54%;
  flex-direction: row;
  text-align: left;
}
/* Year marker shared overrides */
.about-v-timeline .v-marker {
  width: 64px;
  height: 40px;
  border-radius: var(--radius);
  font-size: .78rem;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--brass);
  font-family: var(--font-mono);
}
.about-v-timeline .v-content h4 { font-size: 1.1rem; }
.about-v-timeline .v-content p  { max-width: 340px; font-size: .9rem; }

/* ---- Developer partners grid ---- */
.dev-grid-section { background: var(--parchment); }
.dev-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.dev-partner-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  gap: 1rem;
}
.dev-partner-logo-wrap {
  height: 56px;
  display: flex;
  align-items: center;
}
.dev-partner-logo-wrap img {
  max-height: 52px;
  max-width: 140px;
  object-fit: contain;
}
.dev-partner-logo-placeholder {
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--brass);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}
.dev-partner-info { flex: 1; }
.dev-partner-info h4 { font-size: 1rem; margin-bottom: .25rem; }
.dev-partner-year {
  font-size: .72rem;
  color: var(--muted);
  display: block;
  margin-bottom: .4rem;
}
.dev-partner-info p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.dev-partner-badge { margin-top: auto; }

/* ---- Testimonials ---- */
.testimonials-section { background: var(--marble); }
.about-testimonial-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-testimonial-head {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.about-testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.about-testimonial-avatar--placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--verdigris);
  color: var(--marble);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-testimonial-head strong { font-size: .95rem; display: block; }
.about-testimonial-stars {
  font-size: .85rem;
  color: var(--brass);
  letter-spacing: .05em;
}
.about-testimonial-card blockquote p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
  font-style: italic;
}

/* ---- CTA section ---- */
.about-cta-section {
  background: var(--ink);
}
.about-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.about-cta-inner .sec-eyebrow { color: var(--brass); }
.about-cta-inner .sec-title   { color: var(--marble); }
.about-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}
.about-cta-buttons .btn-outline {
  border-color: rgba(250,249,246,.35);
  color: var(--marble);
}
.about-cta-buttons .btn-outline:hover {
  background: rgba(250,249,246,.1);
  color: var(--marble);
}

/* .muted utility — matches the pattern used in footer.php and index.php */
.muted { color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .about-mission-inner { grid-template-columns: 1fr; }
  .about-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  /* Collapse alternating timeline to single column */
  .about-v-timeline::before { left: 24px; transform: none; }
  .about-v-timeline .v-item  { width: 100%; margin-left: 0; }
  .about-v-timeline .v-right { margin-left: 0; }
}
@media (max-width: 540px) {
  .about-stats-inner { gap: 1.5rem 2rem; }
  .about-cta-buttons { flex-direction: column; width: 100%; }
  .about-cta-buttons .btn-primary,
  .about-cta-buttons .btn-outline,
  .about-cta-buttons .btn-wa { justify-content: center; }
}
