/**
 * DocuPOW — Solutions: Healthcare page styles
 * (page-templates/solution-healthcare.php only).
 *
 * Scope: everything lives under .page-sol-healthcare (BEM). Global chrome,
 * container, buttons, links and scroll-reveal come from main.css — this file
 * adds the short white-canvas layout (hero + pains + CTA) and the hero
 * entrance motion only. NO gradient borders on this page (budget 0): the
 * hero visual is the export's flat placeholder panel — hairline border only.
 *
 * Light-canvas contrast contract (tokens only — zero new hexes):
 *  - Hero eyebrow is 13px mono semibold var(--indigo) — 11.52:1 on white (AA).
 *  - h2 headings are var(--indigo) — 11.52:1 on white (AA).
 *  - Subhead, lead, body copy and the mono visual caption are
 *    var(--text-muted) — 9.34:1 on white, 8.70:1 on --gray (AA).
 *  - h1 / h3 are var(--ink) — 16.68:1 on white (AA).
 *  - The pain-card var(--err) icons and the techblue visual glyph are
 *    decorative, non-text accents (aria-hidden) — the adjacent text carries
 *    the meaning, so the text contrast rule does not apply to them.
 *
 * Motion contract (transform/opacity only — STANDARD tier):
 *  - Hidden "entrance" base states sit inside
 *    @media (prefers-reduced-motion: no-preference), so with reduced motion
 *    (or if solution-healthcare.js never runs) everything is visible.
 *    NO floats, NO bobs, NO count-ups, NO loops on this page — the ONE
 *    bespoke moment is the hero .is-ready entrance.
 *  - solution-healthcare.js hooks: .is-ready on .page-sol-healthcare__hero
 *    (staged copy entrance: eyebrow/h1/subhead/lead/CTAs + visual). main.js
 *    owns [data-dp-reveal] and the stagger delays (the page JS clears the
 *    inline delays post-reveal so hover lifts are never postponed).
 *  - Card hover lifts use the standalone `translate` property (never
 *    `transform`) so they can never fight the reveal's transform.
 *  - A final prefers-reduced-motion: reduce block forces every animated
 *    element fully visible and static (belt-and-braces over main.css).
 */

/* =========================================================================
   Page scope — light canvas, section rhythm
   ========================================================================= */
.page-sol-healthcare {
  overflow-x: clip; /* insurance: nothing may cause horizontal scroll @320px */
}

/* 96px section padding on desktop, 64px under 768. */
.page-sol-healthcare__hero,
.page-sol-healthcare__pain,
.page-sol-healthcare__cta {
  padding-block: var(--space-7);
}

@media (max-width: 767.98px) {
  .page-sol-healthcare__hero,
  .page-sol-healthcare__pain,
  .page-sol-healthcare__cta {
    padding-block: var(--space-6);
  }
}

/* Shared h2 — headline-lg (36/1.2/-0.01em/600) in Royal Indigo (11.52:1 on
   white — AA). */
.page-sol-healthcare__pain h2,
.page-sol-healthcare__cta h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--indigo);
}

/* =========================================================================
   S1 — Hero (copy left / placeholder visual right; copy-first <1024)
   ========================================================================= */
.page-sol-healthcare__hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: center;
}

.page-sol-healthcare__hero-grid > * {
  min-width: 0;
}

/* <1024 — single column; copy stacks first (source order). */
@media (max-width: 1023.98px) {
  .page-sol-healthcare__hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Eyebrow — mono technical label in Royal Indigo per the export's
   text-secondary (11.52:1 on white — AA at 13px semibold). */
.page-sol-healthcare__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: var(--space-2);
}

/* The single h1 — headline-xl (64/1.1/-0.02em/700) in Ink per the export. */
.page-sol-healthcare__title {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

/* headline-md subhead (24/1.3/500), muted per the export's
   on-surface-variant. */
.page-sol-healthcare__subhead {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

/* body-lg lead. */
.page-sol-healthcare__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 672px;
  margin-bottom: var(--space-4);
}

/* CTA pair — shared by the hero and S3 (S3 centers it below). */
.page-sol-healthcare__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

/* <640 — the button pair stacks full-width. */
@media (max-width: 639.98px) {
  .page-sol-healthcare__cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Hero visual — the export's flat placeholder panel (gray surface, hairline
   border, 12px radius = rounded-lg, min-height 400): a centered column of
   56px techblue glyph over a mono caption. Decorative (aria-hidden), NO
   gradient border (budget 0), no shadow (flat policy — the panel is not a
   floating product screenshot). */
.page-sol-healthcare__visual {
  background-color: var(--gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 400px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
}

/* 56px techblue document-scan glyph (export's 6xl filled document_scanner,
   normalized to the house 2px-stroke outline). */
.page-sol-healthcare__visual-icon {
  display: block;
  color: var(--techblue);
}

.page-sol-healthcare__visual-icon svg {
  display: block;
  width: 56px;
  height: 56px;
}

/* Mono 13 caption — var(--text-muted) is 8.70:1 on --gray (AA). */
.page-sol-healthcare__visual-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-muted);
}

/* =========================================================================
   S2 — Paperwork pains (white canvas, left-aligned header, three cards)
   ========================================================================= */

/* Left-aligned header block per the export (max-w-3xl = 768px). */
.page-sol-healthcare__pain-head {
  max-width: 768px;
  margin-bottom: var(--space-5);
}

