.cav-footer {
  align-items: center;
  display: grid;
  gap: 6.4rem;
  grid-template-columns: auto;
  justify-content: center;
  margin-inline: auto;
  max-inline-size: 128rem;
  padding-block-end: 13.8rem;
  padding-block-start: 9.6rem;
  padding-inline: 5rem;

  & > .cav-footer__logo {
    display: flex;
    justify-content: center;
    padding: 0.75rem;
  }

  & > .cav-footer__menu {
    font-family: "mundial", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    line-height: 1;
    text-transform: uppercase;

    & > ul {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.8rem;

      & > li {
        padding-block: 0.8rem;
        text-align: center;
      }
    }

    & a {
      color: rgba(var(--color-foreground));
      
       &:hover {
        text-decoration: underline;
       }
    }
  }

  & > .cav-footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    text-align: center;

    & input {
      inline-size: 100%;
    }
  }
}

@media (width >= 1024px) {
  .cav-footer {
    grid-template-columns: auto auto 1fr;

    & .cav-footer__menu ul li {
      padding-inline-end: 4.8rem;
      text-align: start;
    }

    & .cav-footer__menu li:has(.cav-footer__icon) {
      justify-content: start;
    }
  }
}

.cav-footer__background {
  position: relative;

  &::before {
    block-size: 42px;
    content: "";
    inset-inline: 0;
    inset-block-end: 0;
    background-image: url("./border-primary.png");
    background-repeat: repeat-x;
    background-size: contain;
    background-position: center bottom;
    position: absolute;
    z-index: 0;
  }
}

li:has(.cav-footer__icon) {
  display: inline-flex;
  gap: 1.2rem;
  justify-content: center;
}

.cav-footer__icon {
  background-color: currentcolor;
  block-size: 1.6rem;
  display: inline-block;
  inline-size: 1.6rem;
  mask-repeat: no-repeat;
}

.cav-footer__icon.cav-footer__icon--instagram {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
}

.cav-footer__icon.cav-footer__icon--pinterest {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z'/%3E%3C/svg%3E");
}
