/* KB Consulting — Shared Stylesheet
   kb-impact.com | May 2026
   ================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500&family=Inter:wght@400;500&display=swap');

/* ================================================
   1. CSS CUSTOM PROPERTIES (Brand Tokens)
   ================================================ */
:root {
  /* Colors */
  --navy:   #1C2B47;
  --seafoam: #3A9789;
  --mist:   #EAF4F2;
  --linen:  #F9F7F4;
  --ink:    #1A2035;
  --slate:  #687080;

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, 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(--linen);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.75;
}

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: 500;
  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(--mist);
}

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

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

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

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

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

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

.btn--primary:hover {
  opacity: 0.85;
}

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

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

.btn--hero {
  background-color: var(--seafoam);
  color: var(--linen);
}

.btn--hero:hover {
  opacity: 0.88;
}

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

.link:hover {
  opacity: 0.75;
}

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

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

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

.nav__logo {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-decoration: none;
  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: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--seafoam);
  text-decoration: none;
  transition: color 0.18s ease;
  position: relative;
}

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

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

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

.nav__cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--linen);
  background-color: var(--navy);
  padding: 8px 18px;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.nav__cta:hover {
  opacity: 0.82;
}

/* 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: 1.5px;
  background-color: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.nav__drawer.open {
  display: flex;
}

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

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

/* ================================================
   10. FOOTER
   ================================================ */
.footer {
  background-color: var(--navy);
  color: rgba(249, 247, 244, 0.65);
  padding: 48px 0;
}

.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 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--linen);
  text-decoration: none;
}

.footer__tagline {
  font-size: 13px;
  color: rgba(249, 247, 244, 0.55);
  margin-top: 6px;
  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: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--seafoam);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.footer__link:hover {
  opacity: 0.75;
}

.footer__divider {
  height: 1px;
  background-color: rgba(249, 247, 244, 0.1);
}

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

.footer__copy {
  font-size: 12px;
  color: rgba(249, 247, 244, 0.4);
  max-width: none;
}

.footer__contact a {
  font-size: 13px;
  color: var(--seafoam);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.footer__contact a:hover {
  opacity: 0.75;
}

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

.footer__legal a {
  font-size: 11px;
  color: rgba(249, 247, 244, 0.35);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.footer__legal a:hover {
  opacity: 0.7;
}

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

.card {
  background-color: var(--mist);
  border-radius: 8px;
  padding: 24px;
}

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

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

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

.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: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seafoam);
  display: block;
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--linen);
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 20px;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: rgba(249, 247, 244, 0.65);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ================================================
   13. PAGE HERO — LIGHT
   ================================================ */
.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(28, 43, 71, 0.08);
}

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

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

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

/* ================================================
   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: 500;
  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: #fff;
  border: 1.5px solid rgba(28, 43, 71, 0.18);
  border-radius: 3px;
  padding: 11px 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.7;
}

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

.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;
}

/* Honeypot */
.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: 12px;
}

.cta-section__body {
  color: var(--slate);
  margin: 0 auto 28px;
  text-align: center;
}

/* ================================================
   16. 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-seafoam { color: var(--seafoam); }
.text-navy { color: var(--navy); }

/* ================================================
   17. 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; }

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

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 64px 0;
  }

  .hero__headline {
    font-size: 32px;
  }

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

  .footer__top {
    flex-direction: column;
  }

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

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

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

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

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