/* BlueHarbor Freight — careers.css
   Careers page: why + benefits (navy sheet), open roles + application (cream sheet).
   Reuses layout.css (header, hero, sheets, footer) and form.css (fields). */

.hero.no-globe .hero__hint { display: none; }

/* ---------- Why + benefits ---------- */
.why {
  z-index: 2;
  overflow: hidden;
  padding: clamp(76px, 10vw, 150px) 0 calc(var(--r-xl) + clamp(64px, 8vw, 120px));
  background:
    radial-gradient(70% 40% at 88% 0%, rgba(90, 132, 181, .16), rgba(90, 132, 181, 0) 70%),
    linear-gradient(180deg, #1B2F45 0%, #172A3E 55%, #142639 100%);
  box-shadow: 0 -40px 80px -40px rgba(1, 5, 10, .7);
}
.why__intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px clamp(36px, 5vw, 100px); align-items: end; }
.why__head { display: grid; gap: 22px; }
.why__title { font-size: clamp(56px, 7.4vw, 124px); color: var(--cream); }
.why__lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--mist); max-width: 46ch; text-wrap: pretty; }

.perks { display: grid; gap: 14px; margin-top: clamp(56px, 7vw, 100px); }
.perks__label { margin-bottom: 8px; }
.perks__feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.perk {
  --g-tint: rgba(9, 19, 31, .3);
  display: grid;
  align-content: space-between;
  gap: 26px;
  min-height: 132px;
  padding: 22px 22px 20px;
  border-radius: var(--r-lg);
}
.perk__tag { justify-self: start; color: var(--sky-hi); }
.perk--feature { --g-tint: rgba(46, 77, 107, .34); gap: 18px; min-height: 0; padding: clamp(24px, 3vw, 36px); }
.perk__num { font-size: clamp(56px, 6.4vw, 104px); font-weight: 700; font-stretch: 70%; line-height: .86; color: var(--cream); }
.perk__num span { color: var(--sky-hi); }
.perk__text { max-width: 36ch; font-size: clamp(16px, 1.25vw, 18px); color: var(--mist); text-wrap: pretty; }
.perk__text strong { color: var(--cream); font-weight: 600; }

/* Benefits list: one card, grouped by role */
.perks__list { --g-tint: rgba(9, 19, 31, .3); display: grid; padding: 4px clamp(20px, 3vw, 36px); border-radius: var(--r-lg); }
.perks__group { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 12px 28px; align-items: baseline; padding: 20px 0; }
.perks__group + .perks__group { border-top: 1px solid rgba(204, 218, 233, .12); }
.perks__cat { color: var(--sky-hi); }
.perks__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px 32px; }
.perks__items li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--cream); text-wrap: pretty; }
.perks__items li::before { content: ""; flex: none; width: 9px; height: 5px; margin-bottom: 3px; border-left: 1.6px solid var(--sky-hi); border-bottom: 1.6px solid var(--sky-hi); transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 959px) {
  .why__intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .perks__feature { grid-template-columns: minmax(0, 1fr); }
  .perks__group { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0; }
}

/* ---------- Roles + application (cream sheet) ---------- */
.jobs {
  z-index: 3;
  color: var(--ink);
  background: var(--cream);
  padding: clamp(76px, 10vw, 150px) 0 calc(var(--r-xl) + clamp(76px, 10vw, 150px));
  box-shadow: 0 -40px 80px -40px rgba(1, 5, 10, .7);
}
.jobs.sheet::before { box-shadow: inset 0 1px 0 #fff; }
.jobs > .wrap { position: relative; }
.jobs__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.jobs__head > div { display: grid; gap: 22px; }
.jobs__title { font-size: clamp(56px, 7.4vw, 124px); color: var(--ink); }
.jobs__note { max-width: 34ch; font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); text-wrap: pretty; }
.jobs__note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 859px) { .jobs__head { grid-template-columns: minmax(0, 1fr); } }

/* Role accordion (native <details>; js/roles.js animates the height) */
.roles { display: grid; gap: 14px; }
.role { --g-tint: rgba(255, 255, 255, .5); border-radius: var(--r-lg); }
.role__sum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.role__sum::-webkit-details-marker { display: none; }
.role__sum:focus-visible { outline: 2px solid var(--steel-deep); outline-offset: -4px; border-radius: var(--r-lg); }
.role__name { font-size: clamp(34px, 4.4vw, 64px); color: var(--ink); }
.role__line { margin-top: 10px; max-width: 52ch; font-size: clamp(15px, 1.2vw, 17px); color: var(--ink-2); text-wrap: pretty; }
.role__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(31, 53, 80, .06);
  box-shadow: inset 0 0 0 1px rgba(31, 53, 80, .1);
}
.chip--pay { color: var(--cream); background: var(--navy-deep); box-shadow: none; }
.role__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(31, 53, 80, .07);
  box-shadow: inset 0 0 0 1px rgba(31, 53, 80, .1);
  transition: background-color .4s var(--ease-out), transform .6s var(--ease-spring);
}
.role__toggle::before, .role__toggle::after { content: ""; position: absolute; width: 16px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .6s var(--ease-spring); }
.role__toggle::after { transform: rotate(90deg); }
.role__sum:hover .role__toggle { background: rgba(31, 53, 80, .12); }
.role__sum:active .role__toggle { transform: scale(.92); }
.role[open] .role__toggle { background: var(--navy-deep); }
.role[open] .role__toggle::before, .role[open] .role__toggle::after { background: var(--cream); }
.role[open] .role__toggle::after { transform: rotate(0deg); }

