/* Meridian Health: full-width hero layout — shared across all pages */

.hero {
  padding: 0;
  position: sticky;
  top: 59px;
  z-index: 0;
  min-height: calc(100vh - 98px);
  overflow: clip;
  display: flex;
  flex-direction: column;
}
.hero > .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.hero-art {
  display: grid !important;
  grid-template-columns: .85fr 1.15fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.hero-art > :first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
  padding-right: clamp(24px, 5%, 56px);
  padding-left: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
}
.hero-art > :last-child {
  overflow: hidden;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.hero-art > :last-child .media-card {
  height: 100%;
  width: 100%;
  aspect-ratio: unset;
  border-radius: 0;
  border: none;
}
.hero-art > :last-child .media-card img,
.hero-art > :last-child > img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
}
.hero-splash .hero-art > :last-child .media-card img,
.hero-splash .hero-art > :last-child > img {
  object-position: center top;
}
.hero-art > :last-child .media-cap {
  bottom: 32px;
}

/* Hero type: compact scale for pathway/practice pages */
.hero-art .hero-copy h1.display,
.hero-art .hero-copy h1 {
  max-width: 380px;
}
.hero .display {
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 14px;
}
.hero .lead {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-65);
}
.hero .body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-65);
  margin-top: 10px;
}
.hero .eyebrow { margin-bottom: 8px; }

/* Sections: solid background at z-index 1 so they slide over the sticky hero */
.section,
.breakout-section,
.cta-section,
.authority,
.full-divider,
footer {
  position: relative;
  z-index: 1;
  background: var(--cream);
}
.section.bleed-stone,
.authority.bleed-stone { background: var(--stone); }
.section.bleed-cream-2 { background: var(--cream-2); }
.section.bleed-dark,
.cta-section.bleed-dark { background: var(--ink); }

/* First section: no top border, upward-casting shadow for scroll-over depth */
main > .section:first-of-type,
main > .breakout-section:first-of-type {
  border-top: none;
}
main > .section:first-of-type::before,
main > .breakout-section:first-of-type::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to top, rgba(32,30,17,0.11) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 1024px) and (min-width: 681px) {
  .hero-art {
    grid-template-columns: .85fr 1.15fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: unset;
    position: relative;
    top: auto;
  }
  .hero-art {
    grid-template-columns: 1fr !important;
    flex: none;
  }
  .hero-art > :first-child {
    padding-top: 40px;
    padding-bottom: 36px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero-art > :last-child {
    height: 280px;
  }
}
@media (max-width: 400px) {
  .hero-art > :last-child {
    height: 240px;
  }
}

/* ── Full-bleed splash hero ── */
.hero-splash {
  top: 0;
  min-height: calc(100vh - var(--hero-chrome, 185px));
}
.hero-splash .hero-art {
  display: block;
  position: relative;
}
.hero-splash .hero-art > :last-child {
  position: absolute;
  inset: 0;
  height: 100% !important;
  z-index: 0;
}
.hero-splash .hero-art > :last-child .media-card {
  height: 100%;
}
.hero-splash .hero-art > :last-child .media-cap {
  display: none;
}
.hero-splash .hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(22,17,8,0.62) 0%,
    rgba(22,17,8,0.38) 48%,
    rgba(22,17,8,0.08) 100%
  );
  pointer-events: none;
}
.hero-splash .hero-art > :first-child {
  position: relative;
  z-index: 2;
  padding-top: calc(59px + 64px);
  padding-bottom: 96px;
  width: 40vw;
  max-width: none;
  flex-shrink: 0;
}
.hero-splash .hero-art .eyebrow {
  color: rgba(249,248,247,0.72);
}
.hero-splash .hero-art .display {
  color: #f9f8f7;
}
.hero-splash .hero-art .lead,
.hero-splash .hero-art .body {
  color: rgba(249,248,247,0.72);
}
.hero-splash .hero-art .btn {
  color: #f9f8f7;
  border-color: rgba(249,248,247,0.5);
}
.hero-splash .hero-art .btn:hover {
  background: rgba(249,248,247,0.15);
  border-color: #f9f8f7;
}
.hero-splash .hero-art .btn-fill {
  background: #f9f8f7;
  color: #231d10;
  border-color: #f9f8f7;
}
.hero-splash .hero-art .btn-fill:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #231d10;
}
.hero-splash .btn-row {
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  /* Stack the image above the hero copy on mobile */
  .hero-splash {
    min-height: unset;
  }
  .hero-splash .hero-art {
    display: flex !important;
    flex-direction: column;
    position: relative;
    min-height: unset;
  }
  .hero-splash .hero-art > :last-child {
    position: relative !important;
    inset: auto !important;
    order: 1;
    width: 100%;
    height: 280px !important;
  }
  .hero-splash .hero-art::after {
    display: none;
  }
  .hero-splash .hero-art > :first-child {
    position: relative;
    order: 2;
    width: 100%;
    max-width: none;
    padding-top: 32px;
    padding-bottom: 40px;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    background: var(--cream);
  }
  .hero-splash .hero-art > :first-child .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-splash .hero-art .eyebrow {
    color: var(--gold-deep);
  }
  .hero-splash .hero-art .display {
    color: var(--ink);
  }
  .hero-splash .hero-art .lead,
  .hero-splash .hero-art .body {
    color: var(--ink-65);
  }
  .hero-splash .hero-art .btn {
    color: var(--ink);
    border-color: var(--ink-25);
  }
  .hero-splash .hero-art .btn:hover {
    background: var(--ink-08);
    border-color: var(--ink);
  }
  .hero-splash .hero-art .btn-fill {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
  }
  .hero-splash .hero-art .btn-fill:hover {
    background: var(--ink-80);
    border-color: var(--ink-80);
    color: var(--cream);
  }
}
