/*! Caspersight Hero Slider 1.0.2 */
/* All look-and-feel values come from CSS custom properties. Hero Slider > Styling prints them
   on .cs-hero in an inline style right after this file (followed by your Custom CSS), so
   a rule like  .cs-hero { --cs-hero-btn-bg: red; }  in Custom CSS overrides a setting.
   Device suffixes: -d desktop (>1024px), -t tablet (768-1024), -pl large phone (481-767),
   -p phone (<=480; for box background / max width / arrows / valign: all phones <=767).
   --cs-hero-h / -h-t / -h-m      slider heights (inline on each slider, from Settings/shortcode)
   --cs-hero-heading-font, --cs-hero-text-font (button uses the heading font)
   --cs-hero-hs-*, --cs-hero-ds-*  heading / description font size
   --cs-hero-heading-color, --cs-hero-desc-color
   --cs-hero-va-d/-t/-p           text box vertical position (flex-start|center|flex-end)
   --cs-hero-box-bg-d/-t/-p, --cs-hero-box-radius, --cs-hero-box-shadow
   --cs-hero-bp-d/-t/-pl/-p       text box padding;  --cs-hero-bmw-d/-t/-p  text box max width
   --cs-hero-btn-bg/-text/-border/-hover-bg/-hover-image/-hover-text/-size/-pad/-radius
   --cs-hero-outline-color/-hover-bg/-hover-text
   --cs-hero-arrow-color, --cs-hero-as-d/-t/-p (arrow size), --cs-hero-dot-color, --cs-hero-dot-active
   Fallback values below = measured values of the original Elementor Slides hero.            */

/* ---------- Isolation: neutralise common theme styles inside the slider ---------- */
.cs-hero,
.cs-hero *,
.cs-hero *::before,
.cs-hero *::after { box-sizing: border-box; }

.cs-hero {
	--cs-hero-accent: #FFDF00;
	--cs-hero-accent-dark: #E0C400;
	--cs-hero-_hs: var(--cs-hero-hs-d, 77px);
	--cs-hero-_ds: var(--cs-hero-ds-d, 18px);
	--cs-hero-_va: var(--cs-hero-va-d, center);
	--cs-hero-_hlh: 1;
	--cs-hero-_dlh: 1.4;
	--cs-hero-_hmb: 30px;
	--cs-hero-_bbg: var(--cs-hero-box-bg-d, rgba(0, 0, 0, .42));
	--cs-hero-_bp: var(--cs-hero-bp-d, 28px 32px 32px);
	--cs-hero-_bmw: var(--cs-hero-bmw-d, 560px);
	--cs-hero-_as: var(--cs-hero-as-d, 38px);
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	height: var(--cs-hero-h, 520px);
	margin: 0;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	background: #0d0d0d;
	color: #fff;
	text-align: left;
	line-height: 1.4;
	direction: ltr;
	-webkit-tap-highlight-color: transparent;
}

.cs-hero .cs-hero__viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
	touch-action: pan-y;
}

.cs-hero .cs-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.cs-hero .cs-hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

/* Fade (default) */
.cs-hero--fade .cs-hero__slide {
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: opacity var(--cs-hero-speed, 600ms) ease, visibility 0s linear var(--cs-hero-speed, 600ms);
}
.cs-hero--fade .cs-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--cs-hero-speed, 600ms) ease, visibility 0s;
}

/* Slide */
.cs-hero--slide .cs-hero__track {
	display: flex;
	transform: translate3d(0, 0, 0);
	transition: transform var(--cs-hero-speed, 600ms) cubic-bezier(.25, .8, .25, 1);
	will-change: transform;
}
.cs-hero--slide .cs-hero__slide {
	position: relative;
	inset: auto;
	flex: 0 0 100%;
}

/* ---------- Media ---------- */
.cs-hero .cs-hero__media {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0;
	padding: 0;
}
.cs-hero .cs-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center center;
}

