/* CanPak Hero Slider - har rule .cphs ke andar hai, header ya baqi site ko nahi chhedta */
.cphs {
	--cphs-accent: #f2a541;
	--cphs-ink: #07121d;
	--cphs-int: 6000ms;
	--cphs-h: clamp(480px, 80vh, 780px);
	position: relative;
	display: block;
	width: 100%;
	height: var(--cphs-h);
	overflow: hidden;
	isolation: isolate;
	background: var(--cphs-ink);
	color: #fff;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
.cphs *,
.cphs *::before,
.cphs *::after { box-sizing: border-box; }

.cphs .cphs__viewport { position: absolute; inset: 0; }

/* ---------- slides (fade) ---------- */
.cphs .cphs__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}
.cphs .cphs__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity 1s ease;
}

/* ---------- background with slow zoom (Ken Burns) ---------- */
.cphs .cphs__bg { position: absolute; inset: 0; overflow: hidden; }
.cphs .cphs__bg img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
	transform: scale(1.14);
	transition: transform 8s ease-out;
}
.cphs .cphs__slide.is-active .cphs__bg img { transform: scale(1); }

.cphs .cphs__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 18, 29, .88) 0%, rgba(7, 18, 29, .6) 42%, rgba(7, 18, 29, .1) 100%),
		linear-gradient(0deg, rgba(7, 18, 29, .85) 0%, rgba(7, 18, 29, 0) 38%);
}

/* ---------- text block ---------- */
.cphs .cphs__content {
	position: absolute;
	left: 0;
	right: 0;
	top: 44%;
	transform: translateY(-50%);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	z-index: 2;
}
.cphs .cphs__eyebrow,
.cphs .cphs__title,
.cphs .cphs__text,
.cphs .cphs__btn {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.cphs .cphs__slide.is-active .cphs__eyebrow { opacity: 1; transform: none; transition-delay: .35s; }
.cphs .cphs__slide.is-active .cphs__title   { opacity: 1; transform: none; transition-delay: .5s; }
.cphs .cphs__slide.is-active .cphs__text    { opacity: 1; transform: none; transition-delay: .65s; }
.cphs .cphs__slide.is-active .cphs__btn     { opacity: 1; transform: none; transition-delay: .8s; }

.cphs .cphs__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--cphs-accent);
}
.cphs .cphs__eyebrow::before {
	content: "";
	width: 40px;
	height: 2px;
	background: var(--cphs-accent);
}
.cphs .cphs__title {
	max-width: 760px;
	margin: 0 0 18px;
	padding: 0;
	font-size: clamp(30px, 4.6vw, 58px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.01em;
	text-transform: none;
	color: #fff;
}
.cphs .cphs__text {
	max-width: 560px;
	margin: 0 0 32px;
	padding: 0;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
}
.cphs a.cphs__btn,
.cphs a.cphs__btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	border: 0;
	border-radius: 2px;
	background: var(--cphs-accent);
	color: var(--cphs-ink);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
}
.cphs a.cphs__btn:hover,
.cphs a.cphs__btn:focus-visible {
	background: #fff;
	color: var(--cphs-ink);
	text-decoration: none;
}
.cphs .cphs__arrow { display: inline-block; transition: transform .25s ease; }
.cphs a.cphs__btn:hover .cphs__arrow { transform: translateX(4px); }

/* ---------- bottom navigation (clickable tabs + progress bar) ---------- */
.cphs .cphs__nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px 26px;
}
.cphs button.cphs__tab,
.cphs button.cphs__tab:hover,
.cphs button.cphs__tab:focus {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	margin: 0;
	padding: 18px 16px 0 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, .28);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: rgba(255, 255, 255, .6);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: color .3s ease;
}
.cphs button.cphs__tab:hover,
.cphs button.cphs__tab.is-active { color: #fff; }
.cphs button.cphs__tab:focus-visible { outline: 2px solid var(--cphs-accent); outline-offset: 4px; }

.cphs .cphs__bar {
	position: absolute;
	top: -2px;
	left: 0;
	right: 0;
	height: 3px;
	overflow: hidden;
}
.cphs .cphs__bar i {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--cphs-accent);
	transform: scaleX(0);
	transform-origin: left center;
}
.cphs button.cphs__tab.is-done .cphs__bar i { transform: scaleX(1); opacity: .35; }
.cphs button.cphs__tab.is-active .cphs__bar i { animation: cphs-fill var(--cphs-int) linear forwards; }
.cphs.is-paused button.cphs__tab.is-active .cphs__bar i { animation-play-state: paused; }
@keyframes cphs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.cphs .cphs__num { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--cphs-accent); }
.cphs .cphs__label { font-size: 15px; font-weight: 600; line-height: 1.3; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 900px) {
	.cphs { --cphs-h: clamp(460px, 78vh, 640px); }
	.cphs .cphs__content { padding: 0 22px; top: 42%; }
	.cphs .cphs__label { font-size: 13px; }
	.cphs .cphs__nav { padding: 0 22px 20px; }
}
@media (max-width: 640px) {
	.cphs .cphs__shade {
		background: linear-gradient(0deg, rgba(7, 18, 29, .92) 0%, rgba(7, 18, 29, .55) 55%, rgba(7, 18, 29, .3) 100%);
	}
	.cphs .cphs__content { top: auto; bottom: 64px; transform: none; }
	.cphs .cphs__text { margin-bottom: 24px; }
	.cphs .cphs__nav { display: flex; justify-content: center; gap: 8px; padding: 0 22px 22px; }
	.cphs button.cphs__tab,
	.cphs button.cphs__tab:hover,
	.cphs button.cphs__tab:focus { width: 34px; padding: 0; height: 14px; border-top: 0; }
	.cphs .cphs__bar { top: 5px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
	.cphs .cphs__num,
	.cphs .cphs__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cphs .cphs__slide,
	.cphs .cphs__bg img,
	.cphs .cphs__eyebrow,
	.cphs .cphs__title,
	.cphs .cphs__text,
	.cphs .cphs__btn { transition: none; }
	.cphs .cphs__bg img { transform: none; }
}
