/* 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 {
    text-transform: uppercase;
    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-primary);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 0.9;
  letter-spacing: -1px;

  span {
    display: block;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 2rem;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 4rem);

  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: 36px;
      height: 36px;
      background-image: url("../images/icons/black_arrow_left.png");
      background-position: right;
      background-size: 34px;
      background-repeat: no-repeat;
      right: -35px;
      top: 17px;
      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;
}

.footer-top-left {
  h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -5px;
    font-weight: 600;
    padding-block: 1rem;
  }

  .footer-chat {
    border: 1px solid #000;
    padding: 1.2rem 2.7rem;
    display: inline-block;
    font-weight: 600;
    font-size: 1.4rem;
    margin-block: 1.5rem 1rem;
  }
}

.footer-logo-container {
  display: flex;
  justify-content: flex-end;
}

.footer-logo {
  max-width: 150px;
  cursor: pointer;
}

.footer-social {
  border-block: 1px solid black;
  padding-block: 1.2rem;
  position: relative;
  font-size: 1.2rem;

  .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-primary);
    font-weight: 700;
    font-size: 1.2rem;
  }
}

.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;
  }
}

.mobile-only {
  display: none;
}

@media only screen and (max-width: 767px) {
  #footer-container {
    text-align: center;
  }

  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .footer-top-container {
    padding: 2rem 1.5rem 1rem;
  }

  .footer-top-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-top-left h2 {
    font-size: 3.3rem;
    letter-spacing: -1px;
    font-weight: bold;

    br {
      display: none;
    }
  }

  .design-thought {
    font-size: 2rem;
    padding-block: 2rem;
  }

  .footer-nav {
    font-size: clamp(3rem, 4vw, 4rem);

    li {
      text-align: center;
    }

    & a {
      &::after {
        display: none;
      }

      &:hover {
        padding-inline: 0;
      }
    }
  }

  .footer-logo-container {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding-top: 2rem;

    .footer-logo {
      max-width: 50%;
      text-align: right;

      img {
        max-width: 200px;
        width: 100%;
        display: inline;
      }
    }

    span {
      padding-top: 5px;
    }
  }

  .footer-address {
    text-align: center;
    padding-block: 2rem 3rem;
    font-size: 1.2rem;
  }

  .footer-social {
    padding-block: 0 1.5rem;
    border: 0;

    .social-links {
      padding-right: 0.5rem;
      font-size: 1rem;
      justify-content: center;
      margin-top: 1.5rem;
    }
  }

  .email-phone-link {
    position: static;
    font-size: 1rem;
    padding-inline: 0.5rem;
    gap: 4px;
    justify-content: center;
  }

  .footer-top-links {
    ul {
      padding: 2rem 0;
    }

    a {
      font-size: 2.5rem;
    }
  }
}