.role__panel { overflow: hidden; }
.role__panel.is-sizing { transition: height .6s var(--ease-out); }
.role__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(28px, 4vw, 64px);
  margin: 0 clamp(20px, 3vw, 34px);
  padding: clamp(22px, 2.6vw, 30px) 0 clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(31, 53, 80, .12);
}
.role[open] .role__body > * { animation: role-in .7s var(--ease-out) backwards; }
.role[open] .role__body > :nth-child(2) { animation-delay: .08s; }
@keyframes role-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.role__h { margin-bottom: 6px; }
.reqs li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.reqs li + li { border-top: 1px solid rgba(31, 53, 80, .08); }
.reqs li::before { content: ""; flex: none; width: 9px; height: 5px; margin-bottom: 3px; border-left: 1.6px solid var(--steel); border-bottom: 1.6px solid var(--steel); transform: translateY(-3px) rotate(-45deg); }
.facts { display: grid; align-content: start; gap: 18px; }
.facts dl { display: grid; margin: 0; border-radius: 20px; background: rgba(255, 255, 255, .4); box-shadow: inset 0 0 0 1px rgba(31, 53, 80, .08), inset 0 1px 0 rgba(255, 255, 255, .8); }
.facts dl > div { display: grid; gap: 4px; padding: 13px 16px; }
.facts dl > div + div { border-top: 1px solid rgba(31, 53, 80, .07); }
.facts dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.facts .btn { justify-self: start; }
@media (max-width: 799px) { .role__body { grid-template-columns: minmax(0, 1fr); } }

/* Application */
.apply { margin-top: clamp(80px, 10vw, 150px); }
.apply__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 100px); align-items: start; }
.apply__intro { position: sticky; top: calc(var(--safe-t) + 118px); display: grid; gap: 22px; align-content: start; padding-top: 6px; }
.apply__title { font-size: clamp(56px, 7.4vw, 124px); color: var(--ink); }
.apply__lede { max-width: 38ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); text-wrap: pretty; }
.apply__eeo { display: grid; gap: 10px; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(31, 53, 80, .14); }
.apply__eeo p:last-child { max-width: 46ch; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.apply__card { --g-blur: 28px; --g-tint: rgba(255, 255, 255, .42); min-width: 0; padding: clamp(20px, 3.2vw, 44px); border-radius: var(--r-xl); }
@media (max-width: 959px) {
  .apply__grid { grid-template-columns: minmax(0, 1fr); }
  .apply__intro { position: static; }
}

.aform { display: grid; }
.aform__group { display: grid; gap: 18px; min-width: 0; }
.aform__group + .aform__group { margin-top: 36px; padding-top: 32px; border-top: 1px solid rgba(31, 53, 80, .1); }

/* Résumé upload */
.file { position: relative; display: grid; }
.file__input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file__zone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px dashed rgba(31, 53, 80, .28);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .4);
  transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out), box-shadow .45s var(--ease-out);
}
.file__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(63, 109, 154, .12); color: var(--steel-deep); }
.file__icon svg { width: 20px; height: 20px; }
.file__text { display: grid; gap: 2px; min-width: 0; }
.file__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; color: var(--ink); }
.file__text span { font-size: 13px; color: var(--ink-2); }
.file__btn { padding: 9px 14px; border-radius: 999px; background: rgba(31, 53, 80, .07); font-size: 13px; font-weight: 600; color: var(--steel-deep); }
.file:hover .file__zone, .file.is-over .file__zone { border-color: rgba(63, 109, 154, .6); background: rgba(255, 255, 255, .7); }
.file__input:focus-visible + .file__zone { border-style: solid; border-color: rgba(63, 109, 154, .75); box-shadow: 0 0 0 4px rgba(63, 109, 154, .16); }
.file.has-file .file__zone { border-style: solid; border-color: rgba(63, 109, 154, .45); background: rgba(255, 255, 255, .72); }
.file.has-file .file__icon { background: var(--steel); color: #fff; }
.file.is-invalid .file__zone { border-color: rgba(178, 70, 63, .6); background: rgba(255, 251, 250, .82); }

/* Consent checkbox */
.check { position: relative; display: grid; }
.check__input { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.check__label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; text-wrap: pretty; }
.check__box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(31, 53, 80, .25);
  background: rgba(255, 255, 255, .7);
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), transform .5s var(--ease-spring);
}
.check__box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .4s var(--ease-out); }
.check__input:checked + .check__label .check__box { background: var(--steel); border-color: var(--steel); }
.check__input:checked + .check__label .check__box svg { stroke-dashoffset: 0; }
.check__input:active + .check__label .check__box { transform: scale(.9); }
.check__input:focus-visible + .check__label .check__box { box-shadow: 0 0 0 4px rgba(63, 109, 154, .2); border-color: var(--steel); }
.check.is-invalid .check__box { border-color: rgba(178, 70, 63, .7); }
.check.is-invalid .check__label { color: var(--error); }

/* Error rows for the upload + checkbox (form.css covers .field) */
:is(.file, .check).is-invalid > .field__err { grid-template-rows: 1fr; }
:is(.file, .check).is-invalid > .field__err .field__msg { opacity: 1; transform: none; }

.aform__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(24px, 3vw, 34px); padding-top: 22px; border-top: 1px solid rgba(31, 53, 80, .1); }
.aform__nav .lform__note { margin-right: auto; }
.aform.is-sending [data-submit] { pointer-events: none; opacity: .7; }
@media (max-width: 479px) { .aform__nav .btn { flex: 1 1 auto; } }

@media (prefers-reduced-motion: reduce) {
  .role[open] .role__body > * { animation: none; }
  .role__panel.is-sizing { transition: none; }
}
