/*
 * RedRoots — minimalist footer.
 *
 * Scoped entirely under .rr-footer and deliberately using class names that do
 * not collide with the legacy footer rules still present in site.css. Loaded
 * site-wide and reuses the existing design tokens and footer wordmark.
 */

.rr-footer {
	color: rgba(255, 255, 255, 0.9);
	background: linear-gradient(110deg, #102d1d 0%, #173d25 100%);
}

.rr-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	max-width: 640px;
	padding-block: clamp(1.5rem, 3.5vw, 2rem);
	text-align: center;
}

/* Brand closure ---------------------------------------------------------- */

.rr-footer__masthead {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.rr-footer .rr-wordmark__name {
	font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

.rr-footer .rr-wordmark__tagline {
	display: none;
}

.rr-footer__statement {
	max-width: 32rem;
	margin: 0.45rem auto 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.85rem;
	line-height: 1.55;
}

/* Contact ---------------------------------------------------------------- */

.rr-footer__reach {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
}

.rr-footer__reach-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.25rem 0.6rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	text-decoration: none;
}

.rr-footer__reach-link--primary {
	font-weight: 600;
}

.rr-footer__reach-link:hover {
	color: var(--rr-color-white);
	text-decoration: underline;
}

.rr-footer__reach-link svg {
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Compact navigation + legal rows ---------------------------------------- */

.rr-footer__nav ul,
.rr-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.rr-footer__nav li,
.rr-footer__legal li {
	display: inline-flex;
	align-items: center;
}

.rr-footer__nav li + li::before,
.rr-footer__legal li + li::before {
	margin: 0 0.55rem;
	color: rgba(255, 255, 255, 0.38);
	content: '·';
}

.rr-footer__nav a,
.rr-footer__legal a {
	display: inline-block;
	padding: 0.35rem 0.1rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.8rem;
	text-decoration: none;
}

.rr-footer__legal a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.75rem;
}

.rr-footer__nav a:hover,
.rr-footer__legal a:hover {
	color: var(--rr-color-white);
	text-decoration: underline;
}

/* Copyright -------------------------------------------------------------- */

.rr-footer__fineprint {
	width: 100%;
	margin: 0.15rem 0 0;
	padding-top: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.7rem;
	line-height: 1.4;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Desktop: inline contact, slightly more breathing room ------------------ */

@media (min-width: 768px) {
	.rr-footer__inner {
		gap: 1rem;
	}

	.rr-footer__reach {
		flex-direction: row;
		gap: 1.25rem;
	}

	.rr-footer__reach-link {
		padding-inline: 0.25rem;
	}
}

/* Accessibility: visible keyboard focus against the dark footer ----------- */

.rr-footer a:focus-visible {
	outline-color: rgba(255, 255, 255, 0.9);
}
