/* OutsourceCompass — shared stylesheet */
:root {
  --ink: #1c2431;
  --ink-soft: #4a5568;
  --ink-faint: #71809a;
  --paper: #ffffff;
  --paper-alt: #f5f7fa;
  --brand: #1f6f5c;
  --brand-dark: #174f42;
  --brand-tint: #e6f2ee;
  --accent: #d97a2b;
  --line: #e3e8ef;
  --radius: 10px;
  --maxw: 1080px;
  --maxw-article: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4, .sans {
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.logo span.oc { color: var(--brand); }
.nav {
  display: flex;
  gap: 26px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
}
.nav a:hover, .nav a.active { color: var(--brand-dark); border-bottom: 2px solid var(--brand); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--paper) 100%);
  padding: 72px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  max-width: 780px;
  margin: 0 auto 18px;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 30px;
}
.btn {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 1rem;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost {
  background: transparent;
  color: var(--brand) !important;
  border: 2px solid var(--brand);
}
.btn.ghost:hover { background: var(--brand-tint); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-alt); }
.section h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.section .sub {
  color: var(--ink-faint);
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 32px;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(28,36,49,.08); transform: translateY(-2px); }
.card .thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: var(--brand-tint);
}
.card .thumb.t2 { background: #fdf0e3; }
.card .thumb.t3 { background: #e9edf7; }
.card .thumb.t4 { background: #f3e9f7; }
.card .thumb.t5 { background: #e9f7f0; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .tag {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.card h3 { font-size: 1.12rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-dark); }
.card p { font-size: 0.95rem; color: var(--ink-soft); flex: 1; }
.card .more {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--ink-soft);
  text-decoration: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: none; }
.step .num {
  counter-increment: step;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Article ---------- */
.article-wrap { max-width: var(--maxw-article); margin: 0 auto; padding: 48px 24px 72px; }
.article-wrap .kicker {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-wrap h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; }
.article-meta {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-faint);
  font-size: 0.88rem;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.article-wrap h2 { font-size: 1.45rem; margin: 40px 0 14px; }
.article-wrap h3 { font-size: 1.15rem; margin: 30px 0 10px; }
.article-wrap p { margin-bottom: 18px; }
.article-wrap ul, .article-wrap ol { margin: 0 0 18px 26px; }
.article-wrap li { margin-bottom: 8px; }
.article-wrap blockquote {
  border-left: 4px solid var(--brand);
  background: var(--brand-tint);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 18px;
  font-style: italic;
  color: var(--ink-soft);
}
.article-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
}
.article-wrap th, .article-wrap td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.article-wrap th { background: var(--paper-alt); }

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fffaf4;
  padding: 16px 20px;
  margin: 0 0 18px;
  font-size: 0.97rem;
}
.callout .sans { font-weight: 700; display: block; margin-bottom: 4px; }

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  background: var(--brand-dark);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { font-size: 1.5rem; margin-bottom: 10px; }
.cta-band p { color: #cfe3dc; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn { background: #fff; color: var(--brand-dark) !important; }
.cta-band .btn:hover { background: var(--brand-tint); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 44px 0 30px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { margin-bottom: 12px; font-size: 0.95rem; color: var(--ink); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand-dark); }
.site-footer .fineprint {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Legal pages ---------- */
.legal { max-width: var(--maxw-article); margin: 0 auto; padding: 48px 24px 72px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 30px; font-family: "Helvetica Neue", Arial, sans-serif; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal p, .legal ul { margin-bottom: 16px; }
.legal ul { margin-left: 26px; }

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 0.85rem; }
  .nav a.hide-sm { display: none; }
  .hero { padding: 52px 0 40px; }
}
