/**
 * BBP CTA widget styles.
 *
 * Two cards side by side: a gold content card and a photo card, in an
 * equal-width grid. Deliberately has NO hardcoded outer padding of its
 * own: Elementor's native Advanced > Padding control (which targets
 * .elementor-widget-container) is the only source of outer spacing —
 * both cards now carry their own background/padding individually, so
 * there's no need for the widget-container background trick the
 * previous single-section layout relied on.
 *
 * Assumes .bbp-btn / .bbp-btn-primary / .bbp-btn-secondary / .bbp-text-gold
 * are already defined in hero.css (loaded before this file) — not
 * redefined here, just reused.
 */

.elementor-widget-bbp-cta {
	width: 100%;
}

.bbp-cta {
	width: 100%;
}

/* "Full Width" option: break out of whatever column/container width the
   widget was placed in and span the full browser width. */
.bbp-cta--full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.bbp-cta-inner {
	width: 100%;
	max-width: var(--bbp-content-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: stretch;
}

.bbp-cta--no-media .bbp-cta-inner {
	grid-template-columns: 1fr;
}

.bbp-cta-card {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
}

.bbp-cta-card--content {
	background: var(--bbp-gold);
	padding: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bbp-cta-texture {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.15;
	mix-blend-mode: luminosity;
	pointer-events: none;
}

.bbp-cta-text {
	position: relative;
	z-index: 1;
}

.bbp-cta-card--media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	/* Horizontal/Vertical Position controls (Photo style section) each set
	   just their own axis as a custom property, then this single rule
	   combines them — keeps the two sliders independent instead of one
	   control fighting the other over the same object-position value. */
	object-position: var(--bbp-cta-photo-x, 50%) var(--bbp-cta-photo-y, 50%);
}

.bbp-cta-eyebrow {
	color: var(--bbp-text-white);
	font-family: var(--bbp-font-family);
	font-weight: 600;
	font-size: 16px;
	margin: 0 0 12px;
}

.bbp-cta-heading {
	font-family: var(--bbp-heading-font);
	font-weight: 400;
	font-size: 42px;
	line-height: 1.15;
	color: var(--bbp-text-white);
	text-transform: uppercase;
	margin: 0 0 16px;
}

.bbp-cta-heading .bbp-text-gold {
	color: #000;
}

.bbp-cta-description {
	color: rgba(255, 255, 255, 0.9);
}

.bbp-cta-description p {
	font-family: var(--bbp-font-family);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.bbp-cta-description p:last-child {
	margin-bottom: 0;
}

.bbp-cta-buttons {
	display: flex;
	gap: 10px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.bbp-cta .bbp-btn-primary {
	background: #000;
	color: var(--bbp-gold);
}

.bbp-cta .bbp-btn-secondary {
	background: transparent;
	color: var(--bbp-text-white);
	border-color: currentColor;
}

@media (max-width: 900px) {
	.bbp-cta-inner {
		grid-template-columns: 1fr;
	}

	.bbp-cta-card--content {
		padding: 40px;
	}

	.bbp-cta-card--media img {
		height: 260px;
	}

	.bbp-cta-heading {
		font-size: 28px;
	}
}

@media (max-width: 480px) {
	.bbp-cta-card--content {
		padding: 32px 24px;
		border-radius: 0 !important;
	}

	.bbp-cta-card {
		border-radius: 0 !important;
	}
}