/* ---------- Text box (matches live Elementor Slides custom CSS) ---------- */
.cs-hero .cs-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: var(--cs-hero-_va);
	justify-content: flex-start;
	height: 100%;
	margin: 0;
	padding: 50px 8%;
}
.cs-hero .cs-hero__box {
	max-width: var(--cs-hero-_bmw);
	margin: 0;
	padding: var(--cs-hero-_bp);
	border-radius: var(--cs-hero-box-radius, 12px);
	background: var(--cs-hero-_bbg);
	box-shadow: var(--cs-hero-box-shadow, 0 8px 28px rgba(0, 0, 0, .28));
	color: #fff;
	text-align: left;
}
.cs-hero .cs-hero__heading {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cs-hero-heading-color, #fff);
	font-family: var(--cs-hero-heading-font, inherit);
	font-size: var(--cs-hero-heading-size, var(--cs-hero-_hs));
	font-style: normal;
	font-weight: 700;
	line-height: var(--cs-hero-_hlh);
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	overflow-wrap: break-word;
}
.cs-hero .cs-hero__desc {
	margin: 0;
	padding: 0;
	color: var(--cs-hero-desc-color, #B4B4B4);
	font-family: var(--cs-hero-text-font, inherit);
	font-size: var(--cs-hero-desc-size, var(--cs-hero-_ds));
	font-weight: 400;
	line-height: var(--cs-hero-_dlh);
	letter-spacing: normal;
	overflow-wrap: break-word;
}
.cs-hero .cs-hero__heading:not(:last-child) { margin-bottom: var(--cs-hero-_hmb); }
.cs-hero .cs-hero__desc:not(:last-child) { margin-bottom: 30px; }

.cs-hero .cs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
}

