/**
 * MedAudPro homepage — HearingTracker clarity + Customer.io boldness.
 * Modular blocks. Mobile-first. Content over chrome.
 */

.mp-front-page .site-main.mp-home {
  background: var(--mp-white);
}

.mp-home-eyebrow {
  margin: 0 0 10px;
  color: var(--mp-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mp-home-section-head {
  margin-bottom: 22px;
}

.mp-home-section-head h2 {
  margin: 0;
  color: var(--mp-navy);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.mp-home-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.mp-home-section-link {
  color: var(--mp-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mp-home-section-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lead */
.mp-home-lead {
  padding: clamp(28px, 4.5vw, 56px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--mp-border-light);
}

.mp-home-lead__intro {
  margin-bottom: clamp(24px, 3vw, 36px);
  max-width: 720px;
}

.mp-home-lead__trust {
  margin: 0;
  color: var(--mp-navy);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.mp-home-lead__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.mp-home-lead .mp-editorial-featured__media {
  margin-bottom: 18px;
  border-radius: 12px;
}

.mp-home-lead .mp-editorial-featured__title {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
  font-weight: 600;
}

.mp-home-lead .mp-editorial-featured__excerpt {
  font-size: 17px;
  line-height: 1.55;
  max-width: 36em;
}

.mp-home-lead__rail {
  padding-top: 2px;
}

.mp-home-lead__rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mp-border-light);
}

.mp-home-lead__rail-label {
  color: var(--mp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mp-home-lead__rail-head a {
  color: var(--mp-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mp-home-lead__list .mp-article-list-item {
  padding: 15px 0;
}

.mp-home-lead__list .mp-article-list-item__title {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.mp-home-empty {
  padding: clamp(64px, 10vw, 100px) 0;
}

.mp-home-empty h1 {
  margin: 0 0 12px;
  max-width: 16ch;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.05em;
}

.mp-home-empty p {
  margin: 0;
  max-width: 36em;
  color: var(--mp-muted);
  font-size: 17px;
}

/* Pathways — HearingTracker "How can we help?" energy */
.mp-home-pathways {
  padding: clamp(36px, 5vw, 56px) 0;
  background: var(--mp-cream);
  border-bottom: 1px solid var(--mp-border-light);
}

.mp-home-pathways__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-home-pathway {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 20px 18px 22px;
  border: 1px solid var(--mp-border-light);
  border-radius: 12px;
  background: var(--mp-white);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.mp-home-pathway:hover {
  border-color: rgba(47, 120, 189, 0.35);
  transform: translateY(-1px);
}

.mp-home-pathway__label {
  color: var(--mp-navy);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.mp-home-pathway__desc {
  color: var(--mp-muted);
  font-size: 14px;
  line-height: 1.45;
}

.mp-home-pathway__go {
  margin-top: auto;
  color: var(--mp-blue);
  font-size: 18px;
  line-height: 1;
}

/* Formats */
.mp-home-formats {
  padding: 0;
  border-bottom: 1px solid var(--mp-border-light);
  background: var(--mp-white);
}

.mp-home-formats__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 0;
}

.mp-home-formats__label {
  color: var(--mp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mp-home-formats__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-home-formats__row li {
  display: inline-flex;
  align-items: center;
}

.mp-home-formats__row li:not(:last-child)::after {
  content: '';
  width: 1px;
  height: 12px;
  margin: 0 14px;
  background: var(--mp-border);
}

.mp-home-formats__row a {
  color: var(--mp-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.mp-home-formats__row a:hover {
  color: var(--mp-blue);
}

/* Media */
.mp-home-media {
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--mp-border-light);
}

.mp-home-media__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}

.mp-home-media__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: var(--mp-light);
}

.mp-home-media__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-home-media__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(23, 37, 79, 0.92);
}

.mp-home-media__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

.mp-home-media__copy h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.mp-home-media__copy h3 a {
  color: var(--mp-navy);
  text-decoration: none;
}

.mp-home-media__copy h3 a:hover {
  color: var(--mp-blue);
}

.mp-home-media__copy p {
  margin: 0 0 16px;
  color: var(--mp-muted);
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-home-media__link {
  color: var(--mp-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.mp-home-media__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Join */
.mp-home-join {
  padding: clamp(36px, 5vw, 56px) 0;
  background: var(--mp-navy);
  color: #fff;
}

.mp-home-join__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
}

.mp-home-join__copy {
  flex: 1 1 280px;
  max-width: 560px;
}

.mp-home-join h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.04em;
}

.mp-home-join p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.mp-home-join .mp-btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--mp-navy);
}

.mp-home-join .mp-btn-primary:hover {
  background: var(--mp-cream);
  border-color: var(--mp-cream);
  color: var(--mp-navy);
}

@media (max-width: 1080px) {
  .mp-home-pathways__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mp-home-lead__layout,
  .mp-home-media__row {
    grid-template-columns: 1fr;
  }

  .mp-home-lead__rail {
    order: 2;
  }

  .mp-home-section-head--row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .mp-home-pathways__grid {
    grid-template-columns: 1fr;
  }

  .mp-home-pathway {
    min-height: 0;
  }

  .mp-home-formats__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mp-home-formats__row li:not(:last-child)::after {
    margin: 0 10px;
  }

  .mp-home-join__inner {
    align-items: stretch;
  }

  .mp-home-join .mp-btn {
    width: 100%;
  }
}
