/* SiteHatchery contract-services design system (2026 repositioning).
   Scoped to .sh-* classes so it can coexist with legacy theme CSS on blog/legal pages. */
:root {
  --sh-ink: #0b0d1a;
  --sh-ink-2: #131424;
  --sh-ink-3: #1c1e33;
  --sh-blue: #378cd6;
  --sh-blue-2: #5aa8ec;
  --sh-yellow: #f8d000;
  --sh-text: #1f2233;
  --sh-muted: #5b6275;
  --sh-line: #e3e7ef;
  --sh-soft: #f4f6fa;
  --sh-on-dark: #f5f7fb;
  --sh-on-dark-muted: #aab3c5;
  --sh-radius: 14px;
  --sh-max: 1180px;
  --sh-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sh-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.sh-contract {
  margin: 0;
  font-family: var(--sh-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--sh-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.sh-contract *, .sh-contract *::before, .sh-contract *::after { box-sizing: border-box; }
.sh-contract img { max-width: 100%; height: auto; display: block; }
.sh-contract a { color: var(--sh-blue); }
.sh-contract h1, .sh-contract h2, .sh-contract h3, .sh-contract h4 {
  font-family: var(--sh-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: inherit;
  text-wrap: balance;
}
.sh-contract p { margin: 0 0 1em; }

.sh-wrap { width: min(var(--sh-max), calc(100% - 40px)); margin: 0 auto; }
.sh-narrow { max-width: 760px; }

/* ---------- Header ---------- */
.sh-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11, 13, 26, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--sh-head);
}
.admin-bar .sh-header { top: 32px; }
.sh-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.sh-header__logo img { width: 210px; height: auto; display: block; }
.sh-nav { display: flex; align-items: center; gap: 6px; }
.sh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.sh-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--sh-on-dark-muted); text-decoration: none; font-size: 15px; font-weight: 500;
}
.sh-nav a:hover, .sh-nav .current-menu-item > a, .sh-nav .current_page_item > a { color: #fff; background: rgba(255,255,255,.07); }
.sh-nav .sh-nav__cta { margin-left: 10px; }
.sh-menu-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff;
  border-radius: 8px; padding: 8px 10px; font-size: 20px; line-height: 1; cursor: pointer;
}

