/* ==========================================================================
   Adapt Practice — Services page stylesheet

   Page-specific components for services.html only.
   This file must be loaded after adapt-practice.css.
   Layout overrides are scoped with the .services-page body class so they
   cannot affect the homepage or the AI at Work page.
   ========================================================================== */

/* ─────────────────────────────────────────────────────────────────────────
   Wider text containers (Services page only)
   ───────────────────────────────────────────────────────────────────────── */
.services-page .section__header {
  max-width: 820px;
}
.services-page .section__intro {
  max-width: 820px;
}

.section__intro-emphasis {
  color: var(--gold-deep);
  font-weight: 600;
}

/* Hero secondary action — the shared .page-hero__actions .text-link rule
   in adapt-practice.css uses white/light text for every page-hero (that
   rule is left untouched so other pages are unaffected). Services uses
   the approved gold secondary-link treatment for dark surfaces instead,
   scoped to this page only. */
.services-page .page-hero__actions .text-link {
  color: var(--gold);
}
.services-page .page-hero__actions .text-link:hover {
  color: var(--gold-hover);
}

/* ─────────────────────────────────────────────────────────────────────────
   Hero diagram
   ───────────────────────────────────────────────────────────────────────── */
.hero-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Understand → Equip → Embed framework
   Wrapper spacing only — the process itself is the shared canonical
   .connected-process component in adapt-practice.css.
   ───────────────────────────────────────────────────────────────────────── */
.framework {
  margin-top: 3rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   Ways to Work Together — engagement path
   Three independent routes a client chooses between, not a time-ordered
   process — so this uses a restrained editorial three-column layout with
   thin column separators, not the connected-process marker/connector
   treatment or a boxed/shadowed panel.
   ───────────────────────────────────────────────────────────────────────── */
.engagement-path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}

.engagement-path__step {
  padding-right: 2.5rem;
  border-right: 1px solid var(--border);
}
.engagement-path__step:last-child {
  padding-right: 0;
  border-right: none;
}

.engagement-path__level {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.engagement-path__step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.engagement-path__step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────────────────
   Supporting note panel
   ───────────────────────────────────────────────────────────────────────── */
.services-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────────────────
   Service category bands
   ───────────────────────────────────────────────────────────────────────── */
.service-category {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 3.5rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.service-category:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.service-category__marker {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: center;
}

.service-category__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.service-category__intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-basis: 100%;
  margin-top: -0.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   Main services — editorial panel list
   ───────────────────────────────────────────────────────────────────────── */
.service-panel-list {
  display: flex;
  flex-direction: column;
}

/* Each service is a distinct editorial block: alternating warm-neutral
   surfaces (no border, no radius, no shadow — a flat colour bleed, not a
   card) so consecutive services read independently instead of blending
   into one continuous list. The bleed (negative margin matching the
   padding) keeps the text at the same x-position as the headings above,
   so container alignment is preserved. */
.service-panel {
  padding: 2.75rem 1.75rem;
  margin: 0 -1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
/* Alternation is an explicit modifier tied to each service's true 1–9
   position, not :nth-child — .service-panel-list restarts per category
   group, so structural position alone would desync the rhythm across
   group boundaries. Applied to services 02, 04, 06, 08 in the markup. */
.service-panel--alt { background: var(--grey); }
.service-panel-list .service-panel:last-child { border-bottom: none; }

/* Flagship distinction — restrained, not a card. Only the one service
   explicitly carrying the "Flagship Training" .editorial-tag label uses
   this; it just bumps the heading, no box/shadow/background of its own. */
.service-panel--primary .service-panel__heading h3 { font-size: 1.5rem; }

.service-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.service-panel__header .editorial-number { min-width: 2.5rem; }

.service-panel__heading {
  flex: 1;
  min-width: 0;
}
.service-panel__heading h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* Heading links for services with their own landing page — same treatment
   as the homepage's .service-row__title-link. */
.service-panel__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.service-panel__title-link:hover {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.service-panel__title-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.service-panel__lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.service-panel__body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.service-panel__areas-label,
.service-panel__outcome-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.service-panel__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}
.service-panel__list li {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.service-panel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.service-panel__outcome {
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal);
}
.service-panel__outcome p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-panel__outcome .text-link {
  font-size: 0.88rem;
  margin-bottom: 0;
}
.service-panel__note {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Who This Is For — two-column audience layout
   ───────────────────────────────────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.audience-group h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}

/* Restrained scope-clarifying note, matching the .services-note pattern
   already used elsewhere on this page — the navy fill this replaced was
   disproportionately heavy for a boundary-setting note, not a primary
   CTA or commercial object. */
.audience-contrast {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.audience-contrast p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   How Engagements Work
   Page-specific: intentionally distinct from the shared canonical
   .connected-process component (Understand / Equip / Embed, About
   Delivery Model). This section is not part of that consolidation.
   ───────────────────────────────────────────────────────────────────────── */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.process-step {
  text-align: left;
  position: relative;
}

.process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 5px var(--navy);
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 48px;
  right: -2rem;
  height: 2px;
  background: var(--teal);
}

.process-step__content h3 { margin-bottom: 0.5rem; }
.process-step__content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────
   Outcomes — Clarity / Capability / Control
   ───────────────────────────────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.pillar {
  padding-top: 1.5rem;
  border-top: 3px solid var(--gold);
}

.pillar h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.pillar p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.pillar__micro {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────────────────
   FAQs — native details/summary, no JS required
   ───────────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--teal);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 900px) {
  .services-page .faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    align-items: start;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Services responsive rules
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .engagement-path { grid-template-columns: 1fr; gap: 0; }
  .engagement-path__step {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .engagement-path__step:first-child { padding-top: 0; }
  .engagement-path__step:last-child { border-bottom: none; padding-bottom: 0; }

  .service-panel__body { grid-template-columns: 1fr; }

  .audience-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .process-steps { grid-template-columns: 1fr; gap: 0; }
  .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 2rem;
  }
  .process-step__number { flex-shrink: 0; margin-bottom: 0; }
  .process-step:not(:last-child)::after { content: none; }

  .pillars { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .service-panel__list { grid-template-columns: 1fr; }
  .service-panel__header { gap: 1rem; }
  .service-panel {
    padding: 2rem 1.25rem;
    margin: 0 -1.25rem;
  }

  .service-category { margin-top: 2.5rem; padding-top: 1.5rem; }
}
