/* KB Consulting — Shared Stylesheet
   kb-impact.com | Brand Profile reconciliation: May 13, 2026
   Colors and typography aligned to _KB Brand/KB_Consulting_Brand_Profile.md
   ================================================ */

/* Source Serif Pro loads via a stylesheet link in each page head. Arial is the system default for body. */

/* ================================================
   1. CSS CUSTOM PROPERTIES (Brand Tokens)
   ================================================ */
:root {
  /* Brand Profile colors */
  --navy:        #1B2B5E;  /* Primary navy: logo, document titles, section headers */
  --cerulean:    #2E86AB;  /* Accent: section header bars, divider lines, secondary emphasis */
  --ink:         #222222;  /* Body text on white */
  --slate:       #444444;  /* Secondary body, captions */
  --blue-gray:   #E8ECF0;  /* Light alternating row fills */
  --off-white:   #F2F3F4;  /* Secondary alternating fills */
  --muted-bg:    #AAAACC;  /* Subtitle text on navy backgrounds */
  --meta-gray:   #888888;  /* Header/footer meta */
  --white:       #FFFFFF;

  /* Backward-compat aliases for sections referencing prior tokens */
  --linen: #FFFFFF;
  --mist:  #E8ECF0;
  --seafoam: #2E86AB;

  /* Typography */
  --font-serif: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-sans:  Arial, Helvetica, sans-serif;

  /* Type scale */
  --h1: 48px;
  --h2: 32px;
  --h3: 22px;
  --body: 16px;
  --nav: 12px;
  --label: 12px;
  --btn: 14px;
  --caption: 13px;

  /* Layout */
  --max-content: 1140px;
  --max-body: 640px;
  --section-v: 96px;
  --section-v-sm: 64px;
}

/* ================================================
   2. RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ================================================
   3. TYPOGRAPHY
   ================================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p {
  max-width: var(--max-body);
  color: var(--ink);
}

/* ================================================
   4. LAYOUT UTILITIES
   ================================================ */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-v) 0;
}

.section--mist {
  background-color: var(--blue-gray);
}

.section--navy {
  background-color: var(--navy);
}

.section--linen,
.section--white {
  background-color: var(--white);
}

.section--off {
  background-color: var(--off-white);
}

/* ================================================
   5. LABEL / EYEBROW
   ================================================ */
.label {
  font-family: var(--font-sans);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cerulean);
  display: block;
  margin-bottom: 16px;
}

.label--slate {
  color: var(--slate);
}

.label--light {
  color: var(--muted-bg);
}

/* ================================================
   6. BUTTONS
   ================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--btn);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
  padding: 14px 28px;
  cursor: pointer;
  transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  border: none;
  text-align: center;
  text-transform: none;
}

.btn--primary {
  background-color: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--cerulean);
}

.btn--secondary {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn--secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

.btn--hero {
  background-color: var(--cerulean);
  color: var(--white);
}

.btn--hero:hover {
  background-color: var(--white);
  color: var(--navy);
}

/* ================================================
   7. TEXT LINK
   ================================================ */
.link {
  color: var(--cerulean);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity 0.18s ease;
}

.link:hover {
  opacity: 0.75;
}

/* ================================================
   8. CERULEAN ACCENT RULE
   ================================================ */
.accent-rule {
  border-left: 3px solid var(--cerulean);
  border-radius: 0;
  padding-left: 20px;
}

/* ================================================
   9. NAVIGATION
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid rgba(27, 43, 94, 0.08);
}

.nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: var(--nav);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s ease;
  position: relative;
}

.nav__link:hover {
  color: var(--cerulean);
}

.nav__link--active {
  color: var(--cerulean);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--cerulean);
}

.nav__cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background-color: var(--navy);
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.18s ease;
  text-transform: none;
}

.nav__cta:hover {
  background-color: var(--cerulean);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--white);
  border-top: 1px solid rgba(27, 43, 94, 0.08);
  padding: 16px 32px 24px;
}

.nav__drawer.open {
  display: flex;
}

.nav__drawer .nav__link {
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 43, 94, 0.06);
  font-size: 13px;
}

.nav__drawer .nav__cta {
  margin-top: 16px;
  text-align: center;
}

/* ================================================
   10. FOOTER
   ================================================ */
.footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 40px;
}

.footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.footer__logo-img {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) saturate(0) invert(1);
  opacity: 0.95;
}

.footer__location {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  max-width: none;
}

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer__link:hover {
  color: var(--white);
}

.footer__divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  max-width: none;
}

.footer__contact a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ================================================
   11. SERVICE CARDS
   ================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background-color: var(--white);
  border: 1px solid rgba(27, 43, 94, 0.1);
  border-top: 3px solid var(--cerulean);
  border-radius: 4px;
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-top-color: var(--navy);
}

.card__heading {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.card__meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--slate);
  margin: 4px 0 16px;
  letter-spacing: 0.01em;
}

.card__body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
  max-width: none;
}

