/*
 * BBWAB Global Footer
 * Applied via .bbwab-global-footer on the Elementor Theme Builder footer template.
 * Reference: border-top:1px solid var(--line) padding:44px 0 font-size:13px color:steel
 */

/* ── Outer footer shell ─────────────────────────────────────────── */
.bbwab-global-footer {
	border-top: 1px solid var(--bbwab-color-border);
	background: var(--bbwab-color-background);
}

/* ── Inner constraint ───────────────────────────────────────────── */
.bbwab-footer-inner {
	max-width: var(--bbwab-max);
	margin: 0 auto;
	padding: 44px var(--bbwab-section-px);
}

/* ── Top row: copyright left, macro link right ──────────────────── */
.bbwab-footer-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--bbwab-space-xl);
	flex-wrap: wrap;
	margin-bottom: var(--bbwab-space-lg);
}

/* ── Copyright text ─────────────────────────────────────────────── */
.bbwab-footer-copyright,
.bbwab-global-footer .bbwab-footer-copyright p,
.bbwab-global-footer .bbwab-footer-copyright {
	font-size: 13px;
	color: var(--bbwab-color-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* ── Macro Calculator link ──────────────────────────────────────── */
.bbwab-footer-macro a,
.bbwab-global-footer .bbwab-footer-macro a {
	font-size: 13px;
	font-weight: 600;
	color: var(--bbwab-color-text-muted);
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: color var(--bbwab-transition-fast);
}
.bbwab-footer-macro a:hover,
.bbwab-global-footer .bbwab-footer-macro a:hover {
	color: var(--bbwab-color-text);
}
.bbwab-footer-macro a:focus-visible,
.bbwab-global-footer .bbwab-footer-macro a:focus-visible {
	outline: 3px solid var(--bbwab-color-accent);
	outline-offset: 3px;
	border-radius: 3px;
}

/* ── Legal/compliance text ──────────────────────────────────────── */
.bbwab-footer-legal,
.bbwab-global-footer .bbwab-footer-legal p,
.bbwab-global-footer .bbwab-footer-legal {
	font-size: 12px;
	color: var(--bbwab-color-text-muted);
	max-width: 52ch;
	line-height: 1.6;
	margin: 0;
}

/* ── Elementor widget overrides ─────────────────────────────────── */
.bbwab-global-footer .elementor-widget-text-editor p,
.bbwab-global-footer .elementor-text-editor p {
	font-size: inherit;
	color: inherit;
	margin: 0;
}
.bbwab-global-footer .elementor-widget-text-editor a,
.bbwab-global-footer .elementor-text-editor a {
	color: inherit;
	text-decoration: none;
}
.bbwab-global-footer .elementor-widget-text-editor a:hover,
.bbwab-global-footer .elementor-text-editor a:hover {
	color: var(--bbwab-color-text);
}

/* ── Responsive: stack on mobile ────────────────────────────────── */
@media (max-width: 600px) {
	.bbwab-footer-top {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--bbwab-space-md);
	}
}

/* ── Bottom padding: clear mobile sticky CTA ───────────────────── */
@media (max-width: 820px) {
	.bbwab-global-footer {
		padding-bottom: 84px; /* matches sticky-cta height + safe-area */
	}
}
