/* =========================================================
   CAREERS — careers.css
   ========================================================= */

/* ── HERO BACKGROUND ──────────────────────────────────── */
.hero__background--careers {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-images/careers-hero.jpg');
  background-image: image-set(
    url('../img/hero-images/careers-hero.webp') type('image/webp'),
    url('../img/hero-images/careers-hero.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
}

.hero__background--careers::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 51, 108, 0.58);
}

/* =========================================================
   WHY BGC  (white, benefit cards)
   ========================================================= */
.cr-why {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.cr-why__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.cr-why__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.cr-eyebrow {
  display: block;
  max-width: none;
  width: 100%;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.cr-eyebrow--light { color: rgba(255,255,255,0.65); }

.cr-why__header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.cr-why__header p {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
  width: 100%;
}

.cr-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.cr-why-card {
  border-radius: 12px;
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--color-border, #e8eaed);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--color-white);
  border-top: 3px solid var(--color-red);
}

.cr-why-card__icon {
  color: var(--color-navy);
  opacity: 0.5;
  margin-bottom: var(--space-xs);
}

.cr-why-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--color-navy);
}

.cr-why-card p {
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
  width: 100%;
  font-size: var(--fs-sm);
}

/* =========================================================
   VALUES  (navy background)
   ========================================================= */
.cr-values {
  padding: var(--space-4xl) 0;
  background: var(--color-navy);
  color: #fff;
}

.cr-values__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.cr-values__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.cr-values__text p {
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: none;
  width: 100%;
}

.cr-values__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.cr-values__pill {
  background: var(--color-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px var(--space-md);
  border-radius: 100px;
}

.cr-values__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.cr-values__stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: var(--space-xl) var(--space-lg);
}

.cr-values__stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.cr-values__stat-label {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* =========================================================
   VACANCIES  (light grey)
   ========================================================= */
.cr-vacancies {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-light, #f5f6f8);
}

.cr-vacancies__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.cr-vacancies__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.cr-vacancies__header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.cr-vacancies__count {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.cr-vacancies__count strong {
  color: var(--color-navy);
  font-weight: 700;
}

/* JOB CARDS GRID */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* display:grid would otherwise beat the browser's own [hidden] rule, so
   careers.js could not hide the list while the vacancies load. */
.careers-grid[hidden] { display: none; }

.job-card {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e8eaed);
  border-top: 3px solid var(--color-navy);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.job-card__header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--color-border, #e8eaed);
}

.job-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.job-card__dept {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.job-card__type {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--color-navy);
  color: #fff;
  /* Types are written in the Sheet, so they are not always one word. */
  line-height: 1.4;
}

.job-card__type--part-time  { background: var(--color-lapis); }
.job-card__type--casual     { background: var(--color-flat-blue); }
.job-card__type--voluntary  { background: var(--color-rhino); }

.job-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.job-card__salary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  max-width: none;
  width: 100%;
}

.job-card__body {
  padding: var(--space-lg);
  flex: 1;
}

.job-card__desc {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: none;
  width: 100%;
}

.job-card__reqs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-card__reqs li {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  padding-left: 1.2em;
  position: relative;
  line-height: 1.5;
}

.job-card__reqs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-weight: 700;
}

/* Requirements written as a single sentence rather than a bullet per
   line. Same type as a bullet, without the lone tick. */
.job-card__reqs-text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.job-card__footer {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

/* EMPTY STATE */
.careers-empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e8eaed);
}

.careers-empty__icon {
  color: var(--color-navy);
  opacity: 0.2;
  margin: 0 auto var(--space-lg);
}

.careers-empty h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.careers-empty p {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

/* =========================================================
   PROCESS  (white)
   ========================================================= */
.cr-process {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.cr-process__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.cr-process__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.cr-process__header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.cr-process__header p {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
  width: 100%;
}

.cr-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.cr-process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + var(--space-lg));
  right: calc(12.5% + var(--space-lg));
  height: 2px;
  background: var(--color-border, #e8eaed);
  z-index: 0;
}

.cr-process-step {
  text-align: center;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.cr-process-step__bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}

.cr-process-step:first-child .cr-process-step__bubble,
.cr-process-step:last-child .cr-process-step__bubble {
  background: var(--color-red);
}

.cr-process-step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.cr-process-step p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
  width: 100%;
}

/* =========================================================
   SPONTANEOUS  (red strip)
   ========================================================= */
.cr-spontaneous {
  padding: var(--space-3xl) 0;
  background: var(--color-red);
  color: #fff;
}

.cr-spontaneous__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cr-spontaneous__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.cr-spontaneous__text p {
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  max-width: 520px;
}

.cr-spontaneous__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cr-spontaneous__btn-primary {
  background: #fff;
  color: var(--color-red);
}

.cr-spontaneous__btn-secondary {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .cr-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cr-process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .cr-process-steps::before { display: none; }
}

@media (max-width: 900px) {
  .cr-values__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .careers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cr-why__inner,
  .cr-values__inner,
  .cr-vacancies__inner,
  .cr-process__inner,
  .cr-spontaneous__inner {
    padding: 0 var(--space-md);
  }

  .cr-why-grid {
    grid-template-columns: 1fr;
  }

  .cr-values__stats {
    grid-template-columns: 1fr;
  }

  .cr-process-steps {
    grid-template-columns: 1fr;
  }

  .cr-spontaneous__inner {
    flex-direction: column;
    text-align: center;
  }
}
