/* ============================================================
   Kelley Systems Group
   Brand continuity with the engagement-options print templates:
   navy #1F3864, wash #F4F6FA, rule #D8DEE8.
   ============================================================ */

:root {
  --navy:       #1F3864;
  --navy-deep:  #16294A;
  --signal:     #2F6FB8;
  --ink:        #1B2027;
  --body:       #3F4754;
  --mute:       #6B7280;
  --line:       #DDE3EC;
  --line-soft:  #ECEFF4;
  --wash:       #F5F7FA;
  --paper:      #FFFFFF;

  --shell:      1120px;
  --gut:        clamp(20px, 5vw, 56px);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--signal); }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }

/* ---------------- typography ---------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.011em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.1rem); }
h3 { font-size: clamp(1.14rem, 1.9vw, 1.3rem); }

p + p { margin-top: 1.05em; }

.lede {
  font-size: clamp(1.05rem, 1.75vw, 1.2rem);
  line-height: 1.6;
  color: var(--body);
}

.eyebrow {
  font-size: 0.715rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  font-family: var(--sans);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  font-family: var(--sans);
}

/* ---------------- header ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  flex-wrap: wrap;
  padding-block: 12px;
}

.wordmark { display: block; line-height: 1.1; }
.wordmark .wm-name {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--navy);
  text-transform: uppercase;
}
.wordmark .wm-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--mute);
  letter-spacing: 0.035em;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a {
  font-size: 0.9rem;
  color: var(--body);
  font-weight: 500;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: #EAF0F9; border-color: #EAF0F9; color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- hero ---------------- */

.hero {
  padding-block: clamp(60px, 9vw, 104px) clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--line-soft);
}
.hero h1 { margin: 16px 0 24px; max-width: 20ch; }
.hero .lede { max-width: 62ch; }
.hero .btn-row { margin-top: 36px; }

.page-head {
  padding-block: clamp(48px, 7vw, 78px) clamp(30px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { margin: 14px 0 20px; max-width: 22ch; }
.page-head .lede { max-width: 66ch; }

/* ---------------- generic section ---------------- */

section { padding-block: clamp(52px, 7vw, 88px); }
section.tight { padding-block: clamp(40px, 5vw, 60px); }
section.wash { background: var(--wash); border-block: 1px solid var(--line-soft); }
section.navy {
  background: var(--navy);
  color: #D6DEEC;
  border-block: none;
}
section.navy h2, section.navy h3 { color: #fff; }
section.navy .eyebrow, section.navy .section-label { color: #9FB4D4; border-color: rgba(255,255,255,0.18); }
/* Inline links only. Scoped away from .btn so it cannot outrank the button
   colors below, which was turning .btn-light into white text on white. */
section.navy a:not(.btn) { color: #fff; }

/* ---------------- cards / grids ---------------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid #9AA8BF;
  border-radius: 3px;
  padding: 30px 28px 32px;
}
.card.feature { border-top-color: var(--navy); background: #FBFCFE; }
.card h3 { margin-bottom: 10px; }
.card .card-meta { font-size: 0.83rem; color: var(--mute); margin-bottom: 4px; }
/* .card-price is unused while fees are held for the conversation. Kept so the
   tier figures can be restored without rebuilding the card. */
.card .card-price {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.card .card-for {
  font-size: 0.93rem;
  font-style: italic;
  color: var(--mute);
  padding-top: 16px;
  margin-top: 16px;
  margin-bottom: 18px;
  border-top: 1px dotted var(--line);
}

.card-flag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.plus-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

/* bullet list */
.ticks { list-style: none; }
.ticks li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 10px;
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 1px;
}
section.navy .ticks li::before { background: #7E9ECB; }

/* ---------------- stat band ---------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.stat { background: var(--paper); padding: 24px 14px; text-align: center; }
section.wash .stat { background: #fff; }
.stat .n {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.05;
  white-space: nowrap;
}
/* Range values like "$18M -> $50M" are far wider than a bare figure and
   overflowed their cell at the shared size. */
.stat .n.n-long {
  font-size: clamp(1.05rem, 1.65vw, 1.38rem);
  letter-spacing: -0.005em;
}
.stat .l { font-size: 0.78rem; color: var(--mute); margin-top: 7px; line-height: 1.35; }

/* ---------------- spec list (label / value comparison rows) ---------------- */

.spec { margin: 0; }
.spec dt {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 3px;
}
.spec dd {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.spec dd:last-child { margin-bottom: 0; }
.spec dd strong { color: var(--ink); font-weight: 600; }

.fineprint {
  font-size: 0.8rem;
  color: var(--mute);
  line-height: 1.5;
  max-width: 80ch;
}

/* ---------------- pull / aside ---------------- */

.pull {
  background: var(--wash);
  border-left: 3px solid var(--navy);
  padding: 22px 26px;
  border-radius: 0 3px 3px 0;
}
.pull .pull-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.pull p { font-size: 0.95rem; }

/* ---------------- entry list (experience) ---------------- */

.entry { padding-block: 30px; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: none; padding-top: 0; }
.entry .entry-meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 7px;
}
.entry h3 { margin-bottom: 12px; }

/* ---------------- form ---------------- */

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 56, 100, 0.1);
}
.form-note { font-size: 0.83rem; color: var(--mute); margin-top: 14px; }

.form-error {
  font-size: 0.9rem;
  color: #8C2F2F;
  background: #FCF4F4;
  border-left: 3px solid #8C2F2F;
  padding: 12px 16px;
  margin-top: 16px;
  border-radius: 0 3px 3px 0;
}

/* in-place confirmation that replaces the form on success */
.form-success {
  background: var(--wash);
  border-left: 3px solid var(--navy);
  padding: 22px 26px;
  border-radius: 0 3px 3px 0;
}
.form-success:focus { outline: none; }
.form-success p { font-size: 0.95rem; }

/* visually hidden honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------------- contact rows ---------------- */

.contact-rows { list-style: none; }
.contact-rows li { padding-block: 13px; border-top: 1px solid var(--line); font-size: 0.96rem; }
.contact-rows li:first-child { border-top: none; }
.contact-rows .cr-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 3px;
}

/* ---------------- CTA band ---------------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }

/* ---------------- footer ---------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 44px 38px;
  font-size: 0.875rem;
  color: var(--mute);
}
.foot-in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.foot-col { min-width: 200px; }
.foot-col .fc-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.foot-col a { color: var(--body); display: block; padding-block: 3px; }
.foot-col a:hover { color: var(--signal); }
.foot-tag { font-family: var(--serif); font-size: 1.02rem; color: var(--navy); font-style: italic; }
.foot-base {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

/* ---------------- utilities ---------------- */

.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 42px; }
.mb-m { margin-bottom: 26px; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .head-in { min-height: 0; }
  .nav { gap: 18px; }
  .nav a { font-size: 0.84rem; }
  .card { padding: 24px 20px 26px; }
}
