/**
 * One carousel system for every slider on the site:
 * native horizontal scroll + scroll-snap, arrows/dots enhanced by carousel.js.
 */

.hs-carousel {
	position: relative;
}

.hs-carousel__track,
.hs-hero__track {
	display: flex;
	gap: var(--hs-card-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hs-carousel__track::-webkit-scrollbar,
.hs-hero__track::-webkit-scrollbar {
	display: none;
}

.hs-carousel__track > *,
.hs-hero__track > * {
	flex: none;
	scroll-snap-align: start;
}

/* Arrows: dark forest discs (white on the hero). */
.hs-carousel__arrow {
	position: absolute;
	z-index: 3;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--k-forest-dark);
	color: var(--k-white);
	box-shadow: 0 3px 10px rgba(26, 41, 34, 0.25);
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.hs-carousel__arrow:hover,
.hs-carousel__arrow:focus-visible {
	background: var(--k-forest);
}

.hs-carousel__arrow svg {
	width: 20px;
	height: 20px;
	display: block;
}

.hs-carousel__arrow.is-disabled {
	opacity: 0;
	pointer-events: none;
}

.hs-carousel > .hs-carousel__arrow {
	top: 50%;
	transform: translateY(-50%);
}

.hs-carousel > .hs-carousel__arrow--prev {
	inset-inline-start: -20px;
}

.hs-carousel > .hs-carousel__arrow--next {
	inset-inline-end: -20px;
}

/* ---------- Hero (contained, rounded: the main visual event of the page) ---------- */

.hs-hero {
	position: relative;
	margin: 14px 0 0;
	background: var(--k-forest-dark);
	border-radius: var(--hs-radius-lg);
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 10px 30px rgba(31, 48, 40, 0.12);
}

.hs-hero__track {
	gap: 0;
}

.hs-hero__slide {
	position: relative;
	width: 100%;
	height: clamp(380px, 33vw, 520px);
	overflow: hidden;
}

.hs-hero__media,
.hs-hero__media picture {
	position: absolute;
	inset: 0;
	display: block;
}

.hs-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Warm dark wash on the text side (inline-start), as in the reference. */
.hs-hero__slide.has-copy .hs-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgba(26, 22, 16, 0.62) 0%, rgba(26, 22, 16, 0.38) 34%, rgba(26, 22, 16, 0) 62%);
}

/* LTR: the photos are brighter on the left (windows), so the wash is a little deeper. */
[dir="ltr"] .hs-hero__slide.has-copy .hs-hero__media::after {
	background: linear-gradient(to right, rgba(26, 22, 16, 0.74) 0%, rgba(26, 22, 16, 0.5) 36%, rgba(26, 22, 16, 0) 66%);
}

.hs-hero__cover {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hs-hero__content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.hs-hero__copy {
	max-width: 560px;
	padding-inline: 48px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	color: var(--k-white);
	pointer-events: auto;
}

.hs-hero__title {
	font-size: clamp(32px, 3.4vw, 52px);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hs-hero__text {
	font-size: clamp(16px, 1.45vw, 21px);
	font-weight: 500;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.94);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hs-hero__btn {
	margin-top: 10px;
	min-height: 46px;
	padding-inline: 30px;
	font-size: 16px;
	font-weight: 600;
}

.hs-hero > .hs-carousel__arrow {
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--k-forest-dark);
}

.hs-hero > .hs-carousel__arrow:hover,
.hs-hero > .hs-carousel__arrow:focus-visible {
	background: var(--k-white);
	color: var(--k-forest);
}

.hs-hero > .hs-carousel__arrow--prev {
	inset-inline-start: 22px;
}

.hs-hero > .hs-carousel__arrow--next {
	inset-inline-end: 22px;
}

.hs-hero__dots {
	position: absolute;
	z-index: 3;
	inset-inline: 0;
	bottom: 18px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.hs-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	pointer-events: auto;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.hs-dot[aria-current="true"] {
	background: var(--k-white);
	transform: scale(1.15);
}
