/* ==========================================================================
   Trigg Island SLSC — sponsors & supporters band (homepage)
   ========================================================================== */

.tgi-partners {
	background: #f6f4ef;
	border-top: 4px solid transparent;
	border-image: linear-gradient(90deg, #e51836 0 50%, #00a94e 50% 100%) 1;
	padding: clamp(48px, 7vw, 88px) 20px clamp(48px, 6vw, 72px);
}
.tgi-partners__inner { max-width: 1160px; margin: 0 auto; }

.tgi-partners__head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 4vw, 48px); }
.tgi-partners__eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #e51836;
	margin-bottom: 0.5rem;
}
.tgi-partners__title { margin-bottom: 0.6rem; }
.tgi-partners__lead { color: #5a6572; margin: 0; }

/* Tier label with rules either side */
.tgi-tier + .tgi-tier { margin-top: clamp(28px, 3.5vw, 40px); }
.tgi-tier__label {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 18px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #13283e;
}
.tgi-tier__label::before,
.tgi-tier__label::after { content: ""; flex: 1; height: 1px; background: rgba(19, 40, 62, 0.15); }

/* Logo grid: centred rows, card size by tier */
.tgi-tier__logos {
	--w: 170px;
	--h: 96px;
	--img: 58px;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}
.tgi-tier--performance-partner .tgi-tier__logos,
.tgi-tier--gold .tgi-tier__logos { --w: 250px; --h: 128px; --img: 80px; gap: 18px; }
.tgi-tier--silver .tgi-tier__logos { --w: 210px; --h: 112px; --img: 68px; }
.tgi-tier--supporters .tgi-tier__logos { --w: 150px; --h: 88px; --img: 52px; gap: 12px; }

.tgi-logo { flex: 0 1 var(--w); }
.tgi-logo > a,
.tgi-logo > span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--h);
	padding: 14px 18px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(19, 40, 62, 0.06), 0 0 0 1px rgba(19, 40, 62, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tgi-logo > a:hover,
.tgi-logo > a:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px -12px rgba(19, 40, 62, 0.35), 0 0 0 1px rgba(19, 40, 62, 0.06);
}
.tgi-logo img {
	max-width: 100%;
	max-height: var(--img);
	width: auto;
	height: auto;
	object-fit: contain;
}

.tgi-partners__cta {
	margin-top: clamp(36px, 4vw, 52px);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.tgi-partners__cta p { margin: 0; color: #13283e; font-weight: 500; }

@media (max-width: 600px) {
	.tgi-tier__logos,
	.tgi-tier--performance-partner .tgi-tier__logos,
	.tgi-tier--gold .tgi-tier__logos,
	.tgi-tier--silver .tgi-tier__logos,
	.tgi-tier--supporters .tgi-tier__logos {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.tgi-tier--performance-partner .tgi-tier__logos { grid-template-columns: minmax(0, 1fr); max-width: 260px; margin: 0 auto; }
	.tgi-tier--supporters .tgi-tier__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* Centre a lone last logo in two-column tiers. */
	.tgi-tier:not(.tgi-tier--supporters):not(.tgi-tier--performance-partner) .tgi-logo:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 5px);
	}
	.tgi-logo > a, .tgi-logo > span { height: calc(var(--h) * 0.8); padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.tgi-logo > a { transition: none; }
}
