/* Block 06: health is naturally built into the garden day. */
.gd37-health {
  position: relative;
  overflow: hidden;
  color: var(--gd37-ink);
  background: var(--gd37-cream);
}

.gd37-health__top-wave {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 67px;
}

.gd37-health__inner {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.gd37-health__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, .88fr);
  align-items: start;
  gap: 72px;
}

.gd37-health__kicker,
.gd37-health-programs__kicker {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 14px;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--gd37-ink);
  background: #e8f4df;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gd37-health__kicker span,
.gd37-health-programs__kicker span {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gd37-green);
}

.gd37-health__title {
  margin: 0;
  font-family: "Adigiana 2", cursive;
  font-size: clamp(48px, 4.1vw, 59px);
  font-weight: 400;
  line-height: 1.08;
}

.gd37-health__title span { color: var(--gd37-orange-strong); }

.gd37-health__underline {
  display: block;
  width: 470px;
  max-width: 90%;
  height: 14px;
  margin-top: 4px;
  border-bottom: 6px solid #e8b75d;
  border-radius: 0 0 68% 48%;
  transform: rotate(-1deg);
}

.gd37-health__intro {
  margin: 41px 0 0;
  font-size: 17px;
  line-height: 1.85;
}

.gd37-health-gallery {
  position: relative;
  height: 505px;
  margin-top: 8px;
}

.gd37-health-card {
  --health-accent: var(--gd37-blue);
  --health-outer-mask: none;
  --health-inner-mask: none;
  position: absolute;
  z-index: 2;
  margin: 0;
}

.gd37-health-card__frame,
.gd37-health-card__media {
  position: absolute;
  inset: 0;
}

.gd37-health-card__frame {
  z-index: 0;
  background: var(--health-accent);
  -webkit-mask: var(--health-outer-mask) center / 100% 100% no-repeat;
  mask: var(--health-outer-mask) center / 100% 100% no-repeat;
}

.gd37-health-card__media {
  z-index: 1;
  overflow: hidden;
  background: #d9e5df;
  -webkit-mask: var(--health-inner-mask) center / 100% 100% no-repeat;
  mask: var(--health-inner-mask) center / 100% 100% no-repeat;
}

.gd37-health-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd37-health-card figcaption {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 15px 24px;
  border-radius: 52% 48% 45% 55% / 38% 52% 48% 62%;
  background: rgba(255, 253, 248, .98);
}

.gd37-health-card__dot {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--health-accent);
}

