/* ============================================================
   CAREERS — only careers.html uses this file.
   Built from the shared components (.hero + .hero-photo, .sol-kpis,
   .sol-build-item, .sol-faq-item, .sol-chip, .final, .contact-modal and
   the contact-form fields); this file holds the layout around them and the
   two controls no other page has: the role <select> and the CV drop zone.
   Every colour, radius and shadow comes from tokens.css.
   ============================================================ */

/* ---------- hero: the office photo (concept A) under a scrim that keeps the copy readable ---------- */
.car-hero { min-height: clamp(620px, 82vh, 780px); display: flex; flex-direction: column; justify-content: center; }
.car-hero .eyebrow { margin-bottom: 26px; }
.car-hero h1 { max-width: 15ch; }
.car-hero .hero-ctas { margin-top: 40px; }
html[data-concept="a"] .car-hero .hero-photo { opacity: 0.65; }
html[data-concept="a"] .car-hero .hero-scrim {
  display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 40%, color-mix(in srgb, var(--bg) 13%, transparent) 100%),
    linear-gradient(0deg, var(--bg), transparent 60%);
}

/* ---------- facts strip ---------- */
.car-facts-wrap { position: relative; z-index: 2; }
.car-facts .v {
  font-size: clamp(22px, 2vw, 30px); white-space: normal;
  /* these are facts, not metrics: no metric gradient (DESIGN-CANON §2) */
  background: none; -webkit-text-fill-color: currentColor; color: var(--text);
}
.car-facts-intro {
  display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.4;
  letter-spacing: -0.01em; color: var(--text);
}

/* ---------- working at Zentavor ---------- */
.car-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.car-intro .section-head { margin-bottom: 0; }
.car-intro-copy p { font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.car-intro-copy p + p { margin-top: 18px; }
.car-intro-copy strong { color: var(--text); font-weight: 500; }
.car-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; }
.car-benefits .sol-build-item h3 {
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance;
  margin-bottom: 4px;
}

/* ---------- opportunities: sticky aside + one-open-at-a-time role cards ---------- */
.car-roles { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.car-roles-aside { position: sticky; top: 110px; }
.car-roles-aside .section-head { margin-bottom: 28px; }
.car-roles-aside .lead { font-size: 16px; }
.car-role-links { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.car-role-links a {
  padding: 13px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 15px; color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.car-role-links a:hover { color: var(--accent-text); }
.car-roles-note { margin-top: 24px; font-size: 13.5px; line-height: 1.65; color: var(--text-faint); }

.car-role-list { display: flex; flex-direction: column; gap: 14px; }
.car-role { scroll-margin-top: 100px; transition: border-color 0.4s var(--ease); }
.car-role:hover { border-color: var(--border-strong); }
.car-role[open] { border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); }
.car-role summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  column-gap: 16px; row-gap: 8px; padding: 26px 28px;
}
.car-role summary > :not(.fq) { grid-column: 1; }
.car-role summary .fq { grid-column: 2; grid-row: 1 / span 3; margin-top: 4px; }
.car-role-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--accent-text); }
.car-role h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.car-role-meta { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--text-muted); }
.car-role-body { padding: 26px 28px 30px; border-top: 1px solid var(--border); }
.car-role-desc { font-size: 16px; line-height: 1.65; color: var(--text-muted); max-width: 68ch; }
.car-role-body h4 { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--text); margin: 26px 0 12px; }
.car-role-tasks { padding-left: 18px; color: var(--text-muted); font-size: 15px; line-height: 1.65; max-width: 68ch; }
.car-role-tasks li + li { margin-top: 6px; }
.car-role-tasks li::marker { color: var(--accent-text); }
.car-stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.car-stack .sol-chip { font-size: 12px; padding: 7px 12px; }
.car-role-body .btn { margin-top: 30px; }

.car-other { padding: 30px 28px; margin-top: 12px; border-style: dashed; border-color: var(--border-strong); box-shadow: none; }
.car-other h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; margin: 14px 0 12px; text-wrap: wrap; }   /* balance split "data-related" at its hyphen */
.car-other p { font-size: 15px; line-height: 1.65; color: var(--text-muted); max-width: 62ch; margin-bottom: 18px; }
.car-other .link-arrow { padding-block: 12px; margin-block: -12px; }

