/*
 * Chiggle Academy — site footer.
 *
 * The custom footer is rendered via wp_footer (see inc/hooks-footer.php).
 * Astra's default #colophon is hidden completely. This file mirrors the
 * approach used for the header in header.css.
 */

/* Suppress Astra's default footer. */
#colophon,
.site-footer,
.footer-sml-layout-1,
.ast-small-footer {
	display: none !important;
}

/* ─── Footer container ─── */
.ca-footer {
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.65);
	padding-top: 64px;
}

.ca-footer-inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding) 56px;
	display: grid;
	grid-template-columns: 1.4fr 2fr;
	gap: 56px;
}

/* ─── Brand column ─── */
.ca-footer-brand {
	max-width: 380px;
}
.ca-footer-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	margin-bottom: 18px;
}
.ca-footer-logo {
	width: 40px;
	height: 40px;
}
.ca-footer-wordmark {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1rem;
	color: white;
	letter-spacing: -0.01em;
}
.ca-footer-wordmark span {
	color: var(--gold);
}
.ca-footer-motto {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--gold);
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}
.ca-footer-tagline {
	font-size: 0.88rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

/* ─── Link columns ─── */
.ca-footer-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.ca-footer-col-title {
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 18px;
}
.ca-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ca-footer-col a {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color 0.2s;
}
.ca-footer-col a:hover,
.ca-footer-col a:focus-visible {
	color: white;
}

/* ─── Bottom bar ─── */
.ca-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 22px 0;
}
.ca-footer-bottom-inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.ca-footer-copyright,
.ca-footer-tag {
	margin: 0;
	font-size: 0.78rem;
	/* Was rgba(255,255,255,0.4) → 3.67:1 on navy-deep (AA-fail).   */
	/* Bumped to 0.75 alpha → 4.74:1. v0.9.66.                     */
	color: rgba(255, 255, 255, 0.75);
}
.ca-footer-tag {
	font-family: var(--font-display);
	font-weight: 600;
	/* Was rgba(255,155,3,0.5) → 2.74:1 on navy-deep (AA-fail).    */
	/* Switched to --gold-pale (full alpha) → 9.78:1.             */
	color: var(--gold-pale);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
	.ca-footer { padding-top: 48px; }
	.ca-footer-inner {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 0 32px 40px;
	}
	.ca-footer-bottom-inner {
		padding: 0 32px;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

@media (max-width: 560px) {
	.ca-footer-cols {
		grid-template-columns: 1fr 1fr;
		gap: 28px 20px;
	}
	.ca-footer-inner { padding: 0 20px 32px; }
	.ca-footer-bottom-inner { padding: 0 20px; }
}

/*
 * CCPA/CPRA "Do Not Sell or Share My Personal Information" footer link.
 *
 * Shown to ALL visitors (was previously gated on body.cmplz-us). We force the
 * consent model to opt-in/EU for everyone — the Complianz geo-IP database is
 * absent on this Atomic host and the homepage is full-page edge-cached, so
 * per-country variance can't be served reliably (see
 * deploy/mu-plugins/chiggle-complianz-geoip.php). That means Complianz never
 * adds body.cmplz-us, so the old gate hid this link from everyone.
 *
 * Showing it globally is the cache-safe, always-compliant choice: CCPA/CPRA
 * require a conspicuous opt-out link for US (CA/VA/etc.) visitors, and offering
 * that same opt-out to non-US visitors is never a violation — it's simply more
 * privacy-protective. EU/UK/CA visitors also still have the Complianz banner's
 * "Manage consent" revoke flow.
 */
.ca-footer-ccpa-link {
	display: list-item;
}