.page-sol-healthcare__pain-head h2 {
  margin-bottom: var(--space-2);
}

.page-sol-healthcare__pain-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-sol-healthcare__pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.page-sol-healthcare__pain-grid > * {
  min-width: 0;
}

@media (max-width: 767.98px) {
  .page-sol-healthcare__pain-grid {
    grid-template-columns: 1fr;
  }
}

/* White pain cards — flex column, 8px gap, 24px padding per the export.
   Hover lifts via the standalone `translate` property so it never fights the
   reveal's `transform`; border + lift only, ~180ms, NO shadows (flat
   policy). The reveal stagger's inline transition-delay would postpone the
   first hover — solution-healthcare.js clears it post-reveal. */
.page-sol-healthcare__pain-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition:
    opacity .6s ease,
    transform .6s ease,
    translate .18s ease,
    border-color .18s ease;
}

.page-sol-healthcare__pain-card:hover {
  translate: 0 -6px;
  border-color: var(--techblue);
}

/* Err-tinted decorative icon per the export's text-error (non-text accent;
   markup is aria-hidden — the h3 carries the meaning). */
.page-sol-healthcare__pain-icon {
  display: block;
  color: var(--err);
}

.page-sol-healthcare__pain-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

/* headline-md (24/1.3/500) in Ink. */
.page-sol-healthcare__pain-card h3 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}

.page-sol-healthcare__pain-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =========================================================================
   S3 — Final CTA (white canvas, hairline top border, centered pair)
   ========================================================================= */
.page-sol-healthcare__cta {
  text-align: center;
  /* Hairline delimiter per the export's border-t: S2 and S3 are both white
     and adjacent. */
  border-top: 1px solid var(--border);
}

.page-sol-healthcare__cta h2 {
  max-width: 768px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.page-sol-healthcare__cta .page-sol-healthcare__cta-row {
  justify-content: center;
}

/* =========================================================================
   Mobile type scale (<768) — 64->44, 36->28, 24->20
   ========================================================================= */
@media (max-width: 767.98px) {
  .page-sol-healthcare__title {
    font-size: 44px;
    line-height: 1.1;
  }

  .page-sol-healthcare__pain h2,
  .page-sol-healthcare__cta h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .page-sol-healthcare__subhead {
    font-size: 20px;
    line-height: 1.3;
  }
}

/* =========================================================================
   Motion — entrance base states (no-preference only)
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* Hero entrance — solution-healthcare.js adds .is-ready to the hero on
     init (double rAF); copy rises in with 0/80/160/240/320ms delays and the
     visual panel fades alongside the subhead. */
  .page-sol-healthcare__hero .page-sol-healthcare__eyebrow,
  .page-sol-healthcare__hero .page-sol-healthcare__title,
  .page-sol-healthcare__hero .page-sol-healthcare__subhead,
  .page-sol-healthcare__hero .page-sol-healthcare__lead,
  .page-sol-healthcare__hero .page-sol-healthcare__cta-row,
  .page-sol-healthcare__hero .page-sol-healthcare__visual {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity .5s cubic-bezier(0.16, 1, 0.3, 1),
      transform .5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .page-sol-healthcare__hero .page-sol-healthcare__title {
    transition-delay: 80ms;
  }

  .page-sol-healthcare__hero .page-sol-healthcare__subhead,
  .page-sol-healthcare__hero .page-sol-healthcare__visual {
    transition-delay: 160ms;
  }

  .page-sol-healthcare__hero .page-sol-healthcare__lead {
    transition-delay: 240ms;
  }

  .page-sol-healthcare__hero .page-sol-healthcare__cta-row {
    transition-delay: 320ms;
  }

  .page-sol-healthcare__hero.is-ready .page-sol-healthcare__eyebrow,
  .page-sol-healthcare__hero.is-ready .page-sol-healthcare__title,
  .page-sol-healthcare__hero.is-ready .page-sol-healthcare__subhead,
  .page-sol-healthcare__hero.is-ready .page-sol-healthcare__lead,
  .page-sol-healthcare__hero.is-ready .page-sol-healthcare__cta-row,
  .page-sol-healthcare__hero.is-ready .page-sol-healthcare__visual {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   Reduced motion — every animated element visible and static
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .page-sol-healthcare__hero .page-sol-healthcare__eyebrow,
  .page-sol-healthcare__hero .page-sol-healthcare__title,
  .page-sol-healthcare__hero .page-sol-healthcare__subhead,
  .page-sol-healthcare__hero .page-sol-healthcare__lead,
  .page-sol-healthcare__hero .page-sol-healthcare__cta-row,
  .page-sol-healthcare__hero .page-sol-healthcare__visual {
    opacity: 1;
    transform: none;
  }

  /* No hover lifts — :hover included so this outweighs the hover rule. */
  .page-sol-healthcare__pain-card,
  .page-sol-healthcare__pain-card:hover {
    translate: none;
  }
}

/* -------------------------------------------------------------------------
   Named markup hook that intentionally carries no styles of its own: a
   block-flow copy column sized by the hero grid. Named here so every markup
   class resolves in this sheet (build rule).
   ------------------------------------------------------------------------- */
.page-sol-healthcare__hero-copy {
  /* no-op: block-flow column; layout comes from __hero-grid */
}
