/**
 * Good Shepherd Site Footer
 * Scoped under .gs-site-footer — works with The7 / WPBakery.
 * Mobile-first.
 */

.gs-site-footer {
	--gsf-bg: #1a3a52;
	--gsf-bg-deep: #12293b;
	--gsf-text: #f5efe3;
	--gsf-muted: #c5d0d8;
	--gsf-blue: #0e76bc;
	--gsf-blue-hover: #3d9ad4;
	--gsf-accent: #c4a574;
	--gsf-accent-hover: #d4bc94;
	--gsf-white: #ffffff;
	--gsf-radius: 999px;
	--gsf-max: 1080px;

	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 2.25rem 1.15rem 1.5rem;
	background: linear-gradient(180deg, var(--gsf-bg) 0%, var(--gsf-bg-deep) 100%);
	color: var(--gsf-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.55;
	border-top: 3px solid var(--gsf-accent);
	clear: both;
}

.gs-site-footer *,
.gs-site-footer *::before,
.gs-site-footer *::after {
	box-sizing: border-box;
}

.gs-site-footer a {
	color: var(--gsf-accent);
	text-decoration: none;
	transition: color 0.15s ease;
}

.gs-site-footer a:hover,
.gs-site-footer a:focus {
	color: var(--gsf-accent-hover);
	text-decoration: underline;
}

.gs-site-footer__inner {
	max-width: var(--gsf-max);
	margin: 0 auto;
}

/* Brand */
.gs-site-footer__brand {
	text-align: center;
	margin-bottom: 1.35rem;
}

.gs-site-footer__name {
	margin: 0 0 0.4rem;
	font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
	font-size: clamp(1.25rem, 3.5vw, 1.55rem);
	font-weight: 600;
	color: var(--gsf-white);
	line-height: 1.25;
}

.gs-site-footer__tagline {
	margin: 0 0 0.55rem;
	font-size: 0.88rem;
	color: var(--gsf-muted);
	letter-spacing: 0.02em;
}

.gs-site-footer__worship {
	margin: 0.35rem auto 0;
	max-width: 36em;
	text-align: center;
}

.gs-site-footer__worship-line {
	margin: 0;
	padding: 0.1rem 0;
	font-size: 0.9rem;
	color: var(--gsf-muted);
	line-height: 1.45;
	text-align: center;
}

/* CTA buttons */
.gs-site-footer__ctas {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0 0 1.75rem;
	width: 100%;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.gs-site-footer__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border-radius: var(--gsf-radius);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	text-align: center;
	border: 2px solid transparent;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.gs-site-footer__btn:hover,
.gs-site-footer__btn:focus {
	text-decoration: none !important;
	transform: translateY(-1px);
}

.gs-site-footer__btn--primary {
	background: var(--gsf-blue);
	color: var(--gsf-white) !important;
	border-color: var(--gsf-blue);
}

.gs-site-footer__btn--primary:hover,
.gs-site-footer__btn--primary:focus {
	background: var(--gsf-blue-hover);
	color: var(--gsf-white) !important;
	border-color: var(--gsf-blue-hover);
}

.gs-site-footer__btn--accent {
	background: var(--gsf-accent);
	color: var(--gsf-bg-deep) !important;
	border-color: var(--gsf-accent);
}

.gs-site-footer__btn--accent:hover,
.gs-site-footer__btn--accent:focus {
	background: var(--gsf-accent-hover);
	color: var(--gsf-bg-deep) !important;
	border-color: var(--gsf-accent-hover);
}

.gs-site-footer__btn--secondary {
	background: transparent;
	color: var(--gsf-white) !important;
	border-color: rgba(245, 239, 227, 0.45);
}

.gs-site-footer__btn--secondary:hover,
.gs-site-footer__btn--secondary:focus {
	background: rgba(255, 255, 255, 0.08);
	color: var(--gsf-white) !important;
	border-color: var(--gsf-white);
}

/* Columns */
.gs-site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 1.75rem;
	padding-top: 0.25rem;
	border-top: 1px solid rgba(245, 239, 227, 0.12);
	padding-top: 1.5rem;
}

.gs-site-footer__heading {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gsf-accent);
	font-family: system-ui, sans-serif;
}

.gs-site-footer__address {
	margin: 0 0 0.65rem;
	font-style: normal;
	font-size: 0.95rem;
	color: var(--gsf-text);
	line-height: 1.5;
}

.gs-site-footer__phone,
.gs-site-footer__email,
.gs-site-footer__map {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
}

.gs-site-footer__phone a {
	font-weight: 700;
	color: var(--gsf-white);
	font-size: 1.05rem;
}

.gs-site-footer__phone a:hover {
	color: var(--gsf-accent-hover);
}

.gs-site-footer__links,
.gs-site-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gs-site-footer__links li,
.gs-site-footer__social li {
	margin: 0 0 0.4rem;
}

.gs-site-footer__links a,
.gs-site-footer__social a {
	font-size: 0.95rem;
	color: var(--gsf-text);
}

.gs-site-footer__links a:hover,
.gs-site-footer__social a:hover {
	color: var(--gsf-accent-hover);
}

.gs-site-footer__affiliation {
	margin: 1rem 0 0;
	font-size: 0.82rem;
	color: var(--gsf-muted);
	line-height: 1.45;
}

.gs-site-footer__affiliation a {
	color: var(--gsf-muted);
}

.gs-site-footer__affiliation a:hover {
	color: var(--gsf-accent-hover);
}

/* Bottom bar */
.gs-site-footer__bottom {
	border-top: 1px solid rgba(245, 239, 227, 0.12);
	padding-top: 1rem;
	text-align: center;
}

.gs-site-footer__copy {
	margin: 0;
	font-size: 0.8rem;
	color: var(--gsf-muted);
}

/* Tablet+ */
@media (min-width: 640px) {
	.gs-site-footer {
		padding: 2.75rem 1.5rem 1.75rem;
	}

	.gs-site-footer__ctas {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		max-width: none;
		gap: 0.75rem;
	}

	.gs-site-footer__btn {
		width: auto;
		min-width: 150px;
		padding: 0.8rem 1.5rem;
	}

	.gs-site-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.75rem 2rem;
		text-align: left;
	}
}

@media (min-width: 900px) {
	.gs-site-footer__brand {
		margin-bottom: 1.5rem;
	}

	.gs-site-footer__tagline {
		font-size: 0.95rem;
	}
}

/* Reduce clash if theme footer also shows (optional hide helper) */
body.gs-has-site-footer .gs-site-footer {
	position: relative;
	z-index: 4;
}
