/*
Theme Name: Hiup App
Description: Hiup marketing and jobs templates with Secure Custom Fields.
Version: 1.3.2
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: hiupapp
*/

/* Find Jobs sector photo placement */
.jobs-page .listing-hero .sector-art {
  --hiup-bubble-radius: 36px;
}
.jobs-page .listing-hero .sector-art > figure {
  top: calc(var(--sector-y) - var(--hiup-bubble-radius));
}
.jobs-page .listing-hero .sector-art > figure:nth-child(1) {
  --sector-x: 58.6%;
  --sector-y: 76%;
}
.jobs-page .listing-hero .sector-art > figure:nth-child(2) {
  --sector-x: 90.3%;
  --sector-y: 73.1%;
}
.jobs-page .listing-hero .sector-art > figure:nth-child(3) {
  --sector-x: 18.4%;
  --sector-y: 18.4%;
}
.jobs-page .listing-hero .sector-art > figure:nth-child(4) {
  --sector-x: 17.4%;
  --sector-y: 65.1%;
}
.jobs-page .listing-hero .sector-art > figure:nth-child(5):has(> figcaption:empty) {
  display: none;
}
.jobs-page .listing-hero .sector-art > figure:nth-child(6) {
  --sector-x: 57.3%;
  --sector-y: 31.2%;
}
.jobs-page .listing-hero .sector-art > figure:nth-child(7) {
  --sector-x: 89.3%;
  --sector-y: 18.4%;
}
@media (max-width: 991.98px) {
  .jobs-page .listing-hero .sector-art {
    --hiup-bubble-radius: clamp(21px, 5.5vw, 36px);
  }
}
@media (max-width: 575.98px) {
  .jobs-page .listing-hero .sector-art > figure:nth-child(4) {
    --sector-x: max(17.4%, 56px);
  }
  .jobs-page .listing-hero .sector-art > figure:nth-child(7),
  .jobs-page .listing-hero .sector-art > figure:nth-child(2) {
    --sector-x: min(89%, calc(100% - 32px));
  }
}

/* Frame the uploaded Hospitality barista inside the hero mask. */
.hospitality-page .sector-photo-crop > img[src*="/hiup-hospitality-hero-barista"] {
  left: -58%;
  top: 9%;
  width: auto;
  height: 79%;
}

/* Homepage closing CTA background */
.home.page-id-7 .section.closing {
  background-image: linear-gradient(90deg, #2b918a 22%, transparent 62%),
    linear-gradient(rgba(58, 188, 177, .6), rgba(58, 188, 177, .6)),
    url("/wp-content/uploads/2026/11/homepage_closing-CTA-scaled.png"), none;
}
