/* Pasture Edge hero (/communities/pasture-edge/).
   One media slot: a still photo today, a background video once data-src is
   filled in on the <video> (see the comment in the page). */

body.whd-page .pehero {
  /* fixed header height (also used by Cherrywood, Granwood and Creek Bank) */
  --pehero-top: 113px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--pehero-top);
  background: #1b1e16;
}

body.whd-page .pehero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

body.whd-page .pehero__media > img,
body.whd-page .pehero__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body.whd-page .pehero__media > video {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.whd-page .pehero.is-video-ready .pehero__media > video {
  opacity: 1;
}

/* The shade travels with the copy, so it still covers the text on any screen
   height and over bright daytime footage. */
body.whd-page .pehero__body {
  padding: 150px var(--gutter, 24px) clamp(32px, 5vh, 64px);
  background: linear-gradient(
    to top,
    rgba(18, 20, 14, 0.9) 0,
    rgba(18, 20, 14, 0.76) 55%,
    rgba(18, 20, 14, 0.62) calc(100% - 150px),
    rgba(18, 20, 14, 0) 100%
  );
}

body.whd-page .pehero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px clamp(32px, 6vw, 112px);
  align-items: end;
  max-width: var(--wh-rail, 1280px);
  margin: 0 auto;
}

body.whd-page .pehero__kicker {
  margin: 0 0 14px;
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f3eee6;
}

body.whd-page .pehero__title {
  margin: 0 0 28px;
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(3.25rem, 1.5rem + 5.4vw, 6.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: none;
  text-wrap: balance;
  color: #fff;
}

body.whd-page .pehero__title span {
  display: block;
  margin-top: 0.4em;
  font-size: 0.34em;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #f3eee6;
}

body.whd-page .pehero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

body.whd-page .pehero__badge {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 16px;
}

body.whd-page .pehero__sub {
  max-width: 44ch;
  margin: 0 0 20px;
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
  color: #f3eee6;
}

body.whd-page .pehero__price {
  max-width: 44ch;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 238, 230, 0.35);
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

/* Pause / play, shown only while there is a video. Doubled class and
   !important beat the Elementor button reset (DESIGN.md). */
body.whd-page .pehero .pehero__pause.pehero__pause {
  position: absolute;
  top: calc(var(--pehero-top) + 16px);
  right: clamp(16px, 3.5vw, 80px);
  min-width: 76px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px !important;
  border: 1px solid rgba(243, 238, 230, 0.6) !important;
  border-radius: 0 !important;
  background: rgba(18, 20, 14, 0.7) !important;
  color: #fff !important;
  font-family: var(--font-sans, "Montserrat", sans-serif) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

body.whd-page .pehero .pehero__pause.pehero__pause[hidden] {
  display: none;
}

body.whd-page .pehero .pehero__pause.pehero__pause:focus-visible {
  outline: 2px solid #c3c79d;
  outline-offset: 2px;
}

/* Phones and small tablets: video on top and uncovered, copy underneath. */
@media (max-width: 860px) {
  body.whd-page .pehero {
    min-height: 0;
    background: #2e3227;
  }
  body.whd-page .pehero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 4 / 3;
    max-height: 62svh;
    width: 100%;
  }
  body.whd-page .pehero__body {
    padding: 28px 24px 36px;
    background: none;
  }
  body.whd-page .pehero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.whd-page .pehero__ctas > a {
    flex: 1 1 100%;
    justify-content: center;
  }
  body.whd-page .pehero__badge {
    width: 56px;
    height: 56px;
  }
  body.whd-page .pehero .pehero__pause.pehero__pause {
    top: calc(var(--pehero-top) + 12px);
    right: 12px;
  }
}

/* The header gets shorter at 720px (see --whd-header-py in wh-ds.css). */
@media (max-width: 720px) {
  body.whd-page .pehero {
    --pehero-top: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.whd-page .pehero__media > video {
    transition: none;
  }
}
