/* Footer and story layout refinements.
   Source: assets/css/frontend.css lines 7170-7304. Header-specific rules live in 60-header.css. */
.site-footer.hwh-footer::before,
.hwh-footer.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  height: var(--hwh-wave-height, clamp(58px, 6.5vw, 88px));
  background: var(--hwh-wave-top-bg, var(--nude));
}

.site-footer.hwh-footer .footer-wave,
.hwh-footer.site-footer .footer-wave {
  background: var(--hwh-wave-top-bg, var(--nude)) !important;
}

.site-footer.hwh-footer .footer-brand h2,
.hwh-footer-brand h2 {
  max-width: min(100%, 860px);
  font-size: clamp(32px, 5.2vw, 72px);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

@media (max-width: 640px) {
.site-footer.hwh-footer .footer-brand h2,
  .hwh-footer-brand h2 {
    font-size: clamp(30px, 12vw, 46px);
    line-height: 1.04;
  }

  .hwh-why-choose .values-grid {
    grid-template-columns: 1fr;
    gap: var(--hwh-why-mobile-gap, 18px);
  }
}

.hwh-story-richtext p {
  margin: 0 0 1em;
}

.hwh-story-richtext p:last-child {
  margin-bottom: 0;
}

.hwh-story-richtext strong {
  font-weight: 900;
}

.hwh-story-richtext em {
  font-style: italic;
}

.hwh-story-richtext a {
  color: var(--gold);
  text-decoration: none !important;
  border-bottom: 1px solid currentColor;
}

.hwh-story-longform {
  --hwh-story-image-width: 42%;
}

.hwh-story-longform-grid {
  grid-template-columns: minmax(240px, var(--hwh-story-image-width)) minmax(0, 1fr);
}

.hwh-story-image-image-right .hwh-story-longform-grid {
  grid-template-columns: minmax(0, 1fr) minmax(240px, var(--hwh-story-image-width));
}

.hwh-story-image-image-right .hwh-story-longform-media {
  order: 2;
}

.hwh-story-image-image-top .hwh-story-longform-grid {
  grid-template-columns: 1fr;
}

.hwh-story-image-image-top .hwh-story-longform-media {
  position: relative;
  top: auto;
}

.hwh-story-item-image-left .hwh-story-editorial-grid article,
.hwh-story-item-image-right .hwh-story-editorial-grid article {
  display: grid;
  grid-template-columns: minmax(160px, .42fr) minmax(0, 1fr);
  align-items: stretch;
}

.hwh-story-item-image-right .hwh-story-editorial-image {
  order: 2;
}

.hwh-story-item-image-left .hwh-story-editorial-image,
.hwh-story-item-image-right .hwh-story-editorial-image {
  height: 100%;
  min-height: 240px;
  margin: -28px 0 -28px -28px;
}

.hwh-story-item-image-right .hwh-story-editorial-image {
  margin: -28px -28px -28px 0;
}

.hwh-story-editorial-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

@media (max-width: 720px) {
.hwh-story-longform-grid,
  .hwh-story-image-image-right .hwh-story-longform-grid,
  .hwh-story-item-image-left .hwh-story-editorial-grid article,
  .hwh-story-item-image-right .hwh-story-editorial-grid article {
    grid-template-columns: 1fr;
  }

  .hwh-story-image-image-right .hwh-story-longform-media,
  .hwh-story-item-image-right .hwh-story-editorial-image {
    order: 0;
  }

  .hwh-story-item-image-left .hwh-story-editorial-image,
  .hwh-story-item-image-right .hwh-story-editorial-image {
    min-height: 0;
    margin: -28px -28px 12px;
  }
}
