/* =========================================================================
   ACXPA site footer v2 (Oct 2026) - css/acxpa-footer.css
   Markup: acxpa-footer.php. Tokens only (acxpa-tokens.css); no hex.

   Two tones, chosen by the footer's modifier class:
     .acxpa-footer--teal   Teal 700 ground (the brand's header/footer colour),
                           legal bar Teal 800.
     .acxpa-footer--light  Teal 50 ground, white CTA panel, legal bar Teal 700.

   Measured contrast
     teal : white on Teal 700 9.16:1 | Teal 100 links 7.14:1 | Gold 4.92:1
            Teal 200 on Teal 800 (bar) 7.45:1
     light: Teal 900 on Teal 50 14.21:1 | Ink links 14.51:1 | Slate 4.76:1
            Teal 100 on Teal 700 (bar) 7.14:1

   Selectors carry #footer so Kleo / legacy #footer rules cannot win.
   ========================================================================= */

#footer.acxpa-footer {
	--f-bg: var(--acxpa-ds-teal-700);
	--f-text: var(--acxpa-ds-text-on-dark);
	--f-muted: var(--acxpa-ds-teal-100);
	--f-link: var(--acxpa-ds-teal-100);
	--f-link-hover: var(--acxpa-ds-gold);
	--f-heading: var(--acxpa-ds-white);
	--f-rule: var(--acxpa-ds-border-on-dark);
	--f-panel: transparent;
	--f-panel-border: var(--acxpa-ds-border-on-dark);
	--f-cta-title: var(--acxpa-ds-white);
	--f-ghost: var(--acxpa-ds-white);
	--f-chip-bg: color-mix(in srgb, var(--acxpa-ds-white) 10%, transparent);
	--f-chip-fg: var(--acxpa-ds-white);
	--f-focus: var(--acxpa-ds-focus-on-dark);
	--f-bar-bg: var(--acxpa-ds-teal-800);
	--f-bar-text: var(--acxpa-ds-teal-200);
	--f-bar-link: var(--acxpa-ds-teal-100);

	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--f-bg);
	color: var(--f-text);
	font-family: var(--acxpa-ds-font);
	font-size: var(--acxpa-ds-text-body);
	font-weight: 400;
	line-height: var(--acxpa-ds-leading-body);
}

#footer.acxpa-footer--light {
	--f-bg: var(--acxpa-ds-teal-50);
	--f-text: var(--acxpa-ds-ink);
	--f-muted: var(--acxpa-ds-slate);
	--f-link: var(--acxpa-ds-ink);
	--f-link-hover: var(--acxpa-ds-teal-700);
	--f-heading: var(--acxpa-ds-teal-900);
	--f-rule: var(--acxpa-ds-teal-100);
	--f-panel: var(--acxpa-ds-white);
	--f-panel-border: var(--acxpa-ds-teal-100);
	--f-cta-title: var(--acxpa-ds-teal-900);
	--f-ghost: var(--acxpa-ds-teal-700);
	--f-chip-bg: var(--acxpa-ds-white);
	--f-chip-fg: var(--acxpa-ds-teal-700);
	--f-focus: var(--acxpa-ds-focus);
	--f-bar-bg: var(--acxpa-ds-teal-700);
	--f-bar-text: var(--acxpa-ds-teal-100);
	--f-bar-link: var(--acxpa-ds-white);
	border-top: 1px solid var(--acxpa-ds-teal-100);
}

#footer.acxpa-footer *,
#footer.acxpa-footer *::before,
#footer.acxpa-footer *::after { box-sizing: border-box; }

#footer.acxpa-footer ul { list-style: none; margin: 0; padding: 0; }
#footer.acxpa-footer li { margin: 0; padding: 0; }
#footer.acxpa-footer p { margin: 0; }

#footer.acxpa-footer a { text-decoration: none; }
#footer.acxpa-footer a:focus-visible {
	outline: 3px solid var(--f-focus);
	outline-offset: 3px;
	border-radius: var(--acxpa-ds-radius-sm);
}

.acxpa-footer__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