/* ---------- what we're looking for: hairline rows, two columns ---------- */
.car-expect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.car-expect-item { padding: 30px 0; border-top: 1px solid var(--border); }
.car-expect-item h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.car-expect-item p { font-size: 15px; line-height: 1.65; color: var(--text-muted); max-width: 52ch; }

/* ---------- apply (the page's .final CTA) ---------- */
.car-apply { align-items: start; }
.car-apply .eyebrow { margin-bottom: 18px; }
.car-apply-cta { margin-top: 34px; }
.car-apply .final-contact { margin-top: 28px; }
.car-apply-small { margin-top: 24px; max-width: 44ch; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.car-apply-small strong { color: var(--text); font-weight: 500; }
.car-checklist { padding: 32px; }
.car-checklist h3 { font-size: 22px; line-height: 1.2; margin-bottom: 22px; }
.car-checklist ul { list-style: none; }
.car-checklist li { position: relative; padding: 0 0 16px 30px; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.car-checklist li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px;
  border-left: 1.7px solid var(--pos); border-bottom: 1.7px solid var(--pos);
  transform: rotate(-45deg);
}
.car-checklist b { color: var(--text); font-weight: 500; }
.car-subject { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.8; color: var(--text-faint); }
.car-subject code { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

/* ---------- application dialog: wider than the sales modal, it has more fields ---------- */
.car-modal { width: min(640px, 92vw); }
/* field errors hang under their field (absolute): room for one line before the next row's label */
.car-modal .form-grid { row-gap: 28px; }
.car-modal .field select {
  appearance: none; -webkit-appearance: none; width: 100%;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
  border: 1px solid var(--border); border-radius: 11px;
  padding: 13px 38px 13px 15px;
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  outline: none; cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
[data-concept="b"] .car-modal .field select,
[data-concept="c"] .car-modal .field select { background-color: var(--surface-2); }
.car-modal .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.car-modal .field.err select { border-color: var(--neg); }

/* CV: the real file input covers the whole zone (click, keyboard and drag-and-drop
   all land on it); the visible parts are a button-like label and the file name */
.cv-drop {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 11px;
  background: var(--bg-deep);
  transition: border-color 0.25s, box-shadow 0.25s;
}
[data-concept="b"] .cv-drop, [data-concept="c"] .cv-drop { background: var(--surface-2); }
.cv-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cv-drop:hover { border-color: var(--text-faint); }
.cv-drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.cv-btn {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); font-family: var(--font-display); font-size: 13.5px; font-weight: 500; color: var(--text);
}
.cv-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--text-faint); }
.field.has-file .cv-name { color: var(--text); }
.field.err .cv-drop { border-color: var(--neg); }
@media (forced-colors: active) {
  .cv-drop:focus-within { outline: 2px solid CanvasText; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .car-roles { grid-template-columns: 1fr; gap: 8px; }
  .car-roles-aside { position: static; }
  .car-role-links { display: none; }
  .car-intro { gap: 40px; }
}
@media (max-width: 1024px) {
  .car-intro, .car-expect, .car-benefits { grid-template-columns: minmax(0, 1fr); }
  .car-facts.sol-kpis.k4 { grid-template-columns: 1fr 1fr; }
  .car-facts .sol-kpi + .sol-kpi { border-top: 0; }
  .car-facts .sol-kpi:nth-child(odd) { border-left: 0; }
  .car-facts .sol-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .car-facts .sol-kpi:nth-child(even) { border-left: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .car-hero .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .car-facts .sol-kpi { padding: 22px 18px; }
  .car-facts-intro { font-size: 16px; }
  .car-role summary { padding: 22px 18px; }
  .car-role-body { padding: 22px 18px 26px; }
  .car-role-body .btn { width: 100%; justify-content: center; }
  .car-other, .car-checklist { padding: 24px 20px; }
  .car-modal .field select { font-size: 16px; }
  .cv-btn { padding: 11px 14px; }
}
