/* Shared navigation reset: keep dropdown triggers visually identical to links. */
.nav-links .dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: left;
}

.nav-links .dropdown-toggle:hover {
  color: var(--teal);
}

/* One footer system shared by every page. */
.site-footer {
  padding: 54px 0 96px;
  color: #c1d3cf;
  background: #061f1d;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 50px;
}

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.site-footer .brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.site-footer .brand-copy {
  overflow: visible;
  color: #fff;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.site-footer .footer-title {
  color: #fff;
}

.site-footer p {
  max-width: 480px;
  margin: 20px 0 0;
  color: #9eb8b3;
  font-size: .88rem;
}

.site-footer .footer-title {
  display: block;
  margin-bottom: 16px;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer .footer-links {
  display: grid;
  gap: 10px;
  font-size: .88rem;
}

.site-footer .footer-links a:hover {
  color: #b9dc68;
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7f9f99;
  font-size: .78rem;
}

/* Keep the long brand and the menu action on one row on small screens. */
@media (max-width: 680px) {
  .nav {
    min-width: 0;
    gap: 10px;
  }

  .nav > .brand {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    flex-shrink: 1;
    gap: 8px;
    overflow: hidden;
  }

  .nav > .brand .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
  }

  .nav > .brand .brand-mark svg {
    width: 21px;
    height: 21px;
  }

  .nav > .brand .brand-copy {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    line-height: 1.12;
  }

  .nav > .brand .brand-title,
  .nav > .brand .brand-subtitle {
    display: block;
    max-width: 100%;
    white-space: nowrap;
  }

  .nav > .brand .brand-title {
    font-size: clamp(.64rem, 2.65vw, .76rem);
    letter-spacing: -.02em;
  }

  .nav > .brand .brand-subtitle {
    margin-top: 3px;
    font-size: clamp(.48rem, 1.9vw, .56rem);
    letter-spacing: .025em;
  }

  .nav > .menu-btn {
    flex: 0 0 42px;
  }

  footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px;
  }

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

  footer .footer-grid > .brand {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    overflow: visible;
  }

  footer .footer-grid > .brand .brand-mark {
    width: 48px;
    height: 48px;
  }

  footer .footer-grid > .brand .brand-copy {
    width: auto;
    overflow: visible;
  }

  footer .footer-grid > .brand p {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 32rem;
    margin: 18px 0 0;
  }

  footer .footer-title {
    margin-bottom: 14px;
  }

  footer .footer-links {
    gap: 12px;
  }

  footer .footer-links a {
    width: fit-content;
  }

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

  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 360px) {
  .nav {
    gap: 8px;
  }

  .nav > .brand {
    gap: 7px;
  }

  .nav > .brand .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .nav > .brand .brand-title {
    font-size: .61rem;
  }

  .nav > .brand .brand-subtitle {
    font-size: .46rem;
  }
}
