/* =========================================================================
   Rapid Partners — "Our Brands" tabbed Elementor widget
   ========================================================================= */

.rapid-brands {
	--rb-accent: #e63329;
	background: #0b0b0b;
	color: #fff;
}

.rapid-brands *,
.rapid-brands *::before,
.rapid-brands *::after {
	box-sizing: border-box;
}

.rapid-brands__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 24px;
	display: grid;
	grid-template-columns: 1.05fr 1.15fr 0.95fr;
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"head   center tabs"
		"left   center tabs";
	gap: 8px 44px;
	align-items: start;
}

/* Heading ---------------------------------------------------------------- */
.rapid-brands__heading {
	font-family: 'Montserrat', sans-serif;
	grid-area: head;
	margin: 0 0 18px;
	font-size: clamp(38px, 4.6vw, 66px);
	line-height: 0.95;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #fff;
}

/* Columns ---------------------------------------------------------------- */
.rapid-brands__left {
	grid-area: left;
}

.rapid-brands__center {
	grid-area: center;
}

.rapid-brands__tabs {
	grid-area: tabs;
}

/* Panels (swapped per active brand) ------------------------------------- */
.rapid-brands__panel {
	display: none;
}

.rapid-brands__panel.is-active {
	display: block;
}

.rapid-brands__name {
	font-family: 'Montserrat', sans-serif;
	margin: 0 0 26px;
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
}

.rapid-brands__block {
	font-family: Inter, sans-serif;
	margin-bottom: 26px;
}

.rapid-brands__block:last-child {
	margin-bottom: 0;
}

.rapid-brands__subhead {
	margin: 0 0 10px;
	color: var(--rb-accent);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rapid-brands__body-text {
	margin: 0;
	color: #d7d7d7;
	font-size: 16px;
	line-height: 1.55;
}

/* Payment icons */
.rapid-brands__payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

.rapid-brands__payments img {
	height: 26px;
	width: auto;
	display: block;
}

/* Center column ---------------------------------------------------------- */
.rapid-brands__device {
	margin-bottom: 30px;
}

.rapid-brands__device img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Mobile-only duplicate of the device image (rendered above the name in the
   left panel). Hidden on desktop/tablet; the center image is used there. */
.rapid-brands__device--mobile {
	display: none;
}

.rapid-brands__audience .rapid-brands__body-text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.rapid-brands__flags {
	font-size: 22px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
}

.rapid-brands__cta {
	font-family: 'Orbitron', sans-serif;
	display: inline-block;
	margin-top: 30px;
	padding: 17px 42px;
	background: var(--rb-accent);
	border: 3px solid #3a7bd5;
	border-radius: 6px;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.rapid-brands__cta:hover {
	filter: brightness(1.08);
	color: #fff;
}

/* Tab cards (logos) ------------------------------------------------------ */
.rapid-brands__tabs {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.rapid-brands__tabs button {
	border: 1px solid transparent !important;
	background: none !important;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.rapid-brands__tabs button.is-active {
	border: 1px solid var(--rb-accent) !important;
}

.rapid-brands__tab {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	background: #141414;
	border: 3px solid transparent;
	border-radius: 16px;
	cursor: pointer;
	line-height: 0;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.rapid-brands__tab img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 13px;
}

.rapid-brands__tab span {
	display: block;
	padding: 48px 16px;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
}

.rapid-brands__tab:hover {
	border-color: #3a3a3a;
}

.rapid-brands__tab.is-active {
	border-color: var(--rb-accent);
}

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.rapid-brands__inner {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"head head"
			"tabs tabs"
			"left center";
		gap: 28px 32px;
	}
	.rapid-brands__tabs {
		flex-direction: row;
	}
	.rapid-brands__tab {
		flex: 1 1 0;
	}
}

@media (max-width: 680px) {
	.rapid-brands__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"head"
			"tabs"
			"left"
			"center";
		gap: 26px;
		padding: 40px 18px;
	}
	/* Show the device image above the name (in the left panel), and drop the
	   center copy so target-audience + button fall to the bottom. */
	.rapid-brands__device--mobile {
		display: block;
	}
	.rapid-brands__center .rapid-brands__device {
		display: none;
	}
	.rapid-brands__device {
		text-align: center;
	}
	.rapid-brands__device--mobile {
		margin-bottom: 22px;
	}
	.rapid-brands__cta {
		display: block;
		text-align: center;
	}
}
