
/* ==========================================================================
   JSummit Consulting — jsummitconsulting.com
   Single stylesheet for the whole site.
   ========================================================================== */

:root {
  /* Palette derived from the JSummit logo: brand blue #2C6CB4, charcoal #3B4049 */
  --ink:        #16283c;  /* deepened brand blue — dark grounds */
  --ink-2:      #3b4049;  /* logo charcoal — body copy */
  --ink-3:      #4a5666;
  --slate:      #6a7686;
  --line:       #dde3ea;
  --paper:      #ffffff;
  --paper-2:    #f5f8fb;
  --paper-3:    #eaf0f6;
  --brand:      #2c6cb4;  /* logo blue */
  --brand-2:    #1f5595;
  --brand-soft: #e9f1fa;
  --brand-lift: #7fb2e5;  /* logo blue lifted for dark grounds */
  --accent:     #b3701f;  /* single warm action color for primary CTAs */
  --accent-2:   #8f5715;
  --accent-soft:#fbf3e6;
  --good:       #1f6b52;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(22,40,60,.06), 0 8px 24px rgba(22,40,60,.06);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: 2.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); letter-spacing: .02em; }
p  { margin: 0 0 1.1em; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
  margin: 0 0 .9em;
}
.eyebrow-light { color: var(--brand-lift); }

.lede { font-size: 1.18rem; color: var(--ink-3); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink-2);
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--brand); text-decoration: none; }
.nav a.active { color: var(--ink); border-bottom-color: var(--brand); }
.nav .btn { border-bottom: none; }
.nav .btn:hover { border-bottom: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background .15s ease;
  font-family: var(--sans);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-3);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-on-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.btn-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-tight { padding: 54px 0; }
.bg-alt { background: var(--paper-2); }
.bg-dark { background: var(--ink); color: #c8d4e0; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark a { color: var(--brand-lift); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(22,40,60,.96) 0%, rgba(22,40,60,.88) 45%, rgba(22,40,60,.70) 100%),
    url("hero.svg") center/cover no-repeat;
  color: #cbd6e2;
  padding: 108px 0 96px;
}
.hero h1 { color: #fff; max-width: 24ch; font-size: 3.1rem; }
@media (max-width: 760px) { .hero h1 { font-size: 2rem; } }
.hero .lede { color: #b9c7d6; max-width: 60ch; font-size: 1.22rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 26px; font-size: .9rem; color: #8ea2b7; }

.page-hero {
  background: var(--ink);
  color: #b9c7d6;
  padding: 70px 0 62px;
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { max-width: 68ch; margin-bottom: 0; color: #b9c7d6; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-lift { box-shadow: var(--shadow); }

.card-top-rule { border-top: 3px solid var(--brand); }

/* ---------- Stats ---------- */
.stat { padding: 4px 0; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--ink);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.bg-dark .stat-num { color: #fff; }
.stat-label { font-size: .93rem; color: var(--slate); }
.bg-dark .stat-label { color: #9fb0c2; }

/* ---------- Lists ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: .97rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
}
.checks-tight li { margin-bottom: 6px; }

.plain { list-style: none; padding: 0; margin: 0; }

/* ---------- Pricing / offering cards ---------- */
.offer {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  height: 100%;
}
.offer.featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}
.offer-flag {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 2px;
}
.offer-price {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0 0 4px;
}
.offer-price small { font-size: .95rem; color: var(--slate); font-family: var(--sans); }
.offer-terms { font-size: .85rem; color: var(--slate); margin-bottom: 20px; }
.offer .checks { flex: 1; }
.offer .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Case studies ---------- */
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  background: var(--paper);
  margin-bottom: 26px;
}
.case-tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: .73rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.case h3 { margin-bottom: .45em; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.case-block h4 {
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .6em;
}
.case-block p, .case-block ul { font-size: .95rem; margin-bottom: 0; }
.case-results { list-style: none; padding: 0; margin: 0; }
.case-results li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: .95rem;
}
.case-results li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

/* ---------- Quotes ---------- */
.quote {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 24px;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
  line-height: 1.5;
}
.quote cite {
  display: block;
  font-family: var(--sans);
  font-size: .88rem;
  font-style: normal;
  color: var(--slate);
  margin-top: 12px;
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; margin-bottom: 30px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--brand);
  color: var(--brand-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.step h3 { margin-bottom: .35em; }
.step p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #b9c7d6;
  padding: 66px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 62ch; margin-left: auto; margin-right: auto; color: #b9c7d6; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  margin-bottom: 6px;
}
input, select, textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid #c8d1da;
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(44,108,180,.16);
}
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--slate); }
.hp { position: absolute; left: -9999px; }

.notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: .95rem;
}
.notice-ok { background: #e8f4ef; border: 1px solid #b6dccb; color: #14503d; }
.notice-err { background: #fdecec; border: 1px solid #f0c2c2; color: #8a2020; }

/* ---------- Contact details ---------- */
.contact-line { margin-bottom: 18px; }
.contact-line .label {
  display: block;
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 3px;
}
.contact-line .value { font-size: 1.05rem; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #8ea2b7;
  padding: 54px 0 30px;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: #b9c7d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { height: 54px; width: auto; display: block; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #718799;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 46px 0; }
.small { font-size: .9rem; }
.muted { color: var(--slate); }

/* ---------- Responsive ---------- */
/* seven nav items need a little more room to breathe on narrow desktops */
@media (max-width: 1180px) {
  .nav { gap: 17px; }
  .nav a { font-size: .88rem; }
  .nav .btn-sm { padding: 9px 14px; }
  .brand-logo { height: 48px; }
}

@media (max-width: 940px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 54px 0; }
  .hero { padding: 72px 0 64px; }

  .brand-logo { height: 42px; }
  .footer-logo { height: 48px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--paper-3); }
  .nav a:hover, .nav a.active { border-bottom-color: var(--paper-3); }
  .nav .btn { margin-top: 12px; text-align: center; }

  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Insights / articles
   ========================================================================== */

.post-meta {
  font-size: .85rem;
  color: #8ea2b7;
  letter-spacing: .04em;
  margin-bottom: 0;
}
.post-meta span + span::before { content: "·"; margin: 0 10px; opacity: .6; }

/* --- article index --- */
.post-list { display: grid; gap: 0; }
.post-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item-meta {
  font-size: .8rem;
  color: var(--slate);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 6px;
}
.post-item-meta strong {
  display: block;
  color: var(--brand-2);
  font-weight: 700;
  margin-bottom: 5px;
}
.post-item h3 { font-size: 1.5rem; margin-bottom: .4em; }
.post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item h3 a:hover { color: var(--brand-2); text-decoration: none; }
.post-item p { margin-bottom: .8em; }
.post-item .more {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-2);
}
.post-item .more:hover { text-decoration: underline; }

/* --- article body --- */
.article { max-width: 720px; }
.article p { font-size: 1.06rem; line-height: 1.72; }
.article h2 {
  font-size: 1.55rem;
  margin-top: 2.2em;
  margin-bottom: .55em;
}
.article h3 {
  font-size: 1.13rem;
  font-family: var(--sans);
  font-weight: 700;
  margin-top: 1.9em;
  margin-bottom: .5em;
}
.article > p:first-of-type { font-size: 1.18rem; color: var(--ink-3); }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.3em; }
.article li { margin-bottom: .55em; line-height: 1.65; }
.article strong { color: var(--ink); }
.article em { color: inherit; }