/* ---- layout ----------------------------------------------------------- */
#footer .acxpa-footer__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: var(--acxpa-ds-space-3xl) var(--acxpa-ds-space-lg) var(--acxpa-ds-space-2xl);
}

/* ---- brand band ------------------------------------------------------- */
#footer .acxpa-footer__brand {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--acxpa-ds-space-2xl);
	align-items: start;
	padding-bottom: var(--acxpa-ds-space-2xl);
	margin-bottom: var(--acxpa-ds-space-2xl);
	border-bottom: 1px solid var(--f-rule);
}

#footer .acxpa-footer__logo { display: inline-block; margin-bottom: var(--acxpa-ds-space-md); }
#footer .acxpa-footer__logo img { display: block; width: 180px; height: auto; }

#footer .acxpa-footer__about {
	color: var(--f-muted);
	font-size: var(--acxpa-ds-text-body);
	margin-bottom: 0;
}
#footer .acxpa-footer__about + .acxpa-footer__about { margin-top: var(--acxpa-ds-space-sm); }

#footer .acxpa-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--acxpa-ds-space-xs);
	margin-top: var(--acxpa-ds-space-lg);
}
#footer .acxpa-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--acxpa-ds-radius-pill);
	background: var(--f-chip-bg);
	border: 1px solid var(--f-panel-border);
	color: var(--f-chip-fg);
	font-size: 16px;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#footer .acxpa-footer__social a:hover {
	background: var(--acxpa-ds-gold);
	border-color: var(--acxpa-ds-gold);
	color: var(--acxpa-ds-ink);
}
#footer .acxpa-footer__social i { color: inherit !important; opacity: 1 !important; font-size: 16px; line-height: 1; margin: 0; }
#footer .acxpa-footer__social i::before { margin: 0; }

/* CTA panel */
#footer .acxpa-footer__cta {
	background: var(--f-panel);
	border: 1px solid var(--f-panel-border);
	border-radius: var(--acxpa-ds-radius-lg);
	padding: var(--acxpa-ds-space-xl);
}
#footer.acxpa-footer--light .acxpa-footer__cta { box-shadow: var(--acxpa-ds-shadow-md); }

#footer .acxpa-footer__cta-title {
	margin: 0 0 var(--acxpa-ds-space-xs);
	padding: 0;
	background: none;
	border: 0;
	color: var(--f-cta-title);
	font-family: var(--acxpa-ds-font);
	font-size: var(--acxpa-ds-text-h4);
	font-weight: 700;
	line-height: var(--acxpa-ds-leading-snug);
	text-transform: none;
	letter-spacing: 0;
}
#footer .acxpa-footer__cta-text { color: var(--f-muted); margin-bottom: var(--acxpa-ds-space-lg); }

#footer .acxpa-footer__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--acxpa-ds-space-sm);
	margin-bottom: var(--acxpa-ds-space-lg);
}
#footer .acxpa-footer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 var(--acxpa-ds-space-lg);
	border-radius: var(--acxpa-ds-radius-pill);
	font-size: var(--acxpa-ds-text-body);
	font-weight: 600;
	line-height: 1;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#footer .acxpa-footer__btn--primary {
	background: var(--acxpa-ds-gold);
	color: var(--acxpa-ds-ink);
	border: 2px solid var(--acxpa-ds-gold);
}
#footer .acxpa-footer__btn--primary:hover {
	background: var(--acxpa-ds-gold-mid);
	border-color: var(--acxpa-ds-gold-mid);
	color: var(--acxpa-ds-ink);
}
#footer .acxpa-footer__btn--ghost {
	background: transparent;
	color: var(--f-ghost);
	border: 2px solid currentColor;
}
#footer .acxpa-footer__btn--ghost:hover { color: var(--f-link-hover); }

#footer .acxpa-footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: var(--acxpa-ds-space-xs) var(--acxpa-ds-space-lg);
	font-size: var(--acxpa-ds-text-small);
}
#footer .acxpa-footer__contact a { color: var(--f-link); }
#footer .acxpa-footer__contact a:hover { color: var(--f-link-hover); text-decoration: underline; }
#footer .acxpa-footer__contact i { margin-right: var(--acxpa-ds-space-xs); color: var(--acxpa-ds-gold); }
#footer.acxpa-footer--light .acxpa-footer__contact i { color: var(--acxpa-ds-teal-600); }

