/* ============================================================
   VINOVE — Open Roles Page
   FILE: css/pages/careers-roles.css

   §0  Page Header     — light / paper
   §1  Filter Pills    — light / paper
   §2  Role Listings   — light / surface-2 cards
   §3  Talent Network  — dark / ink
   ============================================================ */


/* ╔═══════════════════════════════════════════════════════╗
   §0  PAGE HEADER
   ╚═══════════════════════════════════════════════════════╝ */

#roles-header {
  background: rgb(9,12,21);
  padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 5vw, 4rem);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

/* Hero background image */
#roles-header .page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark gradient overlay so text stays legible */
#roles-header .page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(9,12,21,.9) 0%, rgba(9,12,21,.6) 45%, rgba(9,12,21,.82) 100%),
    linear-gradient(to right, rgba(9,12,21,.6) 0%, transparent 65%);
}

#roles-header .roles-hd-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

#roles-header .roles-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font);
}

#roles-header .roles-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.18s;
}

#roles-header .roles-breadcrumb a:hover {
  color: rgba(255,255,255,0.85);
}

#roles-header .roles-breadcrumb svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}

#roles-header h1 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}

#roles-header .roles-sub {
  font-family: var(--font);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 600px;
  margin: 0;
}


/* ╔═══════════════════════════════════════════════════════╗
   §1  FILTER PILLS
   ╚═══════════════════════════════════════════════════════╝ */

#roles-filter {
  background: var(--paper);
  padding: 1.75rem var(--gutter);
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  border-bottom: 1px solid var(--surface-2);
  box-shadow: 0 1px 0 rgba(14,19,32,0.04);
}

#roles-filter .filter-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#roles-filter .filter-label {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.12s;
  white-space: nowrap;
  background: transparent;
  color: var(--text-body);
  border-color: rgba(14,19,32,0.15);
  text-decoration: none;
  line-height: 1;
}

.filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(14,19,32,0.1);
}

.filter-pill.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(14,19,32,0.18);
}

/* All pill */
.filter-pill[data-filter="all"] {
  background: transparent;
  border-color: rgba(14,19,32,0.18);
  color: var(--text-body);
}

.filter-pill[data-filter="all"].is-active {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

.filter-pill[data-filter="all"]:not(.is-active):hover {
  border-color: var(--terra);
  color: var(--terra);
}

/* Company pills */
.filter-pill[data-filter="valuecoders"] { --pill-color: #05164D; }
.filter-pill[data-filter="pixelcrayons"] { --pill-color: #0400F5; }
.filter-pill[data-filter="workstatus"] { --pill-color: #5D2BFF; }
.filter-pill[data-filter="invoicera"] { --pill-color: #15663F; }
.filter-pill[data-filter="agentra"] { --pill-color: #E11D74; }

.filter-pill[data-filter]:not([data-filter="all"]):not(.is-active) {
  border-color: color-mix(in srgb, var(--pill-color) 30%, transparent);
  color: var(--pill-color);
}

.filter-pill[data-filter]:not([data-filter="all"]):not(.is-active):hover {
  background: color-mix(in srgb, var(--pill-color) 8%, transparent);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--pill-color) 20%, transparent);
}

.filter-pill[data-filter]:not([data-filter="all"]).is-active {
  background: var(--pill-color);
  border-color: var(--pill-color);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--pill-color) 30%, transparent);
}

.filter-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}


/* ╔═══════════════════════════════════════════════════════╗
   §2  ROLE LISTINGS
   ╚═══════════════════════════════════════════════════════╝ */

#roles-listings {
  background: var(--paper);
  padding: clamp(3rem, 5vw, 5rem) var(--gutter);
}

#roles-listings .listings-inner {
  max-width: var(--max);
  margin: 0 auto;
}

#roles-listings .listings-count {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

#roles-listings .listings-count strong {
  color: var(--text-strong);
  font-weight: 700;
}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Role card */
.role-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(14,19,32,0.08);
  border-left: 4px solid var(--co-color, var(--terra));
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  margin-bottom: 0.75rem;
  position: relative;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 30px rgba(14,19,32,0.1),
    0 2px 8px rgba(14,19,32,0.06),
    0 0 0 1px rgba(14,19,32,0.04);
}

.role-card-body {
  min-width: 0;
}

.role-title {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.role-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 0.625rem;
}

.role-company {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--co-color, var(--text-strong));
}

.role-company-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--co-color, var(--terra));
  flex-shrink: 0;
}

.role-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--paper);
  border: 1px solid rgba(14,19,32,0.12);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  line-height: 1.5;
}

.role-location svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.role-card:hover .role-location {
  color: var(--text-body);
  border-color: rgba(14,19,32,0.2);
  transition: color 0.2s, border-color 0.2s;
}

.role-desc {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

/* Apply button */
.role-card-action {
  flex-shrink: 0;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid rgba(14,19,32,0.2);
  color: var(--text-strong);
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.12s,
    box-shadow 0.18s,
    gap 0.2s;
  white-space: nowrap;
}

.btn-apply svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s;
}

.btn-apply:hover {
  background: var(--co-color, var(--terra));
  border-color: var(--co-color, var(--terra));
  color: #fff;
  gap: 0.6rem;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--co-color, var(--terra)) 30%, transparent);
}

.btn-apply:hover svg {
  transform: translateX(2px);
}

/* No results state */
.roles-empty {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  font-family: var(--font);
}

.roles-empty.is-visible {
  display: block;
}

.roles-empty p {
  color: var(--text-muted);
  font-size: 1rem;
}


/* ╔═══════════════════════════════════════════════════════╗
   §3  TALENT NETWORK
   ╚═══════════════════════════════════════════════════════╝ */

#roles-talent {
  background: var(--ink);
  padding: clamp(4rem, 7vw, 6.5rem) var(--gutter);
  position: relative;
  overflow: hidden;
}

#roles-talent::before {
  content: '';
  position: absolute;
  right: -5%;
  top: -20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(200,85,61,0.08) 0%, transparent 70%);
  pointer-events: none;
}

#roles-talent .talent-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  align-items: center;
}

#roles-talent .talent-copy {
  /* left column */
}

#roles-talent .eyebrow {
  margin-bottom: 1rem;
}

#roles-talent h2 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

#roles-talent .talent-body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink-text-body);
  line-height: 1.65;
  margin: 0;
}

/* Form column */
#roles-talent .talent-form-wrap {
  /* right column */
}

.talent-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.talent-form-row {
  display: flex;
  gap: 0.625rem;
}

.talent-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  outline: none;
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
  -webkit-appearance: none;
}

.talent-input::placeholder {
  color: var(--ink-text-muted);
}

.talent-input:focus {
  border-color: rgba(200,85,61,0.5);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(200,85,61,0.12);
}

.talent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.12s,
    box-shadow 0.18s;
  white-space: nowrap;
}

.talent-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.talent-note {
  font-family: var(--font);
  font-size: 0.8125rem;
  color: var(--ink-text-muted);
  margin: 0;
  line-height: 1.5;
}


/* ── Terra em highlights in headings ── */
#roles-listings h2 em,
#roles-talent h2 em,
#roles-talent h3 em {
  color: var(--terra);
  font-style: normal;
}

/* ── Role title lift on card hover ── */
.role-card:hover .role-title {
  color: var(--co-color, var(--text-strong));
  transition: color 0.2s;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  #roles-talent .talent-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 680px) {
  .role-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .role-card-action {
    justify-self: start;
  }

  .talent-form-row {
    flex-direction: column;
  }

  #roles-filter {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}
