/* Heartland Healthcare Performance Advisory

   COLOR ROLES
   navy       : name, page titles, nav, dark bands
   steel blue : subheads, rules, links, buttons
   grey       : body text, quiet backgrounds
   white      : main background
   logo uses navy + steel blue to match
*/

:root {
  --navy: #0d355c;
  --navy-deep: #082a49;
  --blue: #2b6fa3;        /* steel blue: subheads, rules, buttons */
  --blue-deep: #1f5a88;   /* hover and small text on pale backgrounds */
  --slate: #48525e;       /* body text (grey) */
  --white: #ffffff;
  --paper: #f2f4f6;       /* light grey band */
  --tint: #e7eff7;        /* pale blue (hero, text on navy) */
  --rule: #d3dae1;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

h3 { color: var(--blue); }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.contact :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand img { width: 3.9rem; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.brand-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--blue); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); }

/* ---------- Hero ---------- */

.hero {
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
  padding-block: 0;
}

.hero-inner {
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem) clamp(3.5rem, 9vw, 6.5rem);
  max-width: 50rem;
}

.audience {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  padding: 0;
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.audience li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: var(--blue);
  margin-inline: 0.85rem;
  vertical-align: -0.1em;
}

.audience-line {
  margin: 0.55rem 0 1.75rem;
  max-width: none;
  font-size: 1.08rem;
  color: var(--slate);
}
/* pages whose hero has no audience list keep their spacing */
.hero-inner > h1:first-child { margin-top: 0; }

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero-lede {
  margin-top: 1.75rem;
  max-width: 40rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate);
}

.btn {
  display: inline-block;
  margin-top: 2.25rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.95rem 1.75rem;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--blue-deep); }

/* on navy bands the button flips to white */
.cta-band .btn,
.contact .btn { background: var(--white); color: var(--navy); }
.cta-band .btn:hover,
.contact .btn:hover { background: var(--tint); }

/* ---------- Sections ---------- */

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 22ch;
}

#focus { background: var(--white); }

/* Areas of focus: two-column rows divided by rules, no cards */
.focus-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
}
.focus-list li {
  border-top: 2px solid var(--blue);
  padding: 1.5rem 0 2.5rem;
}
.focus-list h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.focus-list p { max-width: 34rem; }

/* Second content band on each page */
.why {
  background: var(--paper);
  border-block: 1px solid var(--rule);
}
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.why-grid .section-title { position: sticky; top: 6rem; }

.why-list { margin: 0; padding: 0; list-style: none; }
.why-list li {
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.why-list li:first-child { border-top: 0; padding-top: 0; }
.why-list h3 { font-size: 1.35rem; margin-bottom: 0.55rem; }

/* How we help */
.help-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--blue);
}
.help-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1rem, 5vw, 4rem);
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.help-list h3 { font-size: 1.4rem; }
.project-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.help-list .project-list li { display: block; position: relative; padding: 0 0 0 1.2rem; border-bottom: 0; }
.help-list .project-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.45rem; height: 2px; background: var(--blue); }
.project-list strong { color: var(--navy); font-weight: 600; }
.project-list a { color: var(--blue-deep); text-underline-offset: 3px; }
#projects { scroll-margin-top: 5.5rem; }
.help-list .project-list .project-sub { margin: 0.5rem 0 0; padding-left: 1.4rem; list-style: lower-alpha; display: grid; gap: 0.5rem; }
.help-list .project-list .project-sub li { display: list-item; padding-left: 0.2rem; }
.help-list .project-list .project-sub li::before { content: none; }
.project-sub li::marker { color: var(--blue); font-weight: 600; }

/* Contact */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact .section-title { max-width: 18ch; color: var(--white); }
.contact p.lede {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--tint);
}
.contact-details {
  margin-top: 2.25rem;
  display: grid;
  gap: 0.4rem;
  font-size: 1.05rem;
}
.contact-details a { color: var(--white); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--tint);
  font-size: 0.9rem;
  padding-block: 2rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

/* ---------- Inner pages & shared pieces ---------- */

.page-hero .hero-inner {
  padding-block: clamp(2rem, 4vw, 3rem) clamp(2.75rem, 6vw, 4.5rem);
}
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 20ch;
}

