/* ============================================================
   CASCADE HERO SLIDER — styles
   Class names are prefixed "csd-" to avoid clashing with your theme.
   ============================================================ */

/* Full-bleed: breaks the banner out of your theme's content
   container so it spans the entire browser width, regardless of
   how narrow the page's content column is set. */
.csd-hero {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow: hidden;
	background: #1C1B1A;
}

/* Height scales down gracefully instead of staying too tall on
   smaller screens. */
.csd-hero { aspect-ratio: 21 / 8; }
@media (max-width: 900px) {
	.csd-hero { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
	.csd-hero { aspect-ratio: 3 / 4; }
}

.csd-track {
	display: flex;
	height: 100%;
	transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}
.csd-slide {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
}
.csd-slide picture,
.csd-slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.csd-slide img {
	object-fit: cover;
	transform: scale(1);
}
/* Light motion: image gets a slow, subtle zoom while its slide is active. */
.csd-slide--active img {
	animation: csd-kenburns 6.5s ease-in-out forwards;
}
@keyframes csd-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.06); }
}

/* No overlay/gradient on the image — text legibility is handled
   with a text-shadow instead (typographic, not a banner tint).
   Remove the text-shadow lines below if you don't want that either. */
.csd-content {
	position: absolute;
	top: 50%;
	--csd-base: translateY(-50%);
	transform: var(--csd-base) scale(0.97);
	opacity: 0;
	max-width: 460px;
	background: #FFFFFF;
	color: #14171A;
	padding: 32px 36px;
	border-radius: 10px;
	box-shadow: 0 24px 48px -16px rgba(0,0,0,0.35);
}
/* Light motion: content box fades and settles in each time its slide becomes active. */
.csd-slide--active .csd-content {
	animation: csd-content-in 650ms ease forwards;
}
@keyframes csd-content-in {
	from { opacity: 0; transform: var(--csd-base) scale(0.97); }
	to   { opacity: 1; transform: var(--csd-base) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.csd-slide img,
	.csd-content {
		animation: none !important;
		opacity: 1 !important;
		transform: var(--csd-base) !important;
	}
}
.csd-content--left {
	left: 10%;
	right: auto;
}
.csd-content--right {
	right: 10%;
	left: auto;
	text-align: right;
}
@media (max-width: 900px) {
	.csd-content--left,
	.csd-content--right {
		left: 6%;
		right: 6%;
	}
	.csd-content {
		max-width: 380px;
		padding: 24px 26px;
	}
	.csd-hero .csd-content h2 {
		font-size: 1.5rem !important;
	}
	.csd-content p {
		font-size: 0.9375rem;
	}
	.csd-content .csd-eyebrow {
		font-size: 0.9375rem;
	}
	.csd-content .csd-cta {
		font-size: 0.9375rem;
		padding: 12px 24px;
	}
}
@media (max-width: 640px) {
	.csd-content {
		top: auto;
		bottom: 16px;
		--csd-base: translateY(0);
		max-width: 84%;
		padding: 18px 20px;
	}
	.csd-content--left,
	.csd-content--right {
		left: 8%;
		right: 8%;
		text-align: left;
	}
	.csd-content .csd-eyebrow {
		font-size: 0.8125rem;
		margin-bottom: 8px;
	}
	.csd-hero .csd-content h2 {
		font-size: 1.125rem !important;
		margin: 0 0 8px;
	}
	.csd-content p {
		font-size: 0.875rem;
		margin: 0 0 14px;
	}
	.csd-content .csd-cta {
		font-size: 0.8125rem;
		padding: 10px 20px;
	}
}

.csd-content .csd-eyebrow {
	display: inline-block;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ED3237;
	margin-bottom: 12px;
}
.csd-hero .csd-content h2 {
	font-family: 'Outfit', sans-serif;
	font-size: clamp(1.375rem, 2.6vw, 2rem) !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	margin: 0 0 14px;
	color: #14171A;
}
.csd-content p {
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: clamp(1rem, 1.6vw, 1.1875rem);
	margin: 0 0 22px;
	color: #52555A;
}
.csd-content .csd-cta {
	display: inline-block;
	font-family: 'IBM Plex Sans', sans-serif;
	background: linear-gradient(135deg, #F5A623 0%, #FFD25A 100%);
	color: #14171A;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 9px 20px;
	border-radius: 6px;
	transition: transform 180ms ease, opacity 180ms ease;
}
.csd-content .csd-cta:hover { transform: translateY(-2px); opacity: 0.92; }

/* Arrows — flush with the screen edges, no background fill,
   light grey by default, black on hover. */
.csd-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #C9C9C9;
	font-size: 2.25rem;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	padding: 12px;
	transition: color 150ms ease;
}
.csd-arrow:hover,
.csd-arrow:focus-visible {
	color: #000;
}
.csd-prev { left: 8px; }
.csd-next { right: 8px; }

@media (min-width: 1024px) {
	.csd-prev { left: 28px; }
	.csd-next { right: 28px; }
	.csd-arrow { font-size: 2.75rem; }
}

@media (max-width: 640px) {
	.csd-arrow { font-size: 1.75rem; padding: 8px; }
}

/* Dots */
.csd-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 3;
}
.csd-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,0.5);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 150ms ease, transform 150ms ease;
}
.csd-dot.is-active {
	background: #fff;
	transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
	.csd-track { transition: none; }
}
