/*
Theme Name: Client Job Manager
Theme URI: https://clientjobmanager.com/
Author: Client Job Manager
Description: Purpose-built product website theme for Client Job Manager.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: client-job-manager
*/

:root {
  --cjm-navy: #092846;
  --cjm-navy-deep: #061b31;
  --cjm-blue: #2468d8;
  --cjm-blue-soft: #eaf2ff;
  --cjm-green: #55a844;
  --cjm-amber: #f4b83f;
  --cjm-ink: #12233d;
  --cjm-muted: #5d6b7e;
  --cjm-line: #dbe4ee;
  --cjm-surface: #ffffff;
  --cjm-canvas: #f5f8fc;
  --cjm-radius: 18px;
  --cjm-shadow: 0 18px 50px rgba(9, 40, 70, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cjm-ink);
  background: var(--cjm-canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.cjm-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 10px; background: #fff; z-index: 9999; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 238, .85);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { display: block; width: 43px; height: 43px; }
.brand span { color: var(--cjm-navy); font-size: 1.04rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #42516a; font-size: .96rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { color: var(--cjm-blue); }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--cjm-blue);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(36,104,216,.22);
}
.button.secondary { border-color: #b9c9dc; background: #fff; color: var(--cjm-navy) !important; box-shadow: none; }
.nav-toggle { display: none; border: 1px solid var(--cjm-line); border-radius: 9px; background: #fff; padding: 9px 12px; font: inherit; font-weight: 700; }

.hero { position: relative; overflow: hidden; padding: 96px 0 82px; background: linear-gradient(145deg, #f9fbff 0%, #edf4ff 62%, #eef8ee 100%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -260px; border: 70px solid rgba(85,168,68,.12); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 14px; color: var(--cjm-blue); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--cjm-navy); line-height: 1.15; }
h1 { max-width: 730px; margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 660px; margin: 23px 0 29px; color: var(--cjm-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-note { margin-top: 22px; color: #64748b; font-size: .9rem; }
.product-card { position: relative; padding: 22px; border: 1px solid #cad8e8; border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: var(--cjm-shadow); }
.product-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-dots { display: flex; gap: 6px; }
.product-dots span { width: 8px; height: 8px; border-radius: 50%; background: #c3cfdb; }
.product-dots span:first-child { background: var(--cjm-amber); }
.mini-label { color: #6a7789; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.job-card { margin-top: 10px; padding: 16px; border: 1px solid #dce5ee; border-left: 4px solid var(--cjm-blue); border-radius: 11px; background: #fff; }
.job-line { display: flex; justify-content: space-between; gap: 12px; }
.job-name { color: var(--cjm-navy); font-weight: 850; }
.status { padding: 4px 9px; border-radius: 999px; background: #e4f5e6; color: #267039; font-size: .72rem; font-weight: 850; }
.job-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 18px; margin-top: 13px; color: #627083; font-size: .78rem; }

.section { padding: 88px 0; }
.section.white { background: #fff; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--cjm-muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--cjm-line); border-radius: var(--cjm-radius); background: var(--cjm-surface); box-shadow: 0 8px 30px rgba(9,40,70,.05); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--cjm-blue-soft); color: var(--cjm-blue); font-size: 1.25rem; font-weight: 900; }
.feature-card:nth-child(3n+2) .feature-icon { background: #eaf6e8; color: #347c2d; }
.feature-card:nth-child(3n) .feature-icon { background: #fff4dd; color: #a86500; }
.feature-card h3 { margin: 0 0 9px; font-size: 1.2rem; }
.feature-card p { margin: 0; color: var(--cjm-muted); }
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; counter-reset: flow; }
.workflow-step { position: relative; min-height: 155px; padding: 22px 18px; border-radius: 16px; background: var(--cjm-navy); color: #dce9f5; counter-increment: flow; }
.workflow-step::before { content: counter(flow, decimal-leading-zero); display: block; margin-bottom: 23px; color: var(--cjm-amber); font-size: .77rem; font-weight: 900; letter-spacing: .1em; }
.workflow-step strong { display: block; color: #fff; font-size: 1.02rem; }
.workflow-step span { display: block; margin-top: 6px; color: #b6c9dc; font-size: .84rem; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; border-radius: 24px; background: linear-gradient(120deg, var(--cjm-navy), #164e76); color: #d9e7f5; box-shadow: var(--cjm-shadow); }
.cta-panel h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta-panel p { margin: 0; }
.site-footer { padding: 38px 0; border-top: 1px solid var(--cjm-line); background: #fff; color: #667489; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

.page-content { min-height: 60vh; padding: 70px 0; }
.page-content article { max-width: 850px; padding: 38px; border: 1px solid var(--cjm-line); border-radius: var(--cjm-radius); background: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--cjm-line); border-radius: 14px; background: #fff; box-shadow: var(--cjm-shadow); }
  .site-nav.open { display: flex; }
  .hero { padding-top: 65px; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cjm-wrap { width: min(100% - 26px, 1180px); }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: .96rem; }
  .feature-grid, .workflow { grid-template-columns: 1fr; }
  .cta-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
  .cta-panel { padding: 30px 24px; }
  .job-meta { grid-template-columns: 1fr; }
}