.text-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--navy); }

/* Home: compact overviews that point to the full pages */
.overview {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
}
.overview li {
  border-top: 2px solid var(--blue);
  padding: 1.25rem 0 1.75rem;
}
.overview h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.overview p { max-width: 34rem; }

.cta-band {
  background: var(--navy);
  color: var(--white);
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 24ch; color: var(--white); }
.cta-band p { margin-top: 0.75rem; max-width: 40rem; color: var(--tint); }
.cta-band .btn { margin-top: 0; }

.hero-lede-2 { margin-top: 1.1rem; }
.hero-jump { margin-top: 1.1rem; max-width: 40rem; font-size: 1rem; color: var(--slate); }
.hero-jump a { color: var(--navy); font-weight: 600; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-jump a:hover { text-decoration-color: var(--navy); }

/* ---------- About: bio ---------- */

.bio { background: var(--white); padding-top: clamp(2.75rem, 6vw, 4.5rem); }
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.bio-wrap .bio-body { max-width: 60rem; }
.bio-headshot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.bio-photo {
  float: right;
  width: min(38%, 20rem);
  margin: 0.35rem 0 1.5rem clamp(1.5rem, 4vw, 3rem);
}
.photo-ph {
  aspect-ratio: 4 / 5;
  background: var(--tint);
  border: 2px dashed var(--blue);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  color: var(--blue-deep);
  font-weight: 600;
  text-align: center;
  padding: 1.5rem;
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.bio-name {
  margin-top: 0.6rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.bio-creds {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
}
.bio-role {
  margin-top: 0.9rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--blue);
  font-weight: 600;
  color: var(--navy);
}
.bio-text { margin-top: 1.5rem; }
.bio-text p + p { margin-top: 1.1rem; }
.bio-text::after { content: ""; display: block; clear: both; }
.bio-facts {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
}
.bio-facts div { border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.bio-facts .wide { grid-column: 1 / -1; }
.bio-facts dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.bio-facts dd { margin: 0.3rem 0 0; color: var(--navy); font-weight: 500; }

/* placeholder highlight: remove once real content is in */
.ph { background: #fff3c4; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding-inline: 0.15em; }

/* ---------- Services: expandable areas of focus ---------- */

.section-note { margin-top: 0.9rem; max-width: 40rem; }
.help-list { margin-top: 2.25rem; }
.section-hint { margin-top: 0.75rem; font-size: 0.95rem; font-style: italic; color: var(--blue-deep); }

.accordion { margin-top: 2.25rem; border-bottom: 1px solid var(--rule); }
.accordion details { border-top: 2px solid var(--blue); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.accordion summary::-webkit-details-marker { display: none; }
.acc-head { display: grid; gap: 0.5rem; max-width: 46rem; }
.acc-head h3 { font-size: 1.5rem; }
.acc-sum { color: var(--slate); }
.accordion summary:hover h3 { color: var(--navy); }

.acc-icon {
  flex: none;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.15rem;
  border: 2px solid var(--blue);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.85rem;
  height: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion summary:hover .acc-icon { background: var(--tint); }
.accordion details[open] .acc-icon { background: var(--blue); }
.accordion details[open] .acc-icon::before,
.accordion details[open] .acc-icon::after { background: var(--white); }
.accordion details[open] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.acc-body { padding: 0 0 2.5rem; max-width: 62rem; }
.acc-intro {
  font-size: 1.15rem;
  color: var(--navy);
  max-width: 44rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--tint);
}
.acc-cols {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
}
.acc-body h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.acc-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.acc-body li { position: relative; padding-left: 1.2rem; }
.acc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 2px;
  background: var(--blue);
}
.acc-body .text-link { margin-top: 1.75rem; }
.systems {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper);
  border-left: 3px solid var(--blue);
}
.systems dl { margin: 0; display: grid; gap: 0.85rem; }
.systems dt { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.systems dd { margin: 0.15rem 0 0; font-size: 0.95rem; line-height: 1.6; }
.systems.feature p { margin-bottom: 1rem; max-width: 52rem; }
.systems.feature p.feature-result { margin: 1rem 0 0; font-weight: 600; color: var(--navy); }
.systems.feature strong { color: var(--navy); }
.systems.feature p.feature-sources { margin: 1rem 0 0; font-size: 0.82rem; color: var(--slate); }
.feature-sources a { color: var(--blue-deep); text-underline-offset: 2px; }
.acc-body .systems.feature h4.feature-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.feature-cols { margin-top: 1.5rem; }
.li-sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
  opacity: 0.9;
}

.focus-links {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 3.5vw, 4rem);
}
.focus-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--blue);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--blue);
}
.fl-text { display: grid; gap: 0.35rem; }
.fl-desc {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--slate);
}
.focus-links .arrow { font-family: var(--sans); transition: transform 0.15s ease; }
.focus-links a:hover { color: var(--navy); }
.focus-links a:hover .arrow { transform: translateX(4px); }
.accordion details { scroll-margin-top: 5.5rem; }

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-intro .lede + .lede { margin-top: 1rem; }
.contact-form {
  background: var(--white);
  color: var(--slate);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 2px;
  display: grid;
  gap: 1.15rem;
}
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.req { color: var(--blue); }
.opt { font-weight: 400; color: var(--slate); font-size: 0.9rem; }
.field input,
.field textarea {
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #a9b4bf;
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus,
.field textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.contact .contact-form :focus-visible { outline-color: var(--blue); }
.contact .contact-form .btn { background: var(--blue); color: var(--white); margin-top: 0.25rem; justify-self: start; border: 0; cursor: pointer; }
.contact .contact-form .btn:hover { background: var(--blue-deep); }
.form-note { font-size: 0.85rem; }
.form-alert {
  background: #fdecea;
  border-left: 4px solid #b42318;
  color: #7a1a12;
  padding: 0.8rem 1rem;
  font-weight: 500;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact: headline sized to fit beside the form */
.contact .contact-title { font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 100%; }

/* Contact: call / text / email rows */
.contact-details { justify-items: start; gap: 0.15rem; }
.cd-label { margin-top: 0.9rem; font-weight: 600; color: var(--white); }
.cd-label:first-child { margin-top: 0; }
.contact-details a.cd-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  min-height: 2.75rem;
  color: var(--white);
  text-decoration: none;
}
.cd-row svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--tint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cd-kind { flex: none; width: 2.9rem; font-weight: 600; }
.cd-val { min-width: 0; overflow-wrap: break-word; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.5); }
.cd-row:hover .cd-val { text-decoration-color: var(--white); }
/* email: sits beside its label like the phone rows; if there isn't room,
   the whole address drops to its own line instead of splitting */
