/**
 * Rabita Society — site footer.
 *
 * Tokens are scoped to .rabita-ft so the footer carries its own palette and
 * does not depend on any other Rabita stylesheet being loaded.
 */

.rabita-ft {
	--ft-green: #14503f;
	--ft-green-deep: #0c3327;
	--ft-accent: #b04e1e;
	--ft-pale: #c9ddd5;
	--ft-line: rgba(255, 255, 255, 0.14);
	--ft-max: 1320px;

	box-sizing: border-box;
	background: var(--ft-green);
	color: #fff;
}

.rabita-ft *,
.rabita-ft *::before,
.rabita-ft *::after {
	box-sizing: border-box;
}

.rabita-ft-inner {
	max-width: var(--ft-max);
	margin: 0 auto;
	padding: 0 20px;
}

.rabita-ft-main {
	padding: 52px 0 40px;
}

.rabita-ft-main .rabita-ft-inner {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.rabita-ft-main .rabita-ft-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.rabita-ft-main .rabita-ft-inner {
		grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
		gap: 40px;
	}
}

/* ------------------------------------------------------------- brand */

.rabita-ft-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #fff;
}

.rabita-ft-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
}

.rabita-ft-name {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.25;
}

.rabita-ft-tagline {
	margin: 16px 0 0;
	max-width: 44ch;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

/* ------------------------------------------------------------ social */

.rabita-ft-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.rabita-ft-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid var(--ft-line);
	color: #fff;
	text-decoration: none;
}

.rabita-ft-social a:hover,
.rabita-ft-social a:focus-visible {
	background: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------------------------- columns */

.rabita-ft-head {
	margin: 0 0 14px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ft-pale);
}

.rabita-ft-address {
	margin: 0;
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
}

.rabita-ft-maplink,
.rabita-ft-hours {
	margin: 12px 0 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.78);
}

/* The colour on the paragraph does not reach the link inside it, which
   then falls back to the browser's blue — unreadable on dark green. */
.rabita-ft-maplink a {
	color: var(--ft-pale);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rabita-ft-maplink a:hover,
.rabita-ft-maplink a:focus-visible {
	color: #fff;
}

.rabita-ft-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ft-pale);
}

.rabita-ft-contacts {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.rabita-ft-contacts:last-child {
	margin-bottom: 0;
}

/* Tap targets, not footnotes: these are the numbers someone rings in an
   emergency, and a footer is where people look when the page above has
   not answered their question. */
.rabita-ft-contacts a {
	display: inline-block;
	min-height: 28px;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	word-break: break-word;
}

.rabita-ft-contacts a:hover,
.rabita-ft-contacts a:focus-visible {
	text-decoration: underline;
}

/* ------------------------------------------------------- quick links */

.rabita-ft-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.rabita-ft-menu a {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.rabita-ft-menu a:hover,
.rabita-ft-menu a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

/* --------------------------------------------------------- bottom bar */

.rabita-ft-bar {
	border-top: 1px solid var(--ft-line);
	background: var(--ft-green-deep);
}

.rabita-ft-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.rabita-ft-copy,
.rabita-ft-regs {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.7);
}

.rabita-ft-regs {
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.rabita-ft-social a {
		transition: none;
	}
}
