/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-bg-darker);
  padding: clamp(3rem, 6vw, 5rem) var(--section-padding-x) 0;
  border-top: 1px solid var(--color-border-soft);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(74, 139, 184, 0.5) 50%,
    transparent 100%);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer__brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer__brand-mark:hover,
.footer__brand-mark:focus-visible {
  opacity: 0.85;
}
.footer__logo {
  display: block;
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.footer__tagline {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 30ch;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease, padding-left 0.3s var(--ease-out-quart);
  display: inline-block;
}
.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--color-text-primary);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}
.footer__contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__contact-item a:hover,
.footer__contact-item a:focus-visible {
  color: var(--color-text-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border-soft);
}
.footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--color-text-primary);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 540px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    justify-content: flex-start;
  }
}
