/*
   MARATHON TRENDS — FOOTER LAYOUT

   Kept in its own file (not marathon-enhancements.css) because the pages that
   have no market ticker still need the footer styling. Loading the full
   enhancements sheet on them would apply its `body { padding-top: 38px }`
   ticker offset with no ticker present, leaving a blank strip at the top.
*/

#primary_footer .container.mt-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

/* Three equal columns, content centred and pinned to the top */
#primary_footer .mt-footer__col {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 33.3333%;
  float: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

/* Every column opens with its icon on the same baseline */
#primary_footer .mt-footer__col .widget-contact-content.centered > i,
#primary_footer .mt-footer__col .widget-contact-content.centered > a > i {
  font-size: 32px;
  line-height: 1;
  margin: 0 0 22px;
  display: block;
}

#primary_footer .mt-footer__col .widget {
  width: 100%;
  float: none;
  margin: 0;
}

/* One type scale for all three columns, on every page */
#primary_footer .mt-footer__col .widget-contact-info-content p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0;
}

/* Social icons sit directly under the phone number */
#primary_footer .hazel_socials_widget {
  margin-top: 18px !important;
}

#primary_footer .social-icons-fa ul {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

#primary_footer .social-icons-fa ul li {
  float: none !important;
  margin: 0 !important;
}

/* Map thumbnail, centred beneath the address */
/* Block, not inline-block: as an inline-block it shared a line box with the
   address text and drifted off-centre at narrow widths. */
#primary_footer .mt-footer__maplink {
  display: block;
  width: 100%;
  margin-top: 18px;
  text-decoration: none;
}

#primary_footer .map-container {
  width: 170px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
}

/* --- Policy links: own full-width row, single line on desktop --- */
#primary_footer .mt-footer__links {
  flex: 1 1 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 15px;
  line-height: 1.6;
}

#primary_footer .mt-footer__links a {
  color: inherit;
  text-decoration: none;
  padding: 0 18px;
  transition: color .2s linear;
}

#primary_footer .mt-footer__links a:hover {
  color: var(--mt-accent, #cdb083);
}

/* Separators drawn in CSS, so a wrap never leaves a trailing "|" */
#primary_footer .mt-footer__links a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---- Tablet ---- */
@media (max-width: 991px) {
  #primary_footer .mt-footer__col {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 45px;
  }

  #primary_footer .mt-footer__links {
    margin-top: 10px;
  }
}

/* ---- Mobile: stack the links, drop the dividers ---- */
@media (max-width: 600px) {
  #primary_footer .mt-footer__links {
    flex-direction: column;
    gap: 14px;
  }

  #primary_footer .mt-footer__links a {
    padding: 0;
  }

  #primary_footer .mt-footer__links a + a {
    border-left: 0;
  }
}
