/* ==========================================================================
   Service pages — Microsoft-adjacent Fluent system
   Pages: services/discovery-sprint.html, services/copilot-quickstart.html,
          services/agent-kits.html, services/completecare.html,
          services/m365-instanton.html, services/healthcare-ai.html

   Service pages are deliberately quieter than pillar pages (spec Section 6:
   "text + form layouts"). The structure per page is:
     1. Page hero (Fluent navy, .page-hero from components.css)
     2. Service intro / what you get
     3. Week or phase breakdown (uses .numeral-marker / .phase-card)
     4. Microsoft alignment band where applicable
     5. Lead-capture form (.conversion + .form__* from components.css)
     6. Outcome proof (links to the National Mall Gateway case study)

   Tokens only. No raw hex. No side-stripe borders. No translateY on card
   hover. No serif display axes. Shared primitives (.eyebrow, .numeral-marker,
   .pullquote, .callout, .btn--*, .card, .chip, .page-hero, .form__*) live in
   components.css and are referenced, not redefined.

   See DESIGN.md and .impeccable/design.json for the named rules this file
   honors. The Flat-at-Rest, Hover-via-Shadow-Not-Translation, No-Glow,
   Microsoft-600, No-Tracking, One-Voice, and 65ch rules all apply.
   ========================================================================== */


/* ==========================================================================
   PAGE HERO — service-page overrides on the .page-hero base
   ========================================================================== */

.service-hero .page-hero__inner {
  max-width: 880px;
}

.service-hero .page-hero__h1,
.service-hero h1 {
  max-width: 26ch;
}

.service-hero .page-hero__subtitle {
  max-width: 60ch;
  font-size: var(--text-body-lg);
}

.service-hero .page-hero__caption {
  max-width: 60ch;
}


/* ==========================================================================
   SECTION HEADER — shared eyebrow + h2 + lead pattern
   ========================================================================== */

.section__header {
  margin-bottom: var(--space-10);
}

.section__header .eyebrow {
  margin-bottom: var(--space-4);
  justify-content: flex-start;
}

.section__header--center .eyebrow {
  justify-content: center;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
  max-width: 28ch;
  text-wrap: balance;
}

.section__header p {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
  max-width: 60ch;
  margin: 0;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__header--center h2,
.section__header--center p {
  margin-inline: auto;
}


/* ==========================================================================
   DELIVERABLE GRID — what the client receives
   3-up default at desktop, 2-up at tablet, 1-up at mobile.
   Flat at rest, hairline border, Depth-8 shadow on hover. Never translateY.
   ========================================================================== */

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.deliverable-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.deliverable-card:hover,
.deliverable-card:focus-within {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.deliverable-card__label {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-brand-primary);
  letter-spacing: 0;
  margin: 0 0 var(--space-1);
}

.deliverable-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  letter-spacing: 0;
  color: var(--color-ink);
  margin: 0;
  text-wrap: balance;
}

.deliverable-card p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
  margin: 0;
}

.deliverable-card p + p {
  margin-top: var(--space-2);
}

.deliverable-card strong {
  color: var(--color-ink);
  font-weight: var(--fw-semibold);
}

/* Section--alt bands keep the card surface on pure paper for tonal contrast. */
.section--alt .deliverable-card {
  background-color: var(--color-paper);
}


/* ==========================================================================
   PHASE / WEEK CARDS — methodology grid with numeral markers
   Used on services pages for "Week 1 / Week 2 / Closeout" and the
   six-step "How we deliver" sequence on CompleteCare.
   ========================================================================== */

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.phase-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.phase-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.phase-card__numeral {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-light);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-brand-primary);
  margin: 0;
}

.phase-card__weeks,
.phase-card__label {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-brand-primary);
  letter-spacing: 0;
  margin: 0;
}

/* Current-state phase uses the Mission Burnt Orange. Used at most once
   per section to mark "where you are" in a sequence. */
.phase-card--current .phase-card__numeral,
.phase-card--current .phase-card__weeks,
.phase-card--current .phase-card__label {
  color: var(--color-cn-accent);
}

.phase-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  letter-spacing: 0;
  color: var(--color-ink);
  margin: 0;
  text-wrap: balance;
}

.phase-card p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
  margin: 0;
}

.phase-card p + p {
  margin-top: var(--space-1);
}

.phase-card strong {
  color: var(--color-ink);
  font-weight: var(--fw-semibold);
}


/* ==========================================================================
   SERVICE CALLOUT — service-specific override on the canonical .callout
   ========================================================================== */

.service-callout {
  max-width: 960px;
  margin-inline: auto;
  padding: var(--space-7) var(--space-8);
}

.service-callout h2,
.service-callout h3 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  letter-spacing: 0;
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
  max-width: 32ch;
  text-wrap: balance;
}

