/* =========================================================
   FOOTER
========================================================= */

.footer {
  position: relative;
  width: 100%;
  padding: 52px 0 22px;
  background: #080808;
  color: #ffffff;
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

.footer * {
  font-family: "Inter", sans-serif;
}


/* =========================================================
   DETALHE DE FUNDO
========================================================= */

.footer::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );

  background-size: 68px 68px;

  pointer-events: none;
}


/* =========================================================
   GLOW
========================================================= */

.footer::after {
  content: "";
  position: absolute;

  width: 420px;
  height: 420px;

  left: -180px;
  bottom: -260px;

  background:
    radial-gradient(
      circle,
      rgba(255, 55, 65, 0.08),
      transparent 70%
    );

  pointer-events: none;
}


/* =========================================================
   CONTEÚDO PRINCIPAL
========================================================= */

.footer__main {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns:
    minmax(280px, 1.6fr)
    0.7fr
    0.8fr
    0.7fr;

  gap: 64px;

  padding-bottom: 42px;
}


/* =========================================================
   MARCA
========================================================= */

.footer__brand {
  max-width: 360px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;

  text-decoration: none;
  color: #ffffff;
}

.footer__logo-img {
  display: block;

  width: 150px;
  height: auto;

  object-fit: contain;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.footer__logo:hover .footer__logo-img {
  opacity: 0.78;
  transform: translateY(-2px);
}


/* =========================================================
   DESCRIÇÃO
========================================================= */

.footer__description {
  max-width: 340px;

  margin: 0;

  font-size: 14px;
  line-height: 1.7;

  color: #969696;
}


/* =========================================================
   DISPONIBILIDADE
========================================================= */

.footer__availability {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  margin-top: 20px;

  font-size: 11px;
  font-weight: 500;

  color: #b8b8b8;
}

.footer__availability-dot {
  width: 7px;
  height: 7px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #ff3741;

  box-shadow:
    0 0 0 4px rgba(255, 55, 65, 0.08);
}


/* =========================================================
   COLUNAS
========================================================= */

.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__title {
  margin-bottom: 18px;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #696969;
}


/* =========================================================
   NAVEGAÇÃO
========================================================= */

.footer__nav,
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 10px;
}

.footer__nav a,
.footer__links a {
  position: relative;

  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding: 2px 0;

  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;

  color: #cfcfcf;

  text-decoration: none;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}


/* linha inferior dos links de navegação */

.footer__nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -2px;

  width: 0;
  height: 1px;

  background: #ffffff;

  transition: width 0.25s ease;
}

.footer__nav a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer__nav a:hover::after {
  width: 100%;
}

.footer__links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer__links a span {
  font-size: 11px;

  color: #7c7c7c;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer__links a:hover span {
  color: #ff3741;
  transform: translate(2px, -2px);
}


/* =========================================================
   LINHA INFERIOR
========================================================= */

.footer__bottom {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding-top: 20px;

  border-top: 1px solid #1c1c1c;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.footer__copyright {
  margin: 0;

  font-size: 10px;
  line-height: 1.5;

  color: #686868;
}


/* =========================================================
   LEGAL
========================================================= */

.footer__legal {
  display: flex;
  align-items: center;

  gap: 24px;

  font-size: 10px;

  color: #686868;
}

.footer__legal span {
  color: #686868;
}


/* =========================================================
   LINKS + CONFIGURAR COOKIES
========================================================= */

.footer__legal a,
.footer__cookie-settings {
  position: relative;

  display: inline-flex;
  align-items: center;

  margin: 0;
  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;

  font-size: 10px;
  font-weight: 400;
  line-height: inherit;

  color: #858585;

  text-decoration: none;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition: color 0.25s ease;
}

.footer__legal a::after,
.footer__cookie-settings::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: #ffffff;

  transition: width 0.25s ease;
}

.footer__legal a:hover,
.footer__cookie-settings:hover {
  color: #ffffff;
}

.footer__legal a:hover::after,
.footer__cookie-settings:hover::after {
  width: 100%;
}

.footer__cookie-settings:focus-visible {
  color: #ffffff;

  outline: 1px solid #555555;
  outline-offset: 5px;

  border-radius: 2px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .footer {
    padding: 48px 0 22px;
  }

  .footer__main {
    grid-template-columns:
      minmax(260px, 1.3fr)
      1fr
      1fr;

    gap: 42px;
  }

  .footer__brand {
    grid-column: 1 / -1;

    max-width: 520px;
  }

  .footer__logo-img {
    width: 138px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .footer {
    padding: 42px 0 20px;
  }

  .footer__main {
    grid-template-columns:
      1fr
      1fr;

    gap: 34px 26px;

    padding-bottom: 34px;
  }

  .footer__brand {
    grid-column: 1 / -1;

    max-width: 100%;
  }

  .footer__logo {
    margin-bottom: 16px;
  }

  .footer__logo-img {
    width: 125px;
  }

  .footer__description {
    max-width: 100%;

    font-size: 13px;
  }

  .footer__availability {
    margin-top: 17px;
  }

  .footer__title {
    margin-bottom: 14px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;

    gap: 14px;

    padding-top: 18px;
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;

    gap: 8px;
  }
}


/* =========================================================
   MOBILE PEQUENO
========================================================= */

@media (max-width: 420px) {

  .footer__main {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .footer__brand {
    grid-column: auto;
  }
}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .footer__logo-img,
  .footer__nav a,
  .footer__nav a::after,
  .footer__links a,
  .footer__links a span,
  .footer__legal a,
  .footer__legal a::after,
  .footer__cookie-settings,
  .footer__cookie-settings::after {
    transition: none;
  }
}