/* ============================================================
   careers.css — Careers page styles (derived from brands.css)
   ============================================================ */


/* Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:      #D30100;
  --red-dark: #A50000;
  --dark:     #0E0E0E;
  --marine:   #0A2540;
  --bone:     #F4F1EC;
  --amber:    #FEBD59;
  --g4:       #6E7479;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: clip;
}


/* Hero
   ------------------------------------------------------------ */
.page-hero {
  background: var(--marine);
  padding: 55px 28px 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(211, 1, 0, .18) 0%, transparent 65%);
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--amber);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.hero-badge {
  display: inline-flex;
  background: rgba(254, 189, 89, .15);
  border: 1px solid rgba(254, 189, 89, .4);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 16px;
}

h1 span {
  color: var(--amber);
}

.hero-subtitle {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}


/* Hero Stats
   ------------------------------------------------------------ */
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 32px;
  width: fit-content;
}

.hero-stat {
  text-align: left;
  padding: 0 32px 0 0;
  border-right: 1px solid rgba(255, 255, 255, .1);
  margin-right: 32px;
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
}

.hero-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: #fff;
  margin-top: 4px;
}


/* Page Body & Team Sections
   ------------------------------------------------------------ */
.page-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.career-section {
  margin-bottom: 72px;
}

.career-section--last {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-header-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(211, 1, 0, .25);
}

.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--dark);
}

.section-header-subtitle {
  font-size: 13px;
  color: var(--g4);
  margin-top: 2px;
}

.divider {
  height: 1px;
  background: rgba(10, 37, 64, .07);
  margin-bottom: 72px;
}


/* Job Grid & Clickable Role Cards
   ------------------------------------------------------------ */
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 20px;
}

.job-card {
  height: 100%;
  background: var(--bone);
  border: 1.5px solid rgba(10, 37, 64, .07);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

.job-card:hover,
.job-card:focus-visible {
  box-shadow: 0 8px 32px rgba(211, 1, 0, .12);
  border-color: rgba(211, 1, 0, .3);
  transform: translateY(-2px);
  outline: none;
}

.job-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.job-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--marine);
  line-height: 1.25;
}

.job-location {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--g4);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: -6px;
}

.job-credential {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid rgba(211, 1, 0, .22);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.45;
}

.job-credential span {
  color: var(--g4);
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
}

.job-desc {
  font-size: 13px;
  color: var(--g4);
  line-height: 1.65;
  flex: 1;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.job-tag {
  padding: 3px 9px;
  background: #fff;
  border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--marine);
  border: 1px solid rgba(10, 37, 64, .12);
}

.job-card-cta {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 37, 64, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red);
}

.job-card-cta svg {
  transition: transform .2s ease;
}

.job-card:hover .job-card-cta svg {
  transform: translateX(4px);
}


/* Note Card
   ------------------------------------------------------------ */
.note-card {
  background: rgba(211, 1, 0, .04);
  border: 1.5px dashed rgba(211, 1, 0, .18);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.note-card p {
  font-size: 13px;
  color: var(--g4);
  line-height: 1.65;
  margin: 0;
}

.note-card a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}


/* Single-Column Job Modal
   ------------------------------------------------------------ */
.career-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, .74);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.career-modal-overlay.is-open {
  display: flex;
}

.career-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 740px;
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(10, 37, 64, .4);
  animation: modalIn .18s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.career-modal-header {
  background: var(--marine);
  padding: 22px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.career-modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 100% at 85% 50%, rgba(211, 1, 0, .2) 0%, transparent 65%);
  pointer-events: none;
}

.career-modal-header::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--amber);
}

.career-modal-header-copy {
  position: relative;
  z-index: 1;
}

.career-modal-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.career-modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.2;
}

.career-modal-close {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s;
}

.career-modal-close:hover {
  background: var(--red);
  border-color: var(--red);
}


/* Modal Body: Scrollable Job Description
   ------------------------------------------------------------ */
.career-jd-pane {
  padding: 26px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.career-jd-overview {
  background: var(--bone);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: 22px;
}

.career-jd-pane h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--marine);
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(10, 37, 64, .08);
}

.career-jd-pane ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.career-jd-pane li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #2c333f;
  line-height: 1.6;
}

.career-jd-pane li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}


/* Modal Bottom CTA Bar ("Ready to Apply?")
   ------------------------------------------------------------ */
.career-modal-footer {
  background: var(--bone);
  border-top: 1px solid rgba(10, 37, 64, .1);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;
}

.career-apply-copy strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--marine);
  margin-bottom: 2px;
}

.career-apply-copy p {
  font-size: 12.5px;
  color: var(--g4);
  line-height: 1.5;
  margin: 0;
}

.career-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--red);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(211, 1, 0, .22);
  transition: background .15s, transform .15s;
}

.career-apply-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}


/* Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .career-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .career-grid { grid-template-columns: 1fr; }
  .career-modal-overlay { padding: 12px; }
  .career-modal { max-height: 92vh; }
  .career-modal-header { padding: 18px 20px; }
  .career-jd-pane { padding: 20px; }
  .career-modal-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 12px;
  }
  .career-apply-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat  { border-right: none; margin-right: 0; padding-right: 0; }
}