/* =========================================================
   Unified site footer
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 58px 0 20px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0, rgba(58, 130, 182, .22), transparent 34%),
    radial-gradient(circle at 92% 110%, rgba(173, 38, 50, .17), transparent 34%),
    linear-gradient(145deg, #07111c, #0c2032 58%, #102c43);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 82%);
}

.footer-shell {
  position: relative;
  z-index: 1;
}

.footer-brand-panel {
  position: relative;
  max-width: 720px;
  margin: 0 auto 38px;
  padding-bottom: 34px;
  text-align: center;
}

.footer-brand-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(520px, 82%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(58, 130, 182, .7), rgba(173, 38, 50, .75), transparent);
}

.footer-logo-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
}

.footer-brand-logo {
  display: block;
  width: min(430px, 100%);
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .22),
    0 0 0 1px rgba(255, 255, 255, .08);
}

.footer-essence {
  max-width: 620px;
  margin: 0 auto;
  color: #d7e4ec;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(.96rem, 1.5vw, 1.12rem);
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: -.01em;
  text-align: center;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: start;
  padding: 4px 0 8px;
}

.footer-column {
  min-width: 0;
  padding: 4px 30px 12px;
}

.footer-column:first-child {
  padding-left: 0;
}

.footer-column:last-child {
  padding-right: 0;
}

.footer-column + .footer-column {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.footer-heading {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  color: #9ecbe6;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary-bright));
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link-list li {
  margin: 0;
}

.footer-link-list li + li {
  margin-top: 9px;
}

.footer-link-list a,
.footer-contact-details a {
  display: inline-flex;
  color: #d4e0e8;
  text-decoration: none;
  line-height: 1.45;
  transition: color 150ms ease, transform 150ms ease;
}

.footer-link-list a:hover,
.footer-contact-details a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-service-list a {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: .94rem;
  font-weight: 700;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 20px;
  font-style: normal;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

.footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #d4e0e8;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: color 150ms ease, transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.footer-social-link:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(158, 203, 230, .62);
  background: rgba(58, 130, 182, .22);
}

.footer-social-link:focus-visible {
  outline: 3px solid rgba(158, 203, 230, .7);
  outline-offset: 3px;
}

.footer-social-link svg {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-contact-button {
  width: 100%;
  max-width: 250px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #91a7b6;
  font-size: .8rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a {
  color: #bfd0db;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  .footer-column {
    padding: 4px 24px 8px 0;
  }

  .footer-column + .footer-column {
    padding-left: 24px;
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding: 28px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 40px 0 18px;
  }

  .footer-brand-panel {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .footer-brand-logo {
    width: min(340px, 100%);
    margin-bottom: 16px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .footer-column,
  .footer-column:first-child,
  .footer-column:last-child {
    padding: 0 0 24px;
  }

  .footer-column + .footer-column {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-contact-button {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom-links {
    gap: 14px;
  }
}
