/* Rotating Hub Animation styles */

.rha-wrapper {
	position: relative;
	width: 100%;
	background: var(--rha-bg, #0b2545);
	padding: 60px 20px 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
}

.rha-top-logo {
	margin-bottom: 30px;
	max-width: 260px;
	opacity: 0;
	transform: translateY(-30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.rha-wrapper.rha-in-view .rha-top-logo {
	opacity: 1;
	transform: translateY(0);
}

.rha-top-logo img {
	width: 100%;
	height: auto;
	display: block;
}

.rha-wheel-outer {
	position: relative;
	width: var(--rha-size, 700px);
	height: var(--rha-size, 700px);
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rha-wheel {
	position: relative;
	width: 100%;
	height: 100%;
	will-change: transform;
	transform: rotate(0deg);
}

/* Spoke lines, radiating from the centre */
.rha-spoke-line {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--rha-radius, 230px);
	height: 3px;
	background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.85));
	transform-origin: left center;
	transform: rotate(var(--angle)) translateY(-50%);
	opacity: 0;
	transition: opacity 1s ease;
}

.rha-wrapper.rha-in-view .rha-spoke-line {
	opacity: 1;
}

/* Item wrapper positions itself around the circle */
.rha-item {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	transform: rotate(var(--angle)) translate(var(--rha-radius, 230px)) rotate(calc(var(--angle) * -1));
}

.rha-item-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.6);
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.rha-wrapper.rha-in-view .rha-item-inner {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* JS rotates this inner layer only, keeping reveal transition above untouched.
   No background by default, just the raw logo image floating on the section background. */
.rha-item-counter {
	width: 150px;
	min-height: 60px;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--rha-card-padding, 6px);
	will-change: transform;
}

/* Only when a background colour is actually set does the card get a box + shadow. */
.rha-item-counter.rha-has-bg {
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.rha-item-counter img {
	max-width: 100%;
	max-height: 60px;
	object-fit: contain;
	display: block;
}

.rha-item-counter a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.rha-item-label {
	font-family: sans-serif;
	font-weight: 700;
	text-align: center;
	font-size: 14px;
	color: #1a1a1a;
}

/* Centre circle */
.rha-center {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42%;
	height: 42%;
	border-radius: 50%;
	overflow: hidden;
	transform: translate(-50%, -50%) scale(0.85);
	border: 6px solid rgba(212, 175, 55, 0.5);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
	background: #000;
	opacity: 0;
	transition: opacity 0.8s ease, transform 0.8s ease;
	z-index: 5;
}

.rha-wrapper.rha-in-view .rha-center {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.rha-center-counter,
.rha-center-counter img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Mobile scaling */
@media (max-width: 600px) {
	.rha-wheel-outer {
		width: min(90vw, var(--rha-size, 700px));
		height: min(90vw, var(--rha-size, 700px));
	}
	.rha-item-inner {
		width: 100px;
		min-height: 44px;
		padding: 8px;
	}
	.rha-item-inner img {
		max-height: 38px;
	}
	.rha-item-label {
		font-size: 11px;
	}
}
