/* SpotaNest footer (template-parts/spn-footer.php). */
.spn-ft {
	--ft-bg: #0f1d24;
	--ft-text: rgba(255, 255, 255, .72);
	--ft-line: rgba(255, 255, 255, .1);
	position: relative; overflow: hidden; isolation: isolate;
	margin-top: clamp(40px, 6vw, 80px);
	background: var(--ft-bg); color: var(--ft-text); font-family: var(--spn-font);
}
.spn-ft::before {
	content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; right: -260px; top: -360px; border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 150, 100, .28), transparent 65%);
}
.spn-ft *, .spn-ft *::before, .spn-ft *::after { box-sizing: border-box; }
.spn-ft-inner { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, 2vw); }
.spn-ft a { color: var(--ft-text); text-decoration: none; transition: color var(--spn-duration); }
.spn-ft a:hover, .spn-ft a:focus-visible, .spn-ft a[aria-current="page"] { color: #fff; }
.spn-ft a:focus-visible { outline: 2px solid var(--spn-jade); outline-offset: 3px; border-radius: 4px; }

/* CTA band */
.spn-ft-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--ft-line); }
.spn-ft-cta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(26px, 2vw + 14px, 40px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.spn-ft-cta p { margin: 0; max-width: 560px; color: var(--ft-text); font-size: 16px; line-height: 1.6; }
.spn-ft-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spn-ft .spn-ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--spn-jade); color: #fff; font-weight: 800; font-size: 15px; transition: background var(--spn-duration), transform var(--spn-duration) var(--spn-ease); }
.spn-ft .spn-ft-btn:hover { background: var(--spn-jade-dark); color: #fff; transform: translateY(-1px); }
.spn-ft .spn-ft-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .3); }
.spn-ft .spn-ft-btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* Main grid */
.spn-ft-main { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding: clamp(36px, 4vw, 56px) 0 clamp(28px, 3vw, 40px); }
/* The full-colour logo sits on a white tile so the charcoal wordmark stays readable on the dark footer. */
.spn-ft-logo { display: inline-flex; padding: 14px 18px; background: var(--spn-white); border-radius: var(--spn-radius-lg); box-shadow: var(--spn-shadow-sm); }
.spn-ft-logo img { display: block; width: 120px; height: auto; }
.spn-ft-brand p { margin: 16px 0; max-width: 340px; font-size: 14.5px; line-height: 1.65; }
.spn-ft-trust { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.spn-ft-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.spn-ft-trust svg { color: var(--spn-jade); flex: 0 0 auto; }

.spn-ft-group summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #fff; font-size: 15px; font-weight: 800; list-style: none; cursor: default; }
.spn-ft-group summary::-webkit-details-marker { display: none; }
.spn-ft-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.spn-ft-group li a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14.5px; }
@media (min-width: 721px) {
	.spn-ft-group summary { pointer-events: none; }
}

/* Legal row */
.spn-ft-legal { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--ft-line); }
.spn-ft-legal b { color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.spn-ft-legal ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.spn-ft-legal li { display: inline-flex; align-items: center; font-size: 13.5px; }
.spn-ft-legal a { display: inline-flex; align-items: center; min-height: 32px; }

/* Bottom bar */
.spn-ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--ft-line); font-size: 13.5px; }
.spn-ft-bottom p { margin: 0; color: rgba(255, 255, 255, .6); }
.spn-ft-locale { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.spn-ft-locale li { padding: 6px 12px; border: 1px solid var(--ft-line); border-radius: 999px; color: rgba(255, 255, 255, .8); font-weight: 600; }
.spn-ft .spn-ft-top { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; }

/* Pages that end with their own call to action skip the footer CTA band */
body:has(.spn-lp-cta, .spn-jl-cta, .spn-jr-cta) .spn-ft-cta { display: none; }

/* Old Listeo footer pieces that would otherwise still show */
#backtotop { display: none !important; }

/* Responsive */
@media (max-width: 1100px) {
	.spn-ft-main { grid-template-columns: repeat(4, 1fr); }
	.spn-ft-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 8px 40px; align-items: start; }
	.spn-ft-brand p { margin: 0; }
	.spn-ft-trust { grid-column: 2; }
}
@media (max-width: 720px) {
	.spn-ft-main { grid-template-columns: 1fr; gap: 0; }
	.spn-ft-brand { display: block; margin-bottom: 18px; }
	.spn-ft-brand p { margin: 14px 0; }
	.spn-ft-group { border-top: 1px solid var(--ft-line); }
	.spn-ft-group summary { min-height: 52px; margin: 0; cursor: pointer; }
	.spn-ft-group summary span { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--spn-duration); }
	.spn-ft-group[open] summary span { transform: rotate(225deg) translateY(-3px); }
	.spn-ft-group ul { padding-bottom: 14px; }
	.spn-ft-legal { grid-template-columns: 1fr; }
	.spn-ft-bottom { flex-direction: column; align-items: flex-start; }
	.spn-ft-cta-actions, .spn-ft-cta-actions .spn-ft-btn { width: 100%; }
}
