/* ==========================================================================
   SPEARPOINT ADVISORS — Marketing Agency 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 (the two
   6-item lists use the shared 2-column layout as-is), .split-panel__grid/
   __content/__visual/__visual-icon, .process-grid/.process-step (base
   3-col layout, used as-is), .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. --- */
.mk-hero {
  padding-top: calc(var(--nav-height) + var(--space-12));
  position: relative;
  z-index: 1;
  background-color: var(--color-bg);
}

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

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

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

.mk-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 Digital Marketing Agency Coach
   Works With" doesn't read as a flat block of paragraphs. --- */
.mk-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
   "Agency Coaching & Advisory Built Around Your Specific Business".
   .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 every other industries/*.css page,
   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);
}

/* --- Three-item variant — style.css's .drivers-list is a 2-column grid;
   "What Strong Agency ROI Actually Looks Like" has 3 items of comparable
   length (unlike professional-services.css's now-retired 3-item
   drivers-list, which had wildly mismatched paragraph counts and was
   converted to stacked accordion blocks instead — these three are close
   enough in length that the grid reads fine), so the 3rd would otherwise
   drop to a new row flush left instead of sitting in one centered row.
   Same fix as for-ceos.css's/the-5-ds.css's .risk-stats--three pattern,
   applied here to .drivers-list. --- */
.drivers-list--three {
  grid-template-columns: repeat(3, 1fr);
}

/* --- Accordion blocks — used twice on this page ("The Metrics That
   Actually Drive Marketing Agency Value" and "Building the Organizational
   Infrastructure That Sets Agency Founders Free"), each with essay-length
   items — the same click-to-expand shape as professional-services.css's
   .practice-blocks--accordion and trades.css's .accordion-blocks
   (built after user feedback that dense always-visible columns of that
   much text read poorly). Reimplemented locally per the per-page-CSS
   convention. Both accordion groups on this page share this one set of
   rules and are driven independently by marketing.js (querySelectorAll
   scoped to .accordion-blocks .accordion-block covers both groups; each
   item's open/closed state is tracked on itself, not per-group). --- */
.accordion-blocks {
  max-width: 820px;
  margin: 0 auto;
}

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

.accordion-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;
}

.accordion-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);
}

.accordion-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);
}

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

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

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

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

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

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

.accordion-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) {
  .mk-mark {
    font-size: 6rem;
  }
}

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

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

  .drivers-list--three {
    grid-template-columns: 1fr;
  }

  .accordion-block__trigger {
    gap: var(--space-3);
  }

  .accordion-block__title {
    font-size: var(--fs-base);
  }

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