/* ========= JOBS PAGE ========= */

/* ── Hero ── */
.jobs-hero {
  position: relative;
  background: var(--color-void);
  padding: 160px 0 96px;
  text-align: center;
  overflow: hidden;
}

.jobs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(224,85,53,0.20) 0%, transparent 65%);
  pointer-events: none;
}

.jobs-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.017) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
}

.jobs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.jobs-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 14px 0 20px;
}

.jobs-hero__title span {
  color: var(--color-red);
}

.jobs-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
}

/* ── Jobs section ── */
.jobs-section {
  background: var(--color-cream-dark);
  padding: 80px 0 100px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}

/* ── Job card ── */
.job-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border-cream);
  border-top: 2px solid var(--color-red);
  border-radius: 16px;
  padding: 44px 52px 44px;
  transition: box-shadow 0.25s;
}

.job-card:hover {
  box-shadow: 0 12px 48px rgba(21,19,14,0.08);
}

/* ── Card header ── */
.job-card__dept {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-red);
  margin-bottom: 12px;
}

.job-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.job-card__tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-cream);
  border-radius: 100px;
  padding: 4px 13px;
  background: transparent;
}

/* ── Accordion header ── */
.job-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  user-select: none;
}

.job-card__header-left {
  flex: 1;
}

.job-card__chevron {
  flex-shrink: 0;
  margin-top: 6px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, color 0.2s;
}

.job-card.is-open .job-card__chevron {
  transform: rotate(180deg);
  color: var(--color-red);
}

/* ── Accordion body ── */
.job-card__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.job-card.is-open .job-card__body {
  grid-template-rows: 1fr;
}

.job-card__body-inner {
  overflow: hidden;
}

/* ── Card body ── */
.job-card__sep {
  border: none;
  border-top: 1px solid var(--color-border-cream);
  margin: 24px 0 28px;
}

.job-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 780px;
  margin-bottom: 36px;
}

.job-card__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .job-card__columns {
    grid-template-columns: 1fr 1fr;
    gap: 52px;
  }
}

.job-card__col-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.job-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.job-card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── Card footer ── */
.job-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-cream);
}

.job-card__apply {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-text-dark);
  border-radius: 100px;
  padding: 13px 28px;
  text-decoration: none;
  transition: background 0.2s, gap 0.2s;
}

.job-card__apply:hover {
  background: var(--color-red);
  gap: 13px;
}

.job-card__apply svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Mobile padding trim ── */
@media (max-width: 640px) {
  .job-card {
    padding: 32px 28px 36px;
  }
}
