/* ==========================================================================
   SPEARPOINT ADVISORS — Professional Services Industry 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): .hero-decor, .hero__cta-group,
   .eyebrow, .about-section__header, .drivers-list/.drivers-list__item/
   .drivers-list__number/.drivers-list__label/.drivers-list__text,
   .split-panel__grid/__content/__visual/__visual-icon, .process-grid/
   .process-step (base 3-col layout — this page uses it as-is, no override
   needed), .founder-section__grid/__image-wrap/__image/__content,
   .credentials/.credential-tag, .testimonials-section/.testimonials-slider/
   .testimonial-card, .section-decor, .cta-section, .btn.
   ========================================================================== */

/* --- Hero — centered like The 5 Ds/Services, with the primary+outline CTA
   pair this page's md copy actually calls for. --- */
.ps-hero {
  padding-top: calc(var(--nav-height) + var(--space-12));
  position: relative;
  z-index: 1;
  background-color: var(--color-bg);
}

.ps-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

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

.ps-hero__content p {
  margin: 0 auto var(--space-8);
}

.ps-hero__content .hero__cta-group {
  justify-content: center;
}

/* --- Large faint corner icon — same visual idea as Executive Coaching's
   .exec-mark / The 5 Ds' .d-panel__mark, reimplemented locally per the
   per-page-CSS convention so "Who This Is For" doesn't read as a flat
   block of paragraphs. --- */
.ps-mark {
  position: absolute;
  top: var(--space-10);
  right: var(--space-10);
  font-size: 8rem;
  line-height: 1;
  color: rgba(232, 83, 14, 0.07);
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

/* --- Inline arrow link — each service item's own "Learn more" link in
   "Professional Services Consulting Built Around Your Specific Firm".
   .drivers-list doesn't carry a link slot in style.css since its other
   uses (site-wide "what we offer" lists) don't need one — this page's
   version does. Same component as executive-coaching.css's
   .drivers-list__link, rebuilt locally per the per-page-CSS convention. --- */
.drivers-list__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-orange);
  transition: gap var(--transition-fast);
}

.drivers-list__link:hover {
  gap: var(--space-2);
}

/* --- Practice-type blocks — the icon+heading+paragraph unit reused by both
   "Professional Services Business Coaching by Practice Type" (5 items, still
   the always-visible .practice-blocks--accordion below) and "What Makes
   Professional Services Firms Hard to Value" (3 items). Both have
   essay-length, unevenly-sized paragraphs per item — too dense for the
   standard drivers-list grid (icon+one-liner) and, worse, a multi-column
   grid with mismatched item lengths leaves ragged, wildly uneven column
   heights.
   "Hard to Value" now lives inside the shared .trades-tabs/.trade-panel
   click-to-switch tabs (same engine as the homepage's industry tabs,
   style.css + initTradesTabs() in app.js) instead of stacked divider
   sections — each .practice-block sits alone inside its own .trade-panel,
   so the "+ .practice-block" divider rule below only fires for the
   accordion variant, which is still a real adjacent-sibling stack. --- */
.practice-blocks {
  max-width: 820px;
  margin: 0 auto;
}

.practice-block + .practice-block {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.practice-block__heading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.practice-block__heading h3 {
  font-size: var(--fs-lg);
  margin: 0;
}

.practice-block__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-hover));
  color: var(--color-white);
  font-size: var(--fs-md);
}

.practice-block p {
  max-width: none; /* style.css's global p { max-width: 65ch } was capping
    this well short of the 820px box around it — override it here */
  font-size: var(--fs-sm);
  color: var(--color-text-3);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.practice-block p:last-child {
  margin-bottom: 0;
}

/* --- Accordion variant — the "by Practice Type" section behaves as a
   click-to-expand accordion instead of always-visible stacked text; the
   plain heading/paragraph rules above are still used as-is by "Hard to
   Value" (still always-visible), so these are scoped to
   .practice-blocks--accordion only. Mirrors the same click-toggle +
   max-height transition technique app.js already uses for the mobile
   nav's dropdown accordion — professional-services.js drives this one,
   scoped to this page. Stays at the shared .practice-blocks 820px width
   (matching "Hard to Value" above it) — the box itself was never too
   narrow; the real bug was the paragraphs inside it, see the p rule
   below. --- */
.practice-blocks--accordion .practice-block__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.practice-blocks--accordion .practice-block__title {
  flex: 1;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin: 0;
  transition: color var(--transition-fast);
}

.practice-blocks--accordion .practice-block__trigger:hover .practice-block__title {
  color: var(--color-orange);
}

.practice-blocks--accordion .practice-block__chevron {
  flex-shrink: 0;
  color: var(--color-text-4);
  font-size: var(--fs-sm);
  transition: transform var(--transition-base);
}

.practice-blocks--accordion .practice-block.is-open .practice-block__chevron {
  transform: rotate(180deg);
}

.practice-blocks--accordion .practice-block__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.practice-blocks--accordion .practice-block__content-inner {
  padding-top: var(--space-5);
}

.practice-blocks--accordion .practice-block__content p {
  max-width: none; /* style.css's global p { max-width: 65ch } was capping
    this well short of the accordion's own width — override it here */
  font-size: var(--fs-sm);
  color: var(--color-text-3);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.practice-blocks--accordion .practice-block__content p:last-child {
  margin-bottom: 0;
}

/* --- Quote block — this page's pull-quote treatment, same visual idea as
   the-5-ds.css's/executive-coaching.css's .quote-block, rebuilt locally
   per the per-page-CSS convention rather than shared across pages. --- */
.quote-block {
  position: relative;
  max-width: 760px;
  margin: var(--space-8) auto 0;
  padding: var(--space-8) var(--space-10);
  background: linear-gradient(160deg, rgba(232, 83, 14, 0.07), transparent);
  border: 1px solid rgba(232, 83, 14, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quote-block__mark {
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 3rem;
  color: rgba(232, 83, 14, 0.15);
  z-index: 0;
}

.quote-block blockquote {
  position: relative;
  z-index: 1;
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  font-style: italic;
  color: var(--color-text);
  line-height: var(--lh-relaxed);
  text-align: center;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .ps-mark {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  /* Centered by design on tablet/desktop (see base rules above);
     left-aligned on phones only. */
  .ps-hero__content,
  .quote-block blockquote {
    text-align: left;
  }

  .ps-mark {
    font-size: 4.5rem;
  }

  .practice-block__heading,
  .practice-blocks--accordion .practice-block__trigger {
    gap: var(--space-3);
  }

  .practice-block__heading h3,
  .practice-blocks--accordion .practice-block__title {
    font-size: var(--fs-base);
  }

  .quote-block {
    padding: var(--space-6);
  }
}