.gd37-health-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.gd37-health-card__copy strong {
  font-family: "Adigiana 2", cursive;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.gd37-health-card__copy small {
  margin-top: 8px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.55;
  text-transform: uppercase;
}

.gd37-health-card--pool {
  --health-outer-mask: url("masks/health-pool-outer.svg");
  --health-inner-mask: url("masks/health-pool-inner.svg");
  top: 8px;
  left: -25px;
  width: 452px;
  height: 405px;
}

.gd37-health-card--pool .gd37-health-card__media img { object-position: center 50%; }
.gd37-health-card--pool figcaption { right: 17px; bottom: -1px; left: 36px; }

.gd37-health-card--salt {
  --health-accent: #f4d89e;
  --health-outer-mask: url("masks/health-salt-outer.svg");
  --health-inner-mask: url("masks/health-salt-inner.svg");
  top: -23px;
  left: 438px;
  width: 424px;
  height: 463px;
}

.gd37-health-card--salt .gd37-health-card__media img { object-position: center 50%; }
.gd37-health-card--salt figcaption { right: 29px; bottom: -6px; left: 36px; }

.gd37-health-card--move {
  --health-accent: #dff0d3;
  --health-outer-mask: url("masks/health-move-outer.svg");
  --health-inner-mask: url("masks/health-move-inner.svg");
  top: 10px;
  right: -10px;
  width: 430px;
  height: 402px;
}

.gd37-health-card--move .gd37-health-card__media img { object-position: center 45%; }
.gd37-health-card--move .gd37-health-card__dot { background: var(--gd37-green); }
.gd37-health-card--move figcaption { right: 13px; bottom: -1px; left: 30px; }

.gd37-health-gallery__waves {
  position: absolute;
  top: -148px;
  right: 35px;
  width: 92px;
  height: 66px;
}

.gd37-health-gallery__sprout {
  position: absolute;
  right: -54px;
  bottom: 89px;
  width: 60px;
  height: 100px;
}

.gd37-health-programs {
  position: relative;
  z-index: 1;
  min-height: 382px;
  margin-top: -7px;
  background: #f8f2e7;
  border-radius: 50% 50% 0 0 / 7% 7% 0 0;
}

.gd37-health-programs__inner {
  position: relative;
  min-height: 382px;
  padding-top: 25px;
  padding-bottom: 90px;
}

.gd37-health-programs__kicker {
  position: relative;
  z-index: 3;
  margin: 0;
  min-width: 325px;
  background: var(--gd37-paper);
  text-transform: none;
}

.gd37-health-programs__kicker span { background: #e8b75d; }

.gd37-health-programs__route {
  position: absolute;
  top: 80px;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 130px;
}

.gd37-health-programs__list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px -10px 0;
  padding: 0;
  list-style: none;
}

.gd37-health-program {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.gd37-health-program:nth-child(2) { transform: translateY(-14px); }
.gd37-health-program:nth-child(3) { transform: translateY(35px); }
.gd37-health-program:nth-child(4) { transform: translateY(-8px); }
.gd37-health-program:nth-child(5) { transform: translateY(34px); }

.gd37-health-program img {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
}

.gd37-health-program span {
  display: grid;
  width: 100%;
  min-height: 61px;
  margin-top: -3px;
  padding: 13px 15px;
  place-items: center;
  border-radius: 999px;
  background: var(--gd37-paper);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.gd37-health-programs__cta {
  position: absolute;
  right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  width: 355px;
  min-height: 73px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 40px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--gd37-orange-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gd37-health-programs__cta span { font-size: 31px; font-weight: 400; }
.gd37-health-programs__cta:hover { background: #e96c12; }

.gd37-health__bottom-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 43px;
}

@media (max-width: 1220px) and (min-width: 981px) {
  .gd37-health-gallery {
    width: 118%;
    margin-bottom: -62px;
    transform: scale(.84);
    transform-origin: top left;
  }

  .gd37-health-programs__list { margin-inline: 0; }
}

@media (max-width: 980px) {
  .gd37-health__top-wave { height: 34px; }
  .gd37-health__inner { width: min(100% - 32px, 720px); padding-top: 58px; }
  .gd37-health__header { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .gd37-health__header > *,
  .gd37-health__heading,
  .gd37-health__intro { min-width: 0; width: 100%; }
  .gd37-health__kicker { padding: 10px 14px; font-size: 10px; }
  .gd37-health__title { font-size: clamp(38px, 9vw, 50px); }
  .gd37-health__underline { width: 410px; max-width: 94%; }
  .gd37-health__intro { margin: 0; font-size: 15px; line-height: 1.65; }
  .gd37-health__intro br { display: none; }
  .gd37-health-gallery {
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 27px;
  }
  .gd37-health-card,
  .gd37-health-card--pool,
  .gd37-health-card--salt,
  .gd37-health-card--move {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }
  .gd37-health-card--pool { aspect-ratio: 461 / 412; }
  .gd37-health-card--salt { aspect-ratio: 439 / 479; }
  .gd37-health-card--move { grid-column: 1 / -1; aspect-ratio: 452 / 412; }
  .gd37-health-card figcaption,
  .gd37-health-card--pool figcaption,
  .gd37-health-card--salt figcaption,
  .gd37-health-card--move figcaption {
    right: 19px;
    bottom: 0;
    left: 19px;
    min-width: 0;
    min-height: 78px;
    max-width: calc(100% - 38px);
    padding: 12px 18px;
  }
  .gd37-health-card__copy strong { font-size: 24px; }
  .gd37-health-card__copy small { font-size: 8.5px; overflow-wrap: anywhere; }
  .gd37-health-gallery__waves,
  .gd37-health-gallery__sprout { display: none; }
  .gd37-health-programs { margin-top: 34px; border-radius: 42% 42% 0 0 / 3% 3% 0 0; }
  .gd37-health-programs__inner { width: min(100% - 32px, 720px); padding-top: 34px; padding-bottom: 116px; }
  .gd37-health-programs__kicker { min-width: 0; font-size: 10px; }
  .gd37-health-programs__route { display: none; }
  .gd37-health-programs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 25px 0 0; }
  .gd37-health-program,
  .gd37-health-program:nth-child(n) { transform: none; }
  .gd37-health-program:last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
  .gd37-health-program span { min-height: 64px; font-size: 9px; }
  .gd37-health-programs__cta { right: 16px; bottom: 35px; width: min(calc(100% - 32px), 405px); min-height: 64px; }
}

@media (max-width: 520px) {
  .gd37-health__title { font-size: 35px; }
  .gd37-health-gallery { grid-template-columns: 1fr; gap: 16px; }
  .gd37-health-card--move { grid-column: 1; }
  .gd37-health-card figcaption,
  .gd37-health-card--pool figcaption,
  .gd37-health-card--salt figcaption,
  .gd37-health-card--move figcaption {
    right: 24px;
    bottom: 3px;
    left: 24px;
    min-height: 73px;
    max-width: calc(100% - 48px);
    gap: 12px;
    padding: 11px 15px;
  }
  .gd37-health-card__dot { flex-basis: 11px; width: 11px; height: 11px; }
  .gd37-health-card__copy strong { font-size: 23px; }
  .gd37-health-card__copy small { margin-top: 6px; font-size: 8px; line-height: 1.45; }
  .gd37-health-programs__list { gap: 14px 10px; }
  .gd37-health-program img { width: 62px; height: 62px; }
  .gd37-health-program span { min-height: 72px; padding-inline: 9px; font-size: 8px; }
  .gd37-health-programs__cta { padding-right: 22px; padding-left: 26px; font-size: 10px; }
}
