/* =========================================================
   LUMIVEX — Careers Page
   ========================================================= */

/* ---------- Hero ---------- */
.careers-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  overflow: hidden;
}

.careers-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.careers-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.careers-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.45) 0%, rgba(5, 5, 5, 0.7) 50%, #050505 100%),
    linear-gradient(105deg, rgba(5, 5, 5, 0.8) 0%, transparent 55%);
}

.careers-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 25% 75%, rgba(212, 175, 55, 0.2), transparent 60%);
  pointer-events: none;
}

.careers-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.ch-eyebrow {
  margin-bottom: 1.2rem;
}

.careers-hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

.careers-hero-title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ch-line {
  display: block;
  overflow: hidden;
}

.ch-line > span {
  display: inline-block;
}

.careers-hero-sub {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 46ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.careers-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.careers-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.careers-hero-stats strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.careers-hero-stats span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Culture ---------- */
.culture-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.culture-copy h2 {
  margin-bottom: 1.15rem;
}

.culture-copy > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 48ch;
}

.culture-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.culture-pillars li {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.culture-pillars strong {
  color: var(--gold);
  font-family: var(--font-body);
}

.culture-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-soft);
}

.culture-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.culture-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 1rem 1.25rem;
  text-align: center;
}

.culture-badge strong {
  display: block;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.culture-badge span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Benefits ---------- */
.careers-benefits {
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.65), transparent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-card {
  padding: 2rem 1.75rem;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.benefit-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.benefit-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 1.25rem;
  background: rgba(212, 175, 55, 0.06);
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.why-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1.75rem;
}

.why-list li {
  padding-left: 1.15rem;
  border-left: 2px solid rgba(212, 175, 55, 0.45);
}

.why-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.why-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.why-copy h2 {
  margin-bottom: 0.5rem;
}

/* ---------- Positions ---------- */
.positions-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.positions-header .section-header,
.positions-header h2 {
  margin-bottom: 0;
}

.positions-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.filter-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
  color: #fff;
}

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
  color: #0a0a0a;
  font-weight: 600;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.job-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.35s, transform 0.35s var(--ease), opacity 0.35s, box-shadow 0.35s;
}

.job-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateX(4px);
  box-shadow: var(--shadow-gold);
}

.job-card.is-hidden {
  display: none;
}

.job-main h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.job-main p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 52ch;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.job-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Departments ---------- */
.depts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.dept-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
}

.dept-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.dept-card:hover img {
  transform: scale(1.08);
}

.dept-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.92) 0%, transparent 55%);
}

.dept-overlay h3 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.dept-overlay span {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ---------- Process ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  list-style: none;
  counter-reset: none;
}

.process-step {
  padding: 2rem 1.5rem;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}

.process-step:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
}

.process-num {
  display: block;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */
.emp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.emp-card {
  padding: 2rem;
}

.emp-card blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  margin: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.emp-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.emp-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.emp-author strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.emp-author span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 520px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
}

.gallery-item.gi-large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Life ---------- */
.careers-life {
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.7), transparent);
}

.life-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.life-copy > p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 1rem 0 1.75rem;
  max-width: 44ch;
}

.life-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.life-chips span {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(212, 175, 55, 0.05);
}

.life-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 0.85rem;
}

.life-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.life-a {
  grid-row: span 2;
  height: 100% !important;
  min-height: 100%;
}

/* ---------- Apply Form ---------- */
.apply-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.apply-copy > p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
  max-width: 40ch;
}

.apply-notes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.apply-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23D4AF37' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field select option {
  background: #111;
  color: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.apply-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-success {
  margin-top: 1rem;
  color: #6dcf8a;
  font-size: 0.95rem;
  text-align: center;
}

.form-field.is-error input,
.form-field.is-error select,
.form-field.is-error textarea {
  border-color: #e87878;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0 1.25rem;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--font-num);
  font-size: 1.35rem;
  font-weight: 500;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-muted);
  padding: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.careers-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .culture-grid,
  .why-grid,
  .life-grid,
  .apply-layout {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .emp-grid {
    grid-template-columns: 1fr 1fr;
  }

  .depts-grid,
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .job-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .job-apply {
    justify-self: start;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .gallery-item.gi-large {
    grid-row: auto;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .careers-hero {
    min-height: auto;
    padding-bottom: 3.5rem;
  }

  .careers-hero-title {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
  }

  .benefits-grid,
  .depts-grid,
  .process-steps,
  .emp-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .life-mosaic {
    grid-template-rows: 140px 140px;
  }
}

@media (max-width: 480px) {
  .careers-hero-ctas,
  .careers-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .careers-hero-ctas .btn,
  .careers-cta-actions .btn {
    width: 100%;
  }
}
