/* ============================================================
   Cute Promo Hero Slider — v1.0.0
   ============================================================ */

/* ---- CSS Variables ---- */
.cphs-wrapper {
	--cphs-hero-bg:        #FFF8E7;
	--cphs-heading-color:  #333333;
	--cphs-highlight-color:#E91E8C;
	--cphs-btn-bg:         #29ABE2;
	--cphs-btn-color:      #ffffff;
	--cphs-bottom-bg:      #ffffff;
	--cphs-card-radius:    24px;
	--cphs-hero-radius:    20px;
	--cphs-btn-radius:     50px;
	--cphs-arrow-size:     40px;
	--cphs-dot-size:       8px;
}

/* ---- Outer Wrapper ---- */
.cphs-wrapper {
	width: 100%;
	box-sizing: border-box;
}

/* ---- Card ---- */
.cphs-outer-card {
	background: #ffffff;
	border-radius: var(--cphs-card-radius);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
	overflow: hidden;
	position: relative;
}

/* ---- Slider Container ---- */
.cphs-slider-container {
	position: relative;
	overflow: hidden;
}

/* ---- Slides Track ---- */
.cphs-slides-track {
	position: relative;
}

/* ---- Individual Slide ---- */
.cphs-slide {
	display: none;
	flex-direction: column;
}

.cphs-slide.cphs-slide--active {
	display: flex;
}

/* ---- Slide: Fade out (exiting) ---- */
.cphs-slide.cphs-slide--exiting {
	display: flex;
	position: absolute;
	inset: 0;
	width: 100%;
	z-index: 1;
	pointer-events: none;
	animation: cphsFadeOut var(--cphs-speed, 0.5s) ease forwards;
}

/* ---- Slide: Entering (both modes) ---- */
.cphs-slide.cphs-slide--entering-fade {
	animation: cphsFadeIn var(--cphs-speed, 0.5s) ease forwards;
}

.cphs-slide.cphs-slide--entering-slide-right {
	animation: cphsSlideInRight var(--cphs-speed, 0.5s) ease forwards;
}

.cphs-slide.cphs-slide--entering-slide-left {
	animation: cphsSlideInLeft var(--cphs-speed, 0.5s) ease forwards;
}

@keyframes cphsFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes cphsFadeOut {
	from { opacity: 1; }
	to   { opacity: 0; }
}

@keyframes cphsSlideInRight {
	from { transform: translateX(100%); opacity: 0; }
	to   { transform: translateX(0);    opacity: 1; }
}

@keyframes cphsSlideInLeft {
	from { transform: translateX(-100%); opacity: 0; }
	to   { transform: translateX(0);     opacity: 1; }
}

/* ---- Hero Area ---- */
.cphs-hero-area {
	display: flex;
	align-items: stretch;
	min-height: 340px;
	background-color: var(--cphs-hero-bg);
	border-radius: var(--cphs-hero-radius) var(--cphs-hero-radius) 0 0;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
}

/* ---- Image Column ---- */
.cphs-slide-image {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	flex: 0 0 42%;
	padding: 24px 0 0 24px;
	overflow: hidden;
	box-sizing: border-box;
}

.cphs-slide-image img {
	display: block;
	max-width: 280px;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* ---- Text Column ---- */
.cphs-slide-text {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 56px 40px 28px;
	gap: 6px;
	box-sizing: border-box;
}

/* ---- Image Position Variants ---- */
.cphs-img-right .cphs-hero-area {
	flex-direction: row-reverse;
}
.cphs-img-right .cphs-slide-image {
	padding: 24px 24px 0 0;
}
.cphs-img-right .cphs-slide-text {
	padding: 40px 28px 40px 56px;
}

.cphs-img-center .cphs-hero-area {
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.cphs-img-center .cphs-slide-image {
	flex: 0 0 auto;
	width: 100%;
	padding: 32px 20px 0;
	justify-content: center;
}
.cphs-img-center .cphs-slide-text {
	align-items: center;
	padding: 20px 48px 40px;
}

/* ---- Typography ---- */
.cphs-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #999999;
	margin-bottom: 4px;
}

.cphs-headings {
	display: flex;
	flex-direction: column;
	line-height: 1.08;
}

.cphs-heading {
	display: block;
	font-size: 42px;
	font-weight: 800;
	color: var(--cphs-heading-color);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.cphs-highlight {
	display: block;
	font-size: 56px;
	font-weight: 900;
	color: var(--cphs-highlight-color);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.cphs-subtitle {
	font-size: 15px;
	color: #666666;
	margin: 6px 0 0;
	line-height: 1.55;
}

/* ---- CTA Buttons ---- */
.cphs-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.cphs-cta-btn,
.cphs-bottom-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	background-color: var(--cphs-btn-bg);
	color: var(--cphs-btn-color);
	border-radius: var(--cphs-btn-radius);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	line-height: 1;
}

.cphs-cta-btn:hover,
.cphs-bottom-btn:hover {
	background-color: #1a8fb8;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cphs-cta-btn--secondary {
	background-color: transparent;
	border: 2px solid var(--cphs-btn-bg);
	color: var(--cphs-btn-bg);
}
.cphs-cta-btn--secondary:hover {
	background-color: var(--cphs-btn-bg);
	color: var(--cphs-btn-color);
}

/* ---- Bottom Bar ---- */
.cphs-bottom-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 20px;
	background-color: var(--cphs-bottom-bg);
}

.cphs-bottom-bar-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cphs-bottom-bar-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #999999;
}