/* ================================================
   12. HERO — DARK (HOMEPAGE)
   ================================================ */
.hero {
  background-color: var(--navy);
  padding: 112px 0 104px;
}

.hero__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-bg);
  display: block;
  margin-bottom: 22px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  max-width: 760px;
  margin-bottom: 22px;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__ctas .link {
  color: var(--white);
  opacity: 0.8;
}

.hero__ctas .link:hover {
  opacity: 1;
}

/* ================================================
   13. PAGE HERO — LIGHT
   ================================================ */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid rgba(27, 43, 94, 0.1);
  background-color: var(--white);
}

.page-hero__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px;
}

.page-hero__headline {
  font-size: var(--h1);
  margin-bottom: 14px;
}

.page-hero__sub {
  font-size: 18px;
  color: var(--slate);
  font-family: var(--font-sans);
  font-weight: 400;
  max-width: 640px;
  line-height: 1.6;
}

/* ================================================
   14. FORMS
   ================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.form__input,
.form__textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--white);
  border: 1.5px solid rgba(27, 43, 94, 0.2);
  border-radius: 3px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.18s ease;
  outline: none;
  -webkit-appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--slate);
  opacity: 0.6;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--cerulean);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form__note {
  font-size: 13px;
  color: var(--slate);
  margin-top: 4px;
  max-width: none;
}

.form__honeypot {
  display: none;
}

/* ================================================
   15. CTA SECTION
   ================================================ */
.cta-section {
  padding: var(--section-v) 0;
  text-align: center;
}

.cta-section__headline {
  font-size: var(--h2);
  margin-bottom: 14px;
  color: var(--white);
}

.cta-section__body {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto 32px;
  text-align: center;
  font-size: 17px;
}

/* ================================================
   16. CALLOUT (pulled-out quote)
   ================================================ */
.callout {
  text-align: center;
  padding: 24px 0;
  margin: 0 auto;
  max-width: 820px;
  position: relative;
}

.callout__text {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  max-width: none;
}

.callout::before,
.callout::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background-color: var(--cerulean);
  margin: 24px auto;
}

/* ================================================
   17. GEOGRAPHY BAND
   ================================================ */
.geo-band {
  text-align: center;
  padding: 36px 0;
  background-color: var(--off-white);
  border-top: 1px solid rgba(46, 134, 171, 0.25);
  border-bottom: 1px solid rgba(46, 134, 171, 0.25);
}

.geo-band__text {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--slate);
  letter-spacing: 0.02em;
  max-width: none;
  margin: 0 auto;
}

/* ================================================
   18. RESOLUTION BAND ("When the work is done")
   ================================================ */
.resolution {
  background-color: var(--blue-gray);
  padding: 80px 0;
}

.resolution__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.resolution__header {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.resolution__body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: none;
  margin: 0 auto;
}

/* ================================================
   19. CASE STUDY BAND
   ================================================ */
.case-study {
  background-color: var(--white);
  padding: 80px 0;
  border-top: 1px solid rgba(27, 43, 94, 0.08);
  border-bottom: 1px solid rgba(27, 43, 94, 0.08);
}

.case-study__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

.case-study__text {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--navy);
  max-width: none;
}

.case-study__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cerulean);
  margin-bottom: 16px;
}

/* ================================================
   20. PROCESS STEPS
   ================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step {
  background-color: var(--white);
  border-left: 3px solid var(--cerulean);
  padding: 24px 24px 24px 28px;
}

.step__number {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--cerulean);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  max-width: none;
}

/* ================================================
   21. PRICING ANCHOR
   ================================================ */
.pricing-anchor {
  background-color: var(--off-white);
  padding: 28px 32px;
  margin-top: 40px;
  border-left: 3px solid var(--navy);
  max-width: 820px;
}

.pricing-anchor__text {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  max-width: none;
  margin: 0;
  line-height: 1.65;
}

/* ================================================
   22. PAGE-SPECIFIC UTILITIES
   ================================================ */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.text-slate { color: var(--slate); }
.text-cerulean { color: var(--cerulean); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

/* ================================================
   23. ANIMATIONS
   ================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}

.fade-up--d1 { animation-delay: 0.08s; }
.fade-up--d2 { animation-delay: 0.18s; }
.fade-up--d3 { animation-delay: 0.28s; }
.fade-up--d4 { animation-delay: 0.38s; }

/* ================================================
   24. RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  :root {
    --h1: 34px;
    --h2: 26px;
    --h3: 19px;
    --section-v: 64px;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero__headline {
    font-size: 34px;
    line-height: 1.2;
  }

  .hero__sub {
    font-size: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-hero__headline {
    font-size: 32px;
  }

  .cta-section {
    text-align: left;
  }

  .cta-section__body {
    text-align: left;
    margin-left: 0;
  }

  .callout__text {
    font-size: 20px;
  }

  .case-study__text {
    font-size: 18px;
  }

  .resolution__header {
    font-size: 24px;
  }

  .resolution__body {
    font-size: 15px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }
}
