/* Shared botanical accents: decorative only, responsive, and intentionally restrained. */
.page-hero,
.quote-section,
.visit,
.site-footer,
.job-hero,
.confirmation__card,
.content-callout,
.future-note,
.future-contact,
.contact-form,
.staff-card,
.value-card,
.party-card,
.job-apply-bar {
  position: relative;
}

.page-hero,
.job-hero,
.quote-section,
.visit,
.site-footer {
  overflow: hidden;
}

/* Airy foliage in the upper corner of interior-page heroes. */
.page-hero::before,
.job-hero::before {
  content: "";
  position: absolute;
  top: -76px;
  right: -34px;
  width: clamp(175px, 23vw, 305px);
  aspect-ratio: 336 / 373;
  background: url("../assets/accents/corner-branch.png") center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}

.page-hero > *,
.job-hero > * {
  position: relative;
  z-index: 1;
}

/* Fine leaf rule below the primary heading on content-led pages. */
.content-copy > h2::after,
.contact-copy > h2::after,
.staff-intro > h2::after,
.birthday-intro > h2::after,
.future-intro > h2::after,
.narrow-copy > h2::after {
  content: "";
  display: block;
  width: 132px;
  height: 27px;
  margin: 19px 0 24px;
  background: url("../assets/accents/leaf-divider.png") left center / contain no-repeat;
}

.staff-intro > h2::after {
  margin-right: auto;
  margin-left: auto;
  background-position: center;
}

#angela-berger > img {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Center the final staff profile when the two-column grid has an odd count. */
.staff-grid > .staff-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 32px) / 2);
  justify-self: center;
}

@media (max-width: 1050px) {
  .staff-grid > .staff-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}

/* Small corner flourishes for cards, forms, and callouts. */
.content-callout::after,
.future-note::after,
.future-contact::after,
.contact-form::after,
.staff-card::after,
.value-card::after,
.party-card::after,
.job-apply-bar::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 42px;
  height: 58px;
  background: url("../assets/accents/small-sprig.png") center / contain no-repeat;
  opacity: .13;
  pointer-events: none;
}

.content-callout,
.future-note,
.future-contact,
.contact-form,
.staff-card,
.value-card,
.party-card,
.job-apply-bar {
  isolation: isolate;
}

.content-callout > *,
.future-note > *,
.future-contact > *,
.contact-form > *,
.staff-card > *,
.value-card > *,
.party-card > *,
.job-apply-bar > * {
  position: relative;
  z-index: 1;
}

/* A paired-leaf mark gives editorial and invitation sections a visual pause. */
.quote-section::before,
.visit::before {
  content: "";
  display: block;
  width: 52px;
  height: 53px;
  margin: 0 auto 18px;
  background: url("../assets/accents/two-leaf-accent.png") center / contain no-repeat;
  opacity: .72;
}

.visit::before {
  position: absolute;
  top: 24px;
  right: clamp(24px, 7vw, 110px);
  margin: 0;
  opacity: .18;
}

/* Confirmation screens receive the same compact leaf mark as the enrollment card. */
.confirmation__card::before {
  content: "";
  display: block;
  width: 48px;
  height: 40px;
  margin: 0 auto 13px;
  background: url("../assets/accents/leaf-mark.png") center / contain no-repeat;
}

/* Quiet botanical texture in every footer. */
.site-footer::before {
  content: "";
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: -105px;
  width: 170px;
  height: 230px;
  background: url("../assets/accents/leaf-cluster.png") center / contain no-repeat;
  opacity: .09;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 112px;
  height: 23px;
  background: url("../assets/accents/leaf-divider.png") center / contain no-repeat;
  opacity: .28;
  transform: translateX(-50%);
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #dce9d7;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
}

.site-footer .footer-social:hover,
.site-footer .footer-social:focus {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .page-hero::before,
  .job-hero::before {
    top: -48px;
    right: -44px;
    width: 160px;
    opacity: .14;
  }

  .content-copy > h2::after,
  .contact-copy > h2::after,
  .staff-intro > h2::after,
  .birthday-intro > h2::after,
  .future-intro > h2::after,
  .narrow-copy > h2::after {
    width: 108px;
    height: 22px;
    margin: 15px 0 20px;
  }

  .quote-section::before {
    width: 44px;
    height: 45px;
    margin-bottom: 14px;
  }

  .site-footer::after {
    left: auto;
    right: 24px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero::before,
  .job-hero::before {
    transform: none;
  }
}
