/* Footer Styles */

.footer {
  position: relative;
  z-index: 0;
  overflow: visible;
  padding-top: 110px;
  padding-bottom: 112px;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bullet-bg);
  -webkit-mask-image: url("../images/common/footer_fullwidth.svg");
  mask-image: url("../images/common/footer_fullwidth.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  /* keep it behind the content */
  z-index: -1;
  pointer-events: none;
}

.footer__left-vectors,
.footer__left-vectors img {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  max-height: clamp(114px, 35%, 140px);
}

.footer__right-vectors,
.footer__right-vectors img {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  max-height: clamp(114px, 35%, 140px);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.footer__menus {
  display: flex;
  gap: 80px;
  width: 100%;
}

.footer__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__first-col,
.footer__second-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.footer__logo-wrapper {
  display: flex;
  margin-bottom: 40px;
}

.footer__logo-wrapper--cow {
  justify-content: flex-start;
}

.footer__logo-wrapper--logo {
  justify-content: flex-start;
}

.footer__menu-list {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 17px;
  margin-top: 0;
}

.footer__first-col .footer__menu-list {
  margin-top: 116px;
}

.footer__menu-list--upper {
  margin-top: 57px;
}

.footer__menu-link, .menu-item a {
  font-size: 26px;
  font-weight: 700;
  line-height: 100%;
  color: var(--text-main);
}

.footer__menu-link:hover, .menu-item a:hover {
  color: var(--accent-red);
}

.footer__logo--logo {
  width: 240px;
  height: auto;
}

.footer__logo--cow {
  width: 317px;
  height: auto;
}

.footer__logo-wrapper {
  display: none;
}

.footer__socials {
  margin-top: auto;
  display: flex;
  gap: 36px;
}

.footer__socials-link {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid var(--text-main);
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: inherit;
}

/* Social media icons */
.footer__socials-link.instagram {
  background-image: url("../images/common/instagram.svg");
}

.footer__socials-link.facebook {
  background-image: url("../images/common/facebook.svg");
}

.footer__socials-link.linkedin {
  background-image: url("../images/common/linkedin.svg");
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .footer {
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: left;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .footer .container {
    text-align: left;
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .footer__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 12px;
  }

  .footer__logos {
    display: flex;
    flex-direction: row-reverse;
    order: -1;
    gap: 40px;
    justify-content: center;
    align-items: center;
  }

  .footer__logos img {
    max-width: 118px;
    margin-right: 24px;
  }

  .footer__menus {
    gap: 20px;
    justify-content: center;
  }

  .footer__second-col {
    position: relative;
  }

  .footer__socials,
  .footer__second-col .footer__socials,
  .footer__socials ul,
  .footer__socials li,
  .footer__socials-item,
  .footer__socials-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  .footer__menus {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }

  .footer__first-col,
  .footer__second-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .footer__first-col {
    align-items: center;
    text-align: center;
  }

  .footer__second-col {
    align-items: flex-start;
    text-align: left;
  }

  .footer__logo-wrapper {
    display: none !important;
  }

  .footer__menu-list {
    margin-top: 0 !important;
    gap: 6px;
  }

  .footer__first-col .footer__menu-list {
    margin-top: 0 !important;
  }

  .footer__menu-list--upper {
    margin-top: 0;
  }

  .footer__menu-link,
  .menu-item a {
    font-size: 12px;
    font-weight: 700;
    line-height: 100%;
  }

  .footer__left-vectors,
  .footer__left-vectors img:first-child,
  .footer__right-vectors,
  .footer__right-vectors img:first-child {
    width: 80px;
    aspect-ratio: auto;
  }

  .footer__left-vectors,
  .footer__left-vectors img:last-child,
  .footer__right-vectors,
  .footer__right-vectors img:last-child {
    width: 52px;
    aspect-ratio: auto;
  }
}

