/* Shared vertical spacing across homepage content sections. */
.home-page {
  --home-section-spacing: 70px;
}

.home-page .services,
.home-page .home-numbers,
.home-page .access-global-markets,
.home-page .home-associations,
.home-page .services-discover,
.home-page .investment-management,
.home-page .home-contact .about-bottom {
  padding-top: var(--home-section-spacing);
  padding-bottom: var(--home-section-spacing);
}

.home-page .services-center > ul {
  margin-top: 0;
  margin-bottom: 0;
}

.home-page .home-contact {
  padding-top: 0;
  padding-bottom: 0;
}

/* The About content ends with a banner; the footer supplies the next gap. */
.inner-content.about-content {
  padding-bottom: 0;
}

.about-content .about-intro-title {
  margin-bottom: 30px;
}

/* Keep both sides of the menu spacing on its own container. */
footer {
  --footer-section-spacing: 45px;
  padding: 0;
}

footer .footer-center {
  gap: 40px;
  padding-top: var(--footer-section-spacing);
  padding-bottom: var(--footer-section-spacing);
}

footer .footer-center .footer-logo {
  flex: 0 0 190px;
  width: 190px;
  margin-top: 0;
}

footer .footer-center > ul {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.3fr);
  flex: 1;
  gap: 28px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

footer .footer-center > ul > li {
  width: auto;
  height: auto;
  min-width: 0;
  float: none;
}

footer .footer-center ul li > .title {
  height: auto;
  margin: 0 0 20px;
  line-height: 1.5;
}

footer .footer-center ul li > a,
footer .footer-center ul li p {
  margin-bottom: 12px;
  line-height: 1.6;
}

footer .footer-policy-links {
  padding-top: 20px;
  padding-bottom: 20px;
  line-height: 1.8;
}

footer .footer-bottom-line {
  padding-top: 24px;
  padding-bottom: 24px;
  line-height: 1.7;
}

@media (max-width: 992px) {
  footer .footer-center > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 28px;
  }
}

@media (max-width: 768px) {
  footer {
    --footer-section-spacing: 30px;
  }

  footer .footer-center {
    padding-left: 20px;
    padding-right: 20px;
  }

  footer .footer-center > ul {
    gap: 30px 20px;
  }

  footer .footer-center ul li p {
    margin-top: 0;
  }

  footer .footer-center ul li > :last-child {
    margin-bottom: 0;
  }

  footer .footer-bottom-line span {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 500px) {
  footer .footer-center > ul > .footer-office-1,
  footer .footer-center > ul > .footer-sign-up {
    grid-column: 1 / -1;
  }
}

/* Homepage figures and associations, using the site's green and serif palette. */
.home-numbers,
.home-associations {
  padding: 70px 30px;
  color: #4d4d4d;
}

.home-numbers,
.services-discover {
  background: #f5f7f6;
}

.home-section-center {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

.home-section-eyebrow {
  margin: 0 0 14px;
  color: #255667;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-numbers h2,
.home-associations h2 {
  margin: 0 0 22px;
  color: #0e3531;
  font-family: "PT Serif", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
}

.home-numbers h2 em {
  color: #255667;
}

.home-section-intro {
  max-width: 690px;
  margin: 0 0 35px;
  font-size: 18px;
  line-height: 1.6;
}

.home-numbers-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 24px;
}

.home-number {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background: #255667;
  color: #fff;
  border-top: 3px solid #255667;
}

.home-number-wide {
  grid-column: span 3;
}

.home-number dd {
  order: -1;
  margin: 0 0 20px;
  font-family: "PT Serif", serif;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.home-number dd span {
  font-size: 0.55em;
}

.home-number dt {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-number dt::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-bottom: 14px;
  background: #a6c3bc;
}

.home-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-fact {
  padding: 25px;
  background: #fff;
  border-top: 2px solid #0e3531;
}

.home-fact h3,
.home-association h3 {
  margin: 0 0 14px;
  color: #0e3531;
  font-family: "PT Serif", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.35;
}

.home-fact > p:last-child,
.home-association > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.home-numbers-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.home-numbers-footer p {
  margin: 0;
  font-size: 13px;
}

.home-section-link {
  display: inline-block;
  padding: 6px 33px 7px;
  background: #255667;
  color: #fff;
  font-size: 25px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.4s linear, color 0.4s linear;
}

.home-section-link:hover,
.home-section-link:focus-visible {
  background: #fff;
  color: #1b5054;
  text-decoration: none;
}

@media (max-width: 992px) {
  .home-section-link {
    font-size: 20px;
  }
}

.home-associations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 35px;
}

.home-association {
  padding: 30px;
  border: 1px solid #dce5e1;
  border-top: 3px solid #0e3531;
}

.home-association-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #dce5e1;
}

.home-association-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .home-page {
    --home-section-spacing: 45px;
  }

  .home-numbers,
  .home-associations {
    padding: 45px 20px;
  }

  .home-numbers h2,
  .home-associations h2 {
    font-size: 34px;
  }

  .home-number {
    padding: 24px 18px;
  }

  .home-facts-grid,
  .home-associations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 500px) {
  .home-numbers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-number,
  .home-number-wide {
    grid-column: span 1;
  }

  .home-number:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .home-number dd {
    font-size: 34px;
  }

  .home-number dt {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .home-numbers-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-association {
    padding: 24px;
  }
}
