/* Shared footer: existing brand asset, real page destinations and the confirmed public contact. */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cool);
  padding-block: 52px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-brand > a {
  display: inline-block;
  width: 160px;
  max-width: 100%;
  background: transparent;
}

.footer-brand p {
  max-width: 255px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.55;
}

.footer-brand .footer-integration {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer-group h2 {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.footer-group ul,
.footer-bottom ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group li + li {
  margin-top: 8px;
}

.footer-group a {
  display: inline-block;
  padding-block: 4px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.footer-contact .footer-about {
  display: block;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.site-draft-status {
  max-width: 890px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-block: 36px 24px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }
  .footer-group {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .footer-brand p {
    max-width: 360px;
  }
  .footer-group h2 {
    margin-bottom: 10px;
  }
  .footer-group a {
    padding-block: 8px;
    min-height: 44px;
  }
  .footer-group li + li {
    margin-top: 0;
  }
  .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px 24px;
    margin-top: 28px;
  }
  .footer-bottom > p {
    flex-basis: 100%;
  }
  .footer-bottom ul {
    padding-block: 11px;
  }
  .footer-back {
    justify-self: start;
  }
}
