/*
 * RoboMecs P4B.3A — footer compaction hotfix
 * Purpose: remove unintended desktop footer stretch while preserving the
 * existing footer content, Contact-page CTA suppression, RTL structure,
 * and mobile stacking behavior.
 */

.footer,
.footer > .container,
.footer .footer-main,
.footer .footer-brand {
  min-height: 0 !important;
  height: auto !important;
}

.footer .footer-brand {
  justify-content: flex-start !important;
}

@media (min-width: 900px) {
  .footer .footer-main {
    align-items: start !important;
    align-content: start !important;
    padding-top: 48px !important;
    padding-bottom: 36px !important;
    row-gap: 32px !important;
  }

  .footer .footer-brand {
    display: block !important;
    align-self: start !important;
  }

  .footer .footer-brand .footer-logo {
    display: block !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 26px !important;
  }

  .footer .footer-brand .slogan {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  .footer .footer-brand > p:not(.slogan) {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }

  .footer .footer-social {
    margin-top: 18px !important;
  }

  .footer .footer-bottom {
    margin-top: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 28px !important;
  }
}

@media (max-width: 899px) {
  .footer .footer-main {
    align-content: start !important;
  }

  .footer .footer-brand {
    justify-content: flex-start !important;
  }
}