/* ---------- Buttons ---------- */
.sh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-family: var(--sh-head); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.sh-btn:hover { transform: translateY(-1px); }
.sh-contract .sh-btn--primary, .sh-btn--primary { background: var(--sh-yellow); color: var(--sh-ink); }
.sh-btn--primary:hover { background: #ffdd2e; color: var(--sh-ink); }
.sh-contract .sh-btn--ghost, .sh-btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.sh-btn--ghost:hover { border-color: #fff; color: #fff; }
.sh-contract .sh-btn--dark, .sh-btn--dark { background: var(--sh-ink); color: #fff; }
.sh-btn--dark:hover { background: var(--sh-ink-3); color: #fff; }
.sh-contract .sh-btn--outline, .sh-btn--outline { border-color: var(--sh-ink); color: var(--sh-ink); background: transparent; }
.sh-btn--sm { padding: 9px 16px; font-size: 14px; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
.sh-section { padding: 96px 0; }
.sh-section--soft { background: var(--sh-soft); }
.sh-section--dark { background: var(--sh-ink-2); color: var(--sh-on-dark); }
.sh-section--dark p, .sh-section--dark li { color: var(--sh-on-dark-muted); }
.sh-section--tight { padding: 64px 0; }
.sh-eyebrow {
  display: inline-block; font-family: var(--sh-head); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sh-blue); margin-bottom: 14px;
}
.sh-section--dark .sh-eyebrow, .sh-hero .sh-eyebrow { color: var(--sh-yellow); }
.sh-section__head { max-width: 760px; margin-bottom: 48px; }
.sh-section__head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sh-section__head p { font-size: 19px; color: var(--sh-muted); }
.sh-section--dark .sh-section__head p { color: var(--sh-on-dark-muted); }
.sh-lead { font-size: 20px; color: var(--sh-muted); }

/* ---------- Hero ---------- */
.sh-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 75% 40%, rgba(55,140,214,.18), transparent 55%), var(--sh-ink);
  color: var(--sh-on-dark);
  padding: 110px 0 100px;
}
.sh-hero__art {
  position: absolute; inset: 0 0 0 auto; width: 62%;
  background-size: cover; background-position: center left;
  opacity: .9;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
          mask-image: linear-gradient(to right, transparent 0%, #000 35%);
}
.sh-hero__inner { position: relative; max-width: 660px; }
.sh-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; margin-bottom: 22px; }
.sh-hero h1 em { font-style: normal; color: var(--sh-yellow); }
.sh-hero p { font-size: 20px; color: var(--sh-on-dark-muted); max-width: 600px; }
.sh-hero--page { padding: 88px 0 80px; }
.sh-hero--page h1 { font-size: clamp(34px, 4.6vw, 54px); }

.sh-trust {
  position: relative; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px;
  font-size: 14px; color: var(--sh-on-dark-muted); font-family: var(--sh-head);
}
.sh-trust span { display: inline-flex; align-items: center; gap: 8px; }
.sh-trust i { color: var(--sh-yellow); }

/* ---------- Stats ---------- */
.sh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }
.sh-stat { padding: 34px 24px; border-right: 1px solid var(--sh-line); }
.sh-stat:last-child { border-right: 0; }
.sh-stat strong { display: block; font-family: var(--sh-head); font-size: 40px; line-height: 1; color: var(--sh-ink); margin-bottom: 8px; letter-spacing: -0.03em; }
.sh-stat span { font-size: 15px; color: var(--sh-muted); }

/* ---------- Cards / grids ---------- */
.sh-grid { display: grid; gap: 24px; }
.sh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sh-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sh-card {
  background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius);
  padding: 30px; display: flex; flex-direction: column;
}
.sh-section--soft .sh-card { border-color: transparent; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.sh-section--dark .sh-card { background: var(--sh-ink-3); border-color: rgba(255,255,255,.08); }
.sh-card h3 { font-size: 21px; margin-bottom: 10px; }
.sh-card p { color: var(--sh-muted); font-size: 16px; }
.sh-section--dark .sh-card p { color: var(--sh-on-dark-muted); }
.sh-card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(55,140,214,.1); color: var(--sh-blue); font-size: 22px; margin-bottom: 20px;
}
.sh-section--dark .sh-card__icon { background: rgba(248,208,0,.12); color: var(--sh-yellow); }
.sh-card__more { margin-top: auto; padding-top: 12px; font-family: var(--sh-head); font-weight: 600; font-size: 15px; text-decoration: none; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.sh-tag {
  font-size: 13px; font-family: var(--sh-head); font-weight: 500;
  padding: 4px 10px; border-radius: 999px; background: var(--sh-soft); color: var(--sh-ink-3);
  border: 1px solid var(--sh-line);
}
.sh-section--dark .sh-tag { background: rgba(255,255,255,.06); color: var(--sh-on-dark); border-color: rgba(255,255,255,.1); }

/* ---------- Split (text + image) ---------- */
.sh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sh-split--wide-text { grid-template-columns: 1.15fr .85fr; }
.sh-split__media img { border-radius: var(--sh-radius); width: 100%; }
.sh-split h2 { font-size: clamp(28px, 3.2vw, 40px); }

.sh-checks { list-style: none; padding: 0; margin: 20px 0 0; }
.sh-checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.sh-checks li::before {
  content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px;
  color: var(--sh-blue); font-size: 19px;
}
.sh-section--dark .sh-checks li::before { color: var(--sh-yellow); }

/* ---------- Steps ---------- */
.sh-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.sh-step { position: relative; padding-top: 56px; }
.sh-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--sh-head); font-weight: 700; font-size: 34px;
  color: var(--sh-blue); line-height: 1;
}
.sh-section--dark .sh-step::before { color: var(--sh-yellow); }
.sh-step h3 { font-size: 19px; }
.sh-step p { font-size: 16px; color: var(--sh-muted); }
.sh-section--dark .sh-step p { color: var(--sh-on-dark-muted); }

/* ---------- Case studies ---------- */
.sh-case { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--sh-line); }
.sh-case:first-of-type { border-top: 0; padding-top: 0; }
.sh-case__meta { font-family: var(--sh-head); font-size: 14px; color: var(--sh-muted); }
.sh-case__meta strong { display: block; color: var(--sh-ink); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.sh-case__meta .sh-tag { margin-top: 10px; display: inline-block; }
.sh-case h3 { font-size: 25px; }
.sh-case dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 20px; margin: 18px 0 0; }
.sh-case dt { font-family: var(--sh-head); font-weight: 600; font-size: 14px; color: var(--sh-ink); padding-top: 2px; }
.sh-case dd { margin: 0; color: var(--sh-muted); }

