:root {
  --navy-950: #031d30;
  --navy-900: #072d47;
  --navy-800: #0a4967;
  --teal-700: #0d6b78;
  --red-700: #c8102e;
  --red-600: #df2038;
  --green-600: #6f914d;
  --ink: #102b3d;
  --muted: #536b7d;
  --line: #cfdae1;
  --surface: #f3f7f8;
  --white: #fff;
  --shadow: 0 18px 45px rgba(3, 29, 48, 0.12);
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-950);
}

.skip-link:focus {
  top: 12px;
}

.job-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.job-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 82px;
  border-bottom: 1px solid rgba(207, 218, 225, 0.9);
  background: rgba(255, 255, 255, 0.97);
}

.job-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  height: 100%;
  margin-inline: auto;
}

.job-brand {
  display: block;
  width: 174px;
  height: 62px;
}

.job-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.job-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
  font-size: 0.875rem;
  font-weight: 750;
}

.job-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.job-nav a:hover,
.job-nav a:focus-visible {
  color: var(--red-700);
}

.job-nav .job-nav__apply {
  min-width: 96px;
  justify-content: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--red-700);
  border: 1px solid var(--red-700);
  border-radius: 4px;
}

.job-nav .job-nav__apply:hover,
.job-nav .job-nav__apply:focus-visible {
  color: var(--white);
  background: #a90d27;
}

.job-hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.job-hero__media,
.job-hero__overlay {
  position: absolute;
  inset: 0;
}

.job-hero__media {
  background-image: url("/assets/careers-hvac-rooftop.png");
  background-position: center 48%;
  background-size: cover;
}

.job-hero__overlay {
  background: rgba(3, 29, 48, 0.82);
}

.job-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 590px;
  padding-block: 72px;
}

.job-eyebrow,
.job-section__label,
.application-panel__eyebrow {
  margin: 0 0 14px;
  color: var(--red-600);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.job-eyebrow {
  color: #fff;
}

.job-eyebrow::before {
  display: inline-block;
  width: 38px;
  height: 3px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--red-600);
  content: "";
}

.job-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.job-hero__summary {
  max-width: 720px;
  margin: 24px 0 32px;
  color: #e6edf1;
  font-size: 1.25rem;
  line-height: 1.55;
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 960px);
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.job-facts > div {
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.job-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.job-facts dt {
  color: #b7c9d3;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.job-facts dd {
  margin: 3px 0 0;
  font-weight: 700;
  line-height: 1.35;
}

.job-hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.job-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.job-button--primary,
.job-button--submit {
  color: var(--white);
  background: var(--red-600);
  border-color: var(--red-600);
}

.job-button--primary:hover,
.job-button--primary:focus-visible,
.job-button--submit:hover,
.job-button--submit:focus-visible {
  background: var(--red-700);
  border-color: var(--red-700);
}

.job-button--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(3, 29, 48, 0.24);
}

.job-button--secondary:hover,
.job-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 74px;
  align-items: start;
  padding-block: 78px 90px;
}

.job-section {
  padding: 0 0 62px;
  border-bottom: 1px solid var(--line);
}

.job-section + .job-section {
  padding-top: 62px;
}

.job-section h2,
.application-panel h2 {
  margin: 0 0 22px;
  color: var(--navy-950);
  font-size: 2rem;
  line-height: 1.2;
}

.job-section h3 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-size: 1rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.job-section p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.job-section__intro {
  max-width: 720px;
}

.job-section--split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 52px;
}

.job-section--tint {
  margin: 0 -32px;
  padding-inline: 32px;
  background: var(--surface);
  border-top: 4px solid var(--green-600);
}

.job-section--closing {
  border-bottom: 0;
}

.job-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.job-checklist,
.job-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-checklist li,
.job-list li {
  position: relative;
  margin: 0;
  padding: 0 0 15px 28px;
  color: var(--muted);
}

.job-checklist li::before,
.job-list li::before {
  position: absolute;
  top: 0.7em;
  left: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--red-600);
  content: "";
  transform: translateY(-50%);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.reward-item {
  padding: 25px;
  background: var(--white);
}

.reward-item h3 {
  text-transform: none;
}

.reward-item p {
  margin: 0;
  font-size: 0.94rem;
}

.job-section--recognition {
  margin-inline: -32px;
  padding-inline: 32px;
  background: var(--surface);
}

.recognition-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 36px;
  align-items: end;
}

.recognition-heading h2,
.recognition-heading p {
  margin-bottom: 0;
}

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.recognition-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(3, 29, 48, 0.07);
}

.recognition-item h3 {
  margin-bottom: 7px;
  font-size: 0.94rem;
  text-transform: none;
}

.recognition-item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.recognition-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 10px;
  color: var(--white);
  text-align: center;
  line-height: 1.05;
}

.recognition-mark strong,
.recognition-mark span {
  display: block;
}