.contact-details a.cd-row.cd-stack { flex-wrap: wrap; row-gap: 0.15rem; }
.cd-stack .cd-val { white-space: nowrap; font-size: min(1em, calc((100vw - 40px) / 19.6)); }

/* ---------- Responsive ---------- */

@media (max-width: 52rem) {
  .focus-list,
  .overview { grid-template-columns: 1fr; }
  .why-grid,
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { float: none; width: auto; max-width: 18rem; margin: 0 0 1.5rem; }
  .bio-facts { grid-template-columns: 1fr; }
  .acc-cols,
  .focus-links,
  .contact-grid { grid-template-columns: 1fr; }
  .acc-head h3 { font-size: 1.3rem; }
  .why-grid .section-title { position: static; }
  .help-list li { grid-template-columns: 1fr; gap: 0.6rem; }
}

@media (max-width: 36rem) {
  .field-row { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: flex-start; }
  .nav ul { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 480px) {
  .brand img { width: 3.2rem; }
  .brand-name { font-size: 1.08rem; letter-spacing: 0.04em; }
  .brand-sub { font-size: 0.9rem; }
  .audience { font-size: min(1rem, 3.55vw); }
  .audience li + li::before { margin-inline: 0.35rem; }
  .audience-line { font-size: min(0.9rem, 3.3vw); }
}

.systems p.systems-intro { margin: 0 0 0.6rem; font-size: 0.95rem; }
.acc-body .systems ul.vendor-types { display: block; margin: 0; padding-left: 1.1rem; columns: 3 14rem; column-gap: 2rem; font-size: 0.95rem; line-height: 1.6; }
.acc-body .systems ul.vendor-types li { break-inside: avoid; margin: 0 0 0.2rem; }
