/* ============================================================
   Commerce Staffing — SHARED STYLESHEET
   Used sitewide by every page (homepage + all /hire/ pages).
   Contains: CSS variables, base styles, nav, mobile menu,
   footer, and reusable component classes.
   Page-specific sections (hero art, philosophy quote, practice
   grid, industries grid, contact form, etc.) stay inline in
   each page's own <style> block since they're one-off layouts.
   ============================================================ */

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

:root {
  --navy:     #1c3461;
  --navy-dk:  #122249;
  --navy-lt:  #2a4a82;
  --sky:      #e8eef8;
  --white:    #ffffff;
  --off:      #f7f8fc;
  --rule:     #dde3f0;
  --ink:      #0e1829;
  --ink-2:    #1f2d47;
  --ink-3:    #55658a;
  --black:    #080c14;
  --gold:     #c8a96e;
  --sans:     'Manrope', system-ui, sans-serif;
  --serif:    'Libre Baskerville', Georgia, serif;
  --r:        clamp(24px, 5vw, 80px);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
a { color: inherit; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--r);
  transition: background .4s, border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(255,255,255,.97);
  border-color: var(--rule);
  box-shadow: 0 1px 24px rgba(14,24,41,.06);
}
.nav-logo-slot { display: flex; align-items: center; min-width: 44px; }
.nav-logo { display: flex; align-items: center; color: var(--navy); transition: opacity .2s; }
.nav-logo:hover { opacity: .75; }
.nav-logo svg { display: block; height: 34px; width: auto; }

/* Logo, used inline at the top of .page-hero on pages that have one
   (About, Contact) — left-aligned, sitting on the same row as the
   eyebrow/heading/paragraph block, stretched to match its full height,
   rather than as its own separate section above or below. Not used on
   the homepage (has its own hero logo) or Insights/hire pages (different
   hero structure entirely). */
/* Logo now lives in the nav (see .nav-logo above) rather than inline in
   .page-hero content — removed the divided-column hero-logo treatment
   that used to live here. */
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: .05em;
  color: rgba(255,255,255,.85); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: rgba(255,255,255,1); }
.nav.solid .nav-links a { color: var(--ink-2); }
.nav.solid .nav-links a:hover { color: var(--navy); }
.nav-cta {
  padding: 11px 26px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 4px;
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background .2s, border-color .2s !important;
}
.nav-cta:hover { background: rgba(255,255,255,.25) !important; border-color: rgba(255,255,255,.8) !important; }
.nav.solid .nav-cta { background: var(--navy) !important; border-color: var(--navy) !important; color: var(--white) !important; }
.nav.solid .nav-cta:hover { background: var(--navy-lt) !important; border-color: var(--navy-lt) !important; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; position: absolute; right: var(--r); top: 50%; transform: translateY(-50%); }
.burger span { display: block; width: 22px; height: 1.5px; background: white; border-radius: 2px; transition: background .3s; }
.nav.solid .burger span { background: var(--ink); }

/* Pages that render the nav solid from the start (no hero image behind it,
   e.g. /hire/ pages) get body padding so content doesn't sit under the fixed nav. */
body.nav-static-solid { padding-top: 76px; }

/* ── MOBILE MENU ──
   z-index is deliberately higher than .nav (200) so the panel fully
   covers the nav bar — previously .mob sat at 190 (below .nav), which
   hid the close button behind the fixed nav bar whenever the menu
   was open, leaving no visible way to close it. */
.mob {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: var(--white);
  flex-direction: column;
  align-items: stretch;
  padding: 22px var(--r) 40px;
  overflow-y: auto;
}
.mob.open { display: flex; }

.mob-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 26px; margin-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.mob-logo { display: flex; align-items: center; color: var(--navy); }
.mob-logo svg { display: block; height: 30px; width: auto; }
.mob-x {
  background: none; border: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--ink-3);
  padding: 4px 6px; margin: -4px -6px;
  transition: color .2s;
}
.mob-x:hover { color: var(--ink); }

.mob-links { display: flex; flex-direction: column; }
.mob-links a {
  font-size: 21px; font-weight: 600; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em;
  padding: 19px 0; border-bottom: 1px solid var(--rule);
  transition: color .2s;
}
.mob-links a:hover { color: var(--navy); }

.mob-cta {
  display: block; text-align: center; margin-top: 26px;
  padding: 16px 34px; background: var(--navy); color: var(--white) !important;
  border-radius: 4px; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .03em;
  transition: background .2s, transform .2s;
}
.mob-cta:hover { background: var(--navy-lt); transform: translateY(-2px); }

