/* Critical Path Recruitment — site styles */

:root {
  --navy: #0e1c2b;
  --navy-2: #16293d;
  --ink: #18222d;
  --steel: #56687a;
  --line: #d8dde2;
  --paper: #f5f3ee;
  --white: #ffffff;
  --amber: #f2a900;
  --amber-deep: #b87800;
  --amber-soft: #fdf1d3;

  --font-head: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --wrap: 1160px;
  --radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}
.on-dark .eyebrow { color: var(--amber); }

.lead { font-size: 1.15rem; color: var(--steel); max-width: 60ch; }
.on-dark .lead { color: #b9c4cf; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #ffbb1f; }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  color: var(--amber);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  color: #c9d2db;
  position: relative;
  padding: 6px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amber);
}
.nav .btn { padding: 10px 18px; color: var(--navy); }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* faint drawing-sheet grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero h1 .hl { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-compact .wrap {
  grid-template-columns: 1fr;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-compact h1 { max-width: 20ch; }

/* Critical path network diagram */
.cpm {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 18px 18px 10px;
}
.cpm-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a9aab;
  margin-bottom: 6px;
}
.cpm-legend { display: flex; gap: 14px; }
.cpm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cpm-legend i { width: 16px; height: 3px; display: inline-block; background: var(--amber); }
.cpm-legend i.nc { background: none; border-top: 2px dashed #5d6f82; height: 0; }

.cpm svg text { font-family: var(--font-mono); }
.cpm .node rect { fill: var(--navy-2); stroke: #3a4d61; stroke-width: 1.2; }
.cpm .node.crit rect { stroke: var(--amber); stroke-width: 1.8; }
.cpm .node .id { fill: #7f90a2; font-size: 9px; letter-spacing: .06em; }
.cpm .node.crit .id { fill: var(--amber); }
.cpm .node .lbl { fill: #e8edf2; font-size: 12px; font-family: var(--font-body); font-weight: 600; }
.cpm .node .dur { fill: #7f90a2; font-size: 9px; }
.cpm .link { fill: none; stroke: #5d6f82; stroke-width: 1.4; stroke-dasharray: 4 4; }
.cpm .link.crit {
  stroke: var(--amber);
  stroke-width: 2.6;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw 2.4s ease forwards .3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cpm .link.crit { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 52px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.section-white .card { background: var(--paper); }
.card:hover { border-color: #b9c2cb; box-shadow: 0 10px 30px -18px rgba(14,28,43,.35); }
.card .code {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--amber-deep);
  letter-spacing: .06em;
  display: block;
  margin-bottom: 14px;
}
.card p { color: var(--steel); font-size: .97rem; margin-bottom: 0; }
.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: .93rem;
  color: var(--steel);
}
.card li { padding: 6px 0; border-top: 1px dashed var(--line); }
.card li:first-child { border-top: 0; }

/* Process as a bar schedule */
.schedule {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  overflow: hidden;
}
.sched-row {
  display: grid;
  grid-template-columns: 90px 1.3fr 2fr;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sched-row:first-child { border-top: 0; }
.sched-row.head {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a9aab;
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(255,255,255,.03);
}
.sched-id { font-family: var(--font-mono); color: var(--amber); font-size: .85rem; }
.sched-task h3 { margin: 0 0 2px; font-size: 1.08rem; }
.sched-task p { margin: 0; font-size: .92rem; color: #aab6c2; }
.sched-bar {
  position: relative;
  height: 14px;
  background: rgba(255,255,255,.05);
  border-radius: 3px;
}
.sched-bar span {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--amber);
  border-radius: 3px;
}
.sched-bar span.ms {
  width: 14px !important;
  background: none;
}
.sched-bar span.ms::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--amber);
  transform: rotate(45deg);
}
.sched-note {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #8a9aab;
  margin-top: 16px;
}

/* Sector list */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.sector { padding: 26px 22px 10px 0; border-right: 1px solid var(--line); padding-left: 22px; }
.sector:first-child { padding-left: 0; }
.sector:last-child { border-right: 0; }
.sector h3 { font-size: 1.1rem; }
.sector p { color: var(--steel); font-size: .94rem; }

/* Feature rows */
.feature { display: flex; gap: 18px; }
.feature-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  display: grid;
  place-items: center;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--steel); font-size: .97rem; margin: 0; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Credential tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--amber-deep);
  font-size: 1.05rem;
  padding-top: 2px;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--steel); font-size: .97rem; }

/* Callout panel */
.panel {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 40px;
}
.panel p { color: #b9c4cf; }
.panel .mail {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1.05rem;
  margin: 6px 0 22px;
  word-break: break-all;
}
.panel ul { padding-left: 18px; color: #b9c4cf; margin: 0 0 24px; }
.panel li { margin-bottom: 6px; }
.fine { font-size: .82rem; color: #8a9aab !important; margin: 18px 0 0; }

/* Quote-style definition */
.definition {
  border-left: 3px solid var(--amber);
  padding: 6px 0 6px 24px;
  margin: 28px 0;
}
.definition .term { font-family: var(--font-mono); font-size: .85rem; color: var(--amber-deep); }
.definition p { font-size: 1.1rem; margin: 6px 0 0; }

/* CTA band */
.cta-band { background: var(--amber); color: var(--navy); padding: 64px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-outline { border-color: var(--navy); color: var(--navy); }
.cta-band .btn-outline:hover { background: rgba(14,28,43,.08); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #9fb0c0;
  font-size: .93rem;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .82rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 72px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .sector { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 8px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .grid-2, .grid-3, .grid-4, .sectors { grid-template-columns: 1fr; }
  .sched-row { grid-template-columns: 56px 1fr; gap: 14px; padding: 18px; }
  .sched-row .sched-bar, .sched-row.head span:last-child { display: none; }
  .panel { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cpm-legend { display: none; }
}
