/* =====================================================
   FOOTER
===================================================== */

footer#contact {
  width: 100%;
  margin: 0;
  padding: 0;

  color: #d4d4d4;

  background:
    linear-gradient(
      120deg,
      #11181d 0%,
      #0b1115 52%,
      #071018 100%
    );

  border-top: 3px solid var(--gold);
}

/* ستون‌های اصلی فوتر */
footer#contact .footer-grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.6fr)
    repeat(4, minmax(0, 1fr));

  align-items: start;
  gap: 0;

  margin: 0 auto;
  padding-top: 34px;
  padding-bottom: 26px;
}

/* هر ستون */
footer#contact .footer-grid > div {
  min-width: 0;
  margin: 0;
  padding: 0 16px;

  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* ستون لوگو */
footer#contact .footer-grid > div:first-child {
  padding-right: 0;
}

/* آخرین ستون */
footer#contact .footer-grid > div:last-child {
  padding-left: 0;
  border-left: 0;
}

/* =====================================================
   LOGO
===================================================== */

footer#contact .footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  margin: 0;
  padding: 0;
}

footer#contact .footer-brand .brand {
  display: block;

  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

footer#contact .footer-logo {
  display: block;

  width: 280px;
  max-width: 100%;
  height: auto;
  max-height: 135px;

  margin: 0;
  padding: 0;

  object-fit: contain;
  object-position: right top;
}

/* =====================================================
   TITLES
===================================================== */

footer#contact h4 {
  position: relative;

  margin: 0 0 9px;
  padding: 0 0 7px;

  color: var(--gold-2);

  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

footer#contact h4::after {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 30px;
  height: 1px;

  content: "";

  background: var(--gold);
}

/* =====================================================
   LINKS
===================================================== */

footer#contact .footer-grid > div:not(.footer-brand) > a {
  display: block;

  width: fit-content;

  margin: 0;
  padding: 2px 0;

  color: #d8d8d8;

  font-size: 12px;
  line-height: 1.7;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

footer#contact .footer-grid > div:not(.footer-brand) > a:hover {
  color: var(--gold-2);
  transform: translateX(-4px);
}

/* =====================================================
   CONTACT
===================================================== */

footer#contact p {
  margin: 0;
  padding: 2px 0;

  color: #c8c8c8;

  font-size: 12px;
  line-height: 1.7;
}

footer#contact p a {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: #d8d8d8;

  direction: ltr;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

footer#contact p a:hover {
  color: var(--gold-2);
  transform: translateX(-3px);
}

/* =====================================================
   SOCIAL
===================================================== */

footer#contact .social {
  margin: 7px 0 0;
  padding: 0;

  color: var(--gold-2);

  font-size: 21px;
  letter-spacing: 6px;
  line-height: 1.4;

  direction: ltr;
  user-select: none;
}

/* =====================================================
   COPYRIGHT
===================================================== */

footer#contact .copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 12px;

  color: #858585;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 11px;
  line-height: 1.6;

  direction: ltr;
}

footer#contact .copyright span {
  margin: 0;
  padding: 0;
}

footer#contact .copyright span:last-child {
  direction: rtl;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {
  footer#contact .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    padding-top: 30px;
    padding-bottom: 22px;
  }

  footer#contact .footer-brand {
    grid-column: 1 / -1;
  }

  footer#contact .footer-logo {
    width: 250px;
    max-height: 120px;
  }

  footer#contact .footer-grid > div {
    padding: 10px 15px;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 720px) {
  footer#contact .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    padding-top: 22px;
    padding-bottom: 16px;
  }

  footer#contact .footer-brand {
    grid-column: 1 / -1;
  }

  footer#contact .footer-grid > div {
    padding: 12px 14px;
  }

  footer#contact .footer-logo {
    width: 230px;
    max-height: 110px;
  }

  footer#contact .copyright {
    flex-direction: column;
    justify-content: center;
    gap: 3px;

    padding-top: 10px;
    padding-bottom: 10px;

    text-align: center;
  }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {
  footer#contact .footer-grid {
    grid-template-columns: 1fr;

    padding-top: 14px;
    padding-bottom: 10px;

    text-align: center;
  }

  footer#contact .footer-grid > div {
    padding: 13px 0;

    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  footer#contact .footer-grid > div:last-child {
    border-bottom: 0;
  }

  footer#contact .footer-brand {
    grid-column: auto;
    justify-content: center;
  }

  footer#contact .footer-logo {
    width: 215px;
    max-height: 105px;

    margin-inline: auto;

    object-position: center;
  }

  footer#contact h4::after {
    right: 50%;
    transform: translateX(50%);
  }

  footer#contact .footer-grid > div:not(.footer-brand) > a {
    width: max-content;
    max-width: 100%;

    margin-right: auto;
    margin-left: auto;
  }

  footer#contact .footer-grid > div:not(.footer-brand) > a:hover,
  footer#contact p a:hover {
    transform: none;
  }

  footer#contact .copyright {
    display: flex;

    padding-top: 9px;
    padding-bottom: 9px;
  }
}