.service-callout p {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-ink);
  margin: 0;
  max-width: 70ch;
}

.service-callout p + p {
  margin-top: var(--space-4);
}

.service-callout em {
  font-style: italic;
  color: var(--color-ink-soft);
}

.service-callout a {
  color: var(--color-brand-primary);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.service-callout a:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
}


/* ==========================================================================
   FEATURE LIST — restrained checklist with hairline rule prefix
   Used inside .service-callout and elsewhere. No checkmark emoji.
   ========================================================================== */

.feature-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-list li {
  position: relative;
  padding-left: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-ink);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background-color: var(--color-brand-primary);
}

.feature-list li strong {
  color: var(--color-ink);
  font-weight: var(--fw-semibold);
}


/* ==========================================================================
   USE-CASE LIST — small per-row cards (not the deliverable grid pattern)
   Used on services/agent-kits.html "When custom is the right answer" and
   services/healthcare-ai.html "Who this is for".
   ========================================================================== */

.use-case-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.use-case-list li {
  display: block;
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.use-case-list li:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.use-case-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  letter-spacing: 0;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.use-case-list li a {
  color: var(--color-brand-primary);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.use-case-list li a:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
}


/* ==========================================================================
   ENGAGEMENT DETAILS — definition-list spec table
   Used on every service page as the "at a glance" engagement block.
   ========================================================================== */

.engagement-details {
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-7);
  max-width: 760px;
  margin-inline: auto;
}

.engagement-details dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  margin: 0;
}

.engagement-details dt,
.engagement-details dd {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.engagement-details dt:first-of-type,
.engagement-details dd:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.engagement-details dt {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-brand-primary);
  letter-spacing: 0;
  padding-right: var(--space-5);
}

.engagement-details dd {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-ink);
}

.engagement-details dd a {
  color: var(--color-brand-primary);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.engagement-details dd a:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .engagement-details {
    padding: var(--space-6);
  }

  .engagement-details dl {
    grid-template-columns: 1fr;
  }

  .engagement-details dt {
    padding-top: var(--space-4);
    padding-bottom: 0;
  }

  .engagement-details dd {
    padding-top: var(--space-2);
    border-top: 0;
  }

  .engagement-details dt:first-of-type {
    padding-top: 0;
  }
}


/* ==========================================================================
   PROCESS STEPS — six-step "How we deliver" sequence on CompleteCare
   Renders as a grid of numbered cards using the numeral marker pattern.
   Overrides components.css's older indigo-disc step number.
   ========================================================================== */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

/* Override components.css' indigo round disc with a numeral marker. */
.process-step__number,
.process-step .step__number {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-light);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-brand-primary);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  letter-spacing: 0;
  color: var(--color-ink);
  margin: 0;
}

.process-step p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
  margin: 0;
}

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   CONVERSION BLOCK — bottom-of-page lead-capture
   The Discovery Sprint conversion block is the most important surface on
   the entire site (sitewide primary CTA target). It is structured as a
   two-column card at desktop: prose left, form right; stacks at <=960px.
   ========================================================================== */

.conversion {
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  max-width: var(--container-max);
  margin-inline: auto;
}

.section--alt .conversion {
  background-color: var(--color-paper);
}

.conversion__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.conversion__text h2 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
  max-width: 22ch;
  text-wrap: balance;
}

.conversion__text p {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
  margin: 0;
  max-width: 56ch;
}

.conversion__text p + p {
  margin-top: var(--space-4);
}

/* The conversion-block form sits beside the conversion prose. Uses .form /
   .form__* from components.css. */
.form-wrapper {
  position: relative;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
}

.form__group--full {
  grid-column: 1 / -1;
}

/* Width helper for the conversion-block submit button. Replaces inline
   style="width: 100%;" attributes on the original pages. */
.btn--block {
  width: 100%;
}

.form__success {
  display: none;
}

.form__success.is-visible {
  display: block;
}

@media (max-width: 960px) {
  .conversion__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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


/* ==========================================================================
   MICROSOFT ALIGNMENT BAND — inline Microsoft partner badges
   Used on copilot-quickstart, m365-instanton, and healthcare-ai where the
   service maps directly to a named Microsoft program.
   ========================================================================== */

.badge-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  padding: var(--space-6) var(--space-5);
  background-color: var(--color-paper);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  max-width: 960px;
  margin: var(--space-6) auto 0;
}

.badge-inline img {
  height: 56px;
  width: auto;
  object-fit: contain;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .deliverable-grid,
  .phase-grid,
  .use-case-list {
    grid-template-columns: 1fr;
  }

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

  .service-callout {
    padding: var(--space-6);
  }

  .badge-inline {
    gap: var(--space-5);
  }
}
