/* Footer — mobile-first, one layout path for all small screens */

.footer {
  background-color: #001D5E;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  clear: both;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer__inner,
.footer__links,
.footer__links-col,
.footer__copy {
  background-color: #001D5E;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
  box-sizing: border-box;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  margin: 0;
}

.footer .brand-lockup__mark {
  max-height: 2.25rem;
  width: auto;
  height: auto;
}

.footer .brand-lockup__nexa {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #b8f5e8;
}

/* Mobile & tablet: 2-column link grid — fits short viewports (iPhone SE, etc.) */
.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  text-align: left;
}

.footer__links-col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links-col li {
  margin: 0;
  padding: 0;
}

.footer a {
  color: #fff !important;
  text-decoration: none !important;
  display: block;
  padding: 0.25rem 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.footer a:hover,
.footer a:focus {
  opacity: 0.9;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer .footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color .18s ease;
}

.footer .footer__social a:hover,
.footer .footer__social a:focus-visible {
  background: rgba(52, 231, 191, 0.22);
  opacity: 1;
}

.footer__copy {
  margin: 0;
  padding: 0.5rem 0.75rem 1rem;
  padding-bottom: max(1rem, calc(0.5rem + env(safe-area-inset-bottom, 0px)));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.4;
  max-width: 100%;
  box-sizing: border-box;
}

/* Very small phones */
@media (max-width: 380px) {
  .footer__inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .footer__links {
    max-width: 100%;
    gap: 0 0.35rem;
  }

  .footer a {
    font-size: 0.75rem;
    padding: 0.2rem 0.1rem;
  }

  .footer__copy {
    font-size: 0.625rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    gap: 1.5rem 2rem;
    padding: 2.25rem 1rem 1.25rem;
  }

  .footer-brand {
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .footer .brand-lockup__mark {
    max-height: 2.75rem;
  }

  .footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 2rem;
    max-width: none;
    width: auto;
    flex: 1 1 280px;
    margin: 0;
    text-align: left;
  }

  .footer__links-col {
    flex: 0 0 auto;
  }

  .footer__social {
    align-self: center;
  }

  .footer a {
    display: inline-block;
    padding: 0.4rem 0.5rem;
    font-size: inherit;
  }

  .footer__copy {
    font-size: 0.8125rem;
    padding: 0.75rem 1rem 1.25rem;
  }
}
