/* Running Bug — site footer (rendered by includes/site-footer.php). Scoped to .trb-footer.rbf. */

.trb-footer.rbf {
	--rbf-bg: #ffffff;
	--rbf-bg-2: #f5f8f2;
	--rbf-green: #569341;
	--rbf-green-2: #2e7d32;
	--rbf-text: #1f2a24;
	--rbf-muted: #5b6470;
	--rbf-line: #e3e9e0;
	--rbf-max: 1320px;

	background: var(--rbf-bg);
	color: var(--rbf-muted);
	padding: 0;
	margin: 0;
	border: 0;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	width: 100%;
	clear: both;
}

.trb-footer.rbf *,
.trb-footer.rbf *::before,
.trb-footer.rbf *::after {
	box-sizing: border-box;
}

.trb-footer.rbf .rbf__wrap {
	width: min(var(--rbf-max), calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
}

.trb-footer.rbf a {
	color: var(--rbf-text);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.trb-footer.rbf a:hover {
	color: var(--rbf-green);
}

.trb-footer.rbf a:focus-visible {
	outline: 2px solid var(--rbf-green-2);
	outline-offset: 3px;
	border-radius: 4px;
}

.trb-footer.rbf ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.trb-footer.rbf li + li {
	margin-top: 0;
}

/* Newsletter strip */
.trb-footer.rbf .rbf__cta {
	background: #f1f7ec;
	border-bottom: 1px solid var(--rbf-line);
	color: var(--rbf-text);
}

.trb-footer.rbf .rbf__cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding: 28px 0;
}

.trb-footer.rbf .rbf__eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rbf-green);
}

.trb-footer.rbf .rbf__cta-title {
	margin: 0;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--rbf-text);
}

.trb-footer.rbf .rbf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: none;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--rbf-green);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45);
}

.trb-footer.rbf .rbf__btn:hover {
	color: #fff;
	background: #256b29;
	transform: translateY(-1px);
}

.trb-footer.rbf .rbf__btn svg {
	transition: transform 0.15s ease;
}

.trb-footer.rbf .rbf__btn:hover svg {
	transform: translateX(3px);
}

/* Main grid */
.trb-footer.rbf .rbf__main {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
	gap: 40px 48px;
	padding: 64px 0 52px;
}

.trb-footer.rbf .rbf__logo {
	display: inline-block;
	margin-bottom: 18px;
}

.trb-footer.rbf .rbf__logo img {
	display: block;
	border: 1px solid var(--rbf-line);
	width: auto;
	height: auto;
	max-width: 190px;
	max-height: 72px;
	/* The logo is drawn for light backgrounds: show it on a soft white tile. */
	background: #fff;
	border-radius: 14px;
	padding: 10px 14px;
}

.trb-footer.rbf .rbf__logo-text {
	font-size: 22px;
	font-weight: 800;
	color: var(--rbf-text);
}

.trb-footer.rbf .rbf__blurb {
	margin: 0 0 20px;
	max-width: 36ch;
	color: var(--rbf-muted);
	font-size: 15px;
	line-height: 1.65;
}

.trb-footer.rbf .rbf__blurb a {
	color: var(--rbf-text);
	text-decoration: underline;
}

.trb-footer.rbf .rbf__contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	color: var(--rbf-text);
	font-weight: 600;
	word-break: break-word;
}

.trb-footer.rbf .rbf__contact svg {
	flex: none;
	color: var(--rbf-green-2);
}

.trb-footer.rbf .rbf__contact:hover {
	color: var(--rbf-green);
}

/* Social icons */
.trb-footer.rbf .trb-social.rb-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
}

.trb-footer.rbf .trb-social.rb-social li {
	display: flex;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.trb-footer.rbf .trb-social.rb-social .trb-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--rbf-line);
	background: #ffffff;
	color: var(--rbf-green) !important; /* theme forces #666 !important */
}

.trb-footer.rbf .trb-social.rb-social .trb-social__link:hover {
	background: var(--rbf-green);
	border-color: var(--rbf-green);
	color: #fff !important;
	transform: translateY(-2px);
}

.trb-footer.rbf .rb-social-ico {
	width: 18px;
	height: 18px;
}