/* Buttons – Primary matches the live slide button */
.cs-hero .cs-hero__btn {
	display: inline-block;
	margin: 0;
	padding: var(--cs-hero-btn-pad, 12px 24px);
	border: 2px solid var(--cs-hero-btn-border, #2A2A2A);
	border-radius: var(--cs-hero-btn-radius, 3px);
	background: var(--cs-hero-btn-bg, var(--cs-hero-accent));
	box-shadow: none;
	color: var(--cs-hero-btn-text, #000);
	font-family: var(--cs-hero-heading-font, inherit);
	font-size: var(--cs-hero-btn-size, 22px);
	font-weight: 100;
	line-height: 1;
	letter-spacing: 2.9px;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: all .3s;
}
.cs-hero .cs-hero__btn:hover,
.cs-hero .cs-hero__btn:focus {
	background-color: var(--cs-hero-btn-hover-bg, transparent);
	background-image: var(--cs-hero-btn-hover-image, linear-gradient(180deg, var(--cs-hero-accent) 0%, var(--cs-hero-accent-dark) 100%));
	border-color: var(--cs-hero-btn-border, #2A2A2A);
	color: var(--cs-hero-btn-hover-text, #000);
	text-decoration: none;
}
.cs-hero .cs-hero__btn--outline {
	border-color: var(--cs-hero-outline-color, #fff);
	background: transparent;
	color: var(--cs-hero-outline-color, #fff);
}
.cs-hero .cs-hero__btn--outline:hover,
.cs-hero .cs-hero__btn--outline:focus {
	border-color: var(--cs-hero-outline-hover-bg, #fff);
	background: var(--cs-hero-outline-hover-bg, #fff);
	background-image: none;
	color: var(--cs-hero-outline-hover-text, #000);
}
.cs-hero .cs-hero__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---------- Controls ---------- */
.cs-hero .cs-hero__arrow,
.cs-hero .cs-hero__dot,
.cs-hero .cs-hero__toggle {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	min-width: 0;
	min-height: 0;
	color: var(--cs-hero-arrow-color, #fff);
	font: inherit;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}
.cs-hero .cs-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 58px;
	transform: translateY(-50%);
	font-size: var(--cs-hero-_as);
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
	opacity: .95;
	transition: opacity .2s;
}
.cs-hero .cs-hero__arrow svg { display: block; width: 1em; height: 1em; fill: currentColor; pointer-events: none; }
.cs-hero .cs-hero__arrow--prev { left: 10px; }
.cs-hero .cs-hero__arrow--next { right: 10px; }
.cs-hero .cs-hero__arrow--next svg { transform: scaleX(-1); }
.cs-hero .cs-hero__arrow:hover,
.cs-hero .cs-hero__arrow:focus { background: none; color: var(--cs-hero-arrow-color, #fff); opacity: .75; }

.cs-hero .cs-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 8px;
	z-index: 3;
	display: flex;
	transform: translateX(-50%);
	margin: 0;
	padding: 0;
}
.cs-hero .cs-hero__dot {
	position: relative;
	width: 17px;  /* 11px dot + 3px gap each side (live: 11px dots, 3px gap) */
	height: 24px;
}
.cs-hero .cs-hero__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 11px;
	margin: -5.5px 0 0 -5.5px;
	border-radius: 50%;
	background: var(--cs-hero-dot-color, #fff);
	transition: background-color .2s;
}
.cs-hero .cs-hero__dot:hover,
.cs-hero .cs-hero__dot:focus { background: none; }
.cs-hero .cs-hero__dot.is-active::before { background: var(--cs-hero-dot-active, var(--cs-hero-accent)); }

.cs-hero .cs-hero__arrow:focus-visible,
.cs-hero .cs-hero__dot:focus-visible,
.cs-hero .cs-hero__toggle:focus-visible { outline: 2px solid var(--cs-hero-accent); outline-offset: 2px; opacity: 1; }

/* Pause/play: visually hidden until keyboard focus (hover already pauses). */
.cs-hero .cs-hero__toggle {
	position: absolute;
	left: 12px;
	bottom: 10px;
	z-index: 4;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
	clip-path: inset(50%);
}
.cs-hero .cs-hero__toggle:focus-visible { clip-path: none; background: rgba(0, 0, 0, .6); }
.cs-hero .cs-hero__toggle-icon {
	display: block;
	width: 10px;
	height: 12px;
	margin: 0 auto;
	border-left: 3px solid #fff;
	border-right: 3px solid #fff;
}
.cs-hero.is-paused-user .cs-hero__toggle-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
	margin-left: 12px;
}

.cs-hero .cs-hero__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Tablet (768–1024): original uses desktop sizes, narrower box ---------- */
@media (max-width: 1024px) {
	.cs-hero {
		--cs-hero-_hs: var(--cs-hero-hs-t, 77px);
		--cs-hero-_ds: var(--cs-hero-ds-t, 18px);
		--cs-hero-_va: var(--cs-hero-va-t, center);
		--cs-hero-_bbg: var(--cs-hero-box-bg-t, rgba(0, 0, 0, .42));
		--cs-hero-_bp: var(--cs-hero-bp-t, 22px 24px);
		--cs-hero-_bmw: var(--cs-hero-bmw-t, 480px);
		--cs-hero-_as: var(--cs-hero-as-t, 32px);
		height: var(--cs-hero-h-t, var(--cs-hero-h, 520px));
	}
	.cs-hero .cs-hero__inner { padding: 50px 6%; }
	.cs-hero .cs-hero__arrow { width: 40px; }
	.cs-hero .cs-hero__arrow--prev { left: 4px; }
	.cs-hero .cs-hero__arrow--next { right: 4px; }
}

/* ---------- Phones (<=767) ---------- */
@media (max-width: 767px) {
	.cs-hero {
		--cs-hero-_hs: var(--cs-hero-hs-pl, 28px);
		--cs-hero-_ds: var(--cs-hero-ds-pl, 14px);
		--cs-hero-_va: var(--cs-hero-va-p, center);
		--cs-hero-_hlh: 1.15;
		--cs-hero-_dlh: 1.4;
		--cs-hero-_hmb: 8px;
		--cs-hero-_bbg: var(--cs-hero-box-bg-p, rgba(0, 0, 0, .52));
		--cs-hero-_bp: var(--cs-hero-bp-pl, 16px 18px);
		--cs-hero-_bmw: var(--cs-hero-bmw-p, 100%);
		--cs-hero-_as: var(--cs-hero-as-p, 25px);
		height: var(--cs-hero-h-m, var(--cs-hero-h, 520px));
	}
	.cs-hero .cs-hero__inner { padding: 30px 20px; }
	.cs-hero .cs-hero__heading,
	.cs-hero .cs-hero__desc { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
	.cs-hero .cs-hero__actions { gap: 10px; }
	/* Default: arrows sit in the bottom corners so they never cover the text. */
	.cs-hero .cs-hero__arrow {
		top: auto;
		bottom: 0;
		transform: none;
		width: 44px;
		height: 40px;
	}
	/* Styling > Phone arrow position = "Middle of the sides" (like the original Elementor slider). */
	.cs-hero.cs-hero--phone-arrows-middle .cs-hero__arrow {
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
		height: 58px;
	}
}

/* ---------- Small phones (<=480): original uses a bigger heading here ---------- */
@media (max-width: 480px) {
	.cs-hero {
		--cs-hero-_hs: var(--cs-hero-hs-p, 56px);
		--cs-hero-_ds: var(--cs-hero-ds-p, 16px);
		--cs-hero-_dlh: 1.35;
		--cs-hero-_bp: var(--cs-hero-bp-p, 14px 16px);
	}
	.cs-hero .cs-hero__inner { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.cs-hero--fade .cs-hero__slide,
	.cs-hero--fade .cs-hero__slide.is-active,
	.cs-hero--slide .cs-hero__track,
	.cs-hero .cs-hero__btn { transition: none; }
}
