/* =========================
   ROOT FOOTER
========================= */

.footer {
  background: #0a0a0a;
  color: #fff;

  padding: 88px 0 42px;

  border-top: 1px solid rgba(255,255,255,0.08);

  position: relative;
  z-index: 2;
}


/* =========================
   TOP SECTION
========================= */

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: start;

  gap: 80px;

  max-width: 1600px;

  margin: 0 auto;
  padding: 0 70px;
}


/* =========================
   LEFT
========================= */

.footer__left {
  display: flex;
  flex-direction: column;
}

.footer__title {
  font-size: 13px;
  letter-spacing: 0.08em;

  margin-bottom: 16px;

  opacity: 0.6;
}


/* =========================
   LINKS CONTAINER
========================= */

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 14px;
}


/* =========================
   LINKS + MODAL BUTTONS
========================= */

.footer__links a,
.footer__links button {
  background: none;
  border: none;

  padding: 0;
  margin: 0;

  width: fit-content;

  color: #fff;

  opacity: 0.7;

  font-size: 14px;
  font-weight: 400;

  text-decoration: none;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}


/* HOVER */

.footer__links a:hover,
.footer__links button:hover {
  opacity: 1;
}


/* =========================
   RIGHT
========================= */

.footer__right {
  display: flex;
  flex-direction: column;
}

.footer__headline {
  font-size: 18px;
  letter-spacing: 0.06em;

  margin-bottom: 18px;
}

.footer__subtext {
  font-size: 13px;

  opacity: 0.6;

  margin-bottom: 24px;
}


/* =========================
   FORM
========================= */

.footer__form {
  display: flex;
  gap: 14px;

  margin-bottom: 10px;
}

.footer__form input {
  flex: 1;

  padding: 14px 16px;

  background: #111;

  border: 1px solid rgba(255,255,255,0.2);

  color: #fff;

  font-size: 12px;
}

.footer__form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.footer__form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
}


/* BUTTON */

.footer__form button {
  padding: 14px 22px;

  background: #fff;
  color: #000;

  border: none;

  font-size: 11px;
  letter-spacing: 0.1em;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer__form button:hover {
  opacity: 0.9;
}


/* =========================
   MESSAGE
========================= */

.footer__message {
  font-size: 12px;
}


/* =========================
   BOTTOM
========================= */

.footer__bottom {
  margin-top: 72px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top: 1px solid rgba(255,255,255,0.08);

  max-width: 1600px;

  margin-left: auto;
  margin-right: auto;

  padding: 28px 70px 0;
}


/* =========================
   SOCIALS
========================= */

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials img {
  width: 18px;
  height: 18px;

  filter: invert(1);

  opacity: 0.7;

  transition: opacity 0.2s ease;
}

.footer__socials a:hover img {
  opacity: 1;
}


/* =========================
   TEXT
========================= */

.footer__copy,
.footer__built {
  font-size: 12px;
  opacity: 0.5;

  line-height: 1.7;
}

.footer__copy {
  text-align: right;

  display: flex;
  flex-direction: column;

  gap: 2px;
}


/* =========================
   CREDIT
========================= */

.footer__credit {
  color: #fff;

  text-decoration: none;

  transition: opacity 0.2s ease;
}

.footer__credit:hover {
  opacity: 0.7;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .footer {
    padding: 52px 0 26px;
  }

  .footer__top {
    grid-template-columns: 1fr;

    gap: 44px;

    padding: 0 24px;
  }

  .footer__title {
    margin-bottom: 12px;
  }

  .footer__links {
    gap: 10px;
  }

  .footer__headline {
    font-size: 16px;

    margin-bottom: 14px;
  }

  .footer__subtext {
    margin-bottom: 18px;
  }

  .footer__form {
    flex-direction: column;

    gap: 10px;

    margin-bottom: 8px;
  }

  .footer__form input {
    padding: 13px 14px;
  }

  .footer__form button {
    width: 100%;

    padding: 13px 16px;
  }

  .footer__bottom {
    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 18px;

    margin-top: 40px;

    padding: 22px 24px 0;
  }

  .footer__socials {
    gap: 16px;
  }

  .footer__copy {
    text-align: center;

    align-items: center;

    line-height: 1.5;
  }

}