/* Link columns */
.trb-footer.rbf .rbf__heading {
	margin: 4px 0 16px;
	color: var(--rbf-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.trb-footer.rbf .rbf__heading::after {
	content: "";
	display: block;
	width: 28px;
	height: 3px;
	margin-top: 10px;
	border-radius: 3px;
	background: var(--rbf-green);
}

.trb-footer.rbf .rbf__list li {
	margin: 0;
}

.trb-footer.rbf .rbf__list a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 3px 0;
	color: var(--rbf-muted);
	font-size: 15px;
	line-height: 1.35;
}

.trb-footer.rbf .rbf__list a:hover {
	color: var(--rbf-green);
	transform: translateX(3px);
}

/* Bottom bar */
.trb-footer.rbf .rbf__bottom {
	background: var(--rbf-bg-2);
	border-top: 1px solid var(--rbf-line);
}

.trb-footer.rbf .rbf__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 20px 0;
	font-size: 13.5px;
}

.trb-footer.rbf .rbf__copy {
	margin: 0;
	color: var(--rbf-muted);
}

.trb-footer.rbf .rbf__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.trb-footer.rbf .rbf__legal a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--rbf-muted);
}

.trb-footer.rbf .rbf__legal a:hover {
	color: var(--rbf-green);
}

/* Tablet */
@media (max-width: 1024px) {
	.trb-footer.rbf .rbf__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 36px 32px;
		padding: 52px 0 44px;
	}

	.trb-footer.rbf .rbf__brand {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 6px 28px;
		align-items: start;
		padding-bottom: 32px;
		border-bottom: 1px solid var(--rbf-line);
	}

	.trb-footer.rbf .rbf__logo {
		grid-row: span 3;
		margin: 0;
	}

	.trb-footer.rbf .rbf__blurb {
		max-width: 60ch;
		margin-bottom: 8px;
	}

	.trb-footer.rbf .trb-social.rb-social {
		margin-top: 8px;
	}

	.trb-footer.rbf .rbf__bottom-inner {
		flex-direction: column-reverse;
		text-align: center;
	}

	.trb-footer.rbf .rbf__legal ul {
		justify-content: center;
	}
}

/* Phones */
@media (max-width: 680px) {
	.trb-footer.rbf .rbf__wrap {
		width: calc(100% - 32px);
	}

	.trb-footer.rbf .rbf__cta-inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		padding: 26px 0;
	}

	.trb-footer.rbf .rbf__btn {
		width: 100%;
	}

	.trb-footer.rbf .rbf__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
		padding: 40px 0 36px;
	}

	.trb-footer.rbf .rbf__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding-bottom: 28px;
	}

	.trb-footer.rbf .rbf__logo {
		margin-bottom: 14px;
	}

	.trb-footer.rbf .rbf__blurb {
		margin-left: auto;
		margin-right: auto;
	}

	.trb-footer.rbf .trb-social.rb-social {
		justify-content: center;
	}

	/* An odd last column spans the row so nothing sits alone half-width. */
	.trb-footer.rbf .rbf__col:last-child:nth-child(even) {
		grid-column: 1 / -1;
	}

	.trb-footer.rbf .rbf__list a {
		min-height: 40px;
		font-size: 15px;
	}

	.trb-footer.rbf .rbf__bottom-inner {
		flex-direction: column-reverse;
		text-align: center;
		padding: 18px 0 22px;
	}

	.trb-footer.rbf .rbf__legal ul {
		justify-content: center;
		gap: 2px 16px;
	}
}

/* Small phones */
@media (max-width: 360px) {
	.trb-footer.rbf .rbf__main {
		grid-template-columns: minmax(0, 1fr);
	}

	.trb-footer.rbf .rbf__col:last-child:nth-child(even) {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trb-footer.rbf a,
	.trb-footer.rbf .rbf__btn svg {
		transition: none;
	}

	.trb-footer.rbf .rbf__list a:hover,
	.trb-footer.rbf .rbf__btn:hover,
	.trb-footer.rbf .trb-social.rb-social .trb-social__link:hover {
		transform: none;
	}
}

/* Logo and contact line stacked neatly */
.trb-footer.rbf .rbf__logo {
	display: block;
	width: max-content;
}

.trb-footer.rbf .rbf__contact {
	margin-top: 16px;
}
