/* ==========================================================================
   Najah Talent — design tokens & base
   ========================================================================== */
:root {
  --bg: #0b0c0e;
  --bg-field: #0f1114;
  --surface: #141619;
  --border: #26282c;
  --border-soft: rgba(255, 255, 255, 0.09);
  --text: #e8eaed;
  --text-soft: #c3c7cd;
  --muted: #9aa0a8;
  --muted-2: #8b9099;
  --muted-3: #a4a9b0;
  --muted-4: #6b7075;
  --muted-5: #5c6067;
  --accent: #b6f24d;
  --accent-dim: #2f3a1a;
  --accent-dim-bg: #161d0c;
  --accent-ink: #0b0c0e;
  --accent-ink-2: #3d5417;
  --accent-ink-3: #33450f;
  --error: #ff8080;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --max: 1200px;
  --max-narrow: 1100px;
  --max-tight: 1000px;
  --max-form: 900px;
  --radius: 8px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
a:hover { opacity: 0.82; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }
::placeholder { color: var(--muted-5); }

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 32px; }
.wrap-tight { max-width: var(--max-tight); margin: 0 auto; padding: 0 32px; }
.wrap-form { max-width: var(--max-form); margin: 0 auto; padding: 0 32px; }

@media (max-width: 560px) {
  .wrap, .wrap-narrow, .wrap-tight, .wrap-form { padding: 0 22px; }
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: #3a3d42; color: var(--text); background: transparent; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.row-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-badge {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 16px;
}
.brand-word { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand-word .dim { color: var(--muted-2); }

.nav-desktop {
  display: flex;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-desktop a[aria-current="page"] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}
.menu-toggle svg { width: 18px; height: 18px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  padding: 14px 32px 20px;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid #1c1e22; }
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin-top: 12px; text-align: center; }

@media (max-width: 920px) {
  .nav-desktop, .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { padding: 14px 22px; }
}
body.menu-open .mobile-nav { display: flex; }

/* ==========================================================================
   Page hero (shared pattern across sub-pages)
   ========================================================================== */
.page-hero { padding: 80px 0 56px; }
.page-hero .eyebrow { margin-bottom: 22px; }
.hero-title {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 780px;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 560px;
}

/* Home hero — bigger, with visual */
.home-hero { padding: 90px 0 76px; position: relative; }
.home-hero .hero-title { font-size: clamp(34px, 7vw, 76px); line-height: 0.98; max-width: 560px; margin-bottom: 24px; }
.home-hero .hero-lede { margin-bottom: 36px; }
.hero-visual {
  position: absolute;
  top: 80px;
  right: 32px;
  width: 300px;
  height: 300px;
}
@media (max-width: 920px) {
  .hero-visual { display: none; }
}

/* ==========================================================================
   Stat row
   ========================================================================== */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat-cell {
  flex: 1 1 25%;
  padding: 26px 32px;
  border-right: 1px solid var(--border-soft);
}
.stat-cell:last-child { border-right: none; }
.stat-num { font-size: 30px; font-weight: 600; }
.stat-num .accent { color: var(--accent); }
.stat-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); text-transform: uppercase; }
@media (max-width: 920px) {
  .stat-cell { flex: 1 0 50%; border-bottom: 1px solid var(--border-soft); }
}

/* ==========================================================================
   Section headers & grids
   ========================================================================== */
.section { padding: 74px 0; }
.section-tight { padding: 30px 0 74px; }
.section-top-border { border-top: 1px solid var(--border-soft); }

.sec-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 34px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.sec-head-row .sec-title { margin: 0; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}
.card-lg { padding: 26px; }
.card-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-4); }
.card-accent .card-num { color: var(--accent-ink-2); }
.card h3 { font-size: 19px; font-weight: 600; margin: 16px 0 8px; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.card-accent p { color: var(--accent-ink-3); }

.tile {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
  display: block;
}
.tile-accent { border-color: var(--accent); }
.tile h3 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.tile-accent h3 { color: var(--accent); }
.tile p { font-size: 13px; color: var(--muted-2); line-height: 1.5; }

/* ==========================================================================
   Job rows (home / job board)
   ========================================================================== */
.job-list { display: flex; flex-direction: column; }
.job-list.boxed { gap: 12px; }

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.job-list.boxed .job-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}
.job-row[hidden] { display: none; }
.job-row-title { font-size: 18px; font-weight: 600; }
.job-row-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.job-row-pay { font-family: var(--font-mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
.job-list.boxed .job-row-title { font-size: 19px; }
.job-list.boxed .job-row-pay { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--text); }

.job-tags { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted-3);
}
.tag-accent { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-dim-bg); }

