/* Built on the West Kite Design System 1.10 · https://westkite.com/brand · wk-78fa6fe5 */
/* The site footer, shared by every page. Markup: tools/parcel-art/partials/footer.html,
   inlined at build time with {{partial:footer}}. Tokens come from /site-assets/westkite-b5e5f334513f.css. */

/* The outlined wordmark closes the footer, cropped to the top 70 percent.
   Reuse the brand outlines without gradients, masks, filters or pointer effects. */
.foot-word {
  margin-top: 64px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  pointer-events: none;
}

.foot-word svg {
  display: block;
  width: 100%;
  height: auto;
}

.foot-word .wm-ink {
  fill: #292929;
}

.site-foot {
  padding: 64px 32px 0;
  background: #171717;
  color: var(--wk-text, #f7f6f5);
}

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

.foot-say {
  display: grid;
  justify-items: start;
  gap: 32px;
}

/* The page links, stacked down the right. The inset keeps the longest of them clear of the
   edge: left-aligned, it is the widest link that decides how close the column comes. */
.foot-nav {
  display: grid;
  /* Two columns of four, filled down then across. */
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 12px 48px;
  /* Dropped past the lockup and the gap under it, so the first link starts level with the
     first of the three lines. */
  margin-top: calc(40px + 32px);
  margin-right: 64px;
  font-size: 14px;
  color: var(--wk-text-muted, rgba(255, 255, 250, 0.6));
}

/* The lockup as the guide exports it for a dark ground: mark and wordmark, both Linen, with
   the clear space around them already built in. */
.foot-lockup {
  display: block;
  height: 40px;
  width: auto;
}

/* A two-line sign-off with the focus on the industry it serves. */
.foot-lines {
  margin: 0;
  font-family: var(--wk-display);
  font-weight: var(--wk-display-weight);
  font-size: var(--wk-h2);
  line-height: var(--wk-h2-leading);
  letter-spacing: var(--wk-display-track, -0.03em);
}

.foot-lines span {
  display: block;
}

.foot-lines span:first-child {
  opacity: 0.68;
}

/* The AI shortcuts and company profiles share the footer's full width. */
.foot-social {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}

/* Ask AI about us: a label and four small square buttons. */
.ask-ai {
  display: grid;
  justify-items: start;
  grid-template-rows: 28px auto;
  align-items: center;
  gap: 12px;
}

.ask-ai-row {
  display: flex;
  gap: 8px;
}

.foot-community {
  display: grid;
  justify-items: end;
  grid-template-rows: 28px auto;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.foot-backed {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-backed-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--wk-text-muted, rgba(255, 255, 250, 0.6));
}

.foot-backed-link {
  display: block;
  overflow: hidden;
  border-radius: 2px;
}

.foot-backed-link:focus-visible {
  outline: 2px solid var(--wk-text, #f7f6f5);
  outline-offset: 4px;
}

.foot-ef-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.foot-profiles {
  display: flex;
  gap: 8px;
}

.ask-ai-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--wk-text-muted, rgba(255, 255, 250, 0.6));
}

.ask-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--wk-border, rgba(255, 255, 255, 0.22));
  border-radius: var(--wk-radius, 4px);
  background: transparent;
  color: var(--wk-text, #f7f6f5);
  transition: background 160ms ease, border-color 160ms ease;
}

.ask-ai-btn:hover,
.ask-ai-btn:focus-visible {
  background: var(--wk-hover, #2a2927);
  border-color: var(--wk-text-muted, rgba(255, 255, 250, 0.6));
}

.ask-ai-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.foot-nav a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.foot-nav a:hover,
.foot-nav a:focus-visible {
  color: var(--wk-text, #f7f6f5);
}

@media (max-width: 900px) {
  .foot-word {
    margin-top: 48px;
  }

  .site-foot {
    padding: 48px 20px 0;
  }

  .foot-top {
    align-items: flex-start;
    gap: 32px;
  }

  .foot-lockup {
    height: 32px;
  }

  .foot-nav {
    margin-top: 0;
    margin-right: 0;
  }


}

/* Touch: the system returns controls to 44px on a coarse pointer. */
@media (pointer: coarse) {
  .ask-ai-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .foot-social {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .ask-ai-row,
  .foot-profiles {
    gap: 4px;
  }

  .ask-ai-btn {
    width: clamp(30px, 9vw, 38px);
    height: clamp(30px, 9vw, 38px);
  }

  .ask-ai-icon {
    width: clamp(15px, 4.5vw, 18px);
    height: clamp(15px, 4.5vw, 18px);
  }

  .foot-backed {
    gap: 6px;
    white-space: nowrap;
  }

  .foot-ef-logo {
    width: clamp(24px, 7vw, 28px);
    height: clamp(24px, 7vw, 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .foot-nav a,
  .ask-ai-btn {
    transition: none;
  }
}
