/* ===================================================================
   Sallaum Lines — Careers page styles
   Loaded only on template-careers.php via sl_enqueue_careers_assets().
   Depends on tokens.css + site.css already being on the page.
   =================================================================== */

/* ---- CAREERS HERO ---- */
.careers-hero {
  background: var(--sl-canvas-soft);
  padding: 220px 0 110px;
  position: relative;
  overflow: hidden;
}
.careers-hero::after {
  content: "";
  position: absolute;
  right: -6%; bottom: -14%;
  width: 40%; height: 80%;
  background: url("../assets/sallaum-mark-red.png") right bottom / contain no-repeat;
  opacity: .04;
  pointer-events: none;
}
.careers-hero__label {
  display: flex; align-items: center; gap: 22px;
  color: var(--sl-fg-muted); font-weight: 700;
  font-size: 26px; letter-spacing: -.2px;
}
.careers-hero__line {
  display: block; width: 64px; height: 1.5px;
  background: var(--sl-ink);
  margin-left: calc(-64px - 22px); flex: none;
}
.careers-hero__title {
  color: var(--sl-red); font-weight: 800;
  font-size: clamp(72px, 10vw, 128px);
  line-height: 1; letter-spacing: -3px; margin: 26px 0 0;
}
.careers-hero__sub {
  color: var(--sl-fg-muted);
  font-size: var(--sl-body-lg-size);
  line-height: 1.6; max-width: 560px; margin: 24px 0 0;
}
@media (max-width: 760px) {
  .careers-hero { padding: 150px 0 72px; }
  .careers-hero__title { font-size: 64px; letter-spacing: -2px; }
  .careers-hero__label { font-size: 20px; }
  .careers-hero__line  { width: 32px; margin-left: 0; }
}

/* ---- INTRO TEXT BLOCK ---- */
.block-text { padding: 88px 0; }
.block-text__heading {
  font-size: clamp(30px, 3.8vw, 52px); font-weight: 800;
  line-height: 1.08; letter-spacing: -1px;
  color: var(--sl-ink); margin: 20px 0 0; max-width: 720px;
}
.block-text__body {
  color: var(--sl-fg-muted);
  font-size: var(--sl-body-lg-size);
  line-height: 1.65; max-width: 640px; margin: 22px 0 0;
}

/* ---- STATS BAND ---- */
.block-stats { background: var(--sl-red); }
.block-stats__grid { display: grid; }
.bstat { padding: 52px 36px; border-left: 1px solid rgba(255,255,255,.22); }
.bstat:first-child { border-left: none; padding-left: 0; }
.bstat__val { font-size: 60px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -2px; }
.bstat__lbl { color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; }
@media (max-width: 760px) {
  .block-stats__grid { grid-template-columns: 1fr 1fr !important; }
  .bstat { padding: 32px 22px; }
  .bstat:nth-child(3) { border-left: none; }
  .bstat__val { font-size: 44px; }
}

/* ---- OPEN POSITIONS ---- */
.positions-section { padding: 96px 0; }
.pos-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.pos-tab {
  font-family: var(--sl-font); font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: var(--sl-r-pill);
  cursor: pointer; background: var(--sl-canvas);
  color: var(--sl-fg-muted); border: 1.5px solid var(--sl-canvas-line);
  transition: all .16s ease; white-space: nowrap;
}
.pos-tab:hover  { border-color: var(--sl-ink); color: var(--sl-ink); }
.pos-tab.is-active { background: var(--sl-ink); color: #fff; border-color: var(--sl-ink); }
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: #fff; border: 1px solid var(--sl-canvas-line);
  border-radius: var(--sl-r-sm); padding: 26px 30px;
  display: flex; align-items: center; gap: 24px;
  transition: transform .2s ease, box-shadow .2s ease; cursor: pointer;
}
.job-card:hover { transform: translateX(5px); box-shadow: var(--sl-shadow-md); }
.job-card__body { flex: 1; min-width: 0; }
.job-card__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.jc-dept {
  background: rgba(233,34,51,.1); color: var(--sl-red);
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--sl-r-pill-sm); text-transform: uppercase; letter-spacing: .5px;
}
.jc-chip {
  background: var(--sl-canvas-soft); color: var(--sl-fg-muted);
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: var(--sl-r-pill-sm); display: inline-flex; align-items: center; gap: 5px;
}
.job-card__title { font-size: 20px; font-weight: 800; color: var(--sl-ink); margin: 0 0 7px; letter-spacing: -.3px; }
.job-card__desc  { color: var(--sl-fg-muted); font-size: 15px; line-height: 1.55; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 680px; }
.job-card__arrow {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--sl-canvas-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--sl-fg-muted); transition: all .2s ease;
}
.job-card:hover .job-card__arrow { background: var(--sl-red); border-color: var(--sl-red); color: #fff; }
.jobs-loading { text-align: center; padding: 56px 0; color: var(--sl-fg-muted); font-size: 16px; }
.no-jobs { text-align: center; padding: 64px 0; color: var(--sl-fg-muted); font-size: 16px; line-height: 1.7; }
@media (max-width: 760px) {
  .job-card { padding: 20px; }
  .job-card__desc { display: none; }
}

/* ---- APPLY MODAL ---- */
.apply-modal { max-width: 820px; }
.apply-modal .modal__head { padding: 28px 34px; }
.apply-modal .modal__body { display: grid; grid-template-columns: 1fr 1fr; max-height: 74vh; overflow: hidden; }
.apply-details { padding: 30px 32px; background: var(--sl-canvas-soft); overflow-y: auto; max-height: 74vh; border-right: 1px solid var(--sl-canvas-line); }
.apply-details__meta  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.apply-details__desc  { color: var(--sl-fg-muted); font-size: 15px; line-height: 1.65; margin: 0 0 22px; }
.apply-reqs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.apply-reqs li { display: flex; gap: 10px; color: var(--sl-fg-muted); font-size: 14px; line-height: 1.5; }
.apply-reqs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sl-red); flex-shrink: 0; margin-top: 6px; }
.apply-form-wrap { padding: 30px 32px; overflow-y: auto; max-height: 74vh; }
.aff { margin-bottom: 18px; }
.aff label { display: block; font-size: 13px; font-weight: 600; color: var(--sl-fg-muted); margin-bottom: 6px; }
.aff label .req { color: var(--sl-red); margin-left: 2px; }
.aff textarea { resize: vertical; min-height: 90px; font-family: var(--sl-font); }
.file-drop {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed var(--sl-canvas-line); border-radius: var(--sl-r-sm);
  padding: 14px 18px; cursor: pointer; transition: border-color .15s;
}
.file-drop:hover { border-color: var(--sl-red); }
.file-drop i { color: var(--sl-red); flex-shrink: 0; }
.file-drop__text { font-size: 14px; color: var(--sl-fg-muted); }
.file-drop__name { display: block; color: var(--sl-ink); font-size: 15px; font-weight: 600; }
.apply-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 48px 36px;
}
.apply-success__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(233,34,51,.1); color: var(--sl-red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
@media (max-width: 820px) {
  .apply-modal { max-width: calc(100vw - 28px); }
  .apply-modal .modal__body { grid-template-columns: 1fr; max-height: 80vh; overflow-y: auto; }
  .apply-details { display: none; }
  .apply-modal .modal__head { padding: 22px; }
  .apply-form-wrap { padding: 24px 22px; max-height: none; }
}
