/* ==========================================================================
   FOOTER

   The footer is not a theme template -- it is an Elementor theme-builder
   location (post 9454), so its layout lives in the database and is edited in
   Elementor, not here. What this sheet does is correct the desktop column
   arrangement, which Elementor expresses as three percentage widths.

   Everything is scoped to `.elementor-location-footer` and to desktop only:
   1024px down, Elementor has its own stacking and re-ordering rules for these
   columns (the logo column is pushed last on tablet, first again on mobile),
   and this sheet must not fight them. 1025px is the complement of Elementor's
   own `max-width: 1024px` tablet breakpoint.
   ========================================================================== */

@media (min-width: 1025px) {

	/* Elementor sizes the three columns at 30% / 30% / 40% of the 1210px inner
	   container. The last column's *text* is much narrower than its 40% box, so
	   the contact block ended ~235px short of the footer's right margin and the
	   whole footer read as left-shifted against the copyright bar below it.

	   The two link columns are sized to their content instead and pushed to the
	   right edge as a pair, so the last column ends flush with the container --
	   the same right margin the rest of the page uses. `min-width` gives them a
	   common measure so the pair is evenly spaced rather than one narrow column
	   crowding a wide one, and `max-content` lets either grow past it if the
	   BIA adds a longer link or address line.

	   Specificity: Elementor's own widths come from
	   `.elementor-9454 .elementor-element.elementor-element-<id>` (0,3,0) inside
	   a min-width query. The four classes here score (0,5,0) and win without
	   !important, and without naming element ids that change if the footer is
	   rebuilt in Elementor. */
	.elementor-location-footer .e-con > .e-con-inner {
		column-gap: clamp(2.5rem, 4vw, 5rem);
	}

	.elementor-location-footer .e-con-inner > .e-con.e-con-full:nth-child(n + 2) {
		/* `0 1 auto` rather than `0 0 auto`: at the narrow end of the desktop
		   range the three columns plus gaps are a few pixels wider than the
		   container, and shrinking to the shared min-width is better than
		   overflowing it. */
		flex: 0 1 auto;
		width: max-content;
		min-width: 15rem;
		max-width: none;
		/* Left-aligned inside each column -- only the alignment of the columns
		   themselves changes above. */
		text-align: left;
	}

	/* Takes up all the slack left by the logo column, which Elementor pins at
	   `--flex-grow: 0; --flex-shrink: 0`, so the pair sits hard right. */
	.elementor-location-footer .e-con-inner > .e-con.e-con-full:nth-child(2) {
		margin-left: auto;
	}
}
