/**
 * ThryonLab Slider — matches hero-slider BEM markup (background + overlay + inner layout).
 * Block: hero-slider
 */

/* -------------------------------------------------------------------------
   Block
------------------------------------------------------------------------- */
.hero-slider {
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.hero-slider--layout-fullwidth {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.hero-slider--layout-contained {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* -------------------------------------------------------------------------
   Carousel (Slick root)
------------------------------------------------------------------------- */
.hero-slider__carousel {
	width: 100%;
	margin: 0;
	position: relative;
}

.hero-slider__carousel .slick-slide {
	margin-left: 0;
	margin-right: 0;
	display: flex !important;
	height: auto !important;
}

/*
 * Fixed hero (single column): Slick’s slide wrapper must adopt --hero-slider-height.
 * Otherwise height:auto on .slick-slide wins and the slide ignores the setting.
 */
.hero-slider--height-fixed:not(.hero-slider--multi)
	.hero-slider__carousel
	.slick-slide {
	height: var(--hero-slider-height, 500px) !important;
	min-height: 0;
	align-self: stretch;
	box-sizing: border-box;
}

.hero-slider--height-fixed:not(.hero-slider--multi)
	.hero-slider__carousel
	.slick-slide
	> div {
	height: 100%;
	min-height: 0;
	box-sizing: border-box;
}

.hero-slider__carousel .slick-track {
	display: flex !important;
	align-items: stretch !important;
}

/* -------------------------------------------------------------------------
   Slide shell (direct child of slick slide before Slick wraps — same level post-init)
------------------------------------------------------------------------- */
.hero-slider__slide {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	text-align: center;
}

.hero-slider--height-fixed .hero-slider__slide {
	height: var(--hero-slider-height, 500px);
	min-height: 0;
}

.hero-slider--height-auto .hero-slider__slide {
	height: auto;
	min-height: clamp(260px, 45vw, 620px);
}

/* Background layer */
.hero-slider__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* Tint between photo and copy */
.hero-slider__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.2) 45%,
		rgba(0, 0, 0, 0.05) 100%
	);
}

/* -------------------------------------------------------------------------
   Inner / Bootstrap container / content row
------------------------------------------------------------------------- */
.hero-slider__inner {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	align-items: flex-end;
	width: 100%;
	min-height: 0;
	padding: 30px 0 36px;
	box-sizing: border-box;
	pointer-events: none;
}

.hero-slider__inner .container {
	pointer-events: auto;
	width: 100%;
}

.hero-slider__content {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 28px;
	width: 100%;
	box-sizing: border-box;
}

.hero-slider__copy {
	flex: 1 1 280px;
	max-width: 100%;
	margin: 0;
	padding: 12px 18px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	box-sizing: border-box;
	text-align: inherit;
}

.hero-slider--content-plain:not(.hero-slider--multi) .hero-slider__copy {
	background: transparent;
}

.hero-slider--content-plain:not(.hero-slider--multi) .hero-slider__title,
.hero-slider--content-plain:not(.hero-slider--multi) .hero-slider__text,
.hero-slider--content-plain:not(.hero-slider--multi) .hero-slider__eyebrow {
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.hero-slider__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

.hero-slider__text p {
	margin: 0 0 0.65em;
}

.hero-slider__text p:last-child {
	margin-bottom: 0;
}

.hero-slider__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	flex: 0 1 auto;
}

/* -------------------------------------------------------------------------
   Alignment & width modifiers (copy column + actions row)
------------------------------------------------------------------------- */
.hero-slider--align-left .hero-slider__copy {
	text-align: left;
	margin-right: auto;
	margin-left: 0;
}

.hero-slider--align-center .hero-slider__copy {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.hero-slider--align-right .hero-slider__copy {
	text-align: right;
	margin-left: auto;
	margin-right: 0;
}

.hero-slider--align-left .hero-slider__actions {
	justify-content: flex-start;
}

.hero-slider--align-center .hero-slider__actions {
	justify-content: center;
}

.hero-slider--align-right .hero-slider__actions {
	justify-content: flex-end;
}

.hero-slider--width-short .hero-slider__copy {
	flex-basis: 25%;
	max-width: 25%;
}

.hero-slider--width-medium .hero-slider__copy {
	flex-basis: 50%;
	max-width: 50%;
}

.hero-slider--width-large .hero-slider__copy {
	flex-basis: 75%;
	max-width: 75%;
}

@media (max-width: 767px) {
	.hero-slider--width-short .hero-slider__copy,
	.hero-slider--width-medium .hero-slider__copy,
	.hero-slider--width-large .hero-slider__copy {
		flex-basis: 100%;
		max-width: 100%;
	}

	.hero-slider__content {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-slider__actions {
		justify-content: flex-start;
		width: 100%;
	}
}

/* -------------------------------------------------------------------------
   Buttons
------------------------------------------------------------------------- */
.hero-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 4px;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	border: 2px solid transparent;
	box-sizing: border-box;
}

.hero-slider__btn--primary {
	background: #fff;
	color: #111 !important;
	border-color: #fff;
}

.hero-slider__btn--primary:hover {
	background: rgba(255, 255, 255, 0.88);
	color: #111 !important;
}

.hero-slider__btn--accent {
	background: transparent;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.85);
}

