
/* Wyman /offers/ hero. Replaces .page-header.offers; drop the old bg-offer-hero rule. */
.page-header.offers.wy-hero {
  --wy-deep: #0f5f9a;
  --wy-mid: #1f77b6;
  --wy-sky: #4c9cd1;
  --wy-navy: #003a65;
  --wy-yellow: #fcba19;
  --wy-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  text-align: left;
  color: #fff;
  background: linear-gradient(100deg, var(--wy-deep) 0%, var(--wy-mid) 62%, var(--wy-sky) 100%);
}

/* plumbing line-icon pattern from the paid-social ads, fading in from the right */
.wy-hero__icons {
  --wy-tile: min(48vw, 690px);
  --wy-blend: min(18vw, 240px);
  position: absolute;
  z-index: -3;
  inset: 0 0 0 auto;
  width: calc(min(64%, 920px) + 25px);
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 min(28.8vw, 414px));
  mask-image: linear-gradient(to right, transparent, #000 min(28.8vw, 414px));
}
/* two copies of the pattern, cross-faded into each other so there is no visible seam */
.wy-hero__icons::before,
.wy-hero__icons::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--wy-tile);
  background: url("../images/wy-plumbing-icons.webp") 0 0 / 100% auto repeat-y;
}
.wy-hero__icons::before {
  right: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--wy-blend));
  mask-image: linear-gradient(to right, transparent, #000 var(--wy-blend));
}
.wy-hero__icons::after {
  right: calc(var(--wy-tile) - var(--wy-blend));
  background-position: 0 calc(var(--wy-tile) * -0.45);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--wy-blend));
  mask-image: linear-gradient(to left, transparent, #000 var(--wy-blend));
}

/* yellow brush stroke with splatter, lifted from the old Beat the Heat banner */
.wy-hero__brush {
  position: absolute;
  z-index: -2;
  top: 0;
  right: -90px;
  width: min(640px, 52%);
  aspect-ratio: 1197 / 156;
  background: url("../images/wy-brush-yellow.webp") center / 100% 100% no-repeat;
}

.wy-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 24px;
  min-height: 200px;
  padding-top: 30px;
  padding-bottom: 46px;
}

.page-header.offers.wy-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(44px, 5.4vw, 60px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 40, 80, 0.28);
}

.wy-hero__copy p {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.25;
  text-wrap: balance;
}

.wy-hero__mark {
  padding-bottom: 4px;
  background: url("../images/wy-underline.webp") no-repeat left bottom / 100% 5px;
}

/* price tag: navy body, yellow stitched border and sign, same pairing as the coupon headers below */
.wy-hero__tag {
  position: absolute;
  top: 0;
  right: clamp(0px, 3vw, 48px);
  width: clamp(60px, 6.2vw, 88px);
  transform-origin: 50% 15.5%;
  transform: rotate(5deg);
  filter: drop-shadow(0 14px 16px rgba(0, 30, 60, 0.32));
}
.wy-hero__tag svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.wy-tag__cord { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.wy-tag__body { fill: var(--wy-navy); }
.wy-tag__stitch { fill: none; stroke: var(--wy-yellow); stroke-width: 3; stroke-dasharray: 10 8; }
.wy-tag__sign {
  fill: var(--wy-yellow);
  font: 400 190px / 1 "fjalla one", helvetica, arial, sans-serif;
}

/* soft torn edge into the white page */
.page-header.offers.wy-hero .wy-hero__edge {
  position: absolute;
  z-index: 1;
  top: auto;
  left: 0;
  bottom: -1px;
  width: 100%;
  margin: 0;
  height: clamp(20px, 2.7vw, 36px);
  display: block;
}

/* one authored moment on load: the tag swings on its cord and settles */
@keyframes wy-tag-swing {
  from { transform: rotate(-12deg); opacity: 0; }
  8%   { opacity: 1; }
  to   { transform: rotate(5deg); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .wy-hero__tag {
    animation: wy-tag-swing 1.7s linear(0, 0.08, 0.288, 0.572, 0.874, 1.146, 1.35, 1.466, 1.49, 1.435, 1.322, 1.178, 1.031, 0.903, 0.811, 0.764, 0.761, 0.796, 0.856, 0.929, 1, 1.059, 1.1, 1.118, 1.115, 1.095, 1.063, 1.027, 0.993, 0.965, 0.948, 0.941, 0.945, 0.956, 0.973, 0.99, 1.007, 1.019, 1.027, 1.029, 1) 0.15s both;
  }
}

@media (max-width: 767px) {
  .wy-hero__inner { min-height: 0; padding-top: 28px; padding-bottom: 36px; align-items: flex-start; }
  .wy-hero__brush { right: -110px; width: 300px; }
  .wy-hero__tag { right: 8px; width: 54px; }
  .wy-hero__copy { padding-right: 64px; }
}

/* half the white gap between the torn edge and the offers */
.wy-hero + .content-wrapper {
  margin-top: clamp(29px, calc(50px - 1.57vw), 40px);
}