/* =========================================================
   Cialda Hero Slider – stili
   Ngjyrat, fontet dhe lartësia ndryshohen nga Elementor
   (Style → Ngjyrat / Tipografia, Content → Cilësimet).
   ========================================================= */

.cl-hs {
	--cl-bg: #F5F1EB;
	--cl-brown: #956A3E;
	--cl-brown-dk: #7A552F;
	--cl-text: #2A2620;
	--cl-line: #D9CFC2;
	--cl-max: 1240px;
	--cl-height: 82vh;
	--cl-delay: 6000ms;
	--cl-side: max(16px, calc((100vw - var(--cl-max)) / 2));
	--cl-font-title: "Bodoni Moda", Georgia, serif;
	--cl-font-body: "Jost", Arial, sans-serif;

	position: relative;
	display: grid;
	overflow: hidden;
	background: var(--cl-bg);
	color: var(--cl-text);
	outline: none;
}

/* ---------- Slide ---------- */
.cl-hs__slide {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
	min-height: var(--cl-height);
	padding: 60px 0 60px var(--cl-side);
	background: var(--cl-bg);
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity .6s ease, visibility 0s linear .6s;
}
.cl-hs__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transition: opacity .6s ease;
}

/* ---------- Teksti ---------- */
.cl-hs__content {
	flex: 0 0 42%;
	max-width: 42%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding-bottom: 70px;
}
.cl-hs__eyebrow {
	margin: 0;
	font-family: var(--cl-font-body);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--cl-brown);
}
.cl-hs__heading {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: inherit;
	line-height: 1;
}
.cl-hs__kicker {
	display: block;
	font-family: var(--cl-font-body);
	font-size: clamp(32px, 3.6vw, 54px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cl-brown);
}
.cl-hs__title {
	display: block;
	font-family: var(--cl-font-title);
	font-size: clamp(44px, 5.4vw, 84px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cl-brown);
}
.cl-hs__text {
	margin: 6px 0 0;
	max-width: 46ch;
	font-family: var(--cl-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--cl-text);
}

/* ---------- Butonat ---------- */
.cl-hs__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 48px;
	margin-top: 22px;
}
.cl-hs__btn,
.cl-hs__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--cl-font-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.cl-hs .cl-hs__btn {
	padding: 18px 40px;
	background: var(--cl-brown);
	color: #fff;
}
.cl-hs .cl-hs__btn:hover,
.cl-hs .cl-hs__btn:focus-visible {
	background: var(--cl-brown-dk);
	color: #fff;
	transform: translateY(-2px);
}
.cl-hs .cl-hs__link {
	padding: 0 0 14px;
	color: var(--cl-brown);
	border-bottom: 1px solid var(--cl-brown);
}
.cl-hs .cl-hs__link:hover,
.cl-hs .cl-hs__link:focus-visible {
	color: var(--cl-text);
	border-color: var(--cl-text);
}
.cl-hs__arrow { transition: transform .3s; }
.cl-hs__btn:hover .cl-hs__arrow,
.cl-hs__link:hover .cl-hs__arrow { transform: translateX(5px); }
.cl-hs__btn:focus-visible,
.cl-hs__link:focus-visible { outline: 2px solid var(--cl-brown); outline-offset: 4px; }

/* ---------- Foto ---------- */
.cl-hs__media {
	flex: 1 1 auto;
	align-self: stretch;
	min-height: 420px;
	background-color: #E2D8CC;
	background-size: cover;
	background-position: center;
}

/* ---------- Navigimi ---------- */
.cl-hs__nav {
	position: absolute;
	z-index: 5;
	left: var(--cl-side);
	bottom: 44px;
	display: flex;
	align-items: center;
	gap: 18px;
	font-family: var(--cl-font-body);
	color: var(--cl-text);
}
.cl-hs__nav button {
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	display: grid;
	place-items: center;
	background: transparent;
	border: 1px solid var(--cl-line);
	border-radius: 50%;
	cursor: pointer;
	color: var(--cl-brown);
	font-size: 18px;
	line-height: 1;
	transition: background .3s, color .3s, border-color .3s;
}
.cl-hs__nav button:hover {
	background: var(--cl-brown);
	border-color: var(--cl-brown);
	color: #fff;
}
.cl-hs__nav button:focus-visible { outline: 2px solid var(--cl-brown); outline-offset: 3px; }
.cl-hs__count {
	min-width: 64px;
	text-align: center;
	font-size: 13px;
	letter-spacing: .2em;
}
.cl-hs__count b { font-weight: 500; color: var(--cl-brown); }
.cl-hs__progress {
	position: relative;
	width: 120px;
	height: 1px;
	overflow: hidden;
	background: var(--cl-line);
}
.cl-hs__progress i {
	position: absolute;
	inset: 0;
	background: var(--cl-brown);
	transform: scaleX(0);
	transform-origin: left;
}
.cl-hs__progress i.is-running { animation: cl-hs-progress var(--cl-delay) linear forwards; }
.cl-hs.is-paused .cl-hs__progress i.is-running { animation-play-state: paused; }
@keyframes cl-hs-progress { to { transform: scaleX(1); } }

/* ---------- Animacionet ---------- */
.cl-hs.is-ready .cl-hs__slide.is-active .cl-hs__media {
	animation: cl-hs-curtain 1.2s cubic-bezier(.77, 0, .18, 1) both;
}
.cl-hs.is-ready .cl-hs__slide.is-active .cl-hs__content > * {
	animation: cl-hs-rise .9s cubic-bezier(.22, 1, .36, 1) both;
}
.cl-hs.is-ready .cl-hs__slide.is-active .cl-hs__content > *:nth-child(1) { animation-delay: .25s; }
.cl-hs.is-ready .cl-hs__slide.is-active .cl-hs__content > *:nth-child(2) { animation-delay: .35s; }
.cl-hs.is-ready .cl-hs__slide.is-active .cl-hs__content > *:nth-child(3) { animation-delay: .45s; }
.cl-hs.is-ready .cl-hs__slide.is-active .cl-hs__content > *:nth-child(4) { animation-delay: .55s; }
@keyframes cl-hs-curtain { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes cl-hs-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Tablet & Mobile ---------- */
@media (max-width: 1024px) {
	.cl-hs__slide {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 32px;
		min-height: 0;
		padding: 0 0 40px;
	}
	.cl-hs__media {
		flex: 0 0 auto;
		min-height: var(--cl-height);
	}
	.cl-hs__content {
		flex: 0 0 auto;
		max-width: none;
		padding: 0 16px 80px;
	}
	.cl-hs__nav { left: 16px; bottom: 32px; }
}
@media (max-width: 767px) {
	.cl-hs__kicker { font-size: 28px; }
	.cl-hs__title { font-size: 34px; letter-spacing: .08em; }
	.cl-hs__buttons { gap: 18px 28px; }
	.cl-hs__btn, .cl-hs__link { font-size: 15px; }
	.cl-hs .cl-hs__btn { padding: 16px 30px; }
	.cl-hs__progress { width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
	.cl-hs.is-ready .cl-hs__slide.is-active .cl-hs__media,
	.cl-hs.is-ready .cl-hs__slide.is-active .cl-hs__content > * { animation: none; }
}