.hero-slider__btn--accent:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
}

/* -------------------------------------------------------------------------
   Slick arrows
------------------------------------------------------------------------- */
.hero-slider__carousel .slick-prev,
.hero-slider__carousel .slick-next {
	font-size: 0;
	line-height: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background 0.3s ease;
}

.hero-slider__carousel .slick-prev:hover,
.hero-slider__carousel .slick-next:hover {
	background: rgba(0, 0, 0, 0.7);
}

.hero-slider--layout-fullwidth .hero-slider__carousel .slick-prev {
	left: 30px !important;
}

.hero-slider--layout-fullwidth .hero-slider__carousel .slick-next {
	right: 30px !important;
}

.hero-slider--arrows-inside .hero-slider__carousel .slick-prev {
	left: 20px;
}

.hero-slider--arrows-inside .hero-slider__carousel .slick-next {
	right: 20px;
}

/* -------------------------------------------------------------------------
   Dots
------------------------------------------------------------------------- */
.hero-slider__carousel .slick-dots {
	position: absolute;
	bottom: -50px;
	left: 50%;
	transform: translateX(-50%);
	display: flex !important;
	justify-content: center;
	list-style: none;
	gap: 8px;
	z-index: 10;
}

.hero-slider--layout-fullwidth .hero-slider__carousel .slick-dots {
	bottom: 25px;
}

.hero-slider__carousel .slick-dots li button {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	border: none;
	cursor: pointer;
	transition: background 0.3s ease;
}

.hero-slider__carousel .slick-dots li.slick-active button {
	background: rgba(255, 255, 255, 1);
}

/* -------------------------------------------------------------------------
   Multi-slide cards
------------------------------------------------------------------------- */
.hero-slider--multi .hero-slider__slide {
	background: #fff;
	padding: 10px;
	text-align: center;
	align-items: center;
}

.hero-slider--multi .hero-slider__bg {
	position: relative;
	inset: auto;
	width: 100%;
	min-height: 160px;
	flex: 0 0 auto;
}

.hero-slider--multi .hero-slider__overlay {
	display: none;
}

.hero-slider--multi.hero-slider--height-fixed .hero-slider__bg {
	min-height: 0;
	height: var(--hero-slider-height, 240px);
}

.hero-slider--multi.hero-slider--height-auto .hero-slider__bg {
	height: auto;
	min-height: 180px;
	aspect-ratio: 16 / 9;
}

.hero-slider--multi .hero-slider__inner {
	flex: none;
	position: static;
	padding: 10px 0 6px;
	align-items: stretch;
}

.hero-slider--multi .hero-slider__content {
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.hero-slider--multi .hero-slider__copy {
	background: none !important;
	width: 100% !important;
	max-width: 100% !important;
	flex-basis: auto !important;
	padding: 0 10px;
	color: #222;
}

.hero-slider--multi .hero-slider__eyebrow {
	color: #888;
	font-size: 0.7rem;
	opacity: 1;
}

.hero-slider--multi .hero-slider__title {
	color: #222;
	font-size: 1.1rem;
}

.hero-slider--multi .hero-slider__text {
	color: #555;
	font-size: 0.9rem;
}

.hero-slider--multi .hero-slider__actions {
	justify-content: center;
	width: 100%;
	margin-top: 4px;
}

.hero-slider--multi .hero-slider__btn--primary {
	background: #222;
	color: #fff !important;
	border-color: #222;
}

.hero-slider--multi .hero-slider__btn--primary:hover {
	background: #444;
	border-color: #444;
	color: #fff !important;
}

.hero-slider--multi .hero-slider__btn--accent {
	background: transparent;
	color: #222 !important;
	border-color: #222;
}

.hero-slider--multi .hero-slider__btn--accent:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #222 !important;
}
