/* KAIGE site footer. Scoped to the shared site-footer component. */
.site-footer {
  --footer-dark: #14354b;
  --footer-dark-text: #eef6fa;
  --footer-dark-muted: #c7dbe5;
  --footer-surface: #edf5f9;
  --footer-ink: #17384d;
  --footer-muted: #4c6979;
  --footer-line: #c6dbe7;
  --footer-accent: #146ef5;
  --footer-button: #f2f8fb;
  background: var(--footer-surface);
  color: var(--footer-ink);
}

.site-footer .footer-invite {
  background: var(--footer-dark);
  color: var(--footer-dark-text);
}

.site-footer-compact .footer-invite { display: none; }

.site-footer .footer-invite-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  padding-block: clamp(54px, 6vw, 88px);
}

.site-footer .footer-kicker {
  margin: 0 0 17px;
  color: var(--footer-dark-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.site-footer .footer-invite h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 750;
}

.site-footer .footer-invite p:last-child {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--footer-dark-muted);
  font-size: 16px;
  line-height: 1.65;
}

.site-footer .footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 12px 24px;
  flex: none;
  background: var(--footer-button);
  color: var(--footer-dark);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: background-color .2s ease, color .2s ease;
}

@media (hover: hover) {
  .site-footer .footer-cta:hover { background: var(--footer-dark-muted); }
  .site-footer .footer-group a:hover,
  .site-footer .footer-bottom a:hover { color: var(--footer-accent); }
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(225px, 1.6fr) repeat(3, minmax(135px, 1fr));
  gap: clamp(24px, 3.4vw, 58px);
  padding-block: clamp(44px, 5vw, 72px);
}

.site-footer .footer-logo { width: max-content; }

.site-footer .footer-brand p {
  max-width: 240px;
  margin: 15px 0 0;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer .footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  font-style: normal;
}

.site-footer .footer-group h3 {
  margin: 0 0 12px;
  color: var(--footer-ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.site-footer .footer-group a,
.site-footer .footer-group span {
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.site-footer .footer-group a { display: inline-block; min-height: 30px; }
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
}
.site-footer .footer-bottom small { font-size: 12px; }
.site-footer .footer-bottom a { font-size: 13px; font-weight: 750; }
.site-footer a:focus-visible { outline: 3px solid var(--footer-accent); outline-offset: 4px; }
.site-footer .footer-invite a:focus-visible { outline-color: var(--footer-button); }

@media (max-width: 960px) {
  .site-footer .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .site-footer .footer-invite-inner { flex-direction: column; align-items: stretch; gap: 26px; }
  .site-footer .footer-invite h2 { font-size: clamp(34px, 9vw, 45px); }
  .site-footer .footer-cta { width: 100%; }
  .site-footer .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 22px; }
  .site-footer .footer-brand, .site-footer .footer-contact { grid-column: 1 / -1; }
  .site-footer .footer-group a { min-height: 44px; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-cta { transition: none; }
}
