/* =============================================================================
 * csc-footer — three columns and a legal row
 *
 * Built to prototype round 11, section 13, at 1440 / 834 / 390:
 *
 *   ground   #0E1A2A full-bleed, band 1200
 *   columns  grid 1.6fr 1.2fr 1fr, gap 48, padding 36 top / 28 bottom
 *   legal    56 tall, separated by a 1px #2E3F55 rule
 *
 * ⚠ The dark ground is the accessibility fix. CSC's existing footer sets white
 * text on the brand blue #2D80C3, which measures 4.21:1 and fails AA for body
 * copy — a whole block of it, site-wide. The same text on --csc-ink reads
 * 17.4:1. Changing this ground without re-checking contrast undoes the point of
 * the section.
 *
 * Colour roles on this ground, all measured:
 *   headings   --csc-green-text     7.49:1   the one green, as TEXT
 *   links      --csc-on-dark        9.99:1
 *   phone      #FFFFFF             17.40:1
 *   legal      --csc-tag-on-dark    6.78:1   quietest, still clear of AA
 *
 * Padding, gaps and the grid are not Elementor controls — CLAUDE.md §2.10.
 * ========================================================================== */

.csc-footer__ground { background: var(--csc-ink); }

/* Gutter outside the band — HP-048 #2. */
.csc-footer__pad { padding-inline: var(--csc-gutter); }

.csc-footer__band {
	max-width: var(--csc-band);
	margin-inline: auto;
}

.csc-footer__cols {
	display: grid;
	grid-template-columns: 1.6fr 1.2fr 1fr;
	gap: var(--csc-space-12);
	padding-block: 36px var(--csc-space-8);
}

.csc-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
	min-width: 0;
}

/* Green as TEXT on dark, never as a fill — production specs §6. */
.csc-footer__heading {
	font-family: var(--csc-font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: var(--csc-ls-eyebrow);
	text-transform: uppercase;
	color: var(--csc-green-text);
}

.csc-footer__phone {
	font-size: var(--csc-fs-ui);
	color: #FFFFFF;
	text-decoration: none;
	transition: color 120ms ease;
}

.csc-footer__phone:hover { color: var(--csc-green-text); }

.csc-footer__link {
	font-size: var(--csc-fs-copy);
	line-height: 1.5;
	color: var(--csc-on-dark);
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 120ms ease;
}

.csc-footer__link:hover {
	color: #FFFFFF;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* <address> italicises by default in every browser, which is wrong for a
 * postal address set in the page's own face. */
.csc-footer__address {
	margin: 0;
	font-style: normal;
	font-size: var(--csc-fs-copy);
	line-height: var(--csc-lh-body);
	color: var(--csc-on-dark);
}

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

.csc-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--csc-space-3) var(--csc-space-5);
	min-height: 56px;
	padding-block: var(--csc-space-3);
	border-top: 1px solid var(--csc-ink-2);
}

.csc-footer__copyright {
	font-size: var(--csc-fs-label);
	color: var(--csc-tag-on-dark);
}

.csc-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--csc-space-4);
}

.csc-footer__legal-links a {
	font-size: var(--csc-fs-label);
	color: var(--csc-tag-on-dark);
	text-decoration: none;
	transition: color 120ms ease;
}

.csc-footer__legal-links a:hover {
	color: #FFFFFF;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- Breakpoints ---------------------------------------------------------- */

@media (max-width: 1024px) {
	.csc-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--csc-space-8);
		padding-block: var(--csc-space-8);
	}
}

@media (max-width: 767px) {
	.csc-footer__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--csc-space-6);
	}

	.csc-footer__legal { justify-content: flex-start; }
}
