/* view all button */

.view-all {
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-size: 3.5rem;
  letter-spacing: -3px;
  background-color: #000000;
  color: #ffffff;

  .text {
    display: block;
    height: 1em;
    overflow: hidden;
    position: relative;

    span {
      display: block;
      transition: transform 0.4s ease;

      &:nth-child(1) {
        transform: translateY(0);
      }

      &:nth-child(2) {
        transform: translateY(100%);
        position: absolute;
        left: 0;
        top: 0;
      }
    }
  }

  .icon {
    width: 1em;
    height: 1em;
    position: relative;
    overflow: hidden;

    span {
      position: absolute;
      top: 4px;
      left: 0;
      transition: transform 0.4s ease;

      &:nth-child(1) {
        transform: translateX(0);
      }

      &:nth-child(2) {
        transform: translateX(-150%);
      }
    }
  }

  &:hover {
    .text {
      span:nth-child(1) {
        transform: translateY(-100%);
      }

      span:nth-child(2) {
        transform: translateY(0);
      }
    }

    .icon {
      span:nth-child(1) {
        transform: translateX(150%);
      }

      span:nth-child(2) {
        transform: translateX(0);
      }
    }
  }
}

/* footer-top-links */

.footer-top-links {
  padding: 1rem 1rem 1rem 1.2rem;
  background-color: #d3d3d3;

  ul {
    background-image: url("../images/image_footer/footer-top-links-bg.png");
    background-repeat: repeat-x;
    background-position: 0 0;
    padding: 4rem;
  }

  li {
    overflow: hidden;
  }

  a {
    position: relative;
    text-decoration: none;
    font-size: 3rem;
    line-height: 1;
    color: #000000;
    letter-spacing: -4px;
    padding-left: 0;
    transition: all 0.3s ease;

    &::before {
      content: "";
      display: block;
      width: 48px;
      height: 48px;
      background-image: url("../images/icons/black_arrow_right.png");
      background-position: left;
      background-size: 45px;
      background-repeat: no-repeat;
      left: -50px;
      top: 2px;
      position: absolute;
      transition: all 0.3s ease;
    }

    &:hover {
      padding-left: 55px;

      &::before {
        left: 0;
      }
    }
  }
}

/* footer */

#footer-container {
  background-color: var(--primary-color);
}

.footer-top-container {
  padding: 3rem 2rem 2rem;
}

.footer-top-inner {
  display: flex;
  justify-content: space-between;
}

.design-thought {
  font-family: var(--font-bold);
  font-weight: bold;
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: -1px;

  span {
    display: block;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 2rem;

  li {
    text-align: right;
    line-height: 1;
    letter-spacing: -2px;
    overflow: hidden;
  }

  a {
    color: var(--text-color);
    transition: all 0.3s;
    padding-right: 0;
    position: relative;

    &::after {
      content: "";
      display: block;
      width: 30px;
      height: 30px;
      background-image: url("../images/icons/black_arrow_left.png");
      background-position: right;
      background-size: 28px;
      background-repeat: no-repeat;
      right: -35px;
      top: 2px;
      position: absolute;
      transition: all 0.3s ease;
    }
  }

  a:hover {
    padding-right: 2.5rem;

    &::after {
      right: 0;
    }
  }
}

.footer-logo-talk {
  display: flex;
  justify-content: space-between;
  padding-top: 10rem;
}

.footer-talk {
  background-color: transparent;
  color: black;
  padding: 0;

  /* span {
    font-size: 3.5rem;
    letter-spacing: -3px;
  }

  img {
    height: 2.5rem;
    width: auto;
    transition: all 0.3s ease;
  }

  &:hover img {
    transform: translateX(0.5rem);
  } */
}

.footer-logo {
  max-width: 120px;
  cursor: pointer;
}

.footer-social {
  border-block: 1px solid black;
  padding-block: 1rem;
  position: relative;

  .social-links {
    background-color: white;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    font-size: 0.8rem;
    padding-right: 2rem;
    font-family: var(--font-bold);
    font-weight: bold;
  }
}

.email-phone-link {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #093793;
  color: white;
  display: flex;
  gap: 6px;
  height: 100%;
  align-items: center;
  padding: 1rem;

  .email,
  .phone {
    display: flex;
    gap: 3px;
    align-items: baseline;
  }

  img {
    flex-shrink: 0;
    height: 13px;
    width: 14px;
  }
}

@media only screen and (max-width: 576px) {
  .view-all {
    padding: 1rem;
  }

  .footer-top-links {
    padding-inline: 0.5rem;

    ul {
      padding: 2rem 1rem;
    }

    li a {
      font-size: 2.5rem;
      letter-spacing: -3px;

      &::before {
        width: 38px;
        height: 38px;
        background-size: 36px;
        left: -40px;
      }

      &:hover {
        padding-left: 45px;
      }
    }
  }

  .footer-top-container {
    padding: 2rem 1.5rem 1rem;
  }

  .footer-nav {
    li {
      text-align: left;
    }

    & a {
      &::after {
        background-image: url("../images/icons/black_arrow_right.png");
        right: initial;
        left: -35px;
      }

      &:hover {
        padding-right: 0;
        padding-left: 2.5rem;

        &::after {
          right: inherit;
          left: 0;
        }
      }
    }
  }

  .footer-talk {
    font-size: 2rem;
    letter-spacing: -0.5px;

    img {
      height: 1.5rem;
    }
  }

  .footer-top-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-logo-talk {
    padding-top: 5rem;
    align-items: center;
    gap: 1rem;
  }

  .footer-talk {
    padding-inline: 0;
  }

  .footer-logo {
    max-width: 25%;
    text-align: right;

    img {
      max-width: 120px;
      width: 100%;
      display: inline;
    }
  }

  .footer-social {
    padding-block: 1.5rem;

    .social-links {
      padding-right: 0.5rem;
      font-size: 1rem;
    }
  }

  .email-phone-link {
    font-size: 0.9rem;
    padding-inline: 0.5rem;
    gap: 4px;
  }
}

@media only screen and (max-width: 399px) {
  .email-phone-link {
    font-size: 0.8rem;
  }
}
