/**
 * Canvas Club — hero banner component
 */

.cc-banner {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 650px;
	overflow: hidden;
	isolation: isolate;
}

.cc-banner__media {
	position: absolute;
	inset: 0;
	background-position: center right;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: -2;
}


.cc-banner__inner {
	display: flex;
	align-items: center;
	width: 100%;
}

.cc-banner__content {
	max-width: 36rem;
	margin-top: 150px;
}

.cc-banner__title {
	margin: 0 0 1rem;
	font-family: var(--cc-font-baloo-bold);
	font-size: 64px;
	font-weight: 700;
	color: var(--cc-white);
}

.cc-banner__subtitle {
	margin: 0 0 2.75rem;
	font-family: var(--cc-font-baloo-bold);
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 400;
	line-height: 1.5;
	color: var(--cc-white);
}

.cc-banner__cta {
	--cc-cta-yellow: #e8b82e;
	--cc-cta-yellow-hover: #f0c848;
	--cc-cta-text: #1a2238;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 12.5rem;
	padding: 10px;
	border: 0;
	background: transparent;
	color: var(--cc-cta-text);
	font-family: 'Fredoka', system-ui, sans-serif;
	font-size: clamp(0.95rem, 1.5vw, 1.125rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.cc-banner__cta-shape {
	position: absolute;
	inset: -0.35rem -1.5rem -0.35rem -0.65rem;
	z-index: -1;
	
	background-image: url('../images/btn-bg.webp');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
	transition: background-color 0.2s ease, filter 0.2s ease;
}

.cc-banner__cta-label {
	position: relative;
	z-index: 1;
}

.cc-banner__cta:hover,
.cc-banner__cta:focus-visible {
	color: var(--cc-cta-text);
	transform: translateY(-2px);
	outline: none;
}

.cc-banner__cta:hover .cc-banner__cta-shape,
.cc-banner__cta:focus-visible .cc-banner__cta-shape {
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.cc-banner__cta:focus-visible .cc-banner__cta-label {
	outline: 2px solid var(--cc-cta-text);
	outline-offset: 4px;
}

/* Header overlays hero banner on front page */
.cc-has-hero-banner .cc-site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	background: #fdfdfd;
}

.cc-has-hero-banner .cc-site-header.is-scrolled {
	position: sticky;
}

.cc-has-hero-banner .cc-main--front {
	padding-top: 0;
}
@media (max-width: 1200px) {
	.cc-banner {
		min-height: clamp(22rem, 70vh, 30rem);
	}
	.cc-banner__content {
		margin-top: 70px;
	}
}

@media (max-width: 768px) {
	.cc-banner {
		min-height: clamp(22rem, 70vh, 26rem);
	}

	.cc-banner__inner {
		align-items: flex-end;
		padding-bottom: 2.5rem;
	}
	.cc-banner__title {
		font-size: 48px;
	}
}
