/**
 * Shared footer styles.
 */

#top-footer.cuihua-footer {
  padding: 58px 0 50px;
  color: rgba(255, 255, 255, 0.74);
  background: #212121;
}

.cuihua-footer,
.cuihua-footer * {
  box-sizing: border-box;
}

.cuihua-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(130px, 0.75fr) minmax(170px, 1fr) minmax(220px, 1.2fr);
  gap: 44px;
  align-items: start;
}

.cuihua-footer h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: inherit;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}

.cuihua-footer__brand h2 {
  margin-bottom: 14px;
  font-size: 27px;
}

.cuihua-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

.cuihua-footer__brand span {
  display: block;
  margin-top: 18px;
  color: #f5b94f;
  font-size: 13px;
  font-weight: 800;
}

.cuihua-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cuihua-footer a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cuihua-footer a:hover,
.cuihua-footer a:focus {
  color: #f5b94f;
}

.cuihua-footer__contact-links,
.cuihua-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}

.cuihua-footer__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 4px;
  color: #212121 !important;
  background: #f5b94f;
  font-weight: 900 !important;
}

.cuihua-footer__cta:hover,
.cuihua-footer__cta:focus {
  background: #ffc967;
}

#bottom-footer.cuihua-bottom-footer {
  padding: 17px 0;
  color: rgba(255, 255, 255, 0.58);
  background: #1a1a1a;
}

.cuihua-bottom-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

body.home #colophon {
  margin-top: 0;
}

@media (max-width: 980px) {
  .cuihua-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #top-footer.cuihua-footer {
    padding: 42px 0 38px;
  }

  .cuihua-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cuihua-bottom-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
