/* ==========================================================================
   Footer -- rendered by [ms_footer] in Astra's Footer Builder HTML slot.
   Link columns come from WP menus, so this styles whatever wp_nav_menu emits.
   ========================================================================== */

.millet-footer { background: var(--millet-green-dark); color: var(--millet-footer-text); }

/* ASTRA-DEP: with the primary footer row set to "Full Width", Astra lifts the
   content-width cap off .ast-builder-grid-row but adds its own 35px side padding.
   Zero it — .millet-footer-top supplies the 1140 cap and its own padding, and the
   35px would otherwise offset the footer content from every other section.

   The [data-section] attribute is required, not decorative: Astra's own rule is
   `.site-primary-footer-wrap[data-section="..."] .ast-builder-grid-row`, so a
   plain two-class selector loses on specificity and silently does nothing. */
.site-primary-footer-wrap[data-section] .ast-builder-grid-row,
.site-below-footer-wrap[data-section] .ast-builder-grid-row {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ASTRA-DEP: Astra pads the footer row 45px top/bottom. Our footer supplies its
   own vertical rhythm, so that padding only inserts a band of page-background
   above and below the dark footer. */
.site-primary-footer-wrap[data-section],
.site-below-footer-wrap[data-section] {
  padding-top: 0;
  padding-bottom: 0;
}

/* Zero horizontal padding, so the content box is exactly --millet-max-width and the first
   column lines up with the 1140 column Elementor uses for every section above.
   max-width (not width:min()) because min() with a percentage resolved ~14px wide
   here, pushing the footer 7px left of the cards. */
.millet-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--millet-max-width);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 48px) 0;
  text-align: left;
}
/* Below the content width there is no longer any spare room, so restore a gutter
   to stop text meeting the viewport edge. */
@media (max-width: 1180px) {
  .millet-footer-top { padding-inline: 20px; }
}
@media (max-width: 900px) { .millet-footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .millet-footer-top { grid-template-columns: 1fr; text-align: center; } }

.millet-footer-logo { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; color: #fff; }
.millet-footer-blurb { font-size: .88rem; line-height: 1.6; opacity: .82; margin: 0 0 14px; max-width: 300px; }
@media (max-width: 560px) { .millet-footer-blurb { max-width: none; } }

.millet-footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; opacity: .9; margin: 0; }

.millet-footer-heading {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .6px;
  /* text-transform: uppercase; */
  opacity: .72;
  margin: 0 0 14px;
  color: var(--millet-footer-text);
}

.millet-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.millet-footer-links li { margin: 0; }
.millet-footer .millet-footer-links a,
.millet-footer .millet-footer-contact a { color: var(--millet-footer-text); text-decoration: none; font-size: .9rem; }
.millet-footer .millet-footer-links a:hover,
.millet-footer .millet-footer-contact a:hover { color: #fff; text-decoration: underline; }

/* Matches .millet-footer-top so the divider rule and the copyright line share the
   same 1140 column rather than spanning the full band. */
.millet-footer-bottom {
  border-top: 1px solid var(--millet-green-mid);
  max-width: var(--millet-max-width);
  margin-inline: auto;
  padding: 18px 0;
  text-align: center;
  font-size: .78rem;
  opacity: .72;
}
@media (max-width: 1180px) {
  .millet-footer-bottom { padding-inline: 20px; }
}
.millet-footer-bottom p { margin: 0; }
