/* SECTION 1: supplied home-care photograph */
.hero-has-image {
  display: block;
  min-height: calc(66.64vw + 150px);
  padding-top: 0;
  background: var(--ivory);
}

.hero-has-image::after {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  width: 100%;
  height: 66.64vw;
  background: linear-gradient(90deg, rgba(251,248,241,.9) 0%, rgba(251,248,241,.68) 48%, rgba(251,248,241,.18) 75%, rgba(251,248,241,0) 100%);
  pointer-events: none;
  content: "";
}

.hero-has-image .hero-media {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  overflow: hidden;
}

.hero-has-image .hero-media img {
  width: 100%;
  height: auto;
}

.hero-has-image .hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(66.64vw + 150px);
  padding-top: 32px;
  padding-bottom: 138px;
}

.hero-has-image .hero-content .eyebrow,
.hero-has-image .hero-content h1,
.hero-has-image .hero-content .hero-lead {
  width: 61%;
}

.hero-has-image .hero-content .eyebrow {
  margin-bottom: 8px;
  font-size: 8px;
  letter-spacing: .12em;
}

.hero-has-image .hero-content h1 {
  font-size: clamp(21px, 5.8vw, 25px);
  line-height: 1.5;
}

.hero-has-image .hero-content .hero-lead {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.75;
}

.hero-has-image .hero-actions {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
}

@media (min-width: 700px) {
  .hero-has-image {
    display: grid;
    min-height: 720px;
    padding-top: 0;
    grid-template-columns: 1fr;
  }

  .hero-has-image::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    height: auto;
    background: linear-gradient(90deg, rgba(251,248,241,.92) 0%, rgba(251,248,241,.76) 34%, rgba(251,248,241,.15) 57%, rgba(251,248,241,0) 72%);
    pointer-events: none;
    content: "";
  }

  .hero-has-image .hero-media {
    inset: 0;
    height: 100%;
  }

  .hero-has-image .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-has-image .hero-content {
    grid-column: 1;
    grid-row: 1;
    width: min(100% - 64px, 1160px);
    min-height: 0;
    margin-inline: auto;
    padding: 80px 48% 80px 0;
    align-self: center;
  }

  .hero-has-image .hero-content .eyebrow,
  .hero-has-image .hero-content h1,
  .hero-has-image .hero-content .hero-lead {
    width: auto;
  }

  .hero-has-image .hero-content .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: .16em;
  }

  .hero-has-image .hero-content h1 {
    font-size: clamp(44px, 4.3vw, 58px);
    line-height: 1.5;
  }

  .hero-has-image .hero-content .hero-lead {
    margin: 22px 0 27px;
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-has-image .hero-actions {
    position: static;
  }
}

@media (min-width: 1080px) {
  .hero-has-image {
    min-height: min(760px, calc(100svh - 88px));
  }

  .hero-has-image .hero-content {
    padding-right: 47%;
  }
}

/* SECTION 6: massage and acupuncture illustrations */
.method-visual {
  margin: 0 0 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  background: #fff;
}

.method-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

/* SECTION 10: practitioner portrait */
.profile-photo {
  width: min(100%, 330px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: var(--beige);
  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;
  height: auto;
}

@media (min-width: 700px) {
  .profile-photo {
    width: min(100%, 420px);
  }
}

/* SECTION 2: practitioner visiting a client at home */
.visitor-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--beige);
  box-shadow: var(--shadow);
}

.visitor-photo img {
  width: 100%;
  height: auto;
}

/* SECTION 3: six concern illustrations */
.concern-grid article {
  display: grid;
  padding: 18px;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 16px;
  align-items: center;
}

.concern-grid .concern-visual {
  grid-row: 1 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.concern-grid .concern-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.concern-grid article h3,
.concern-grid article p {
  position: static;
  padding: 0;
}

@media (min-width: 1080px) {
  .concern-grid article {
    display: block;
    padding: 22px;
    text-align: center;
  }

  .concern-grid .concern-visual {
    width: min(100%, 170px);
    margin: 0 auto 18px;
  }
}
