/*
 * Footer refinement.
 *
 * Final responsive layer for a more legible footer and a cleaner mixed-surface
 * Grindline. Keeps the reference-authored HTML unchanged.
 */

@media screen and (min-width: 1024px) {
  .footer {
    min-height: 132px !important;
    padding: 20px 40px 22px !important;
    gap: clamp(24px, 3vw, 42px) !important;
    align-items: flex-start !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
  }

  .footer-logo-space {
    display: none !important;
  }

  .footer-desc {
    width: 190px !important;
    flex: 0 0 190px !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    transform: none !important;
  }

  .footer-col,
  .footer .footer-col:nth-of-type(3),
  .footer .footer-col:nth-of-type(4),
  .footer .footer-col:nth-of-type(5) {
    width: 128px !important;
    flex: 0 0 128px !important;
    transform: none !important;
  }

  .footer h4 {
    font-size: 15px !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
  }

  .footer-grind {
    width: min(30vw, 320px) !important;
    height: 78px !important;
    margin-left: auto !important;
    align-self: center !important;
    object-fit: contain !important;
    object-position: right center !important;
    transform: none !important;
  }
}

@media screen and (min-width: 761px) and (max-width: 1023px) {
  .footer {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px 32px !important;
    padding: 28px 32px 30px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
  }

  .footer-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .footer h4 {
    font-size: 15.5px !important;
    margin-bottom: 6px !important;
  }

  .footer-grind {
    width: min(44vw, 320px) !important;
    height: 78px !important;
    margin-top: 4px !important;
    object-fit: contain !important;
    object-position: right center !important;
    transform: none !important;
  }
}

@media screen and (max-width: 760px) {
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30rem 36rem !important;
    padding: 38rem 54rem 44rem !important;
    font-size: max(15px, 17rem) !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
  }

  .footer-desc {
    grid-column: 1 / -1 !important;
    width: auto !important;
    font-size: max(15px, 17rem) !important;
    line-height: 1.5 !important;
  }

  .footer-col,
  .footer .footer-col:nth-of-type(3),
  .footer .footer-col:nth-of-type(4),
  .footer .footer-col:nth-of-type(5) {
    width: auto !important;
    font-size: max(15px, 17rem) !important;
    line-height: 1.5 !important;
  }

  .footer h4 {
    font-size: max(18px, 21rem) !important;
    line-height: 1 !important;
    margin-bottom: 8rem !important;
  }

  .footer-grind {
    grid-column: 2 !important;
    justify-self: end !important;
    align-self: end !important;
    width: min(44vw, 310rem) !important;
    height: auto !important;
    margin: 6rem 0 0 !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    transform: none !important;
  }
}