/* ── REUSABLE SECTION / COMPONENT CLASSES ──
   Used by homepage sections AND every /hire/ practice-area page. */
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--navy);
  margin-bottom: 16px; display: block;
}
.section-h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 40px;
}
.btn-navy {
  display: inline-block; padding: 15px 34px;
  background: var(--navy); color: var(--white);
  border-radius: 4px; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .03em;
  transition: background .2s, transform .2s;
}
.btn-navy:hover { background: var(--navy-lt); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; padding: 14px 34px;
  border: 1.5px solid var(--rule); color: var(--ink-2);
  border-radius: 4px; text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-white {
  display: inline-block; padding: 16px 40px;
  background: var(--white); color: var(--navy);
  border-radius: 4px; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-white:hover { background: var(--sky); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.2); }

/* FAQ item pattern (homepage + hire pages) */
.faq-item { border-top: 1px solid var(--rule); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q { font-size: 17px; font-weight: 700; color: var(--navy-dk); margin-bottom: 10px; line-height: 1.4; }
.faq-a { font-size: 15.5px; font-weight: 300; line-height: 1.75; color: var(--ink-2); }

/* Signal / differentiator card pattern (hire pages) */
.signal-card { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 28px; }
.signal-num { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); margin-bottom: 12px; }
.signal-title { font-size: 17px; font-weight: 700; color: var(--navy-dk); margin-bottom: 8px; }
.signal-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* ── FOOTER ── */
footer.site-footer { background: var(--black); padding: 80px var(--r) 40px; }
.ftop {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 52px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.fdesc { font-size: 15px; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,.75); max-width: 320px; margin-bottom: 14px; }
.fsist { font-size: 14px; color: rgba(255,255,255,.6); }
.fsist a { color: rgba(155,175,255,.75); text-decoration: none; transition: color .2s; }
.fsist a:hover { color: rgba(155,175,255,1); }
.fclbl { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 20px; display: block; }
.flinks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.flinks a { font-size: 15px; font-weight: 400; color: rgba(255,255,255,.85); text-decoration: none; transition: color .25s; }
.flinks a:hover { color: #ffffff; }
.fbot { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 32px; }
.fcopy { font-size: 13.5px; color: rgba(255,255,255,.6); }
.flegal { display: flex; gap: 22px; list-style: none; }
.flegal a { font-size: 13.5px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.flegal a:hover { color: #ffffff; }

/* ── CONTACT / FORM (used on homepage #contact section and the dedicated /contact/ page) ── */
.contact { padding: 100px var(--r); background: var(--white); border-top: 1px solid var(--rule); }
.contact-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
.contact-desc { font-size: 17px; font-weight: 300; line-height: 1.8; color: var(--ink-2); margin-top: 20px; margin-bottom: 40px; }
.contact-facts { display: flex; flex-direction: column; gap: 14px; }
.cf { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; font-weight: 300; color: var(--ink-2); line-height: 1.55; }
.cf svg { width: 17px; height: 17px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.cf a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule); transition: color .2s, border-color .2s; }
.cf a:hover { color: var(--navy); border-color: var(--navy); }

.form-card { background: var(--off); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(32px, 4.5vw, 52px); }
.form-title { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 28px; letter-spacing: -.01em; }
.frow { margin-bottom: 15px; }
.frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.flbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.fc { width: 100%; padding: 13px 15px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; outline: none; font-family: var(--sans); font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; appearance: none; }
.fc::placeholder { color: var(--rule); }
.fc:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,52,97,.1); }
select.fc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238494b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
textarea.fc { resize: vertical; min-height: 96px; }
.fsub { width: 100%; padding: 15px; background: var(--navy); color: var(--white); border: none; border-radius: 6px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .04em; cursor: pointer; margin-top: 6px; transition: background .2s, transform .2s, box-shadow .2s; }
.fsub:hover { background: var(--navy-lt); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(28,52,97,.25); }
.fnote { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 10px; line-height: 1.5; }
.fsucc { display: none; text-align: center; padding: 44px 0; }
.fsucc-ring { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.fsucc-ring svg { width: 22px; height: 22px; color: var(--navy); }
.fsucc h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.fsucc p { font-size: 16px; font-weight: 300; color: var(--ink-2); line-height: 1.65; }

@media (max-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .frow2 { grid-template-columns: 1fr; }
}

/* ── PAGE HERO (used by /contact/ and other simple inner pages) ── */
.page-hero { padding: 56px var(--r) 64px; }
.page-hero-inner { max-width: 800px; margin: 0 auto; }
.page-hero.page-hero-wide .page-hero-inner { max-width: 1280px; }
.page-hero .section-eyebrow { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--navy-dk); letter-spacing: -.02em; margin-bottom: 16px; }
.page-hero p { font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--ink-2); max-width: 560px; }

