/* ══════════════════════════════════════════════
   CAREERS PAGE — Why Techmines, Positions, Apply
   ══════════════════════════════════════════════ */

/* ── Why Techmines ── */
.careers-why {
  padding: var(--space-96) var(--gutter);
  background: var(--surface-warm);
}

.careers-why-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
}

.careers-why-header {
  margin-bottom: 52px;
}

.careers-why-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  border-left: 3px solid var(--olive);
  padding-left: 12px;
  margin-bottom: 16px;
}

.careers-why-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.careers-why-heading .olive-accent { color: var(--olive); }

.careers-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border-light);
}

/* ── Open Positions ── */
.careers-positions {
  padding: var(--space-96) var(--gutter);
  background: var(--bg);
}

.careers-positions-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
}

.careers-positions-header {
  margin-bottom: 52px;
}

.careers-positions-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  border-left: 3px solid var(--olive);
  padding-left: 12px;
  margin-bottom: 16px;
}

.careers-positions-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.careers-positions-heading .olive-accent { color: var(--olive); }

.careers-positions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-light);
}

.careers-position-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, background 0.2s;
}

.careers-position-card:hover {
  background: var(--olive-soft);
  border-bottom-color: var(--olive);
}

.careers-position-type {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
  display: block;
}

.careers-position-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.careers-position-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.careers-position-reqs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.careers-position-reqs li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.careers-position-reqs li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 800;
  font-size: 1.1rem;
  top: -2px;
}

.careers-position-reqs li.reqs-nice::before {
  content: '+';
  font-size: 0.8rem;
  top: 0;
  color: var(--text-secondary);
  opacity: 0.6;
}

.careers-position-nice-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-top: 16px;
  margin-bottom: 8px;
  display: block;
}

.careers-position-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  text-decoration: none;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  transition: gap 0.2s;
}

.careers-position-link:hover {
  gap: 14px;
}

/* ── Application Form ── */
.careers-apply {
  padding: var(--space-96) var(--gutter);
  background: var(--text);
  position: relative;
  overflow: hidden;
}

.careers-apply::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
}

.careers-apply::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 65%);
  pointer-events: none;
}

.careers-apply-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.careers-apply-left-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  border-left: 3px solid var(--olive);
  padding-left: 12px;
  margin-bottom: 24px;
}

.careers-apply-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
}

.careers-apply-heading .olive-accent { color: var(--olive); }

.careers-apply-sub {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 400px;
}

/* ── Form Fields (careers-specific, dark bg) ── */
.careers-form-wrap {
  width: 100%;
}

.careers-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.cf-label-optional {
  opacity: 0.4;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.cf-input,
.cf-textarea,
.cf-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  outline: none;
  width: 100%;
  transition: border-color 0.25s ease, background 0.25s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.cf-input::placeholder,
.cf-textarea::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

.cf-input:focus,
.cf-textarea:focus,
.cf-select:focus {
  border-color: var(--olive);
  background: rgba(255, 255, 255, 0.02);
}

.cf-textarea {
  min-height: 110px;
  resize: vertical;
}

.cf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.cf-select option {
  background: var(--surface-inverse);
  color: rgba(255, 255, 255, 0.85);
}

/* ── File Input ── */
.cf-file-wrap {
  position: relative;
}

.cf-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.cf-file-label-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.cf-file-wrap:hover .cf-file-label-visual,
.cf-file-wrap:focus-within .cf-file-label-visual {
  border-color: var(--olive);
  background: rgba(255, 255, 255, 0.02);
}

.cf-file-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
}

.cf-file-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.25s;
}

.cf-file-wrap:hover .cf-file-text {
  color: rgba(255, 255, 255, 0.6);
}

.cf-file-name {
  font-size: 0.78rem;
  color: var(--olive);
  margin-top: 6px;
  display: none;
}

.cf-file-name.visible {
  display: block;
}

/* ── Careers Success State ── */
.careers-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 64px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.careers-success.visible {
  display: flex;
}

.careers-success-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--olive);
}

.careers-success-heading {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.careers-success-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
  max-width: 40ch;
}

/* ── Submit button row ── */
.cf-submit-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .careers-positions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .careers-apply-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 768px) {
  .careers-positions-grid {
    grid-template-columns: 1fr;
  }

  .cf-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .careers-why {
    padding: 52px var(--gutter);
  }

  .careers-positions {
    padding: 52px var(--gutter);
  }

  .careers-apply {
    padding: 52px var(--gutter);
  }

  .careers-position-card {
    padding: 28px 20px;
  }
}
