.footer {
  position: relative;
  overflow: hidden;
  background: #04151b !important;
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.footer-logo-link {
  display: block;
  flex: 0 1 220px;
}

.footer-logo {
  display: block;
  width: 100%;
  height: auto;
}

.footer-follow-title {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border-radius: 50%;
  background: #fff;
  color: #041316;
  transition: transform .2s ease, background-color .2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  transform: translateY(-3px);
  background: #c8f079;
}

.footer-socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-legal { order: 4; }
.footer-contact { order: 5; }

.footer-top > :nth-child(4),
.footer-grid > :nth-child(4) { order: 5; }

.footer-top > :nth-child(5),
.footer-grid > :nth-child(5) { order: 4; }

.footer-top > :nth-child(3) h4,
.footer-grid > :nth-child(3) h4 {
  font-size: 0;
}

.footer-top > :nth-child(3) h4::after,
.footer-grid > :nth-child(3) h4::after {
  content: "ABOUT US";
  font-size: 11px;
}

.footer-top,
.footer-grid {
  grid-template-columns: 1.45fr repeat(4, minmax(0, 1fr)) !important;
  gap: 32px !important;
}

.footer-links .team-chat,
.footer-links button {
  justify-self: start;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff !important;
  font: inherit;
  font-size: 11px;
  font-weight: 400 !important;
  text-align: left;
  cursor: pointer;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  color: rgba(255, 255, 255, .72) !important;
}

.footer-company {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  letter-spacing: .015em;
}

.footer-company strong {
  color: rgba(255, 255, 255, .78);
  font-weight: 750;
}

.footer-contact-details {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.footer-contact-details a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  line-height: 1.35;
}

.footer-contact-details a:hover,
.footer-contact-details a:focus-visible {
  color: rgba(255, 255, 255, .78);
}

.footer-contact-icon {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #ffab62;
  font-size: 12px;
}

.footer-company::after {
  content: "Address: FLAT/RM 1911 LEE GARDEN ONE 33 HYSAN AVENUE CAUSEWAY BAY HK";
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .46);
  font-weight: 400;
}

@media (max-width: 1020px) {
  .footer-top,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-brand,
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-brand-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-logo-link {
    width: min(250px, 78vw);
    flex-basis: auto;
  }
}

@media (max-width: 680px) {
  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    gap: 14px !important;
  }

  .footer-grid > :not(:first-child):not(:nth-child(5)) {
    display: none;
  }

  .footer-grid > :first-child > .brand {
    display: none;
  }

  .footer-follow-title {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
  }

  .footer-socials {
    display: flex;
    gap: 9px;
  }

  .footer-socials a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #04151b;
  }

  .footer-socials svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

  .footer-contact-details {
    margin-top: 18px;
  }

  .footer-grid > :nth-child(5) h4 {
    display: none;
  }

  .footer-grid > :nth-child(5) .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 15px;
  }

  .footer-company {
    padding-top: 18px;
    font-size: 10px;
  }
}

/* Apply the concise social footer to pages that use .footer-top as well. */
@media (max-width: 680px) {
  .footer-top { gap: 14px !important; }
  .footer-top > :not(:first-child):not(:nth-child(5)) { display: none; }
  .footer-top > :first-child > .brand { display: none; }
  .footer-top .footer-follow-title { margin: 0 0 18px; color: rgba(255, 255, 255, .86); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
  .footer-top .footer-socials { display: flex; gap: 9px; }
  .footer-top .footer-socials a { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #fff; color: #04151b; }
  .footer-top .footer-legal h4 { display: none; }
  .footer-top .footer-legal .footer-links { display: flex; flex-wrap: wrap; gap: 9px 15px; }
}

@media (max-width: 680px) {
  .footer-grid > :first-child > .brand, .footer-top > :first-child > .brand { display: inline-flex; margin-bottom: 24px; }
}

@media (max-width: 680px) {
  .footer .brand-text { display: inline-block; font-size: 14px; }
  .footer .brand-text small { display: block; }
}
