/**
 * Site-wide footer — CTA wordmark + three-column band + legal bar (KM-style rhythm).
 */

.km-site-footer {
  position: relative;
  /* Same navy wash as CEO strip / subpage heroes (see --km-ceo-bg in style.css). */
  background: var(--km-ceo-bg);
  color: #fff;
  overflow: hidden;
  margin-top: auto;
}

.km-site-footer.km-footer-reveal {
  opacity: 0;
  transform: translate3d(0, 84px, 0) scale(0.985);
  filter: blur(5px) saturate(0.9);
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.km-site-footer.km-footer-reveal.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0) saturate(1);
}

.km-site-footer.km-footer-reveal .km-site-footer__cta,
.km-site-footer.km-footer-reveal .km-site-footer__main,
.km-site-footer.km-footer-reveal .km-site-footer__bar {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}

.km-site-footer.km-footer-reveal.is-inview .km-site-footer__cta {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.08s;
}

.km-site-footer.km-footer-reveal.is-inview .km-site-footer__main {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.18s;
}

.km-site-footer.km-footer-reveal.is-inview .km-site-footer__bar {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.28s;
}

.km-site-footer__cta {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.km-site-footer__cta-word {
  font-family: var(--md-font-display), "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 12vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(
    105deg,
    #7c3aed 0%,
    #2563eb 25%,
    var(--color-blue-600) 45%,
    #22d3ee 70%,
    #a3e635 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.km-site-footer__cta-sub {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin: 0.75rem 0 0;
  letter-spacing: 0.02em;
}

.km-site-footer__main {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}

.km-site-footer__badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.3rem, 2vw, 0.55rem);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .km-site-footer__badges {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: none;
    gap: 0.5rem;
  }

  .km-site-footer__badge {
    flex: 1 1 0;
    min-width: 0;
    min-height: 64px;
    padding: 0.55rem 0.65rem;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 991.98px) {
  .km-site-footer__badge {
    min-height: 3.25rem;
    padding: 0.4rem 0.35rem;
    font-size: clamp(0.48rem, 2.15vw, 0.58rem);
    letter-spacing: 0.06em;
    line-height: 1.2;
    hyphens: none;
    word-break: normal;
  }
}

.km-site-footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92) !important;
}

.km-site-footer__badge:nth-child(2) {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(14, 29, 66, 0.25));
  border-color: rgba(102, 176, 255, 0.35);
}

.km-site-footer__badge:nth-child(3) {
  background: rgba(14, 29, 66, 0.12);
  border-color: rgba(14, 29, 66, 0.4);
}

.km-site-footer__center {
  text-align: center;
}

.km-site-footer__logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: #fff !important;
  margin-bottom: 1.25rem;
}

.km-site-footer__logo {
  width: clamp(64px, 14vw, 88px);
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(14, 29, 66, 0.35));
}

.km-site-footer__brand {
  font-family: var(--md-font-display), "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #fff !important;
}

.km-site-footer__brand strong {
  display: block;
  font-weight: 800;
  font-size: 0.72em;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75) !important;
  margin-top: 0.2rem;
}

.km-site-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75);
}

.km-site-footer__contact-list a {
  color: #fff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(102, 176, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.km-site-footer__contact-list a:hover {
  color: var(--color-blue-400) !important;
  border-bottom-color: var(--color-blue-400);
}

.km-site-footer__location-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #fff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(102, 176, 255, 0.35) !important;
  transition: color 0.2s, border-color 0.2s;
}

.km-site-footer__location-link i {
  margin-top: 0.2rem;
  color: var(--color-blue-400);
}

.km-site-footer__location-link:hover {
  color: var(--color-blue-400) !important;
  border-bottom-color: var(--color-blue-400) !important;
}

.km-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 991.98px) {
  .km-site-footer__social {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .km-site-footer__badges {
    justify-content: center;
    max-width: none;
    margin-bottom: 1rem;
  }
}

.km-site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
  font-size: 1.1rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.km-site-footer__social a:hover {
  transform: translateY(-3px);
  background: rgba(14, 29, 66, 0.25);
  border-color: var(--color-blue-400);
  color: #fff !important;
}

.km-site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 0.35rem;
  text-align: center;
}

.km-site-footer__bar p {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.2rem 0;
}

.km-site-footer__bar p:last-child {
  margin-bottom: 0;
}

.km-site-footer__bar a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.km-site-footer__bar a:hover {
  color: var(--color-blue-400) !important;
  border-bottom-color: var(--color-blue-400);
}

.km-site-footer__credit {
  line-height: 1.6;
}

.km-site-footer__dev-cta {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(147, 197, 255, 0.95) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(230, 242, 255, 0.92) 100%);
  /* Always blue — bar link styles must not wash this out */
  color: var(--color-blue-600) !important;
  -webkit-text-fill-color: var(--color-blue-600) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(100, 160, 255, 0.85) !important;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(14, 29, 66, 0.12),
    0 6px 20px rgba(0, 80, 180, 0.15);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.km-site-footer__bar .km-site-footer__dev-cta:hover,
.km-site-footer__bar .km-site-footer__dev-cta:focus,
.km-site-footer__bar .km-site-footer__dev-cta:visited,
.km-site-footer__bar .km-site-footer__dev-cta:active {
  color: var(--color-blue-600) !important;
  -webkit-text-fill-color: var(--color-blue-600) !important;
  background: linear-gradient(180deg, #ffffff 0%, #e8f2ff 100%);
  border-color: var(--color-blue-400) !important;
  border-bottom-color: var(--color-blue-400) !important;
  box-shadow:
    0 0 0 1px rgba(14, 29, 66, 0.25),
    0 10px 28px rgba(0, 100, 200, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .km-site-footer.km-footer-reveal,
  .km-site-footer.km-footer-reveal .km-site-footer__cta,
  .km-site-footer.km-footer-reveal .km-site-footer__main,
  .km-site-footer.km-footer-reveal .km-site-footer__bar {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .km-site-footer__social a:hover {
    transform: none;
  }
}
