/*
 * Site footer — dark primary variant.
 * Based on the footer system spec (_design-source/HTML Layout/kosh_footer.html).
 */

.site-footer {
  overflow: hidden; /* nothing inside the footer may spill onto the section above */
  background: #0A0908;
  color: rgba(255, 255, 255, .88);
  font-family: var(--k-sans); font-weight: 400; font-size: 15px; line-height: 1.6;
}

.site-footer__main {
  max-width: calc(var(--k-container) + var(--k-gutter) * 2);
  margin-left: auto; margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); /* brand + Capabilities + Who we serve + Explore */
  gap: 40px;
  padding: 64px var(--k-gutter) 56px;
}

.site-footer__summary {
  margin: 20px 0 24px; max-width: 260px;
  font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .72);
}

.site-footer__social { display: flex; gap: 8px; }
.site-footer__icon {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .85);
  transition: border-color .2s, color .2s;
}
.site-footer__icon svg { width: 17px; height: 17px; }
.site-footer__icon:hover { border-color: var(--k-blush); color: var(--k-blush); }

.site-footer__col { display: flex; flex-direction: column; }
.site-footer__label {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: #E3B3A9; margin-bottom: 20px;
}
.site-footer__link {
  font-size: 15px; color: rgba(255, 255, 255, .82);
  padding: 7px 0; transition: color .2s, padding-left .25s var(--k-ease);
}
.site-footer__link:hover { color: var(--k-white); padding-left: 6px; }

.site-footer__contact {
  display: grid; grid-template-columns: repeat(4, 1fr);
  /* full-bleed rules, content aligned to the container */
  padding: 0 max(0px, calc((100% - var(--k-container)) / 2 - var(--k-gutter)));
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.site-footer__cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px var(--k-gutter);
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.site-footer__cell:last-child { border-right: none; }
.site-footer__cell-label {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .58);
}
.site-footer__cell-value { font-size: 16px; color: #fff; transition: color .2s; }
a.site-footer__cell:hover .site-footer__cell-value { color: var(--k-blush); }

.site-footer__bottom {
  max-width: calc(var(--k-container) + var(--k-gutter) * 2);
  margin-left: auto; margin-right: auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 20px var(--k-gutter);
  font-size: 13px; color: rgba(255, 255, 255, .62);
}
.site-footer__copy em { font-style: normal; color: var(--k-blush); }
.site-footer__legal { display: flex; flex-wrap: wrap; }
.site-footer__legal a {
  padding: 0 16px; border-right: 1px solid rgba(255, 255, 255, .2); transition: color .2s;
}
.site-footer__legal a:first-child { padding-left: 0; }
.site-footer__legal a:last-child { padding-right: 0; border-right: none; }
.site-footer__legal a:hover { color: var(--k-white); }

@media (max-width: 1024px) {
  .site-footer__main { grid-template-columns: repeat(2, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__contact { grid-template-columns: repeat(2, 1fr); }
  .site-footer__cell:nth-child(2) { border-right: none; }
  .site-footer__cell:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
}

@media (max-width: 560px) {
  .site-footer__main { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .site-footer__contact { grid-template-columns: 1fr; }
  .site-footer__cell { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .site-footer__cell:last-child { border-bottom: none; }
}

/* Statement line at the top of the footer ("Your next project already has a Team") */
.site-footer__statement {
  max-width: calc(var(--k-container) + var(--k-gutter) * 2);
  margin-left: auto; margin-right: auto;
  padding: 72px var(--k-gutter) 0;
}
.site-footer__statement-text {
  margin: 0; max-width: 18ch;
  font-family: var(--font-heading); font-weight: 400;
  font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.01em;
  color: var(--text-on-dark);
}
.site-footer__statement-text em { font-style: italic; color: #E3B3A9; }
