.footer-contact > a,
.footer-contact > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 14px 0;
  color: rgba(246, 243, 238, 0.72);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

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

.footer-contact i {
  flex: 0 0 20px;
  color: #f57c20;
  font-size: 16px;
}

.footer-contact span {
  margin: 0;
}

.footer-bottom .footer-legal-link {
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.footer-bottom .footer-legal-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Larger, more readable footer typography across the site. */
.footer .footer-grid h3 {
  font-size: 20px;
  line-height: 1.35;
}

.footer .footer-grid p,
.footer .footer-grid a,
.footer .footer-grid span,
.footer .footer-contact > a,
.footer .footer-contact > div {
  font-size: 16px;
}

.footer .footer-grid p,
.footer .footer-contact > a,
.footer .footer-contact > div {
  line-height: 1.75;
}

.footer .footer-bottom {
  font-size: 18px;
}

@media (max-width: 575.98px) {
  .footer .footer-grid h3 {
    font-size: 18px;
  }

  .footer .footer-grid p,
  .footer .footer-grid a,
  .footer .footer-grid span,
  .footer .footer-contact > a,
  .footer .footer-contact > div {
    font-size: 15px;
  }

  .footer .footer-bottom {
    font-size: 15px;
  }
}

/* Keep the shared desktop navigation readable on every page and hero. */
.site-header .navbar-nav .nav-link,
.site-header .navbar-nav .nav-link:visited,
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus,
.site-header .navbar-nav .nav-link.active {
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .site-header .navbar > .site-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
  }

  .site-header .navbar-brand img {
    display: block;
    width: min(235px, calc(100vw - 105px)) !important;
    max-width: 100%;
    height: auto !important;
  }

  .site-header .order-lg-3 {
    flex: 0 0 auto;
  }

  .site-header .navbar-toggler {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
  }

  .site-header .navbar-toggler i {
    color: #fff !important;
    font-size: 24px;
    line-height: 1;
  }
}

@media (max-width: 374.98px) {
  .site-header .navbar-brand img {
    width: min(200px, calc(100vw - 92px)) !important;
  }

  .site-header .navbar-toggler {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

/* Match Portfolio and Contact headers to the Home page navbar. */
.portfolio-page .site-header,
.portfolio-page .site-header.scrolled,
.contact-page .site-header,
.contact-page .site-header.scrolled {
  background: rgba(8,8,12,.86) !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
  backdrop-filter: blur(14px);
  box-shadow: none !important;
}

.legal-page .site-header,
.legal-page .site-header.scrolled {
  background: rgba(8,8,12,.86) !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
  backdrop-filter: blur(14px);
  box-shadow: none !important;
}

.portfolio-page .site-header .nav-link,
.portfolio-page .site-header .nav-link small,
.contact-page .site-header .nav-link,
.contact-page .site-header .nav-link small {
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .portfolio-page .site-header .navbar-toggler,
  .contact-page .site-header .navbar-toggler {
    color: #fff !important;
    border-color: #fff !important;
    background: rgba(255,255,255,.08) !important;
  }
}
