/* =========================================================
   ANYONE HOME / CAREER OPPORTUNITIES — EDITORIAL REDESIGN
   Typography reference: Managers page (Manrope, 700 headings).
   Scoped exclusively to the existing .ah-careers-* Divi 5 classes.
   Replace the ENTIRE previous careers.css with this file.
   ========================================================= */

/* Page-specific tokens: mirrors Managers typography and colors. */
body.page .ah-careers-hero,
body.page .ah-careers-culture,
body.page .ah-careers-photo-intro,
body.page .ah-careers-gallery,
body.page .ah-careers-hiring {
  --ah-c-ink: #09213f;
  --ah-c-navy: #04182a;
  --ah-c-green: #87cf36;
  --ah-c-blue: #076f9c;
  --ah-c-muted: #53677a;
  --ah-c-bg: #f8fbfc;
  font-family: "Manrope", sans-serif !important;
  position: relative;
  isolation: isolate;
}

/* The reference page uses Manrope, not the extra-heavy weight 900. */
.ah-careers-hero :is(h1, h2, h3, p),
.ah-careers-culture :is(h1, h2, h3, p),
.ah-careers-photo-intro :is(h1, h2, h3, p),
.ah-careers-hiring :is(h1, h2, h3, p) {
  font-family: "Manrope", sans-serif !important;
  margin: 0;
  padding: 0;
}
.ah-careers-hero :is(h1, h2, h3),
.ah-careers-culture :is(h1, h2, h3),
.ah-careers-photo-intro :is(h1, h2, h3),
.ah-careers-hiring :is(h1, h2, h3) {
  font-weight: 700 !important;
}
.ah-careers-hero strong,
.ah-careers-culture strong,
.ah-careers-photo-intro strong,
.ah-careers-hiring strong {
  font-weight: 700 !important;
}

.ah-careers-hero .et_pb_row,
.ah-careers-culture .et_pb_row,
.ah-careers-photo-intro .et_pb_row,
.ah-careers-hiring .et_pb_row {
  width: min(90%, 1380px) !important;
  max-width: 1380px !important;
}
.ah-careers-eyebrow p {
  color: var(--ah-c-green) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}
/* Original descriptive text for a CSS background is accessible but not visible. */
.ah-careers-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

/* =========================================================
   01. HERO — deep, photographic, editorial
   ========================================================= */
.ah-careers-hero.et_pb_section {
  min-height: 750px;
  display: flex;
  align-items: center;
  padding: clamp(155px, 12vw, 205px) 0 clamp(100px, 9vw, 145px) !important;
  overflow: hidden;
  background-color: var(--ah-c-navy) !important;
  background-image:
    linear-gradient(
      90deg,
      rgba(4, 24, 42, 0.96) 0%,
      rgba(4, 24, 42, 0.92) 35%,
      rgba(4, 24, 42, 0.38) 100%
    ),
    linear-gradient(0deg, rgba(4, 24, 42, 0.84), transparent 48%),
    url("https://anyonedevelop.wpenginepowered.com/wp-content/uploads/2025/06/65b05f576ae311fb29a56477_careers-team-whoop-axe.jpg") !important;
  background-position:
    center,
    center,
    center 40% !important;
  background-size: cover !important;
}
.ah-careers-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -170px;
  width: min(64vw, 750px);
  aspect-ratio: 1;
  border: 1px solid rgba(135, 207, 54, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.ah-careers-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 150px
  );
  mask-image: linear-gradient(90deg, #000, transparent 85%);
  pointer-events: none;
}
.ah-careers-hero-row.et_pb_row {
  z-index: 2;
  display: flex !important;
  gap: clamp(45px, 6vw, 115px);
  align-items: center;
}
.ah-careers-hero-row > .et_pb_column {
  float: none !important;
  min-width: 0;
}
.ah-careers-hero-row > .et_pb_column:first-child {
  flex: 1.35 1 0;
  width: auto !important;
  margin: 0 !important;
}
.ah-careers-hero-row > .et_pb_column:last-child {
  flex: 1 1 0;
  width: auto !important;
  margin: 0 !important;
}
.ah-careers-hero-title h1 {
  color: #fff !important;
  font-size: clamp(64px, 6.6vw, 108px) !important;
  line-height: 0.99 !important;
  letter-spacing: -2.5px !important;
  text-transform: uppercase;
  margin: 24px 0 28px !important;
  max-width: 850px;
}
.ah-careers-hero-title h1 span.green {
  color: var(--ah-c-green) !important;
}
.ah-careers-hero-description p,
.ah-careers-hero-description p span {
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}
.ah-careers-hero-description {
  max-width: 635px;
}
.ah-careers-hero-cta {
  margin-top: 36px !important;
}
.ah-careers-discover {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 8px;
  background: var(--ah-c-green);
  color: #05233a !important;
  text-decoration: none !important;
  font:
    700 13px/1.2 "Manrope",
    sans-serif !important;
  letter-spacing: 0.8px;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}