/* callout for a single load-bearing number or claim */
.callout {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding: 22px 26px;
  margin: 2em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { margin-bottom: 0; font-size: 1.02rem; }
.callout p + p { margin-top: .8em; }
.callout .callout-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}

/* caution box — for statistics that don't survive scrutiny */
.caution {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin: 2em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.caution h4 {
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .7em;
}
.caution p { margin-bottom: 0; font-size: .98rem; }

/* the "so what do I do" block that closes every article */
.takeaway {
  border-top: 3px solid var(--brand);
  background: var(--paper-2);
  padding: 32px 34px;
  margin: 2.6em 0 2em;
  border-radius: 0 0 var(--radius) var(--radius);
}
.takeaway h2 { margin-top: 0; font-size: 1.35rem; }
.takeaway ol { padding-left: 20px; margin-bottom: 0; }
.takeaway li { margin-bottom: .8em; }
.takeaway li:last-child { margin-bottom: 0; }

/* sources */
.sources { margin-top: 3em; padding-top: 26px; border-top: 1px solid var(--line); }
.sources h3 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  font-family: var(--sans);
  margin-top: 0;
  margin-bottom: 1em;
}
.sources ol { padding-left: 20px; }
.sources li { font-size: .89rem; color: var(--slate); margin-bottom: .5em; line-height: 1.55; }
.sources a { word-break: break-word; }

/* author card + next-article nav */
.author-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 2.4em;
  background: var(--paper-2);
}
.author-card h4 { margin-bottom: .3em; }
.author-card p { font-size: .95rem; margin-bottom: 0; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2.4em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

@media (max-width: 760px) {
  .post-item { grid-template-columns: 1fr; gap: 10px; }
  .post-item-meta { padding-top: 0; }
  .article p { font-size: 1rem; }
  .article > p:first-of-type { font-size: 1.08rem; }
  .callout, .caution, .takeaway { padding: 20px 22px; }
}
