/* ============================================================
   IT STAFFING SOLUTION — shared sub-page template styles
   Content from Subpage-1_IT-Staffing-1.docx / Subpage-2_IT-Staffing-1.docx
   (2026-07-28 revamp). Used by both IT Staffing sub-pages via
   page-it-staffing-solution.php. Mirrors page-cybersecurity-solution.css's
   .cybersol-* component vocabulary exactly, renamed to the .staffsol-*
   prefix, plus two additions: .staffsol-outcome-card (a plain title+body
   card used for the outcomes 2-col grid, no image, no bullet list) and
   .staffsol-related-card (a link-card with a visible button, used by the
   "Related Resources" section that replaced the old builtfor_* philosophy
   panel — see the template's own header comment for why). The FAQ block
   reuses page-grc-solution.css's .grcsol-faq structure renamed to
   .staffsol-faq.
   ============================================================ */

.staffsol-page {
  --gutter: clamp(20px, 4vw, 50px);
  --gold: var(--ds-gold, #f6b43f);
  --navy: var(--ds-navy, #1e2e4c);
  --ink:  var(--ds-dark-900, #141414);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--t-bg);
  overflow-x: clip;
}

@media (scripting: enabled) {
  .staffsol-page .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s var(--ease-out); }
}
.staffsol-page .reveal.in { opacity: 1; transform: none; }

.staffsol-page a:focus-visible,
.staffsol-btn:focus-visible,
.staffsol-cta__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Inline-link highlight removed 2026-07-13: the page-wide `a` rule
   (gold background + underline + forced color) was styling buttons,
   breadcrumb links and links over dark bands as if they were inline
   hyperlinks. Links now inherit their component styles. */

/* ── shared atoms ── */
.staffsol-kicker { font-family: var(--ds-font-heading); font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; color: var(--t-text-muted, #5b6472); margin: 0 0 clamp(18px, 2.2vw, 32px); }
.staffsol-h2 { font-family: var(--ds-font-heading); font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.16; text-transform: uppercase; color: var(--navy); margin: 0 0 clamp(24px, 3vw, 40px); max-width: 26ch; }
[data-theme="dark"] .staffsol-h2 { color: var(--t-text); }
.staffsol-body { font-family: var(--ds-font-heading); font-size: clamp(15px, 1.4vw, 18px); font-weight: 400; line-height: 1.5; color: var(--t-text); margin: 0 0 16px; max-width: 90ch; }
.staffsol-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 2px solid var(--ink); padding: 16px 32px; font-family: var(--ds-font-heading); font-size: clamp(14px, 1.3vw, 16px); font-weight: 600; line-height: normal; text-transform: uppercase; text-decoration: none; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.staffsol-btn:hover { background: var(--gold); border-color: var(--gold); color: #141414; }
.staffsol-btn--outline { background: transparent; color: var(--t-text); border-color: var(--t-text); }
.staffsol-btn--outline:hover { background: var(--t-text); color: var(--t-bg); border-color: var(--t-text); }
[data-theme="dark"] .staffsol-btn { background: #f4f6f9; color: #141414; border-color: #f4f6f9; }
[data-theme="dark"] .staffsol-btn:hover { background: var(--gold); border-color: var(--gold); color: #141414; }
[data-theme="dark"] .staffsol-btn--outline { background: transparent; color: var(--t-text); border-color: var(--t-text); }
[data-theme="dark"] .staffsol-btn--outline:hover { background: var(--t-text); color: var(--t-bg); }
.staffsol-panel__text .staffsol-btn { margin-top: 8px; align-self: flex-start; }

.staffsol-split-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 48px); align-items: start; margin-bottom: clamp(32px, 4.5vw, 64px); }
.staffsol-split-head__label { font-family: var(--ds-font-heading); font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.15; text-transform: uppercase; color: var(--t-text); margin: 0; }
.staffsol-split-head__lead { font-family: var(--ds-font-heading); font-size: clamp(15px, 1.5vw, 18px); font-weight: 500; line-height: 1.3; color: var(--t-text); margin: 0; justify-self: end; text-align: right; max-width: 40ch; }

.staffsol-goldlist { list-style: none; margin: 0 0 clamp(20px, 2.4vw, 32px); padding: 0; display: flex; flex-direction: column; gap: 12px; }
.staffsol-goldlist li { background: var(--t-surface); border-left: 6px solid var(--gold); padding: 16px 20px 16px 22px; font-family: var(--ds-font-heading); font-size: clamp(14px, 1.4vw, 16px); font-weight: 500; line-height: 1.4; color: var(--t-text); transition: transform 0.3s ease, border-left-width 0.3s ease; }
.staffsol-goldlist li:hover { transform: translateX(6px); border-left-width: 12px; }
.staffsol-list-label { font-family: var(--ds-font-heading); font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; color: var(--t-text); margin: 0 0 12px; }


/* ════ 1. HERO ════ */
.staffsol-hero { background: var(--t-bg); padding: clamp(80px, 12vw, 100px) var(--gutter) clamp(40px, 5vw, 72px); }
.staffsol-hero__inner { margin: 0 auto; }
.staffsol-hero__rule { display: block; height: 1px; margin-bottom: clamp(28px, 4vw, 56px); }
.staffsol-hero .staffsol-kicker { margin-bottom: clamp(18px, 2vw, 28px); }
.staffsol-hero__title { font-family: var(--ds-font-heading); font-size: clamp(36px, 5.6vw, 76px); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; max-width: 22ch; color: var(--t-text); }
.staffsol-hero__title.is-clip-text { background-color: var(--t-text); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; background-position: center top; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.staffsol-hero__band { margin: clamp(32px, 5vw, 60px) auto 0; height: clamp(150px, 20vw, 280px); background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; }


/* ════ 2. INTRO ════ */
.staffsol-intro { background: var(--t-surface); padding: clamp(40px, 5vw, 72px) var(--gutter); }
.staffsol-intro__inner { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 48px); }
.staffsol-intro__lead { font-family: var(--ds-font-heading); font-size: clamp(16px, 1.6vw, 20px); font-weight: 400; line-height: 1.5; color: var(--t-text); margin: 0; max-width: 95ch; padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--t-border-strong, #d3dae4); }
.staffsol-intro__btns { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.5vw, 20px); }
.staffsol-intro__media { overflow: hidden; aspect-ratio: 1280 / 436; }
.staffsol-intro__media img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ════ 3/6/8. IMAGE+TEXT PANEL ════ */
.staffsol-panel { display: grid; grid-template-columns: clamp(280px, 30vw, 460px) minmax(0, 1fr); background: var(--t-surface); align-items: stretch; }
.staffsol-panel--reverse { grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 460px); }
.staffsol-panel--reverse .staffsol-panel__text { order: 0; }
.staffsol-panel--reverse .staffsol-panel__media { order: 1; }
/* plain variant — no image column (Overview) */
.staffsol-panel--plain { display: block; }
.staffsol-panel--plain .staffsol-panel__text { padding: clamp(40px, 5vw, 72px) var(--gutter); }
.staffsol-panel__media { overflow: hidden; min-height: 320px; }
.staffsol-panel__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staffsol-panel__text { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.staffsol-panel__text .staffsol-goldlist:last-child { margin-bottom: 0; }
.staffsol-panel__closing { font-style: italic; margin: 0; }


/* ════ 4. CORE CAPABILITIES ════ */
.staffsol-covers { background: var(--t-bg); padding: clamp(40px, 5vw, 80px) var(--gutter); }
/* Fixed 12-col track, not auto-fit/minmax: auto-fit's column count depends on
   viewport width, which strands a trailing card at some widths even when it
   looks even at others (see project-it-staffing-revamp-2026-07-28 memory).
   --n6 (sub-page 1): default span-4 gives an even 3+3. --n7 (sub-page 2):
   overridden to a deliberate 4+3 (first 4 cards span 3, last 3 span 4). */
.staffsol-covers__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.staffsol-gold-card { grid-column: span 4; background: var(--t-surface); border-left: 6px solid var(--gold); padding: clamp(24px, 2.4vw, 32px); transition: transform 0.3s ease, border-left-width 0.3s ease; }
.staffsol-covers__grid--n7 .staffsol-gold-card:nth-child(-n+4) { grid-column: span 3; }
.staffsol-covers__grid--n7 .staffsol-gold-card:nth-child(n+5) { grid-column: span 4; }
.staffsol-gold-card:hover { transform: translateY(-4px); border-left-width: 10px; }
.staffsol-gold-card__kicker { display: block; font-family: var(--ds-font-heading); font-size: clamp(12px, 1.1vw, 14px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-text-muted, #5b6472); margin-bottom: 8px; }
.staffsol-gold-card__title { font-family: var(--ds-font-heading); font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; line-height: 1.3; color: var(--t-text); margin: 0 0 14px; }
.staffsol-gold-card__list { margin: 0 0 16px; padding: 0 0 0 1.1em; display: flex; flex-direction: column; gap: 6px; }
.staffsol-gold-card__list li { font-family: var(--ds-font-heading); font-size: clamp(13px, 1.3vw, 15px); line-height: 1.4; color: var(--t-text-muted, #5b6472); }
.staffsol-gold-card__body { font-family: var(--ds-font-heading); font-size: clamp(13px, 1.3vw, 15px); font-style: italic; line-height: 1.45; color: var(--t-text-muted, #5b6472); margin: 0; }

/* Stepper variant of CORE CAPABILITIES — matches page-erp-crm.css §6 .erp-process/.erp-steps exactly, .staffsol-* prefixed */
.staffsol-process { background: var(--t-bg); padding: clamp(40px, 5vw, 80px) var(--gutter); }
.staffsol-process__head { margin-bottom: clamp(32px, 4vw, 56px); }
.staffsol-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.5vw, 24px); position: relative; }
.staffsol-steps::before { content: ""; position: absolute; top: clamp(24px, 3vw, 32px); left: 10%; right: 10%; height: 1px; background: var(--gold); }
.staffsol-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.staffsol-step__num { width: clamp(48px, 6vw, 64px); height: clamp(48px, 6vw, 64px); display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); background: var(--t-bg); font-family: var(--ds-font-heading); font-size: clamp(16px, 1.8vw, 22px); font-weight: 700; color: var(--t-text); position: relative; z-index: 1; margin-bottom: clamp(16px, 2vw, 28px); }
.staffsol-step__title { font-family: var(--ds-font-heading); font-size: clamp(16px, 1.8vw, 22px); font-weight: 700; text-transform: uppercase; color: var(--t-text); margin-bottom: 10px; }
.staffsol-step__desc { font-family: var(--ds-font-heading); font-size: clamp(13px, 1.3vw, 16px); line-height: 1.4; color: var(--t-text-muted, #5b6472); max-width: 24ch; }


/* ════ 7. OUTCOMES ════ */
.staffsol-outcomes { background: var(--t-bg); padding: clamp(40px, 5vw, 80px) var(--gutter); }
/* Same fixed-track fix as .staffsol-covers__grid above. --n5 (sub-page 1):
   6-col track, first 3 cards span 2 (row of 3), last 2 span 3 (row of 2) —
   the identical 3+2 split already proven on the main landing page's 5-card
   engagement-model grid (.its-models__grid). --n4 (sub-page 2): a plain
   4-col track, already an even single row, no spans needed. */
.staffsol-outcomes__grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.staffsol-outcomes__grid--n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.staffsol-outcomes__grid--n5 .staffsol-outcome-card:nth-child(-n+3) { grid-column: span 2; }
.staffsol-outcomes__grid--n5 .staffsol-outcome-card:nth-child(n+4) { grid-column: span 3; }
.staffsol-outcomes__grid--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.staffsol-outcome-card { background: var(--t-surface); border-left: 6px solid var(--gold); padding: clamp(22px, 2.2vw, 28px); transition: transform 0.3s ease, border-left-width 0.3s ease; }
.staffsol-outcome-card:hover { transform: translateY(-4px); border-left-width: 10px; }
.staffsol-outcome-card__title { font-family: var(--ds-font-heading); font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; line-height: 1.3; color: var(--t-text); margin: 0 0 10px; }
.staffsol-outcome-card__body { font-family: var(--ds-font-heading); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.45; color: var(--t-text-muted, #5b6472); margin: 0; }


/* ════ 8. RELATED RESOURCES ════ */
.staffsol-related { background: var(--t-surface); padding: clamp(40px, 5vw, 80px) var(--gutter); }
.staffsol-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.staffsol-related-card { display: flex; flex-direction: column; background: var(--t-bg); border: 1px solid var(--t-border-strong, #d3dae4); padding: clamp(28px, 3vw, 40px); }
.staffsol-related-card__title { font-family: var(--ds-font-heading); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.3; color: var(--t-text); margin: 0 0 12px; }
.staffsol-related-card__body { font-family: var(--ds-font-heading); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.5; color: var(--t-text-muted, #5b6472); margin: 0 0 clamp(20px, 2.4vw, 28px); flex: 1; }
.staffsol-related-card .staffsol-btn { align-self: flex-start; }


/* ════ 9. FAQ ════ */
.staffsol-faq { background: var(--t-bg); padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(56px, 7vw, 100px); }
.staffsol-faq__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 48px); align-items: start; margin-bottom: clamp(24px, 3vw, 40px); }
.staffsol-faq__title { font-family: var(--ds-font-heading); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; text-transform: uppercase; color: var(--t-text); margin: 0; }
.staffsol-faq__sub { font-family: var(--ds-font-heading); font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; color: var(--t-text); margin: 0; justify-self: end; text-align: right; }
.staffsol-faq__search { border-top: 1px solid var(--t-border-strong, #d3dae4); padding-top: clamp(20px, 2.4vw, 32px); margin-bottom: 8px; }
.staffsol-faq__input { width: 100%; max-width: 100%; padding: 14px 18px; font-family: var(--ds-font-heading); font-size: 16px; color: var(--t-text); background: var(--t-bg); border: 1px solid var(--t-border-strong, #d3dae4); border-radius: 0; }
.staffsol-faq__input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.staffsol-faq__item { border-bottom: 1px solid var(--t-border, rgba(9,16,29,0.12)); }
.staffsol-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 2vw, 24px) 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--ds-font-heading); font-size: 1rem; font-weight: 400; color: var(--t-text); }
.staffsol-faq__q span { flex: 1; min-width: 0; overflow-wrap: break-word; }
.staffsol-faq__chev { flex: 0 0 auto; color: var(--t-text); transition: transform 0.3s ease; }
.staffsol-faq__item.is-open .staffsol-faq__chev { transform: rotate(180deg); }
.staffsol-faq__item:not(.is-open) .staffsol-faq__a { display: none; }
.staffsol-faq__a p { margin: 0; padding: 0 0 clamp(18px, 2vw, 24px); font-family: var(--ds-font-heading); font-size: clamp(14px, 1.5vw, 18px); line-height: 1.5; color: var(--t-text-muted, #5b6472); max-width: 110ch; }
.staffsol-faq__empty { font-family: var(--ds-font-heading); font-size: 16px; color: var(--t-text-muted, #5b6472); padding-top: 20px; }


/* ════ 10. CTA ════ */
.staffsol-cta { background: var(--t-bg); }
.staffsol-cta__panel { padding: clamp(48px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; }
.staffsol-cta__title { font-family: var(--ds-font-heading); font-size: clamp(26px, 4.2vw, 52px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase; color: var(--t-text); margin: 0 0 clamp(16px, 2vw, 28px); max-width: 24ch; }
.staffsol-cta__title.is-clip-text { background-color: var(--t-text); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; background-position: center; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.staffsol-cta__sub { font-family: var(--ds-font-heading); font-size: clamp(15px, 1.5vw, 20px); font-weight: 400; line-height: 1.4; color: var(--t-text); margin: 0 0 clamp(24px, 3vw, 36px); max-width: 70ch; }
.staffsol-cta__btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 clamp(28px, 3vw, 44px); background: var(--ink); color: #fff; font-family: var(--ds-font-heading); font-size: clamp(15px, 1.4vw, 20px); font-weight: 600; text-transform: uppercase; text-decoration: none; transition: background 0.25s ease, color 0.25s ease; }
.staffsol-cta__btn:hover { background: var(--gold); color: #141414; }
[data-theme="dark"] .staffsol-cta__btn { background: #f4f6f9; color: #141414; }
[data-theme="dark"] .staffsol-cta__btn:hover { background: var(--gold); color: #141414; }
.staffsol-cta__band { height: clamp(160px, 22vw, 300px); background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; }


/* ════ RESPONSIVE ════ */
@media (hover: none), (max-width: 1024px) {
  .staffsol-hero__title.is-clip-text, .staffsol-hero__band,
  .staffsol-cta__title.is-clip-text, .staffsol-cta__band { background-attachment: scroll; }
}
@media (max-width: 860px) {
  .staffsol-hero { padding-top: clamp(110px, 20vw, 130px); }
  .staffsol-hero__title.is-clip-text { background-image: none !important; background-color: transparent; -webkit-background-clip: unset; background-clip: unset; -webkit-text-fill-color: var(--t-text); color: var(--t-text); }
  .staffsol-split-head { grid-template-columns: 1fr; }
  .staffsol-split-head__lead { justify-self: start; text-align: left; }
  .staffsol-panel,
  .staffsol-panel--reverse { grid-template-columns: 1fr; }
  .staffsol-panel__media { order: -1; aspect-ratio: 16/9; min-height: 0; }
  .staffsol-panel--reverse .staffsol-panel__media { order: -1; }
  .staffsol-panel--reverse .staffsol-panel__text { order: 1; }
  .staffsol-covers__grid { grid-template-columns: 1fr; }
  .staffsol-outcomes__grid { grid-template-columns: 1fr; }
  .staffsol-related__grid { grid-template-columns: 1fr; }
  .staffsol-steps { grid-template-columns: 1fr; gap: 28px; }
  .staffsol-steps::before { display: none; }
  .staffsol-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; flex-wrap: wrap; }
  .staffsol-step__num { margin-bottom: 0; flex: 0 0 auto; }
  .staffsol-step__desc { max-width: none; flex-basis: 100%; }
  .staffsol-faq__head { grid-template-columns: 1fr; }
  .staffsol-faq__sub { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  .staffsol-cta__title.is-clip-text { background-image: none !important; background-color: transparent; -webkit-background-clip: unset; background-clip: unset; -webkit-text-fill-color: var(--t-text); color: var(--t-text); }
}
@media (prefers-reduced-motion: reduce) {
  .staffsol-page .reveal { opacity: 1; transform: none; transition: none; }
  .staffsol-hero__title.is-clip-text, .staffsol-hero__band, .staffsol-cta__title.is-clip-text, .staffsol-cta__band { background-attachment: scroll; }
  .staffsol-page *, .staffsol-page *::before { transition: none !important; }
}
