/* ==========================================================================
   SPEARPOINT ADVISORS — About Page Stylesheet
   ==========================================================================
   Page-specific rules only. Loaded after style.css, so it can rely on all
   design tokens (--color-*, --space-*, --fs-*, --radius-*, --shadow-*,
   --transition-*) and shared components already defined there.

   Reuses as-is (no rules needed here): .founder-section__image-wrap/__image,
   .credentials/.credential-tag, .hero__cta-group, .about-section__header,
   .services-section__header, .risk-section__header/.risk-quote,
   .achievement, .stats-grid/.stats-grid--outcomes/.value-card ("The Work
   Mike Does" cards — same light-orange tinted card the homepage's outcomes
   grid uses), .trades-tabs/.trade-panel (drives the "Mike's Story" chapter
   tabs, same component as the homepage's industries tabs), .fit-grid/
   .fit-card (the credentials cards — same icon-card component the
   homepage's "Is This You" section uses), .section-header--split, .btn —
   only the pieces below are new.
   ========================================================================== */

/* --- Interior-page hero — lighter than the homepage's full-viewport photo
   hero: sits directly under the fixed nav with its own top padding since
   it's the first element on the page. --- */
.about-hero {
  padding-top: calc(var(--nav-height) + var(--space-12));
  position: relative;
  z-index: 1;
  background-color: var(--color-bg);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
}

.about-hero__content h1 {
  margin-bottom: var(--space-6);
}

.about-hero__content p {
  margin-bottom: var(--space-8);
  max-width: 560px;
}

/* --- Story chapters — long-form narrative sections (About page bio). ---
   Each chapter section carries a large faint decorative mark in the corner
   (a numeral for the four numbered chapters, an icon for the non-chapter
   sections that reuse this same component — Mission, Credentials) so the
   long text columns have a visual anchor instead of reading as flat text. */
.story-chapter {
  position: relative;
}

.story-chapter__mark {
  position: absolute;
  top: var(--space-10);
  right: var(--space-10);
  line-height: 1;
  color: rgba(232, 83, 14, 0.07);
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

.story-chapter__mark--number {
  font-size: 10rem;
  font-weight: var(--fw-black);
}

.story-chapter__mark--icon {
  font-size: 9rem;
}

.story-chapter__content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto var(--space-10);
}

.story-chapter__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-hover));
  color: var(--color-white);
}

.story-chapter__content h2 {
  margin: var(--space-2) 0 var(--space-6);
}

.story-chapter__content p {
  margin-bottom: var(--space-5);
  max-width: none;
}

.story-chapter__content p:last-child {
  margin-bottom: 0;
}

.story-chapter__substory {
  margin-top: var(--space-8);
}

.story-chapter__substory h3 {
  margin-bottom: var(--space-3);
}

.story-chapter__substory .achievement {
  margin-bottom: 0;
}

/* --- Advisory philosophy cards — sits right below the 5-card .fit-grid
   credentials row. Centered icon-card treatment (own component rather
   than reusing .fit-card/.value-card, since it needs a centered icon +
   label + copy stack and a bottom orange accent line those don't have). --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1040px;
  margin: 0 auto;
}

.philosophy-grid__item {
  text-align: center;
  background-color: var(--color-surface);
  border: 1px solid rgba(143, 139, 128, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm), 0 3px 0 var(--color-orange);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.philosophy-grid__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 3px 0 var(--color-orange);
}

.philosophy-grid__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(232, 83, 14, 0.15), rgba(232, 83, 14, 0.05));
  color: var(--color-orange);
  font-size: var(--fs-lg);
}

.philosophy-grid__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}

.philosophy-grid__item p {
  font-size: var(--fs-sm);
  color: var(--color-text-3);
  line-height: var(--lh-relaxed);
  max-width: none;
}

/* --- Story tabs section — style.css's .about-section__header and
   .story-chapter__content both center themselves (text-align: center /
   margin: 0 auto); client feedback was that this section specifically
   should read left-aligned instead, so both are overridden here, scoped
   to #story only — the rest of the page keeps its centered headers. --- */
#story .about-section__header {
  text-align: left;
  margin-left: 0;
}

#story .story-chapter__content {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#story .risk-quote {
  max-width: none;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* --- Final CTA — style.css's .cta-section h2/p cap out at 800px/600px,
   which reads too narrow for this page's longer headline; widen just the
   CTA header here (heading stays centered, paragraph stacks below it —
   the shared default), rest of .cta-section untouched. --- */
.cta-section__header h2 {
  max-width: 1000px;
}

.cta-section__header p {
  max-width: 760px;
}

/* Split header's h2/p above have margin: 0 (see rules above), so the gap
   before the button that .cta-section h2/p's own margins used to provide
   is gone — restore it here instead. */
.cta-section__buttons {
  margin-top: var(--space-10);
}

/* --- Credentials grid: shared .fit-card defaults to 4-per-row; this
   section reads better at 3-per-row, so override the flex-basis here
   rather than touching the shared component used elsewhere. --- */
#credentials .fit-card {
  flex-basis: calc(33.333% - var(--space-6));
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .story-chapter__mark--number {
    font-size: 7rem;
  }

  .story-chapter__mark--icon {
    font-size: 6.5rem;
  }

  #credentials .fit-card {
    flex-basis: calc(50% - var(--space-6));
  }
}

@media (max-width: 768px) {
  /* Centered by design on tablet/desktop (see base rule above); left-aligned
     on phones only. */
  .philosophy-grid__item {
    text-align: left;
  }

  .story-chapter__mark {
    top: var(--space-6);
    right: var(--space-6);
  }

  #credentials .fit-card {
    flex-basis: 100%;
  }

  .story-chapter__mark--number {
    font-size: 5rem;
  }

  .story-chapter__mark--icon {
    font-size: 4.5rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