.recognition-mark strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.recognition-mark span {
  margin-top: 6px;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recognition-mark--bbb {
  border: 2px solid #0b6d91;
  border-radius: 6px;
  background: #08739b;
}

.recognition-mark--bbb strong {
  font-size: 1.75rem;
}

.recognition-mark--workplace {
  align-items: flex-start;
  background: linear-gradient(to bottom, var(--red-600) 0 72%, var(--navy-900) 72% 100%);
  text-align: left;
}

.recognition-mark--workplace strong {
  font-size: 0.95rem;
  line-height: 0.95;
}

.recognition-mark--workplace span {
  margin-top: 5px;
  font-size: 0.56rem;
}

.recognition-mark--since {
  border: 5px solid var(--green-600);
  border-radius: 50%;
  background: var(--navy-950);
}

.recognition-mark--since strong {
  font-size: 1.65rem;
}

.recognition-mark--since span {
  margin: 0 0 3px;
}

.recognition-mark--abc {
  border-bottom: 8px solid var(--green-600);
  background: var(--navy-800);
}

.recognition-mark--abc strong {
  font-size: 1.65rem;
}

.application-panel {
  position: sticky;
  top: 110px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red-600);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.application-panel__header {
  padding: 28px 28px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.application-panel__header h2 {
  margin-bottom: 10px;
  font-size: 1.7rem;
}

.application-panel__header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.job-application {
  padding: 27px 28px 30px;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-section legend {
  margin-bottom: 2px;
  padding: 0;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
}

.form-section__note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: block;
  min-width: 0;
  margin-bottom: 17px;
}

.form-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.form-field b,
.consent-field b {
  color: var(--red-700);
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #b7c7d1;
  border-radius: 4px;
  background: var(--white);
  font-size: 0.92rem;
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.resume-input:focus + .resume-upload {
  border-color: var(--teal-700);
  outline: 3px solid rgba(13, 107, 120, 0.16);
  outline-offset: 1px;
}

.form-field__hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.details-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 6px 0 24px;
  padding: 14px 0;
  color: var(--navy-900);
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.details-toggle:hover,
.details-toggle:focus-visible {
  color: var(--red-700);
  background: var(--surface);
}

.details-toggle__icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--navy-800);
  font-size: 1.2rem;
  line-height: 1;
}

.details-toggle__copy {
  display: flex;
  flex-direction: column;
}

.details-toggle__copy strong {
  font-size: 0.9rem;
}

.details-toggle__copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.application-details {
  margin-bottom: 22px;
}

.resume-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.resume-upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: center;
  margin: 14px 0 20px;
  padding: 15px;
  border: 1px dashed #9eb2bf;
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}

.resume-upload:hover,
.resume-upload:focus-within {
  border-color: var(--teal-700);
}

.resume-upload__title {
  font-size: 0.88rem;
  font-weight: 800;
}

.resume-upload__hint,
.resume-upload__name {
  color: var(--muted);
  font-size: 0.72rem;
}

.resume-upload__button {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 7px 10px;
  color: var(--white);
  border-radius: 3px;
  background: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 800;
}

.resume-upload__name {
  grid-column: 1 / -1;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red-700);
}

.form-privacy {
  margin: 13px 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.form-privacy a {
  color: var(--navy-800);
  font-weight: 700;
}

.job-button--submit {
  width: 100%;
}

.job-button--submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: #176438;
}

.form-status[data-state="error"] {
  color: var(--red-700);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.job-footer {
  color: #d9e4ea;
  background: var(--navy-950);
}

.job-footer__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr auto;
  gap: 48px;
  align-items: center;
  padding-block: 38px;
}

.job-footer p {
  margin: 0;
  font-size: 0.82rem;
}

.job-footer a {
  color: var(--white);
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .job-nav a:not(.job-nav__apply) {
    display: none;
  }

  .job-hero h1 {
    font-size: 3.2rem;
  }

  .job-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .job-facts > div:nth-child(n + 3) {
    margin-top: 16px;
  }

  .job-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .application-panel {
    position: static;
    grid-row: 1;
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 72px;
  }

  .job-shell,
  .job-header__inner {
    width: min(calc(100% - 32px), var(--shell));
  }

  .job-header {
    height: 70px;
  }

  .job-brand {
    width: 142px;
    height: 54px;
  }

  .job-nav {
    gap: 0;
  }

  .job-nav .job-nav__apply {
    min-width: 78px;
    min-height: 40px;
    padding: 0 13px;
  }

  .job-hero,
  .job-hero__content {
    min-height: 620px;
  }

  .job-hero__content {
    padding-block: 56px;
  }

  .job-hero h1 {
    font-size: 2.65rem;
  }

  .job-hero__summary {
    font-size: 1.05rem;
  }

  .job-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .job-facts > div,
  .job-facts > div:first-child,
  .job-facts > div:nth-child(3) {
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .job-facts > div:last-child {
    border-bottom: 0;
  }

  .job-hero__actions {
    flex-direction: column;
  }

  .job-button {
    width: 100%;
  }

  .job-layout {
    padding-block: 44px 64px;
  }

  .application-panel__header,
  .job-application {
    padding-inline: 20px;
  }

  .form-grid,
  .job-columns,
  .reward-grid,
  .recognition-heading,
  .recognition-grid,
  .job-section--split,
  .job-footer__inner {
    grid-template-columns: 1fr;
  }

  .job-section--split {
    gap: 16px;
  }

  .job-section,
  .job-section + .job-section {
    padding-block: 48px;
  }

  .job-section:first-child {
    padding-top: 0;
  }

  .job-section h2,
  .application-panel h2 {
    font-size: 1.7rem;
  }

  .job-section--tint {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .job-section--recognition {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .recognition-heading {
    gap: 10px;
  }

  .recognition-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    padding: 15px;
  }

  .recognition-mark {
    width: 84px;
    height: 84px;
  }

  .recognition-mark--workplace strong {
    font-size: 0.86rem;
  }

  .recognition-mark--workplace span {
    margin-top: 3px;
    font-size: 0.5rem;
  }

  .job-footer__inner {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
