/* ============================================================
   Pathway Wellness, Inc. — For Clinics / For Health Plans tracks
   The <body> carries data-track="clinics" or data-track="health-plans".
   Anything marked data-track-only shows on that track only. This works
   with JavaScript off. (js/tracks.js drives the switch.)
   ============================================================ */

body[data-track="clinics"] [data-track-only="health-plans"],
body[data-track="health-plans"] [data-track-only="clinics"] {
  display: none !important;
}

/* --- Track switch (hidden for now) ------------------------ */
.track-switch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem var(--gutter) 0;
  background-color: #E8E8E3;
}

.track-switch[hidden] { display: none; }

.track-switch__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--pathway-green);
  border: 1px solid var(--pathway-green);
  border-radius: 100px;
  padding: 10px 22px;
  transition: background-color 0.2s, color 0.2s;
}

.track-switch__link:hover {
  background-color: rgba(24, 61, 59, 0.08);
}

body[data-track="clinics"] .track-switch__link[data-track-link="clinics"],
body[data-track="health-plans"] .track-switch__link[data-track-link="health-plans"] {
  background-color: var(--pathway-green);
  color: #ffffff;
}

.track-switch__link:focus-visible {
  outline: 3px solid var(--pathway-light-blue);
  outline-offset: 3px;
}

/* Menu jumps to the Health Plans sections stop below the sticky top bar. */
#hp-what-we-do,
#activating-the-last-mile,
#hp-meet-abby,
#hp-star-ratings {
  scroll-margin-top: var(--header-h);
}

/* --- Video section (The Clinical Disconnect, hidden for now) */
.track-video {
  background-color: #E8E8E3;
  padding-block: 120px;
  text-align: center;
}

.track-video[hidden] { display: none; }

.track-video__heading {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 48px;
  font-weight: 300;
  color: var(--pathway-green);
  margin-bottom: 2.5rem;
}

.track-video__player {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  aspect-ratio: 16 / 9;
}

.track-video__player video {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* Opening picture. Set here rather than with the video's poster attribute
   because browsers fetch a poster even when its player is hidden; a
   background in a hidden section is never fetched. The video's own frames
   cover the picture once it plays. */
.track-video__player--clinics {
  background: #000 url('../video/clinics-poster.jpg') center / cover no-repeat;
}

.track-video .btn-primary {
  margin-top: 32px;
}

/* "Tap for sound" button, centered over the silent autoplaying video
   (same look as the Founding Partners page) */
.track-video__sound {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  background-color: rgba(24, 61, 59, 0.88);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s;
}

.track-video__sound:hover {
  background-color: rgba(15, 41, 40, 0.95);
}

.track-video__sound:focus-visible {
  outline: 3px solid var(--pathway-light-blue);
  outline-offset: 3px;
}

.track-video__sound[hidden] { display: none; }

.track-video__sound-icon { flex: none; }

/* --- Activating the Last Mile (Health Plans pillars) ------ */
#activating-the-last-mile {
  padding-top: 160px;
  padding-bottom: 240px;
}

#activating-the-last-mile h2 {
  color: var(--pathway-green);
  margin-bottom: 4rem;
}

/* Three across, with the same up-and-down stagger as the Clinics pillars */
.pillar-grid--three {
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pillar p.pillar__impact {
  margin-top: 16px;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 860px) {
  .track-video { padding-block: 80px; }
  .track-video__heading { font-size: 32px; line-height: 40px; margin-bottom: 2rem; }

  .pillar-grid--three { grid-template-columns: 1fr; }

  #activating-the-last-mile { padding-top: 60px; padding-bottom: 60px; }
  #activating-the-last-mile h2 { font-size: 28px; line-height: 1.2; margin-bottom: 2.5rem; }
}

@media (max-width: 520px) {
  .track-video { padding-block: 48px; }
  #activating-the-last-mile { padding-top: 3rem; padding-bottom: 3rem; }

  .track-video__sound {
    gap: 8px;
    padding: 10px 18px;
    font-size: 1rem;
  }
}
