/* K Resourcing — Careers page. Shares tokens and components with styles.css. */

/* ---------- 01 hero ---------- */
.cr-hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--navy);
  color: var(--white);
}
.cr-hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 12, 51, .9) 0%, rgba(7, 12, 51, .55) 55%, rgba(10, 20, 80, .15) 100%); }
.cr-hero-grid {
  position: relative;
  padding: clamp(28px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: end;
}
.cr-hero-text { display: flex; flex-direction: column; gap: 28px; }
.cr-hero h1 { margin: 0; font-size: clamp(52px, 8vw, 124px); line-height: .94; letter-spacing: -.045em; font-weight: 400; }
.cr-hero h1 em { font-style: normal; color: var(--gold); font-weight: 500; }
.cr-hero-text p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--mist-2); }
.cr-hero .btn-outline { border-color: rgba(255, 255, 255, .28); }
.eyebrow .pulse.is-live { background: #4ADE80; }
.cr-facts {
  justify-self: end;
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.cr-fact { padding: 20px 22px; background: rgba(7, 12, 51, .5); display: flex; flex-direction: column; gap: 4px; }
.cr-fact span:first-child { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.03em; line-height: 1; }
.cr-fact span:last-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }

/* ---------- 02 Bjanka ---------- */
.cr-story { max-width: var(--wrap); margin: 0 auto; padding: var(--section-y) var(--pad-x); }
.cr-story-row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cr-story-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cr-story-text h2 { margin: 0; font-size: clamp(40px, 4.8vw, 72px); line-height: .98; letter-spacing: -.035em; font-weight: 500; }
.cr-story blockquote { margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.cr-quote { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.cr-quote-by { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.cr-quote-by span { width: 28px; height: 2px; background: var(--gold); }
.cr-video {
  flex: 2 1 520px;
  min-width: 0;
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  color: var(--ink);
}
.cr-video:hover { color: var(--ink); }
.cr-video > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.cr-video:hover > img { transform: scale(1.03); }
.cr-video-pill { left: 20px; right: auto; }
.cr-video-pill .play { width: 44px; height: 44px; }

/* ---------- 03 perks ---------- */
.cr-perks .dot-panel-glow { top: -240px; right: -160px; opacity: .55; }
.cr-perks-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cr-perks-head h2 { margin: 0; font-size: clamp(40px, 5vw, 76px); line-height: .98; letter-spacing: -.04em; font-weight: 500; max-width: 16ch; }
.cr-perks-head > span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.cr-perk-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.cr-perk {
  cursor: pointer;
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .35s, color .35s, border-color .35s;
}
.cr-perk:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cr-perk-top { display: flex; justify-content: space-between; align-items: center; }
.cr-perk-n { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.cr-perk-gem { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--muted-2); }
.cr-perk h3 { margin: 0; font-size: 23px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.cr-perk-body { display: block; font-size: 14.5px; line-height: 1.6; padding-top: 4px; }
.cr-perk.is-open { background: var(--white); color: var(--ink); border-color: var(--white); }
.cr-perk.is-open .cr-perk-n { color: var(--gold); }
.cr-perk.is-open .cr-perk-gem { background: var(--gold); }

/* ---------- 04 open positions ---------- */
.cr-positions { max-width: 1100px; margin: 0 auto; padding: var(--section-y) var(--pad-x); display: flex; flex-direction: column; gap: 32px; }
.cr-positions-head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.cr-positions-head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); }
.cr-filter { display: flex; flex-direction: column; gap: 12px; }
.cr-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(10, 20, 80, .05);
}
.cr-search:focus-within { border-color: var(--blue); }
.cr-search > span:first-child { font-size: 18px; color: var(--muted); }
.cr-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 14px 0; font-size: 16px; color: var(--ink); }
.cr-search input::-webkit-search-cancel-button { cursor: pointer; }
.cr-count { padding: 10px 14px; border-radius: 12px; background: var(--bg); font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.cr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-chip {
  border: 1px solid var(--line-2);
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 14px;
  background: var(--white);
  color: var(--body);
  transition: all .2s;
}
.cr-chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cr-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cr-jobs { display: flex; flex-direction: column; gap: 12px; }
.cr-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line-2);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.cr-job:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 20, 80, .08); color: var(--ink); }
.cr-job-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cr-job-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cr-job-title > span:first-child { font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.015em; font-weight: 500; }
.cr-open { padding: 4px 10px; border-radius: 99px; background: #DCFCE7; color: #166534; font-size: 12px; font-weight: 500; }
.cr-job-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-job-tags span { font-family: var(--mono); font-size: 11px; padding: 5px 9px; border-radius: 8px; background: var(--bg); color: var(--muted); }
.cr-job-go { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 18px; }
.cr-empty {
  padding: 32px;
  border-radius: 22px;
  border: 1px dashed #C9D2EC;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.cr-empty span + span { font-size: 14px; }

/* ---------- 05 clients ---------- */
.clients.cr-clients { padding: 0 0 clamp(88px, 11vw, 140px); gap: 36px; }

@media (prefers-reduced-motion: reduce) {
  .cr-perk, .cr-job, .cr-video > img, .cr-chip { transition: none; }
}
