/* The Roofing Marketing page: only where its scenes and pictures sit (the patterns are in components.css). */

/* the header: the roofers on the ridge above, the two booked cards low at the right, under the ridge */
.rf-top .phead__media img { object-position: 50% 100%; transform: scale(1.15); transform-origin: 0% 100%; }
.rf-top .phead__pic { position: absolute; right: var(--gutter); bottom: 56px; width: 420px; max-width: none; }
.phead__scene.rf-cards { height: 340px; }
.phead__scene.rf-cards .dmc { left: 30px; } /* the second card hangs 26 px to the left: inside the host */

/* how homeowners choose: her face at the left, the words and her roofer's rating at the right */
.rf-choose .bleed__media img { object-position: 0% 30%; }
.rf-rev { position: relative; max-width: 430px; margin-top: clamp(28px, 3vw, 40px); }
.rf-rev__stop { top: 0; right: 0; }

/* storm and slow season: the rain pouring off the roof edge at the left, the budget in glass at the right */
.rf-season .stage__media img { object-position: 0% 50%; }
.rf-season__shade { background: linear-gradient(270deg, rgba(11, 17, 32, 0.45) 0%, rgba(11, 17, 32, 0) 62%); }
.stage > .rf-cost { right: 18px; top: 50%; width: min(440px, 66%); height: 520px; transform: translateY(-50%); }
.rf-season .split__stop { left: 16px; }

/* the season, booked: the wide roof fitted to the stage; its column below 1090 px */
.ground__scene.rf-roof { height: auto; aspect-ratio: 1100 / 440; max-width: 1100px; margin-inline: auto; }
.rf-booked__stop { top: -52px; }

/* the close: the roofer's face between the words and the plan building at the right */
.rf-close .pclose__media img { object-position: 45% 30%; }
.rf-close .pclose__pic { max-width: 380px; }
.pclose__scene.rf-builder { height: 680px; }

@media (max-width: 1090px) {
  .ground__scene.rf-roof { aspect-ratio: auto; height: 480px; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 1080px) {
  .rf-top .phead__pic { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; }
}
@media (max-width: 900px) {
  .rf-close .pclose__media img { object-position: 100% 30%; } /* the shingles in the low sun behind the tall plan card */
  .rf-top .phead__media img { object-position: 45% 100%; transform: none; }
  .rf-top .phead__in { padding-bottom: 60px; }
  .rf-top .phead__stop { top: auto; bottom: 12px; }
  .rf-choose { padding-bottom: 40px; }
  .rf-rev { margin-top: 420px; } /* her face in the photo between the words and the card; the card rests on the photo */
  .rf-rev__stop { top: -50px; left: 0; right: auto; }
  .rf-choose .bleed__media, .rf-choose .bleed__shade { top: auto; height: 760px; }
  .rf-choose .bleed__media img { object-position: 28% 50%; }
  .rf-choose .bleed__shade { background: linear-gradient(180deg, var(--c-brand-dark) 0%, rgba(11, 17, 32, 0) 18%, rgba(11, 17, 32, 0) 52%, rgba(11, 17, 32, 0.35) 100%); }
  .rf-season .split__pic { height: 700px; }
  .rf-season .stage__media img { object-position: 0% 0%; }
  .stage > .rf-cost { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; height: 540px; transform: none; }
  .rf-close { padding-top: 780px; }
  .rf-close .pclose__pic { max-width: 400px; }
  .pclose__scene.rf-builder { height: 700px; }
}
