/**
 * HFH footer branding — black background, white text, larger type.
 * Matches the Habitat for Humanity Great Britain footer treatment.
 */

footer[data-elementor-type="footer"],
footer.site-footer,
.site-footer,
#colophon,
.ast-footer-overlay {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
}

footer[data-elementor-type="footer"] *,
.site-footer * {
	border-color: rgba(255, 255, 255, 0.16);
}

/* Text and links */
footer[data-elementor-type="footer"] p,
footer[data-elementor-type="footer"] li,
footer[data-elementor-type="footer"] span,
footer[data-elementor-type="footer"] .elementor-icon-list-text,
footer[data-elementor-type="footer"] .elementor-heading-title,
footer[data-elementor-type="footer"] .elementor-text-editor,
.site-footer p,
.site-footer li,
.site-footer .widget,
.site-footer .widget-title,
.site-footer .elementor-heading-title {
	color: #fff !important;
}

footer[data-elementor-type="footer"] p,
footer[data-elementor-type="footer"] li,
footer[data-elementor-type="footer"] .elementor-icon-list-text,
footer[data-elementor-type="footer"] .elementor-text-editor,
footer[data-elementor-type="footer"] .elementor-widget-text-editor,
.site-footer p,
.site-footer li,
.site-footer .elementor-widget-text-editor {
	font-size: 1.05rem !important;
	line-height: 1.65 !important;
}

/* Headings */
footer[data-elementor-type="footer"] .elementor-heading-title,
footer[data-elementor-type="footer"] .elementor-widget-heading h2,
footer[data-elementor-type="footer"] .elementor-widget-heading h3,
footer[data-elementor-type="footer"] .elementor-widget-heading h4,
.site-footer .widget-title,
.site-footer .hfh-footer-rr__title.widget-title,
.site-footer .hfh-act-now__title {
	color: #fff !important;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
}

/* Links */
footer[data-elementor-type="footer"] a,
footer[data-elementor-type="footer"] .elementor-icon-list-text a,
footer[data-elementor-type="footer"] .elementor-icon-list-item a,
.site-footer a {
	color: #fff !important;
	text-decoration: none;
	transition: color 0.18s ease;
}

footer[data-elementor-type="footer"] a:hover,
footer[data-elementor-type="footer"] a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
	color: #c4d600 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Dividers */
footer[data-elementor-type="footer"] .elementor-divider-separator,
.site-footer .elementor-divider-separator {
	border-top-color: rgba(255, 255, 255, 0.3) !important;
}

/* The supplied logo artwork is black; invert it for the black footer. */
footer[data-elementor-type="footer"] .elementor-widget-image img,
.site-footer .elementor-widget-image img {
	filter: brightness(0) invert(1);
}

/* Buttons keep the brand colours on black. */
footer[data-elementor-type="footer"] .elementor-button,
.site-footer .elementor-button {
	border-radius: 8px !important;
	font-weight: 700 !important;
}

footer[data-elementor-type="footer"] .elementor-button-text,
.site-footer .elementor-button-text {
	font-size: 1rem !important;
}

/* Copyright strip */
footer[data-elementor-type="footer"] .elementor-section:last-child p,
.site-footer .site-below-footer-wrap p {
	color: rgba(255, 255, 255, 0.75) !important;
	font-size: 0.95rem !important;
}

/* Social row (shortcode or built-in rail). */
.hfh-footer-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hfh-footer-social__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
}

.hfh-footer-social__link:hover,
.hfh-footer-social__link:focus-visible {
	background: #c4d600;
	border-color: #c4d600;
	color: #000 !important;
}

.hfh-footer-social__link svg {
	display: block;
}

@media (max-width: 640px) {
	.hfh-footer-social__label {
		display: none;
	}
}
