/* ==========================================================================
   DeviceHub — Footer Component
   Path: assets/css/components/footer.css
   Depends on: style.css (tokens)
   ========================================================================== */

#wf_footer.wf_footer--one {
  background-color: var(--devhub-primary);
  padding: 4rem 0 0;
}

#wf_footer .footer-shape {
  display: none;
}

.dh-footer__inner {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(0, 2fr) minmax(20rem, 1fr);
  gap: 3.2rem;
  align-items: start;
}

.dh-footer__middle {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  align-items: start;
}

.dh-footer__col--contact {
  grid-column: 3;
}

.dh-footer__logo {
  display: block;
  margin-bottom: 2.4rem;
  text-decoration: none;
}

.dh-footer__logo img {
  height: 5.6rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.dh-footer__description {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--devhub-white);
  font-size: var(--devhub-text-2xl);
  line-height: 1.6;
  opacity: 0.9;
}

.dh-footer__badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dh-footer__badge img {
  height: 4.4rem;
  width: auto;
  display: block;
}

.dh-footer__heading {
  font-size: var(--devhub-text-3xl);
  font-weight: 600;
  color: var(--devhub-white);
  margin: 0 0 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--devhub-white);
}

#wf_footer .dh-footer__heading {
  color: var(--devhub-white);
  border-bottom-color: var(--devhub-white);
}

.dh-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dh-footer__links li {
  margin-bottom: 0.55rem;
}

.dh-footer__links li:last-child {
  margin-bottom: 0;
}

.dh-footer__links a {
  color: var(--devhub-white);
  text-decoration: none;
  font-size: var(--devhub-text-2xl);
  opacity: 0.9;
  transition: opacity var(--devhub-transition);
}

.dh-footer__links a:hover,
.dh-footer__links a:focus {
  opacity: 1;
  text-decoration: underline;
  color: var(--devhub-white);
}

.dh-footer__contact {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
}

.dh-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
  font-size: var(--devhub-text-2xl);
  color: var(--devhub-white);
}

.dh-footer__contact li:last-child {
  margin-bottom: 0;
}

.dh-footer__contact li i {
  font-size: 1.6rem;
  color: var(--devhub-white);
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1.8rem;
  text-align: center;
}

.dh-footer__contact a {
  color: var(--devhub-white);
  text-decoration: none;
  transition: opacity var(--devhub-transition);
}

.dh-footer__contact a:hover,
.dh-footer__contact a:focus {
  opacity: 0.8;
  text-decoration: underline;
  color: var(--devhub-white);
}

.dh-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.dh-footer__social li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--devhub-radius-sm);
  background-color: var(--devhub-white);
  transition: background-color var(--devhub-transition);
  text-decoration: none;
}

.dh-footer__social li a:hover,
.dh-footer__social li a:focus {
  background-color: var(--devhub-white);
}

.dh-footer__social li a img {
  width: 1.8rem;
  height: 1.8rem;
  filter: none;
}

.dh-footer__copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 3rem;
  padding-top: 1.8rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--devhub-white);
  font-size: var(--devhub-text-xl);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  opacity: 0.92;
}

.dh-footer__copyright p {
  margin: 0;
}

.dh-footer__copyright-text {
  margin: 0;
}

.dh-footer__credit-separator {
  opacity: 0.7;
}

.dh-footer__credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  line-height: inherit;
}

.dh-footer__credit-heart {
  font-size: 1em;
  line-height: 1;
}

.dh-footer__copyright a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 61.95em) {
  #wf_footer.wf_footer--one {
    padding-bottom: calc(8.8rem + env(safe-area-inset-bottom, 0px));
  }

  .dh-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .dh-footer__logo img {
    height: 4rem;
  }

  .dh-footer__middle {
    display: contents;
  }

  .dh-footer__col--links,
  .dh-footer__col--contact {
    min-width: 0;
  }

  .dh-footer__col--contact {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 35.95em) {
  #wf_footer.wf_footer--one {
    padding-top: 2.4rem;
    padding-bottom: calc(7.4rem + env(safe-area-inset-bottom, 0px));
  }

  .dh-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .dh-footer__logo {
    margin-bottom: 1.4rem;
  }

  .dh-footer__description {
    margin-bottom: 1.4rem;
    font-size: 1.5rem;
  }

  .dh-footer__logo img {
    height: 3rem;
  }

  .dh-footer__badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .dh-footer__badge img {
    height: 3.6rem;
  }

  .dh-footer__middle {
    display: contents;
  }

  .dh-footer__col--links,
  .dh-footer__col--contact {
    min-width: 0;
  }

  .dh-footer__heading {
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    font-size: 1.8rem;
  }

  .dh-footer__links li {
    margin-bottom: 0.35rem;
  }

  .dh-footer__links a,
  .dh-footer__contact li {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  .dh-footer__col--contact {
    grid-column: auto;
    max-width: none;
  }

  .dh-footer__contact {
    margin-bottom: 1.4rem;
  }

  .dh-footer__contact li {
    gap: 0.8rem;
    margin-bottom: 0.45rem;
  }

  .dh-footer__contact li i {
    font-size: 1.3rem;
    width: 1.5rem;
  }

  .dh-footer__social {
    gap: 0.8rem;
  }

  .dh-footer__social li a {
    width: 3.4rem;
    height: 3.4rem;
  }

  .dh-footer__social li a img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .dh-footer__copyright {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    font-size: 1.4rem;
  }
}
