/* ═══════════════════════════════════════════════════════════
   SNOWCAP COMPUTE — Shared Stylesheet
   Covers: tokens · reset · nav · hero · buttons · jd sections ·
           careers index · apply CTA · footer · responsive
═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg:          #3c414a;
  --bg-dark:     #32373f;
  --bg-section:  #383d46;
  --teal:        #88D3DF;
  --teal-dim:    rgba(136, 211, 223, 0.10);
  --teal-border: rgba(136, 211, 223, 0.22);
  --white:       #ffffff;
  --text-body:   rgba(255,255,255,0.88);
  --text-label:  rgba(255,255,255,0.56);
  --text-muted:  rgba(255,255,255,0.40);
  --divider:     rgba(255,255,255,0.12);
  --divider-hi:  rgba(255,255,255,0.20);
  --mono:   'IBM Plex Mono', monospace;
  --tight:  'Inter Tight', system-ui, sans-serif;
  --body:   'Archivo', system-ui, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }


/* ═══════════════════════════════════════════════════════════
   NAV — transparent, floats over hero
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 68px;
}

.nav-logo img  { height: 22px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  transition: color 0.18s;
}

.nav-links a:hover { color: #fff; }


/* ═══════════════════════════════════════════════════════════
   HERO — full viewport, photo bg, text pinned bottom-left
   .hero--full  = 100vh (job description pages)
   .hero--short = 72vh  (careers index)
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero--full  { height: 100vh; min-height: 600px; }
.hero--short { height: 72vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1a2030;
  background-image:
    linear-gradient(
      160deg,
      rgba(40, 55, 85, 0.55) 0%,
      rgba(25, 35, 55, 0.45) 40%,
      rgba(15, 20, 35, 0.60) 100%
    );
  /* Swap background-image for a real photo:
     background-image: url('YOUR_PHOTO_URL'), linear-gradient(...);
     background-size: cover; background-position: center; */
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(15, 18, 28, 0.55) 65%,
    rgba(12, 15, 22, 0.90) 88%,
    #2d3139 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 36px 64px;
  width: 100%;
}

/* Tags row (JD pages) */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-label);
  border: 1px solid var(--divider-hi);
  padding: 4px 11px;
  border-radius: 2px;
}

.tag-open {
  color: var(--teal);
  border-color: var(--teal-border);
  background: var(--teal-dim);
}

/* Eyebrow (index page) */
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--tight);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 18px;
}

.hero-hook,
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 44px;
}

/* Meta row (JD pages) */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 44px;
}

.meta-block { display: flex; flex-direction: column; gap: 4px; }

.meta-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* Stat row (index page) */
.hero-stat-row {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

.hero-stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-family: var(--tight);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* Bottom-right link (JD pages) */
.hero-corner {
  position: absolute;
  bottom: 64px;
  right: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, gap 0.2s;
}

.hero-corner:hover { color: #fff; gap: 12px; }


/* ═══════════════════════════════════════════════════════════
   BUTTON
═══════════════════════════════════════════════════════════ */
.btn-filled {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1e2530;
  background: var(--teal);
  padding: 13px 28px;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-filled:hover { opacity: 0.88; transform: translateY(-1px); }


/* ═══════════════════════════════════════════════════════════
   PAGE BODY — shared wrapper
═══════════════════════════════════════════════════════════ */
.page-body { background: var(--bg); }


/* ═══════════════════════════════════════════════════════════
   JD SECTIONS — job description pages
═══════════════════════════════════════════════════════════ */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
}

.jd-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--divider);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 64px;
  align-items: start;
}

.jd-section:last-of-type { border-bottom: none; }

.section-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  position: sticky;
  top: 84px;
}

.label-number-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--divider-hi);
  background: var(--bg-dark);
}

.label-number {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-label);
}

.label-text {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-label);
}

.section-content p {
  color: var(--text-body);
  max-width: 700px;
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.75;
}

.section-content p:last-child { margin-bottom: 0; }

/* ─── Lists ─── */
.jd-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
}

.jd-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.7;
}

.jd-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  top: 4px;
}

.jd-list.preferred li::before { opacity: 0.60; }

/* ─── Environment callout ─── */
.env-card {
  border: 1px solid var(--divider-hi);
  border-left: 2px solid var(--teal);
  background: var(--bg-dark);
  padding: 32px 36px;
  max-width: 700px;
}

.env-card p {
  color: var(--text-body);
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.75;
}

.env-card p:last-child { margin-bottom: 0; }

/* ─── Compensation tiles ─── */
.comp-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 520px;
  margin-bottom: 28px;
}

.comp-tile {
  background: var(--bg-dark);
  border: 1px solid var(--divider-hi);
  padding: 22px 26px;
}

.comp-tile-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 10px;
}

.comp-tile-value {
  font-family: var(--tight);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

/* ─── Apply CTA (JD pages) ─── */
.apply-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--divider);
  padding: 100px 36px;
  text-align: center;
}

.apply-inner {
  max-width: 560px;
  margin: 0 auto;
}

.apply-heading {
  font-family: var(--tight);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.apply-sub {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
}


/* ═══════════════════════════════════════════════════════════
   CAREERS INDEX — department list + job rows
═══════════════════════════════════════════════════════════ */
.dept-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
}

.dept-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--divider);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 64px;
  align-items: start;
}

.dept-section:last-of-type { border-bottom: none; }

.dept-label {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.dept-number {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-label);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.dept-name {
  font-family: var(--tight);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dept-desc {
  font-size: 13px;
  color: var(--text-label);
  line-height: 1.55;
  margin-top: 6px;
  max-width: 200px;
}

.dept-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-top: 12px;
}

.dept-count-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.dept-count.none { color: var(--text-muted); }
.dept-count.none .dept-count-dot { background: var(--text-muted); }

/* Job list */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg-dark);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color 0.18s, background 0.18s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.job-row:hover {
  border-color: var(--divider-hi);
  background: #363c45;
}

.job-row-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.job-title {
  font-family: var(--tight);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.job-meta-item {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
}

.job-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.badge-open {
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
}

.badge-soon {
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--divider);
}

.job-arrow {
  color: var(--text-muted);
  transition: color 0.18s, transform 0.18s;
  flex-shrink: 0;
}

.job-row:hover .job-arrow {
  color: var(--teal);
  transform: translateX(3px);
}

.dept-empty {
  padding: 28px 24px;
  border: 1px dashed var(--divider);
  border-radius: 2px;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

/* Footer CTA (index page) */
.footer-cta {
  background: var(--bg-dark);
  border-top: 1px solid var(--divider);
  padding: 80px 36px;
  text-align: center;
}

.footer-cta-inner {
  max-width: 500px;
  margin: 0 auto;
}

.footer-cta h2 {
  font-family: var(--tight);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-cta p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 32px;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--divider);
  padding: 36px;
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo img { height: 20px; width: auto; opacity: 0.4; display: block; }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--text-body); }

.footer-eeo {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  max-width: 320px;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* JD sections */
  .jd-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 56px 0;
  }
  .section-label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position: static;
  }
  .hero-corner { display: none; }

  /* Dept sections */
  .dept-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 52px 0;
  }
  .dept-label {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
  }
  .dept-desc { display: none; }
  .dept-count { margin-top: 0; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-content { padding: 0 20px 52px; }
  .section-wrap,
  .dept-wrap { padding: 0 20px; }
  .apply-section,
  .footer-cta { padding: 64px 20px; }
  footer { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-eeo { text-align: left; }
  .comp-tiles { grid-template-columns: 1fr; }
  .hero-stat-row { gap: 28px; }
  .job-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}