/* Rebound Fitness – Footer (EduBounce-style) */

.rf-footer {
	--rf-navy: #212d6e;
	--rf-coral: #fb7661;
	--rf-text: #d4d8f0;
	--rf-muted: #9aa3d1;
	--rf-line: rgba(255, 255, 255, 0.14);
	padding: 28px;
	background: transparent;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #fff;
	-webkit-font-smoothing: antialiased;
}

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

.rf-footer__card {
	position: relative;
	overflow: hidden;
	background: var(--rf-navy);
	border-radius: 32px;
	padding: 72px 0 28px;
}

/* Soft coral glow, top right */
.rf-footer__card::before {
	content: "";
	position: absolute;
	top: -220px;
	right: -160px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(251, 118, 97, 0.22) 0%, rgba(251, 118, 97, 0) 65%);
	pointer-events: none;
}

.rf-footer__wrap {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
}

/* ---------- Call to action ---------- */

.rf-footer__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 56px;
	border-bottom: 1px solid var(--rf-line);
}

.rf-footer__cta-text {
	max-width: 640px;
}

.rf-footer__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
}

.rf-footer__dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rf-coral);
}

.rf-footer .rf-footer__title {
	margin: 0 0 16px;
	padding: 0;
	font-family: "Hanken Grotesk", Poppins, sans-serif;
	font-size: clamp(40px, 5vw, 68px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #fff;
}

.rf-footer__lead {
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--rf-text);
}

.rf-footer__cta-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	width: 320px;
	flex-shrink: 0;
}

/* Trustpilot Flex widget in a white card. Side padding is kept tiny
   because the widget adds its own space and needs ~300px to fit. */
.rf-footer__trustbox {
	background: #fff;
	border-radius: 16px;
	padding: 12px 4px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.rf-footer__trustbox .trustpilot-widget {
	min-height: 70px;
}

.rf-footer .rf-footer__button {
	justify-content: center;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 12px;
	padding: 22px 34px;
	border-radius: 999px;
	background: #fff;
	color: var(--rf-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rf-footer .rf-footer__button svg {
	transition: transform 0.25s ease;
}

.rf-footer .rf-footer__button:hover,
.rf-footer .rf-footer__button:focus-visible {
	background: var(--rf-coral);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(251, 118, 97, 0.35);
}

.rf-footer .rf-footer__button:hover svg,
.rf-footer .rf-footer__button:focus-visible svg {
	transform: translateX(4px);
}

/* ---------- Link grid ---------- */

.rf-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(4, 1fr);
	gap: 40px 32px;
	padding: 56px 0;
	border-bottom: 1px solid var(--rf-line);
}

.rf-footer__logo {
	display: inline-block;
	margin-bottom: 18px;
}

.rf-footer__logo img {
	display: block;
	width: 170px;
	height: auto;
}

.rf-footer__tagline {
	max-width: 300px;
	margin: 0 0 20px;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--rf-text);
}

.rf-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
}

.rf-footer__contact a span {
	display: inline-block;
	min-width: 26px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--rf-muted);
}

.rf-footer .rf-footer__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
	cursor: default;
	margin: 0 0 18px;
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rf-muted);
}

.rf-footer__col ul,
.rf-footer__small {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-footer__col li {
	margin: 0 0 14px;
	padding: 0;
	line-height: 1.35;
}

.rf-footer summary::-webkit-details-marker {
	display: none;
}

.rf-footer__chevron {
	display: none;
	transition: transform 0.3s ease;
}

/* Stop the theme adding bullets to footer lists */
.rf-footer ul,
.rf-footer li {
	list-style: none !important;
	margin-left: 0 !important;
}

.rf-footer li::before {
	display: none !important;
}

/* Links: soft colour, coral underline that slides in on hover */
.rf-footer__col a,
.rf-footer__contact a,
.rf-footer__small a {
	position: relative;
	color: var(--rf-text);
	font-size: 15px;
	text-decoration: none;
	background-image: linear-gradient(var(--rf-coral), var(--rf-coral));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: color 0.2s ease, background-size 0.3s ease;
}

.rf-footer__col a:hover,
.rf-footer__contact a:hover,
.rf-footer__small a:hover,
.rf-footer__col a:focus-visible,
.rf-footer__contact a:focus-visible,
.rf-footer__small a:focus-visible {
	color: #fff;
	background-size: 100% 1px;
}

.rf-footer a:focus-visible {
	outline: 2px solid var(--rf-coral);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Bottom bar ---------- */

.rf-footer__bottom {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	padding-top: 24px;
}

.rf-footer__legal {
	max-width: 640px;
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--rf-muted);
}

.rf-footer__small {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	flex-shrink: 0;
}

.rf-footer__small li {
	margin: 0;
	padding: 0;
}

.rf-footer__small a {
	font-size: 13px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
	.rf-footer__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.rf-footer__brand {
		grid-column: 1 / -1;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 16px 40px;
	}

	.rf-footer__logo,
	.rf-footer__tagline,
	.rf-footer__contact {
		margin-bottom: 0;
	}
}

@media (max-width: 860px) {
	.rf-footer__cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.rf-footer__cta-actions {
		max-width: 100%;
	}

	.rf-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rf-footer__brand {
		display: block;
	}

	.rf-footer__logo,
	.rf-footer__tagline,
	.rf-footer__contact {
		margin-bottom: 18px;
	}

	.rf-footer__bottom {
		flex-direction: column;
	}
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
	.rf-footer {
		padding: 12px;
	}

	.rf-footer__card {
		border-radius: 24px;
		padding: 48px 0 24px;
	}

	.rf-footer__wrap {
		padding: 0 24px;
	}

	.rf-footer__cta {
		padding-bottom: 40px;
	}

	.rf-footer__lead {
		font-size: 16px;
	}

	.rf-footer__cta-actions {
		width: 100%;
	}

	.rf-footer .rf-footer__button {
		padding: 20px 24px;
	}

	/* Link sections become tap-to-open lists */
	.rf-footer__grid {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 32px 0 8px;
	}

	.rf-footer__brand {
		padding-bottom: 24px;
	}

	.rf-footer__col {
		border-top: 1px solid var(--rf-line);
	}

	.rf-footer .rf-footer__label {
		margin: 0;
		padding: 18px 0;
		cursor: pointer;
		font-size: 13px;
		color: #fff;
	}

	.rf-footer__chevron {
		display: block;
		color: var(--rf-muted);
	}

	.rf-footer details[open] .rf-footer__chevron {
		transform: rotate(180deg);
	}

	.rf-footer__col ul {
		padding-bottom: 12px;
	}

	.rf-footer details[open] ul {
		animation: rf-footer-reveal 0.3s ease;
	}
}

@keyframes rf-footer-reveal {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rf-footer *,
	.rf-footer *::before {
		animation: none !important;
		transition: none !important;
	}
}