.cphs-bottom-bar-title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #333333;
}

/* ---- Navigation Arrows ---- */
.cphs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-60%);
	width: var(--cphs-arrow-size);
	height: var(--cphs-arrow-size);
	background-color: rgba(255, 255, 255, 0.85);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #444444;
	z-index: 10;
	padding: 0;
	line-height: 1;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	-webkit-appearance: none;
}

.cphs-arrow:hover {
	background-color: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.cphs-arrow--prev { left: 14px; }
.cphs-arrow--next { right: 14px; }

.cphs-arrow svg {
	display: block;
	pointer-events: none;
}

/* ---- Dots ---- */
.cphs-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 0;
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
}

.cphs-dot {
	width: var(--cphs-dot-size);
	height: var(--cphs-dot-size);
	border-radius: 50%;
	background-color: #cccccc;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, transform 0.2s ease;
	-webkit-appearance: none;
	flex-shrink: 0;
}

.cphs-dot.cphs-dot--active {
	background-color: var(--cphs-highlight-color);
	transform: scale(1.35);
}

/* When dots are present, add bottom padding to hero area so arrows/dots don't overlap content */
.cphs-slider-container:has(.cphs-dots) .cphs-hero-area {
	padding-bottom: 32px;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
	.cphs-slide-text {
		padding: 32px 36px 32px 22px;
	}

	.cphs-img-right .cphs-slide-text {
		padding: 32px 22px 32px 36px;
	}

	.cphs-heading {
		font-size: 32px;
	}

	.cphs-highlight {
		font-size: 44px;
	}

	.cphs-slide-image {
		flex: 0 0 38%;
	}
}

/* Mobile (≤767px) */
@media (max-width: 767px) {

	/* Force stacked layout on all position variants */
	.cphs-hero-area,
	.cphs-img-right .cphs-hero-area,
	.cphs-img-center .cphs-hero-area {
		flex-direction: column !important;
		align-items: center;
		min-height: auto;
	}

	.cphs-slide-image,
	.cphs-img-right .cphs-slide-image,
	.cphs-img-center .cphs-slide-image {
		flex: 0 0 auto;
		width: 100%;
		padding: 28px 20px 0 !important;
		justify-content: center;
		align-items: flex-end;
		max-height: 210px;
	}

	.cphs-slide-image img {
		max-width: 150px;
		max-height: 190px;
	}

	.cphs-slide-text,
	.cphs-img-right .cphs-slide-text,
	.cphs-img-center .cphs-slide-text {
		padding: 16px 20px 24px !important;
		text-align: center;
		align-items: center;
	}

	.cphs-headings {
		align-items: center;
	}

	.cphs-heading {
		font-size: 26px;
	}

	.cphs-highlight {
		font-size: 34px;
	}

	.cphs-label {
		font-size: 10px;
	}

	.cphs-subtitle {
		font-size: 13px;
	}

	.cphs-buttons {
		justify-content: center;
	}

	/* Smaller arrows on mobile */
	.cphs-arrow {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}

	.cphs-arrow--prev { left: 6px; }
	.cphs-arrow--next { right: 6px; }

	/* Bottom bar stacks on mobile */
	.cphs-bottom-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.cphs-bottom-btn {
		width: 100%;
		justify-content: center;
	}
}
