/**
 * CP Staffing — Homepage expansion section styles
 * Extends css/styles.css tokens; does not introduce a second design system.
 */

.hero-proposition {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--text);
  line-height: 1.45;
  max-width: 560px;
  margin: 0 0 16px;
  font-weight: 500;
}

.hero-pathways {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.hero-pathway {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.pathway-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero-pathway:hover .pathway-label,
.hero-pathway:focus-visible .pathway-label {
  color: var(--blue-bright);
}

.pathway-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.hero-pathway:focus-visible {
  outline: 3px solid rgba(106, 168, 255, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Shared section patterns */
.section-intro {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-intro.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-intro h2,
.growth-constraints h2,
.cp-model h2,
.solution-paths h2,
.people-vs-tech h2,
.proof-trust h2,
.how-we-work h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 12px 0 20px;
}

.section-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 640px;
}

.section-lead.emphasis {
  color: var(--text);
  font-weight: 500;
}

/* SECTION 02 — Growth Constraints */
.growth-constraints {
  padding: 110px 7%;
  background: linear-gradient(180deg, #050a16 0%, #071124 100%);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 130px;
}

.constraint-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  max-width: var(--maxw);
}

.constraint-block {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  position: relative;
}

.constraint-block:last-child {
  border-right: none;
}

.constraint-index {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  color: rgba(106, 168, 255, 0.35);
  line-height: 1;
  margin-bottom: 20px;
}

.constraint-block h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.constraint-block p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  font-size: 15px;
}

.constraint-conclusion {
  margin: 40px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* SECTION 03 — CP Model */
.cp-model {
  padding: 110px 7%;
  background:
    radial-gradient(700px 500px at 20% 50%, rgba(58, 111, 214, 0.12), transparent 60%),
    linear-gradient(160deg, #060b18, #0a1428);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 130px;
}

.model-composition {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 1.2fr) 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: var(--maxw);
}

.model-column {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.model-column-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 24px;
}

.model-talent .model-column-label { color: var(--gold); }
.model-systems .model-column-label { color: var(--blue-bright); }

.model-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.model-column li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 15px;
}

.model-column li:last-child { border-bottom: none; }

.model-convergence {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}

.convergence-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(180deg, transparent, var(--blue), transparent);
}

.convergence-core {
  padding: 28px 20px;
  border: 1px solid rgba(106, 168, 255, 0.35);
  border-radius: 12px;
  background: rgba(58, 111, 214, 0.08);
  max-width: 100%;
}

.convergence-formula {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.convergence-arrow {
  display: block;
  color: var(--blue-bright);
  font-size: 20px;
  margin: 6px 0;
}

.convergence-result {
  display: block;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--gold);
}

/* SECTION 04 — Solution Paths */
.solution-paths {
  padding: 110px 7%;
  background: linear-gradient(180deg, #0a1325 0%, #0c182e 100%);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 130px;
}

.path-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.solution-path {
  display: grid;
  padding: 44px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 0.3s var(--ease);
}

.path-staffing { border-left: 3px solid var(--blue); }
.path-healthcare { border-left: 3px solid var(--steel); }
.path-business { border-left: 3px solid var(--purple); }

.solution-path:hover {
  border-color: rgba(106, 168, 255, 0.35);
}

.path-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 12px;
}

.path-content h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.path-content > p {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
  margin: 0 0 20px;
}

.path-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.path-capabilities li {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
}

.path-workflow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--line);
  background: rgba(4, 7, 14, 0.45);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.path-workflow span:not(.wf-arrow) {
  font-weight: 500;
  color: var(--text);
}

.wf-arrow {
  color: var(--blue-bright);
  font-size: 12px;
  line-height: 1;
  padding: 2px 0;
}

/* SECTION 05 — People vs Technology */
.people-vs-tech {
  padding: 110px 7%;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(124, 108, 240, 0.1), transparent 60%),
    #050a16;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 130px;
}

.decision-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin-bottom: 40px;
}

.decision-path {
  padding: 32px 28px;
  border-top: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.decision-path h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 12px;
}

.decision-path p {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
  font-size: 15px;
}

.decision-arrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--steel);
  margin: 0;
}

.decision-arrow span {
  color: var(--gold);
}

.decision-conclusion {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  max-width: 560px;
}

