/* ============================================================
   Site footer
   Design ref: designs/Homepage Design Desktop.jpg y8343-8977,
   Mobile y11532-13080. Near-black teal band (--color-teal-darkest
   #001F26): faint tree art left (DESKTOP ONLY - .fig: full-colour
   PNG at 8% opacity, 189px left bleed), centred colour logo
   (258x65, the header SVG) + tagline, hairline dividers, four menu
   columns (X icon under Get Help), legal row, copyright. ALL copy
   stays 16px cream at both breakpoints (global body grows to 18px).
   Desktop grid: columns 4x250 gap 24 starting 74px into the 1200
   container; legal = 4 equal cells across the FULL viewport.
   ============================================================ */

.site-footer {
	position: relative;
	overflow: hidden;
	background: var(--color-teal-darkest);
	color: var(--color-text-on-dark);
	padding-top: 2.875rem;
	font-size: 1rem;
	line-height: 1.5; /* the global 1.6 body leading stretches the link pitch */
}

.site-footer__tree {
	display: none;
}

/* Content always paints above the tree art */
.site-footer > .container,
.site-footer__legal {
	position: relative;
}

.site-footer__rule {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--color-footer-line);
}

/* ---- Top: logo + tagline ---- */

.site-footer__top {
	text-align: center;
}

/* Block + max-content: an inline-block anchor would sit on the text
   baseline and add descender slack below the logo */
.site-footer__logo {
	display: block;
	width: max-content;
	margin-inline: auto;
}

.site-footer__logo img {
	display: block; /* inline img adds a baseline gap that pushes everything down */
	width: 258px;
	height: 65px;
	max-width: none;
}

.site-footer__tagline {
	margin: 1rem 0;
	line-height: 1.75;
}

/* ---- Link columns ---- */

.site-footer__columns {
	padding: 2.25rem 1.25rem 2.5rem;
}

.site-footer__col {
	margin-bottom: 2.625rem;
}

.site-footer__col:last-child {
	margin-bottom: 0;
}

.site-footer__col-heading {
	margin: 0 0 1.5rem;
	font-family: var(--font-body);
	font-size: var(--text-eyebrow);
	font-weight: 700;
	line-height: 1.34;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--color-text-on-dark);
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu li {
	margin-bottom: 1rem;
}

.site-footer__menu li:last-child {
	margin-bottom: 0;
}

.site-footer__menu a {
	color: inherit;
	line-height: 1.5;
	text-decoration: none;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--color-footer-underline);
	text-underline-offset: 3px;
}

.site-footer__social {
	display: inline-block;
	margin-top: 0.625rem;
	color: var(--color-text-on-dark);
	transition: color var(--transition);
}

.site-footer__social svg {
	display: block;
}

.site-footer__social:hover,
.site-footer__social:focus-visible {
	color: var(--color-accent);
}

/* ---- Legal row ---- */

.site-footer__legal {
	padding: 1.5rem 0 3.25rem;
}

.site-footer__legal-menu {
	list-style: none;
	margin: 0;
	padding: 0 calc(var(--container-pad) + 1.25rem);
}

.site-footer__legal-menu li {
	margin-bottom: 1.125rem;
}

.site-footer__legal-menu li:last-child {
	margin-bottom: 0;
}

/* Mobile mockup shows the legal links plain; desktop underlines them */
.site-footer__legal-menu a {
	color: inherit;
	line-height: 1.5;
	text-decoration: none;
}

.site-footer__legal-menu a:hover,
.site-footer__legal-menu a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--color-footer-underline);
	text-underline-offset: 2px;
}

/* ---- Copyright ---- */

.site-footer__bottom {
	padding: 1.375rem 0 0.75rem;
	text-align: center;
}

.site-footer__copyright {
	max-width: 323px; /* mobile design wraps the copyright in a ~322px box */
	margin: 0 auto;
	line-height: 1.75;
}

/* Mobile mockup shows the credit plain; desktop underlines it */
.site-footer__copyright a {
	color: inherit;
	text-decoration: none;
}

.site-footer__copyright a:hover,
.site-footer__copyright a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--color-footer-underline);
	text-underline-offset: 2px;
}

/* ---- Tablet: two-up columns, legal spreads ---- */

@media (min-width: 768px) {
	.site-footer__columns {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem 1.5rem;
	}

	.site-footer__col {
		margin-bottom: 0;
	}

	.site-footer__legal-menu {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		/* Design-exact at 1280 (cells = viewport quarters); the cap keeps the
		   outer links inside the divider band on wider screens */
		max-width: 1280px;
		margin-inline: auto;
		padding: 0;
		text-align: center;
	}

	.site-footer__legal-menu li {
		margin-bottom: 0;
	}

	/* Tablet: the mobile 323px copyright box would wrap 4 lines - use the
	   640px middle-range cap (tablet rule) */
	.site-footer__copyright {
		max-width: 640px;
	}
}

/* ---- Desktop ---- */

@media (min-width: 1024px) {
	.site-footer {
		padding-top: 1.625rem;
	}

	.site-footer__tree {
		display: block;
		position: absolute;
		top: 26px;
		left: -189px;
		width: 578px;
		height: 586px;
		opacity: 0.08;
		pointer-events: none;
	}

	.site-footer__tagline {
		margin: 1rem 0 1.5rem;
		line-height: 1.5;
	}

	.site-footer__columns {
		grid-template-columns: repeat(4, 250px);
		column-gap: 24px;
		padding: 3.5rem 0 3.25rem 74px;
	}

	.site-footer__menu li {
		margin-bottom: 0.75rem;
	}

	.site-footer__social {
		margin-top: 0.75rem;
	}

	.site-footer__legal {
		padding: 0;
	}

	.site-footer__legal-menu {
		padding: 2.375rem 0;
	}

	.site-footer__legal-menu a {
		text-decoration: underline;
		text-decoration-color: var(--color-footer-underline);
		text-underline-offset: 2px;
	}

	.site-footer__legal-menu a:hover,
	.site-footer__legal-menu a:focus-visible {
		text-decoration-color: currentColor;
	}

	.site-footer__bottom {
		padding: 0.875rem 0 1.4375rem;
	}

	.site-footer__copyright {
		max-width: none;
		line-height: 1.5;
	}

	.site-footer__copyright a {
		text-decoration: underline;
		text-decoration-color: var(--color-footer-underline);
		text-underline-offset: 2px;
	}

	.site-footer__copyright a:hover,
	.site-footer__copyright a:focus-visible {
		text-decoration-color: currentColor;
	}
}