/* ── CTA STRIP (used by every /hire/ page and blog post) ── */
.cta-strip { background: var(--navy-dk); padding: 56px var(--r); text-align: center; }
.cta-strip h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 20px; }
.cta-strip .btn-navy { background: var(--gold); color: var(--navy-dk); }
.cta-strip .btn-navy:hover { background: #d4b97e; }

/* ── COMPARISON TABLE (used by every /hire/ page and comparison blog posts) ── */
table.cmp { width: 100%; border-collapse: collapse; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
table.cmp th, table.cmp td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--rule); }
table.cmp th { background: var(--navy); color: var(--white); font-weight: 700; }
table.cmp td:first-child { font-weight: 600; color: var(--ink-2); width: 32%; }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp td.yes { color: var(--navy); font-weight: 700; }

/* ── BLOG ── */
.blog-hero { padding: 56px var(--r) 40px; max-width: 800px; margin: 0 auto; }
.blog-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.blog-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--sky); padding: 6px 12px; border-radius: 100px; }
.blog-date { font-size: 13.5px; color: var(--ink-3); }
.blog-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--navy-dk); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 18px; }
.blog-dek { font-size: 18px; font-weight: 300; line-height: 1.7; color: var(--ink-2); }

.blog-post { padding: 0 var(--r) 40px; max-width: 800px; margin: 0 auto; }
.blog-post h2 { font-size: 24px; font-weight: 700; color: var(--navy-dk); margin: 44px 0 16px; letter-spacing: -.01em; }
.blog-post h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.blog-post p { font-size: 16.5px; font-weight: 300; line-height: 1.85; color: var(--ink-2); margin-bottom: 18px; }
.blog-post ul, .blog-post ol { margin: 0 0 18px 24px; }
.blog-post li { font-size: 16.5px; font-weight: 300; line-height: 1.8; color: var(--ink-2); margin-bottom: 10px; }
.blog-post a { color: var(--navy); text-decoration: underline; }
.blog-post strong { color: var(--ink); font-weight: 700; }
.blog-post table.cmp { margin: 24px 0; }
.blog-post .signal-grid { margin: 8px 0 24px; }

.blog-signals { padding: 0 var(--r) 8px; max-width: 800px; margin: 0 auto; }
.blog-signals .signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.blog-faq { padding: 40px var(--r) 8px; max-width: 800px; margin: 0 auto; }

.blog-other { padding: 56px var(--r) 80px; background: var(--off); margin-top: 40px; }
.blog-other-inner { max-width: 1080px; margin: 0 auto; }
.blog-other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.blog-other-card { display: block; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 20px; text-decoration: none; transition: border-color .2s; }
.blog-other-card:hover { border-color: var(--navy); }
.blog-other-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.blog-other-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }

/* Listing page */
.blog-list-hero { padding: 64px var(--r) 40px; max-width: 1280px; margin: 0 auto; text-align: center; }
.blog-list-hero h1 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; color: var(--navy-dk); letter-spacing: -.02em; margin-bottom: 16px; }
.blog-list-hero p { font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.blog-grid-wrap { padding: 40px var(--r) 100px; max-width: 1080px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { display: block; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 32px; text-decoration: none; transition: border-color .2s, transform .2s; }
.blog-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.blog-card-title { font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 12px; letter-spacing: -.01em; }
.blog-card-excerpt { font-size: 14.5px; font-weight: 300; line-height: 1.7; color: var(--ink-2); }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-signals .signal-grid { grid-template-columns: 1fr; }
  .blog-other-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── LEGAL / PROSE PAGES (Privacy Policy, Terms & Conditions) ── */
.legal-page { padding: 56px var(--r) 100px; max-width: 820px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(30px, 3.5vw, 42px); font-weight: 800; color: var(--navy-dk); letter-spacing: -.02em; margin-bottom: 8px; }
.legal-updated { font-size: 14px; color: var(--ink-3); margin-bottom: 44px; }
.legal-page h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 40px 0 14px; }
.legal-page p { font-size: 15.5px; font-weight: 300; line-height: 1.8; color: var(--ink-2); margin-bottom: 16px; }
.legal-page ul { margin: 0 0 16px 22px; }
.legal-page li { font-size: 15.5px; font-weight: 300; line-height: 1.8; color: var(--ink-2); margin-bottom: 8px; }
.legal-page a { color: var(--navy); text-decoration: underline; }

.sr { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.sr.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ── RESPONSIVE (shared elements only) ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .ftop { grid-template-columns: 1fr; }
}