.ah-careers-discover:hover {
  background: #9bdd48;
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24);
}
.ah-careers-discover:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.ah-careers-discover span {
  font-size: 20px;
  font-weight: 400;
}
.ah-careers-hero-logo {
  max-width: 440px;
  margin: 0 0 0 auto !important;
  padding: clamp(30px, 4vw, 60px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(5, 31, 53, 0.58);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}
.ah-careers-hero-logo img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ah-careers-hero-sidecopy {
  margin-top: 18px !important;
  text-align: right;
}
.ah-careers-hero-sidecopy p {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: 1.3px;
}
.ah-careers-hero-sidecopy span {
  color: var(--ah-c-green);
  padding: 0 7px;
}

/* =========================================================
   02. CULTURE — light editorial cards, same Managers H2/H3 scale
   ========================================================= */
.ah-careers-culture.et_pb_section {
  padding: clamp(90px, 9vw, 140px) 0 clamp(110px, 10vw, 160px) !important;
  scroll-margin-top: 95px;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 0, #e5f1f5 0, transparent 45%), var(--ah-c-bg) !important;
}
.ah-careers-culture::before {
  content: "";
  position: absolute;
  left: -210px;
  bottom: -410px;
  width: 720px;
  aspect-ratio: 1;
  border: 1px solid rgba(7, 111, 156, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.ah-careers-section-heading {
  position: relative;
  z-index: 1;
  text-align: left;
}
.ah-careers-section-heading .ah-careers-eyebrow {
  text-align: left;
}
.ah-careers-culture-headline h2 {
  color: var(--ah-c-ink) !important;
  font-size: 62px !important;
  line-height: 1.04 !important;
  letter-spacing: -2.2px !important;
  text-align: left !important;
  text-transform: uppercase;
  max-width: 1080px;
  margin: 20px 0 0 !important;
}
.ah-careers-culture-headline h2 span,
.ah-careers-culture-headline h2 .green {
  color: var(--ah-c-blue) !important;
}
.ah-careers-culture-cards.et_pb_row {
  display: flex !important;
  align-items: stretch;
  gap: 26px;
  margin-top: 64px !important;
  position: relative;
  z-index: 1;
}
.ah-careers-culture-cards > .et_pb_column {
  float: none !important;
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 14px 14px 24px !important;
  border: 1px solid #e1eaf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 65px rgba(9, 33, 63, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.ah-careers-culture-cards > .et_pb_column:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 75px rgba(9, 33, 63, 0.12);
}
.ah-careers-culture-photo,
.ah-careers-culture-photo .et_pb_image_wrap {
  display: block;
  width: 100%;
}
.ah-careers-culture-photo {
  overflow: hidden;
  border-radius: 12px;
}
.ah-careers-culture-photo img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1.3 / 1;
  object-fit: contain;
  background: #edf3f6;
}
.ah-careers-culture-copy {
  padding: 27px 15px 8px !important;
  text-align: left;
}
.ah-careers-culture-copy .ah-careers-culture-count {
  color: var(--ah-c-blue) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px;
  margin-bottom: 14px !important;
}
.ah-careers-culture-copy h3 {
  color: var(--ah-c-ink) !important;
  font-size: 31px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.7px !important;
  margin: 0 0 14px !important;
}
.ah-careers-culture-copy p:not(.ah-careers-culture-count) {
  color: var(--ah-c-muted) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  text-align: left !important;
}

/* =========================================================
   03. LIFE AT ANYONE HOME — dark image gallery scene
   ========================================================= */
.ah-careers-photo-intro.et_pb_section {
  padding: clamp(105px, 9vw, 145px) 0 50px !important;
  background: linear-gradient(125deg, #04182a 0%, #072840 100%) !important;
  overflow: hidden;
}
.ah-careers-photo-intro::after {
  content: "";
  position: absolute;
  right: -240px;
  top: -380px;
  width: 780px;
  aspect-ratio: 1;
  border: 1px solid rgba(135, 207, 54, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.ah-careers-photo-headline h2 {
  color: #fff !important;
  font-size: 64px !important;
  font-weight: 700 !important;
  letter-spacing: -2.2px !important;
  line-height: 1.05 !important;
  text-transform: uppercase;
  max-width: 1060px;
  margin: 20px 0 24px !important;
}
.ah-careers-photo-headline h2 span {
  color: var(--ah-c-green) !important;
}
.ah-careers-photo-intro-copy p {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
}
.ah-careers-gallery.et_pb_section {
  padding: 12px 0 clamp(95px, 9vw, 145px) !important;
  background: linear-gradient(125deg, #04182a, #072840) !important;
}
.ah-careers-gallery-row.et_pb_row {
  width: min(94%, 1500px) !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.ah-careers-gallery-row .et_pb_column {
  padding: 0 !important;
}
/* Gallery remains the Divi 5 native Gallery module, referencing all 19 IDs. */
.ah-careers-native-gallery {
  width: 100%;
  margin: 0 !important;
}
.ah-careers-native-gallery .et_pb_gallery_items {
  gap: 16px;
}
.ah-careers-native-gallery .et_pb_gallery_item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #17364b;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.ah-careers-native-gallery .et_pb_gallery_item:hover {
  transform: translateY(-4px);
  border-color: rgba(135, 207, 54, 0.55);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}
.ah-careers-native-gallery .et_pb_gallery_image,
.ah-careers-native-gallery .et_pb_gallery_image a {
  display: block;
  overflow: hidden;
}
.ah-careers-native-gallery .et_pb_gallery_image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 0.4s ease;
}
.ah-careers-native-gallery .et_overlay {
  background: rgba(4, 24, 42, 0.22) !important;
  border-color: var(--ah-c-green) !important;
}

/* =========================================================
   04. HIRING — bright reading surface and framed Paycom widget
   ========================================================= */
.ah-careers-hiring.et_pb_section {
  padding: clamp(100px, 9vw, 145px) 0 clamp(115px, 10vw, 155px) !important;
  background:
    radial-gradient(circle at 3% 10%, #e5f1f5 0, transparent 44%), #f8fbfc !important;
}
.ah-careers-hiring-heading {
  text-align: left;
}
.ah-careers-hiring-title h2 {
  color: var(--ah-c-ink) !important;
  font-size: 62px !important;
  line-height: 1.04 !important;
  letter-spacing: -2.2px !important;
  text-align: left !important;
  text-transform: uppercase;
  margin: 20px 0 20px !important;
}
.ah-careers-hiring-title h2 span {
  color: var(--ah-c-blue) !important;
}
.ah-careers-hiring-description p {
  color: var(--ah-c-muted) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
}
.ah-careers-hiring-job-row.et_pb_row {
  width: min(90%, 1180px) !important;
  max-width: 1180px !important;
  position: relative;
  z-index: 1;
  margin-top: 55px !important;
  padding: 16px !important;
  border: 1px solid #dfe9ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 85px rgba(9, 33, 63, 0.12);
}
.ah-careers-job-frame {
  height: 840px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.ah-careers-job-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Responsive type sizes match Managers (tablet: 50–52, mobile: 38–40).
   ========================================================= */
@media (max-width: 980px) {
  .ah-careers-hero.et_pb_section {
    min-height: auto;
    padding: 145px 0 110px !important;
  }
  .ah-careers-hero-row.et_pb_row {
    gap: 45px;
  }
  .ah-careers-hero-title h1 {
    font-size: 70px !important;
  }
  .ah-careers-hero-description p,
  .ah-careers-hero-description p span {
    font-size: 17px !important;
  }
  .ah-careers-culture-headline h2,
  .ah-careers-hiring-title h2 {
    font-size: 50px !important;
  }
  .ah-careers-photo-headline h2 {
    font-size: 52px !important;
  }
  .ah-careers-culture-cards.et_pb_row {
    gap: 18px;
  }
  .ah-careers-culture-cards > .et_pb_column {
    padding: 10px 10px 18px !important;
  }
  .ah-careers-culture-copy {
    padding: 22px 8px 10px !important;
  }
  .ah-careers-culture-copy h3 {
    font-size: 25px !important;
  }
  .ah-careers-culture-copy p:not(.ah-careers-culture-count) {
    font-size: 15px !important;
  }
}
@media (max-width: 767px) {
  .ah-careers-hero.et_pb_section {
    padding: 135px 0 85px !important;
  }
  .ah-careers-hero-row.et_pb_row {
    display: block !important;
  }
  .ah-careers-hero-row > .et_pb_column {
    width: 100% !important;
  }
  .ah-careers-hero-row > .et_pb_column:last-child {
    margin-top: 45px !important;
  }
  .ah-careers-hero-title h1 {
    font-size: clamp(42px, 9vw, 48px) !important;
    letter-spacing: -1.5px !important;
  }
  .ah-careers-hero-description p,
  .ah-careers-hero-description p span {
    font-size: 15px !important;
  }
  .ah-careers-hero-logo {
    margin: 0 auto !important;
    max-width: 380px;
  }
  .ah-careers-hero-sidecopy {
    text-align: center;
  }
  .ah-careers-culture.et_pb_section {
    padding: 82px 0 100px !important;
  }
  .ah-careers-culture-headline h2,
  .ah-careers-hiring-title h2 {
    font-size: 38px !important;
    letter-spacing: -1.4px !important;
  }
  .ah-careers-photo-headline h2 {
    font-size: 40px !important;
    letter-spacing: -1.4px !important;
  }
  .ah-careers-culture-cards.et_pb_row {
    display: block !important;
    margin-top: 42px !important;
  }
  .ah-careers-culture-cards > .et_pb_column {
    width: 100% !important;
    margin-bottom: 24px !important;
  }
  .ah-careers-culture-copy h3 {
    font-size: 29px !important;
  }
  .ah-careers-culture-copy p:not(.ah-careers-culture-count) {
    font-size: 15px !important;
  }
  .ah-careers-photo-intro.et_pb_section {
    padding: 95px 0 38px !important;
  }
  .ah-careers-gallery.et_pb_section {
    padding-bottom: 100px !important;
  }
  .ah-careers-gallery-row.et_pb_row {
    width: 92% !important;
  }
  .ah-careers-hiring.et_pb_section {
    padding: 95px 0 110px !important;
  }
  .ah-careers-hiring-job-row.et_pb_row {
    width: 94% !important;
    padding: 8px !important;
  }
  .ah-careers-job-frame {
    height: 810px;
  }
  .ah-careers-hiring-description p,
  .ah-careers-photo-intro-copy p {
    font-size: 15px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ah-careers-discover,
  .ah-careers-culture-cards > .et_pb_column,
  .ah-careers-native-gallery .et_pb_gallery_item {
    transition: none !important;
  }
  .ah-careers-discover:hover,
  .ah-careers-culture-cards > .et_pb_column:hover,
  .ah-careers-native-gallery .et_pb_gallery_item:hover {
    transform: none !important;
  }
}