/* SECTION 06 — Proof + Trust */
.proof-trust {
  padding: 110px 7%;
  background: linear-gradient(150deg, #050a16, #0a1428 60%, #060b18);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 130px;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
}

.proof-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

.proof-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.proof-pillar,
.proof-metric {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.proof-pillar strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.proof-pillar p,
.proof-metric .metric-note {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.proof-metric .metric-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 600;
  background: linear-gradient(120deg, #bcd6ff, var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.proof-metric .metric-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 10px 0 8px;
}

/* SECTION 07 — How We Work */
.how-we-work {
  padding: 110px 7%;
  background: #060b16;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 130px;
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
}

.process-step {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  color: rgba(216, 180, 102, 0.5);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.process-step p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* SECTION 08 — Assessment wizard overrides */
.assessment {
  scroll-margin-top: 130px;
}

.assessment-wizard {
  width: 100%;
}

.growth-assessment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wizard-progress-text {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.wizard-progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-fill {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

.wizard-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.wizard-fieldset legend {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 0;
  line-height: 1.35;
}

.option-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 7, 14, 0.45);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.option-card:has(input:checked) {
  border-color: var(--blue-bright);
  background: rgba(58, 111, 214, 0.12);
}

.option-card:has(input:focus-visible) {
  outline: 3px solid rgba(106, 168, 255, 0.55);
  outline-offset: 2px;
}

.option-card input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-bright);
}

.option-card span {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

.contact-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-step legend {
  grid-column: 1 / -1;
}

.contact-step input[type="text"],
.contact-step input[type="email"],
.contact-step input[type="tel"] {
  background: rgba(4, 7, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  width: 100%;
}

.contact-step input:focus-visible {
  outline: 3px solid rgba(106, 168, 255, 0.55);
  outline-offset: 2px;
  border-color: var(--blue-bright);
}

.sms-consent-group {
  grid-column: 1 / -1;
  border: none;
  margin: 0;
  padding: 0;
}

.sms-consent-group legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 0;
}

.sms-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--dim);
  cursor: pointer;
}

.sms-consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--blue-bright);
}

.sms-consent a {
  color: var(--blue-bright);
  text-decoration: underline;
}

.sms-consent-marketing strong {
  color: var(--muted);
}

.sms-disclosure {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--dim);
  margin: 0;
}

.assessment-turnstile-wrap {
  grid-column: 1 / -1;
}

.wizard-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.wizard-actions[hidden],
.growth-assessment-form.is-submitted .wizard-actions {
  display: none !important;
}

.wizard-actions .btn[hidden] {
  display: none !important;
}

.assessment-turnstile-wrap[hidden],
.growth-assessment-form.is-submitted .assessment-turnstile-wrap {
  display: none !important;
}

.growth-assessment-form.is-submitted .wizard-progress,
.growth-assessment-form.is-submitted .wizard-step,
.growth-assessment-form.is-submitted .privacy-note {
  display: none !important;
}

.wizard-actions .btn {
  min-height: 44px;
  min-width: 120px;
}

.wizard-success {
  padding: 24px 0 8px;
}

.wizard-success h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--gold);
}

.wizard-success p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.growth-assessment-form .privacy-note {
  font-size: 12.5px;
  color: var(--dim);
  margin: 0;
}

.growth-assessment-form .privacy-note a {
  color: var(--blue-bright);
}

/* Responsive */
@media (max-width: 1024px) {
  .constraint-editorial,
  .model-composition,
  .decision-paths,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .constraint-block {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .constraint-block:last-child { border-bottom: none; }

  .model-convergence {
    flex-direction: row;
    padding: 20px 0;
  }

  .convergence-line {
    width: auto;
    height: 1px;
    flex: 1;
    min-height: 0;
    min-width: 40px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .assessment {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .option-group {
    grid-template-columns: 1fr;
  }

  .contact-step {
    grid-template-columns: 1fr;
  }

  .proof-pillars {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .process-step:first-child {
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .growth-constraints,
  .cp-model,
  .solution-paths,
  .people-vs-tech,
  .proof-trust,
  .how-we-work,
  .assessment {
    padding: 70px 22px;
    scroll-margin-top: 100px;
  }

  .solution-path {
    padding: 28px 22px;
  }

  .growth-assessment-form {
    padding: 24px;
  }

  .wizard-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-progress-fill {
    transition: none;
  }
}
