/**
 * Mauritius Finance — site footer.
 *
 * Replaces the Kadence customizer footer across the whole site. The markup is
 * printed by mf_kh_footer_markup() in the plugin, so this loads everywhere,
 * not just on the plugin's own templates.
 */

.mfct {
	--gold: #f0b000;
	--pale: #b9cbe4;
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #001030 0%, #0a1c44 58%, #12305f 100%);
	color: #fff;
}
/*
 * Guard. The markup uses id="mf-footer" precisely so Kadence's inline
 * `#colophon { background: var(--global-palette7) }` cannot win on ID
 * specificity. If the band ever ends up carrying the theme's hooks again,
 * these keep it navy instead of pale beige with invisible white text.
 */
#colophon.mfct,
.site-footer.mfct {
	background: linear-gradient(120deg, #001030 0%, #0a1c44 58%, #12305f 100%);
	color: #fff;
}

.mfct * { box-sizing: border-box; }
.mfct::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(680px 300px at 88% 0%, rgba(240, 176, 0, .11), transparent 62%);
}

.mfct-inner {
	position: relative;
	display: grid;
	grid-template-columns: auto 1.15fr .7fr 1.1fr;
	gap: 44px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	padding: 56px 24px 50px;
}
@media (max-width: 1080px) { .mfct-inner { grid-template-columns: 1fr 1fr; gap: 36px 40px; } }
@media (max-width: 620px)  { .mfct-inner { grid-template-columns: 1fr; gap: 32px; padding: 44px 24px 40px; } }

.mfct-brand { padding-top: 4px; }
.mfct-logo {
	display: block;
	width: 190px;
	height: auto;
	filter: brightness(0) invert(1);
}
.mfct-rule {
	display: block;
	width: 64px;
	height: 3px;
	margin-top: 16px;
	border-radius: 3px;
	background: var(--gold);
}

.mfct-h {
	margin: 0 0 16px;
	color: #fff;
	font-size: .8rem !important;
	font-weight: 800;
	letter-spacing: .18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.mfct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.mfct-list li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	color: #dbe5f2;
	font-size: .95rem;
	line-height: 1.6;
}
.mfct-i { flex: 0 0 auto; margin-top: 2px; color: var(--gold); }
.mfct-i svg {
	display: block;
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mfct-list a { color: #dbe5f2; text-decoration: none; border-bottom: 1px solid transparent; }
.mfct-list a:hover { color: #fff; border-bottom-color: var(--gold); }

.mfct-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.mfct-icons a {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 50%;
	color: #fff;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.mfct-icons svg { display: block; width: 19px; height: 19px; fill: currentColor; }
.mfct-icons a:hover {
	background: var(--gold);
	border-color: var(--gold);
	color: #001030;
	transform: translateY(-2px);
}

.mfct-say { margin: 0 0 18px; max-width: 38ch; color: #dbe5f2; font-size: .95rem; line-height: 1.7; }
.mfct-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 6px;
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.mfct-btn:hover { background: var(--gold); border-color: var(--gold); color: #001030; }
.mfct-arw { transition: transform .18s ease; }
.mfct-btn:hover .mfct-arw { transform: translateX(3px); }

/* Slim copyright strip inside the band — nothing sits below the footer. */
.mfct-base {
	position: relative;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.mfct-base-in {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 24px 22px;
	color: #8fa5c4;
	font-size: .82rem;
	line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
	.mfct-icons a, .mfct-btn, .mfct-arw { transition: none; }
	.mfct-icons a:hover { transform: none; }
	.mfct-btn:hover .mfct-arw { transform: none; }
}

/* Copyright + policy strip */
.mfct-base-in {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	align-items: center;
	justify-content: space-between;
}
.mfct-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mfct-legal a { color: #8fa5c4; text-decoration: none; border-bottom: 1px solid transparent; }
.mfct-legal a:hover { color: #fff; border-bottom-color: var(--gold); }
.mf-cookie-prefs { cursor: pointer; }
