/* Hide ColorMag's built-in footer only while this plugin is enabled. */
body.rrf-custom-footer-enabled #colophon,
body.rrf-custom-footer-enabled .footer-socket-wrapper,
body.rrf-custom-footer-enabled .cm-footer-builder,
body.rrf-custom-footer-enabled .cm-footer {
	display: none !important;
}

/* Never hide this plugin's footer, even if another stylesheet uses broad rules. */
body.rrf-custom-footer-enabled #rudy-custom-footer {
	display: block !important;
}

.rrf-footer,
.rrf-footer * {
	box-sizing: border-box;
}

.rrf-footer {
	position: relative;
	width: 100%;
	margin: 0;
	background: var(--rrf-bg, #111111);
	color: var(--rrf-text, #ffffff);
	font-family: inherit;
}

.rrf-top-line {
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--rrf-accent, #b89255), transparent);
}

.rrf-shell {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
	padding: 64px 0 24px;
}

.rrf-grid {
	display: grid;
	grid-template-columns: minmax(260px, 1.5fr) minmax(150px, .7fr) minmax(220px, 1fr);
	gap: clamp(36px, 6vw, 88px);
	align-items: start;
}

.rrf-brand {
	max-width: 520px;
}

.rrf-logo-link {
	display: inline-flex;
	align-items: center;
	max-width: 260px;
}

.rrf-logo {
	display: block;
	width: auto;
	max-width: min(260px, 100%);
	max-height: 110px;
	height: auto;
	object-fit: contain;
}

.rrf-title {
	display: inline-block;
	color: var(--rrf-text, #ffffff) !important;
	font-size: clamp(1.65rem, 2.8vw, 2.6rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .045em;
	text-decoration: none !important;
}

.rrf-title:hover,
.rrf-title:focus-visible {
	color: var(--rrf-accent, #b89255) !important;
}

.rrf-description {
	max-width: 46ch;
	margin: 22px 0 0;
	color: var(--rrf-muted, #b8b8b8);
	font-size: 1rem;
	line-height: 1.75;
}

.rrf-heading {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 13px;
	color: var(--rrf-text, #ffffff);
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.rrf-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 2px;
	background: var(--rrf-accent, #b89255);
}

.rrf-links,
.rrf-contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rrf-links li,
.rrf-contact-list li {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--rrf-muted, #b8b8b8);
	font-size: .95rem;
	line-height: 1.6;
}

.rrf-links a,
.rrf-contact-list a {
	color: var(--rrf-muted, #b8b8b8) !important;
	text-decoration: none !important;
	transition: color .2s ease, transform .2s ease;
}

.rrf-links a:hover,
.rrf-links a:focus-visible,
.rrf-contact-list a:hover,
.rrf-contact-list a:focus-visible {
	color: var(--rrf-text, #ffffff) !important;
}

.rrf-links a:hover {
	display: inline-block;
	transform: translateX(3px);
}

.rrf-address {
	white-space: normal;
}

.rrf-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 52px;
	padding-top: 22px;
	border-top: 1px solid color-mix(in srgb, var(--rrf-text, #ffffff) 15%, transparent);
}

@supports not (color: color-mix(in srgb, #fff 15%, transparent)) {
	.rrf-bottom {
		border-top-color: rgba(255,255,255,.14);
	}
}

.rrf-copyright {
	margin: 0;
	color: var(--rrf-muted, #b8b8b8);
	font-size: .86rem;
	line-height: 1.5;
}

.rrf-socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rrf-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid color-mix(in srgb, var(--rrf-text, #ffffff) 22%, transparent);
	border-radius: 50%;
	color: var(--rrf-text, #ffffff) !important;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

@supports not (color: color-mix(in srgb, #fff 22%, transparent)) {
	.rrf-socials a {
		border-color: rgba(255,255,255,.22);
	}
}

.rrf-socials a:hover,
.rrf-socials a:focus-visible {
	border-color: var(--rrf-accent, #b89255);
	background: var(--rrf-accent, #b89255);
	color: var(--rrf-bg, #111111) !important;
	transform: translateY(-2px);
}

.rrf-socials svg {
	display: block;
	width: 17px;
	height: 17px;
	fill: currentColor;
}

@media (max-width: 820px) {
	.rrf-shell {
		width: min(100% - 36px, 680px);
		padding-top: 48px;
	}

	.rrf-grid {
		grid-template-columns: 1fr 1fr;
		gap: 38px 42px;
	}

	.rrf-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.rrf-shell {
		width: min(100% - 28px, 480px);
		padding: 42px 0 22px;
	}

	.rrf-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.rrf-brand {
		grid-column: auto;
	}

	.rrf-bottom {
		align-items: flex-start;
		flex-direction: column;
		margin-top: 38px;
	}
}