/* ---------- Capability statement ---------- */
.sh-capstat { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.sh-capstat__facts {
  background: var(--sh-ink-2); color: var(--sh-on-dark); border-radius: var(--sh-radius); padding: 30px;
  position: sticky; top: 100px;
}
.sh-capstat__facts h3 { font-size: 18px; color: var(--sh-yellow); margin-bottom: 18px; }
.sh-facts { margin: 0; }
.sh-facts div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sh-facts div:last-child { border-bottom: 0; }
.sh-facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-on-dark-muted); font-family: var(--sh-head); }
.sh-facts dd { margin: 2px 0 0; font-family: var(--sh-head); font-weight: 600; font-size: 16px; color: #fff; }
.sh-naics { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 16px; }
.sh-naics th, .sh-naics td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--sh-line); vertical-align: top; }
.sh-naics th { font-family: var(--sh-head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-muted); }
.sh-naics td:first-child { font-family: var(--sh-head); font-weight: 600; color: var(--sh-ink); white-space: nowrap; }
.sh-block { margin-bottom: 44px; }
.sh-block h2 { font-size: 26px; padding-bottom: 12px; border-bottom: 3px solid var(--sh-yellow); display: inline-block; margin-bottom: 20px; }

/* ---------- Team ---------- */
.sh-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.sh-person { background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); overflow: hidden; display: flex; flex-direction: column; }
.sh-person__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sh-ink-2); }
.sh-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sh-person__body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.sh-person h3 { font-size: 24px; margin-bottom: 2px; }
.sh-person__role { font-family: var(--sh-head); font-weight: 600; color: var(--sh-blue); margin-bottom: 16px; }
.sh-person p { color: var(--sh-muted); font-size: 16px; }
.sh-person__links { display: flex; gap: 16px; margin-top: auto; padding-top: 16px; font-family: var(--sh-head); font-size: 15px; font-weight: 600; }
.sh-person__links a { text-decoration: none; }

/* ---------- Partner model ---------- */
.sh-model { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); overflow: hidden; background: #fff; }
.sh-model > div { padding: 32px; border-right: 1px solid var(--sh-line); }
.sh-model > div:last-child { border-right: 0; }
.sh-model h3 { font-size: 20px; }
.sh-model__who { font-family: var(--sh-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-blue); margin-bottom: 10px; display: block; }
.sh-model ul { padding-left: 18px; margin: 0; color: var(--sh-muted); font-size: 16px; }
.sh-model li { margin-bottom: 8px; }

.sh-quote {
  border-left: 4px solid var(--sh-yellow); padding: 6px 0 6px 24px; margin: 28px 0 0;
  font-family: var(--sh-head); font-size: 21px; line-height: 1.45; color: var(--sh-ink);
}
.sh-section--dark .sh-quote { color: #fff; }

/* ---------- Tech strip ---------- */
.sh-tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sh-tech h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--sh-blue); margin-bottom: 12px; }
.sh-section--dark .sh-tech h4 { color: var(--sh-yellow); }
.sh-tech ul { list-style: none; padding: 0; margin: 0; }
.sh-tech li { padding: 5px 0; font-size: 16px; }

/* ---------- CTA band ---------- */
.sh-cta {
  background: linear-gradient(120deg, var(--sh-ink) 0%, var(--sh-ink-3) 100%);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.sh-cta::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(248,208,0,.16), transparent 65%);
}
.sh-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sh-cta h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.sh-cta p { color: var(--sh-on-dark-muted); margin: 0; font-size: 18px; max-width: 620px; }
.sh-cta .sh-actions { margin-top: 0; }

/* ---------- Contact ---------- */
.sh-contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.sh-form-card { background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); padding: 36px; }
.sh-form-card .wpcf7-form p { margin-bottom: 18px; }
.sh-form-card label { display: block; font-family: var(--sh-head); font-weight: 600; font-size: 14px; color: var(--sh-ink); margin-bottom: 6px; }
.sh-form-card input[type=text], .sh-form-card input[type=email], .sh-form-card input[type=tel], .sh-form-card select, .sh-form-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd5e1; border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--sh-text); background: #fff; margin-top: 6px;
}
.sh-form-card input:focus, .sh-form-card select:focus, .sh-form-card textarea:focus { outline: 2px solid var(--sh-blue); outline-offset: 1px; border-color: var(--sh-blue); }
.sh-form-card textarea { min-height: 150px; }
.sh-form-card .sh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-form-card input[type=submit] {
  background: var(--sh-yellow); color: var(--sh-ink); border: 0; border-radius: 10px; padding: 14px 26px;
  font-family: var(--sh-head); font-weight: 700; font-size: 16px; cursor: pointer;
}
.sh-form-card .wpcf7-not-valid-tip { font-size: 14px; }
.sh-contact__aside h3 { font-size: 18px; margin-bottom: 6px; }
.sh-contact__aside p { color: var(--sh-muted); }
.sh-contact__aside .sh-aside-block { padding: 22px 0; border-bottom: 1px solid var(--sh-line); }
.sh-contact__aside .sh-aside-block:first-child { padding-top: 0; }

