/* Kommunity Kares — Marketing Site styles
   All tokens come from colors_and_type.css. This file only composes. */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg1); font-family: var(--font-sans); }

.kk-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.kk-section { padding: 80px 0; }
.kk-section__head { max-width: 680px; margin-bottom: 40px; }
.kk-section__title { font-size: 36px; font-weight: 700; color: var(--fg-brand); margin: 8px 0 12px; letter-spacing: -0.01em; line-height: 1.1; }
.kk-section__lede { font-size: 18px; line-height: 1.55; color: var(--fg2); margin: 0; }

/* Eyebrows */
.kk-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; }
.kk-eyebrow--brand { color: var(--fg-brand); }
.kk-eyebrow--on-blue { color: rgba(255, 255, 255, 0.85); }
.kk-eyebrow--on-navy { color: rgba(255, 255, 255, 0.75); }

/* Buttons */
.kk-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.01em;
  border: 1.5px solid transparent; border-radius: 4px; cursor: pointer;
  transition:
    background 200ms var(--ease-standard),
    color 200ms var(--ease-standard),
    border-color 200ms var(--ease-standard),
    transform 120ms var(--ease-standard);
  text-decoration: none;
}
.kk-btn--md { font-size: 14px; padding: 10px 18px; }
.kk-btn--lg { font-size: 16px; padding: 14px 24px; }
.kk-btn--sm { font-size: 12px; padding: 7px 12px; }
.kk-btn--primary { background: var(--kk-blue-500); color: #fff; }
.kk-btn--primary:hover { background: var(--kk-blue-700); }
.kk-btn--primary:active { transform: scale(0.99); }
.kk-btn--secondary { background: transparent; color: var(--kk-blue-500); border-color: var(--kk-blue-500); }
.kk-btn--secondary:hover { background: var(--kk-blue-50); color: var(--kk-blue-700); border-color: var(--kk-blue-700); }
.kk-btn--ghost { background: transparent; color: var(--fg1); }
.kk-btn--ghost:hover { background: var(--bg-muted); }
.kk-btn--on-blue { background: #fff; color: var(--kk-blue-700); }
.kk-btn--on-blue:hover { background: var(--kk-blue-50); }
.kk-btn--ghost-on-blue { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.kk-btn--ghost-on-blue:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.kk-btn i { width: 18px; height: 18px; }

/* Header */
.kk-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.kk-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.kk-header__brand img { height: 52px; display: block; }
.kk-header__nav { display: flex; gap: 24px; }
.kk-header__nav a { font-size: 14px; font-weight: 600; color: var(--fg2); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; transition: color 200ms, border-color 200ms; }
.kk-header__nav a:hover { color: var(--fg-brand); }
.kk-header__nav a.is-active { color: var(--fg-brand); border-bottom-color: var(--fg-brand); }
.kk-header__cta { display: flex; align-items: center; gap: 12px; }
.kk-header__phone { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--fg1); text-decoration: none; }
.kk-header__phone:hover { color: var(--fg-brand); }
.kk-header__phone i { width: 16px; height: 16px; }

/* Hero */
.kk-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; }
.kk-hero__panel { background: var(--kk-blue-500); display: flex; align-items: center; padding: 72px 56px; color: #fff; }
.kk-hero__panel-inner { max-width: 560px; margin-left: auto; }
.kk-hero__title { font-size: 64px; font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; color: #fff; margin: 14px 0 20px; }
.kk-hero__lede { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); margin: 0 0 28px; max-width: 520px; }
.kk-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.kk-hero__image { position: relative; background: var(--kk-navy-700); overflow: hidden; }
.kk-hero__image::before { content: ""; position: absolute; inset: -2px; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 56px 56px; }
.kk-hero__composition { position: absolute; inset: 0; padding: 56px 48px 110px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.kk-hero-card { background: #fff; border-radius: 6px; padding: 18px 22px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); max-width: 360px; }
.kk-hero-card--a { align-self: flex-start; transform: translateX(0); }
.kk-hero-card--b { align-self: flex-end; background: var(--kk-blue-500); color: #fff; }
.kk-hero-card--c { align-self: flex-start; margin-left: 48px; }
.kk-hero-card__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kk-blue-500); margin-bottom: 6px; }
.kk-hero-card--b .kk-hero-card__eyebrow { color: rgba(255, 255, 255, 0.85); }
.kk-hero-card__title { font-size: 20px; font-weight: 700; color: var(--fg1); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 6px; }
.kk-hero-card--b .kk-hero-card__title { color: #fff; }
.kk-hero-card__body { font-size: 13px; line-height: 1.5; color: var(--fg2); margin: 0; }
.kk-hero-card--b .kk-hero-card__body { color: rgba(255, 255, 255, 0.9); }
.kk-hero-card__row { display: flex; align-items: center; gap: 12px; }
.kk-hero-card__ico { width: 36px; height: 36px; border-radius: 6px; background: var(--kk-blue-50); color: var(--kk-blue-500); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.kk-hero-card__ico i { width: 18px; height: 18px; }
.kk-hero-card__stat { font-family: var(--font-sans); font-weight: 900; font-size: 36px; line-height: 1; color: var(--kk-blue-500); letter-spacing: -0.02em; }
.kk-hero-card--b .kk-hero-card__stat { color: #fff; }
.kk-hero__image-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 28px; background: var(--kk-blue-500); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-align: center; z-index: 2; }

/* Stat band */
.kk-statband { background: var(--bg-subtle); border-bottom: 1px solid var(--border); padding: 48px 0; }
.kk-statband__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.kk-stat__num { font-size: 56px; font-weight: 900; line-height: 1; color: var(--fg-brand); letter-spacing: -0.02em; }
.kk-stat__label { font-size: 15px; line-height: 1.5; color: var(--fg2); margin-top: 8px; max-width: 280px; }

/* Services */
.kk-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kk-service { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 28px 24px; box-shadow: var(--shadow-sm); transition: box-shadow 200ms, border-color 200ms, transform 200ms; }
.kk-service:hover { box-shadow: var(--shadow-md); border-color: var(--kk-blue-200); transform: translateY(-2px); }
.kk-service__icon { width: 44px; height: 44px; border-radius: 6px; background: var(--kk-blue-50); color: var(--kk-blue-500); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.kk-service__icon i { width: 22px; height: 22px; }
.kk-service__title { font-size: 18px; font-weight: 700; color: var(--fg1); margin: 0 0 6px; }
.kk-service__body { font-size: 14px; line-height: 1.55; color: var(--fg2); margin: 0; }

/* Mission (navy) */
.kk-mission { background: var(--kk-navy-700); color: #fff; padding: 96px 0; }
.kk-mission__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.kk-mission__title { font-size: 32px; font-weight: 700; line-height: 1.15; color: #fff; margin: 10px 0 20px; letter-spacing: -0.01em; }
.kk-mission__body { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.85); margin: 0 0 14px; }
.kk-mission__about { padding-top: 30px; }
.kk-mission__list { list-style: none; padding: 0; margin: 10px 0 0; }
.kk-mission__list li { position: relative; padding: 10px 0 10px 26px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.kk-mission__list li::before { content: ''; position: absolute; left: 0; top: 16px; width: 12px; height: 2px; background: var(--kk-blue-300); }

/* Quote */
.kk-quote-section { padding: 80px 0; background: var(--bg); }
.kk-quote { max-width: 820px; margin: 0 auto; padding: 48px 56px; background: var(--kk-blue-500); color: #fff; position: relative; border-radius: 4px; }
.kk-quote__mark { position: absolute; top: 8px; left: 20px; font-family: Georgia, serif; font-size: 140px; line-height: 1; color: rgba(255, 255, 255, 0.3); }
.kk-quote__text { position: relative; font-size: 22px; line-height: 1.5; font-style: italic; margin: 0 0 24px; color: #fff; }
.kk-quote__cite { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 16px; }
.kk-quote__name { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.kk-quote__role { font-size: 13px; color: rgba(255, 255, 255, 0.8); }

/* Partners */
.kk-partners__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; max-width: 900px; }
.kk-partners__item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-subtle); border-left: 3px solid var(--kk-blue-500); font-size: 15px; font-weight: 600; color: var(--fg1); }
.kk-partners__item i { width: 18px; height: 18px; color: var(--kk-blue-500); }
.kk-partners__grant { margin-top: 36px; padding: 20px 24px; background: #fff; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; line-height: 1.6; color: var(--fg3); max-width: 900px; }

/* CTA */
.kk-cta { background: var(--kk-blue-500); padding: 72px 0; color: #fff; }
.kk-cta__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.kk-cta__title { font-size: 32px; font-weight: 700; line-height: 1.15; margin: 10px 0 10px; letter-spacing: -0.01em; }
.kk-cta__lede { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.9); margin: 0; }
.kk-cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.kk-cta__actions .kk-btn { justify-content: center; min-width: 260px; }

/* Footer */
.kk-footer { background: var(--kk-navy-700); color: rgba(255, 255, 255, 0.85); }
.kk-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding: 72px 0 48px; }
.kk-footer__brand img { height: 80px; display: block; margin-bottom: 16px; }
.kk-footer__tag { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin: 0; }
.kk-footer__title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.kk-footer__col p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.kk-footer__col a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.kk-footer__col a:hover { color: #fff; text-decoration: underline; }
.kk-footer__base { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; }
.kk-footer__base-row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* Form primitives */
.kk-field { display: block; margin-bottom: 14px; }
.kk-field__label { display: block; font-size: 13px; font-weight: 600; color: var(--fg1); margin-bottom: 4px; }
.kk-field__input { width: 100%; font-family: var(--font-sans); font-size: 14px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 4px; background: #fff; color: var(--fg1); transition: border-color 120ms, box-shadow 120ms; box-sizing: border-box; }
.kk-field__input:focus { outline: none; border-color: var(--kk-blue-500); box-shadow: 0 0 0 3px rgba(15, 111, 180, 0.2); }
.kk-field__input.is-invalid { border-color: var(--kk-error); }
.kk-field__hint { display: block; margin-top: 4px; font-size: 12px; color: var(--fg3); }
.kk-field__error { display: block; margin-top: 4px; font-size: 12px; color: var(--kk-error); }

/* Badge */
.kk-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.kk-badge--brand { background: var(--kk-blue-50); color: var(--kk-blue-700); }

/* Card */
.kk-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px; box-shadow: var(--shadow-sm); }

/* Modal */
.kk-modal-scrim { position: fixed; inset: 0; background: rgba(15, 21, 27, 0.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.kk-modal { background: #fff; border-radius: 8px; max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; }
.kk-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.kk-modal__head h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--fg-brand); }
.kk-modal__close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--fg3); cursor: pointer; padding: 0 4px; }
.kk-modal__close:hover { color: var(--fg1); }
.kk-modal__body { padding: 24px; }
.kk-modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.kk-modal[hidden], .kk-modal-scrim[hidden] { display: none !important; }

/* Mobile hamburger button */
.kk-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg1);
}
.kk-header__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
.kk-header__toggle span + span { margin-top: 5px; }
/* ─── Tablet & below ─── */
@media (max-width: 900px) {
  /* Header mobile nav */
  .kk-header { position: relative; }
  .kk-header__toggle { display: block; }
  .kk-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 50;
  }
  .kk-header__nav.is-open { display: flex; }
  .kk-header__nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .kk-header__cta { display: none; }

  /* Hero */
  .kk-hero { grid-template-columns: 1fr; min-height: auto; }
  .kk-hero__panel { padding: 48px 24px; }
  .kk-hero__title { font-size: 36px; }
  .kk-hero__lede { font-size: 16px; max-width: 100%; }
  .kk-hero__image { min-height: auto; overflow: visible; }
  .kk-hero__composition { position: relative; inset: auto; padding: 24px 16px; }
  .kk-hero__image::before { display: none; }
  .kk-hero__actions { flex-direction: column; }
  .kk-hero__actions .kk-btn { width: 100%; justify-content: center; text-align: center; }
  .kk-hero__image-caption { font-size: 12px; padding: 6px 12px; }

  /* Sections */
  .kk-section { padding: 48px 0; }
  .kk-section__title { font-size: 28px; }
  .kk-section__lede { font-size: 16px; }

  /* Stat band */
  .kk-statband { padding: 40px 0; }
  .kk-statband__grid { grid-template-columns: 1fr; gap: 24px; }
  .kk-stat__num { font-size: 40px; }

  /* Services */
  .kk-services__grid { grid-template-columns: 1fr; gap: 24px; }

  /* Mission */
  .kk-mission__grid { grid-template-columns: 1fr; gap: 32px; }

  /* Quote */
  .kk-quote-section { padding: 48px 0; }
  .kk-quote { max-width: 100%; padding: 32px 24px; }
  .kk-quote__text { font-size: 18px; }
  .kk-quote__mark { font-size: 100px; top: 4px; left: 12px; }

  /* Partners */
  .kk-partners__list { grid-template-columns: 1fr; }
  .kk-partners__grant { max-width: 100%; }

  /* CTA */
  .kk-cta { padding: 48px 0; }
  .kk-cta__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .kk-cta__actions { flex-direction: column; align-items: stretch; }
  .kk-cta__actions .kk-btn { width: 100%; justify-content: center; text-align: center; }

  /* Footer */
  .kk-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .kk-footer__base-row { flex-direction: column; gap: 8px; text-align: center; }

  /* Modal */
  .kk-modal { max-width: 95%; width: 95%; }
}

/* ─── Phone ─── */
@media (max-width: 480px) {
  .kk-container { padding: 0 16px; }
  .kk-hero__title { font-size: 28px; }
  .kk-hero__panel { padding: 36px 16px; }
  .kk-section__title { font-size: 24px; }
  .kk-section { padding: 36px 0; }
  .kk-footer__grid { grid-template-columns: 1fr; }
  .kk-stat__num { font-size: 32px; }
  .kk-quote__text { font-size: 16px; }
  .kk-btn--lg { padding: 14px 24px; font-size: 15px; }
}