.job-side { text-align: right; white-space: nowrap; }
.job-side .apply-btn { display: inline-block; margin-top: 8px; }

@media (max-width: 560px) {
  .job-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .job-side { text-align: left; }
}

/* ==========================================================================
   Job board filters
   ========================================================================== */
.job-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.job-filter input[type="search"],
.job-filter select {
  background: var(--bg-field);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
}
.job-filter input[type="search"] { flex: 1; min-width: 220px; }
.job-filter select { padding: 13px 14px; font-size: 14px; }
.result-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); margin-top: 16px; }
@media (max-width: 560px) {
  .job-filter { flex-direction: column; align-items: stretch; }
}

.no-results { text-align: center; padding: 60px 20px; color: var(--muted-2); }
.no-results-title { font-size: 18px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.no-results p { font-size: 14px; margin-bottom: 18px; }

/* ==========================================================================
   Specialty detail rows
   ========================================================================== */
.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
}
.spec-row + .spec-row { margin-top: 16px; }
.spec-row h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.spec-row .accent-name { color: var(--accent); }
.spec-row-desc { font-size: 15px; color: var(--text-soft); line-height: 1.6; margin: 0 0 14px; }
.spec-roles { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); line-height: 1.9; }
@media (max-width: 920px) {
  .spec-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Split layout (checklist + illustration)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

.split h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; }
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-item { display: flex; gap: 12px; }
.check-item .mark { color: var(--accent); flex-shrink: 0; }
.check-item span:last-child { font-size: 15px; color: var(--text-soft); }

.illustration-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.illustration-panel svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 14px; }
.cta-band p { font-size: 16px; color: var(--muted); margin: 0 0 30px; }
.cta-band .row-actions { justify-content: center; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
@media (max-width: 560px) { .form-card { padding: 24px 20px; } }

.segmented {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  background: var(--bg-field);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px;
}
.seg-btn {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--muted-3);
}
.seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-top: 16px; }
.form-row .field { margin-top: 0; }
.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-field);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 12px; margin-top: 6px; }

.form-card .btn { margin-top: 24px; }

.form-success {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  display: none;
}
.form-success.visible { display: block; }
.form-success .check {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.form-success h2 { font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.form-success p { font-size: 15px; color: var(--muted); margin: 0 0 22px; }

/* ==========================================================================
   About / value cards
   ========================================================================== */
.value-card { border: 1px solid var(--border); border-radius: 8px; padding: 26px; }
.value-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.value-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-soft); margin-top: 20px; }
.footer-inner { padding: 48px 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 36px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: var(--muted-2); line-height: 1.55; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-head {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-4);
  margin-bottom: 14px;
  display: block;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted-3); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-4);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-legal a:not(:last-child)::after { content: '\00b7'; margin: 0 6px; color: var(--muted-4); }
@media (max-width: 560px) {
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-hero { padding: 70px 0 20px; }
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); margin-top: 10px; }
.legal-placeholder { color: var(--accent); }
.legal-body { padding: 20px 0 90px; }
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 20px; font-weight: 600; margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; color: var(--text-soft); line-height: 1.7; margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.legal-content li { font-size: 15px; color: var(--text-soft); line-height: 1.7; margin-bottom: 6px; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-note {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 30px;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-page { padding: 120px 0; text-align: center; }
.error-page .code { font-family: var(--font-mono); color: var(--accent); font-size: 14px; letter-spacing: 0.1em; margin-bottom: 18px; }
.error-page h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.error-page p { color: var(--muted); font-size: 16px; margin-bottom: 30px; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
