/* ==========================================================================
   24Care — Health assessment page layout
   Loaded by page-health-assessment.php AFTER c24-base.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — full width, no form

   Pulled up by --header-height so the transparent site header overlays it.
   -------------------------------------------------------------------------- */

.c24-ha-hero {
  position: relative;
  margin-top: calc(var(--header-height) * -1);
  background-color: var(--indigo);
  background-image: var(--c24-hero-image, none);
  background-size: cover;
  background-position: center;
}

.c24-ha-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(61, 62, 89, 0.94) 0%, rgba(61, 62, 89, 0.82) 60%, rgba(61, 62, 89, 0.66) 100%);
}

.c24-ha-hero__inner {
  position: relative;
  padding-top: calc(var(--header-height) + 88px);
  padding-bottom: 96px;
}

.c24-page .c24-ha-hero__headline {
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--white);
  max-width: 22em;
  margin-bottom: 22px;
}

.c24-page .c24-ha-hero__sub {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 44em;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Before you arrive — copy left, image right
   -------------------------------------------------------------------------- */

.c24-ha-before {
  background: var(--white);
  padding: 88px 0;
}

.c24-ha-before__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.c24-ha-before__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   The day — ten test groups in two columns

   Cards rather than a plain list, because each group carries a heading and a
   description and a flat list of twenty alternating elements is hard to scan.
   -------------------------------------------------------------------------- */

.c24-ha-day {
  background: var(--parchment);
  padding: 88px 0;
}

.c24-ha-day__intro {
  max-width: 60ch;
  margin-bottom: 36px;
}

.c24-ha-day__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.c24-ha-test {
  background: var(--white);
  border-radius: 10px;
  padding: 26px 24px;
}

.c24-page .c24-ha-test h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.c24-page .c24-ha-test p {
  font-size: 17px;
  margin: 0;
}

/* The physician consultation closes the day and carries more weight than the
   individual tests, so it spans both columns. */
.c24-ha-test--full {
  grid-column: 1 / -1;
  border-left: 3px solid var(--cinnamon);
}

/* --------------------------------------------------------------------------
   The team — one line, disciplines as chips
   -------------------------------------------------------------------------- */

.c24-ha-team {
  background: var(--white);
  padding: 80px 0;
}

.c24-ha-team__body {
  max-width: 64ch;
  margin-bottom: 28px;
}

.c24-ha-team__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.c24-ha-team__list li {
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.2;
  color: var(--indigo);
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 9px 18px;
}

/* --------------------------------------------------------------------------
   After — what you leave with
   -------------------------------------------------------------------------- */

.c24-ha-after {
  background: var(--parchment);
  padding: 88px 0;
}

.c24-ha-after__body {
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Close — CTA to membership
   -------------------------------------------------------------------------- */

.c24-ha-close {
  background: var(--indigo);
  padding: 88px 0;
  text-align: center;
}

.c24-ha-close__inner {
  max-width: 40em;
  margin: 0 auto;
}

.c24-page .c24-ha-close p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 28px;
}

/* Optional lead form, if one is added to this section later. */
.c24-ha-close__form {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  margin-top: 32px;
  text-align: left;
}

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

@media (max-width: 980px) {
  .c24-ha-before__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .c24-ha-day__grid {
    grid-template-columns: 1fr;
  }

  .c24-ha-test--full {
    grid-column: auto;
  }

  .c24-ha-before,
  .c24-ha-day,
  .c24-ha-team,
  .c24-ha-after,
  .c24-ha-close {
    padding: 56px 0;
  }

  .c24-ha-hero__inner {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 56px;
  }
}

@media (max-width: 600px) {
  .c24-ha-close__form {
    padding: 20px;
  }
}