/* ---------- Footer ---------- */
.sh-footer { background: var(--sh-ink); color: var(--sh-on-dark-muted); padding: 72px 0 32px; font-size: 15px; font-family: var(--sh-body); }
.sh-footer a { color: var(--sh-on-dark-muted); text-decoration: none; }
.sh-footer a:hover { color: #fff; }
.sh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.sh-footer h4 { font-family: var(--sh-head); color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.sh-footer ul { list-style: none; margin: 0; padding: 0; }
.sh-footer li { margin-bottom: 9px; }
.sh-footer__logo img { width: 190px; margin-bottom: 18px; }
.sh-footer__ids { font-family: var(--sh-head); font-size: 13px; line-height: 1.9; }
.sh-footer__ids strong { color: #fff; font-weight: 600; }
.sh-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Print (capability statement) ---------- */
@media print {
  .sh-header, .sh-footer, .sh-cta, .sh-no-print { display: none !important; }
  .sh-hero { background: #fff !important; color: #000 !important; padding: 0 0 16px !important; }
  .sh-hero__art { display: none; }
  .sh-hero p { color: #333 !important; }
  .sh-section { padding: 16px 0 !important; }
  .sh-capstat { grid-template-columns: 1fr 260px; }
  .sh-capstat__facts { position: static; }
  body.sh-contract { font-size: 12px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sh-grid--4, .sh-steps, .sh-tech { grid-template-columns: repeat(2, 1fr); }
  .sh-footer__grid { grid-template-columns: 1fr 1fr; }
  .sh-capstat { grid-template-columns: 1fr; }
  .sh-capstat__facts { position: static; }
}
@media (max-width: 920px) {
  .sh-menu-toggle { display: block; }
  .sh-nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    background: var(--sh-ink); border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .sh-nav.is-open { display: flex; }
  .sh-nav ul { flex-direction: column; }
  .sh-nav a { padding: 12px; font-size: 16px; }
  .sh-nav .sh-nav__cta { margin: 10px 0 0; justify-content: center; }
  .sh-split, .sh-split--wide-text, .sh-contact, .sh-team { grid-template-columns: 1fr; gap: 36px; }
  .sh-grid--3, .sh-grid--2, .sh-model { grid-template-columns: 1fr; }
  .sh-model > div { border-right: 0; border-bottom: 1px solid var(--sh-line); }
  .sh-model > div:last-child { border-bottom: 0; }
  .sh-case { grid-template-columns: 1fr; gap: 12px; }
  .sh-stats { grid-template-columns: repeat(2, 1fr); }
  .sh-stat:nth-child(2) { border-right: 0; }
  .sh-stat:nth-child(-n+2) { border-bottom: 1px solid var(--sh-line); }
  .sh-hero__art { width: 100%; opacity: .28; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 600px) {
  body.sh-contract { font-size: 16px; }
  .sh-wrap { width: calc(100% - 32px); }
  .sh-section { padding: 64px 0; }
  .sh-hero { padding: 72px 0 64px; }
  .sh-hero p { font-size: 18px; }
  .sh-header__logo img { width: 170px; }
  .sh-grid--4, .sh-steps, .sh-tech, .sh-footer__grid { grid-template-columns: 1fr; }
  .sh-stat strong { font-size: 32px; }
  .sh-case dl { grid-template-columns: 1fr; gap: 2px; }
  .sh-case dd { margin-bottom: 10px; }
  .sh-form-card { padding: 24px; }
  .sh-form-card .sh-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Keep header/footer controls legible on legacy pages, whose stylesheets restyle links. */
.sh-header a.sh-btn--primary, .sh-cta a.sh-btn--primary { color: var(--sh-ink) !important; text-decoration: none !important; }
.sh-header .sh-nav a { text-decoration: none !important; }
.sh-footer a { text-decoration: none !important; }

/* Legacy inner-page banner (blog, posts, legal pages): drop the old website-screenshot art and match the new dark style. */
.inner-page .banner-section { background: radial-gradient(ellipse at 80% 30%, rgba(55,140,214,.2), transparent 55%), var(--sh-ink) !important; }
.inner-page .banner-section .container { background: none !important; }
.inner-page .banner-section h1 { color: #fff !important; }
.inner-page .banner-section .breadcrumb-item, .inner-page .banner-section .breadcrumb-item a, .inner-page .banner-section .breadcrumb-item + .breadcrumb-item::before { color: var(--sh-on-dark-muted) !important; }