/* ---- link columns ----------------------------------------------------- */
#footer .acxpa-footer__nav {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--acxpa-ds-space-xl) var(--acxpa-ds-space-lg);
}

#footer .acxpa-footer__heading {
	position: relative;
	margin: 0 0 var(--acxpa-ds-space-md);
	padding: 0 0 var(--acxpa-ds-space-sm);
	background: none;
	border: 0;
	color: var(--f-heading);
	font-family: var(--acxpa-ds-font);
	font-size: var(--acxpa-ds-text-body);
	font-weight: 700;
	line-height: var(--acxpa-ds-leading-snug);
	text-transform: none;
	letter-spacing: 0;
}
#footer .acxpa-footer__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 3px;
	border-radius: var(--acxpa-ds-radius-pill);
	background: var(--acxpa-ds-gold);
}

#footer .acxpa-footer__col li + li { margin-top: var(--acxpa-ds-space-xs); }
#footer .acxpa-footer__col a {
	display: inline-block;
	padding: 2px 0;
	color: var(--f-link);
	font-size: var(--acxpa-ds-text-small);
	line-height: var(--acxpa-ds-leading-snug);
	transition: color .15s ease;
}
#footer .acxpa-footer__col a:hover {
	color: var(--f-link-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}
#footer .acxpa-footer__col a[target="_blank"]::after {
	content: "\2197";
	display: inline-block;
	margin-left: 4px;
	font-size: .85em;
	opacity: .8;
}

#footer .acxpa-footer__tag {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	border-radius: var(--acxpa-ds-radius-pill);
	background: var(--f-chip-bg);
	color: var(--f-chip-fg);
	font-size: var(--acxpa-ds-text-caption);
	font-weight: 600;
	vertical-align: 1px;
}
#footer.acxpa-footer--light .acxpa-footer__tag {
	background: var(--acxpa-ds-teal-100);
	color: var(--acxpa-ds-teal-800);
}

/* ---- legal bar -------------------------------------------------------- */
#footer #socket.acxpa-footer__bar {
	background: var(--f-bar-bg);
	color: var(--f-bar-text);
	font-size: var(--acxpa-ds-text-small);
}
#footer .acxpa-footer__bar-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: var(--acxpa-ds-space-md) var(--acxpa-ds-space-lg);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--acxpa-ds-space-xs) var(--acxpa-ds-space-lg);
}
#footer .acxpa-footer__copy { color: var(--f-bar-text); }
#footer .acxpa-footer__abn { white-space: nowrap; }
#footer .acxpa-footer__legal { display: flex; flex-wrap: wrap; gap: var(--acxpa-ds-space-2xs) var(--acxpa-ds-space-lg); }
#footer .acxpa-footer__legal a { color: var(--f-bar-link); }
#footer .acxpa-footer__legal a:hover { color: var(--acxpa-ds-gold); text-decoration: underline; }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
	#footer .acxpa-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	#footer .acxpa-footer__brand { grid-template-columns: 1fr; gap: var(--acxpa-ds-space-xl); }
	#footer .acxpa-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	#footer .acxpa-footer__inner { padding: var(--acxpa-ds-space-2xl) 20px var(--acxpa-ds-space-xl); }
	#footer .acxpa-footer__cta { padding: var(--acxpa-ds-space-lg); }
	#footer .acxpa-footer__nav { gap: var(--acxpa-ds-space-xl) var(--acxpa-ds-space-md); }
	#footer .acxpa-footer__col a { padding: 6px 0; } /* 44px-ish tap rows */
	#footer .acxpa-footer__col li + li { margin-top: 0; }
	#footer .acxpa-footer__btn { flex: 1 1 100%; }
	#footer .acxpa-footer__bar-inner { flex-direction: column; align-items: flex-start; padding: var(--acxpa-ds-space-lg) 20px; }
}

@media (prefers-reduced-motion: reduce) {
	#footer.acxpa-footer * { transition: none !important; }
}
