/* ===========================================================================
 * Backline shared footer
 * =========================================================================== */
.bl-footer {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(216, 169, 74, 0.12), transparent 30%),
    #07110f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8e2de;
  margin-top: 3rem;
}

.bl-footer--flush {
  margin-top: 0;
}

body > footer:not(.bl-footer),
footer.bk-footer + div {
  display: none !important;
}

.bl-footer,
.bl-footer * {
  box-sizing: border-box;
}

.bl-footer a {
  color: inherit;
  text-decoration: none;
}

.bl-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.25rem;
}

.bl-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bl-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}

.bl-footer__logo {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(15, 118, 110, 0.25);
}

.bl-footer__wordmark {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.bl-footer__tagline {
  display: block;
  margin-top: 0.2rem;
  color: #93b2ab;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bl-footer__summary {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: #b7c7c2;
  font-size: 0.98rem;
  line-height: 1.65;
}

.bl-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bl-footer__badges span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dce8e4;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.bl-footer__cta {
  border: 1px solid rgba(216, 169, 74, 0.28);
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
  border-radius: 8px;
}

.bl-footer__cta-label {
  color: #f1c86a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bl-footer__cta p {
  margin: 0.4rem 0 0.9rem;
  color: #dce8e4;
  line-height: 1.45;
  font-size: 0.95rem;
}

.bl-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bl-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.bl-footer__button:hover {
  transform: translateY(-1px);
}

.bl-footer__button--primary {
  background: #d8a94a;
  color: #10201c;
}

.bl-footer__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.bl-footer__button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.07);
}

.bl-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.bl-footer__col h4 {
  margin: 0 0 0.75rem;
  color: #f1c86a;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bl-footer__col a {
  display: block;
  width: fit-content;
  color: #a9bbb6;
  font-size: 0.9rem;
  line-height: 1.25;
  padding: 0.33rem 0;
  transition: color 0.14s ease, transform 0.14s ease;
}

.bl-footer__col a:hover {
  color: #fff;
  transform: translateX(2px);
}

.bl-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #80958f;
  font-size: 0.78rem;
}

.bl-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.bl-footer__bottom a {
  color: #a9bbb6;
}

.bl-footer__bottom a:hover {
  color: #fff;
}

@media (max-width: 820px) {
  .bl-footer__top,
  .bl-footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .bl-footer__brand,
  .bl-footer__cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .bl-footer__inner {
    padding: 2.25rem 1rem 1rem;
  }

  .bl-footer__top,
  .bl-footer__nav {
    grid-template-columns: 1fr;
  }

  .bl-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .bl-footer__bottom-links {
    justify-content: flex-start;
  }
}
