/* Careers page styles. Loaded only by /careers/.
   Keep additions scoped to body.page-careers so nothing leaks into the global sheet. */

/* Hero: on wide viewports, nudge the crop up so the two engineers sit higher in
   the frame, matching how the same photo is framed on /lift-repairs/. Mobile keeps
   the default centre crop, which already frames both engineers and the bench well. */
@media (min-width: 681px) {
  .page-careers .hero--full .hero-media-bg img {
    object-position: 50% 38%;
  }
}

/* Intro: frame the engineer photo as a deliberate image card instead of
   letting the global grid rules stretch it (object-fit was computing to fill). */
.page-careers .careers-intro__grid {
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.page-careers .careers-intro__media {
  display: block;
}

.page-careers .careers-intro__media picture {
  display: block;
  width: 100%;
}

.page-careers .careers-intro__media img {
  display: block;
  width: 100%;
  height: clamp(300px, 30vw, 440px);
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.page-careers .careers-intro__signoff {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

/* Roles: keep the two info cards aligned to the top so the bullet lists line up. */
.page-careers .careers-roles__grid {
  align-items: start;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

/* Register: tighten the copy column rhythm and the bullet list. */
.page-careers .careers-register__grid {
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.page-careers .careers-register__points {
  margin: 1.5rem 0;
}

.page-careers .careers-register__email {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .page-careers .careers-intro__media img {
    height: 260px;
  }
}

/* Process: the horizontal step strip is page-scoped to the emergency page in the
   global sheet, so replicate the container layout here, scoped to careers. The
   per-item/heading styles are generic and already apply. */
.page-careers .repair-flow--strip {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
  border-top: 1px solid var(--light-border, #E2DEE8);
}

.page-careers .repair-flow--strip .repair-flow__item {
  position: relative;
  padding: clamp(24px, 3vw, 36px) clamp(18px, 2.2vw, 28px);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--light-border, #E2DEE8);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
}

.page-careers .repair-flow--strip .repair-flow__item:last-child {
  border-right: 0;
}

.page-careers .repair-flow--strip .repair-flow__step {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1;
  border: 0;
  background: none;
  padding: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  justify-self: start;
}

.page-careers .repair-flow--strip .repair-flow__item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.25;
  margin: 0;
  color: #120F21;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.page-careers .repair-flow--strip .repair-flow__item p {
  margin: 0;
  font-size: 0.9rem;
  color: #4A4458;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .page-careers .repair-flow--strip {
    grid-template-columns: 1fr;
    border-top: 0;
  }
  .page-careers .repair-flow--strip .repair-flow__item {
    border-right: 0;
    border-bottom: 1px solid var(--light-border, #E2DEE8);
    border-left: 3px solid var(--accent);
    padding-left: 24px;
  }
  .page-careers .repair-flow--strip .repair-flow__item:last-child {
    border-bottom: 0;
  }
}

/* CTA: give the careers email the same prominent, bordered treatment as the
   global .cta-takeover__phone link, with an envelope glyph instead of a handset. */
.page-careers .cta-takeover__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 270px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.page-careers .cta-takeover__email::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("/assets/media/icons/email-11.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/media/icons/email-11.svg") center / contain no-repeat;
}

.page-careers .cta-takeover__email:hover,
.page-careers .cta-takeover__email:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  color: var(--white);
}

@media (max-width: 680px) {
  .page-careers .cta-takeover__email {
    width: 100%;
    min-width: 0;
    font-size: 1.05rem;
  }
}
