/**
 * Hero Banner Carousel (CR-018) — front-end.
 * Slide/fade, dots, setas, zoom no hover, overlay, alturas por breakpoint,
 * radius/sombra. Dirigido por variáveis inline (--rlst-hc-*).
 */

.rlst-hc {
	--rlst-hc-h: 600px;
	--rlst-hc-h-tablet: 420px;
	--rlst-hc-h-mobile: 320px;
	--rlst-hc-radius: 0px;
	--rlst-hc-shadow: none;
	--rlst-hc-speed: 500ms;
	--rlst-hc-maxw: none;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.rlst-hc * {
	box-sizing: border-box;
}

/* Layout */
.rlst-hc--layout-container,
.rlst-hc--layout-custom {
	max-width: var(--rlst-hc-maxw);
	margin-left: auto;
	margin-right: auto;
}

.rlst-hc__viewport {
	position: relative;
	height: var(--rlst-hc-h);
	overflow: hidden;
	border-radius: var(--rlst-hc-radius);
	box-shadow: var(--rlst-hc-shadow);
	background: #0b1626;
}

.rlst-hc__track {
	position: relative;
	height: 100%;
}

/* Slides empilhados. */
.rlst-hc__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--rlst-hc-speed) ease, transform var(--rlst-hc-speed) ease;
}

.rlst-hc__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	transform: none;
	z-index: 2;
}

/* Fade: só opacidade. */
.rlst-hc--fade .rlst-hc__slide {
	transform: none;
}

/* Slide: entra pela direita, sai pela esquerda. */
.rlst-hc--slide .rlst-hc__slide {
	transform: translateX(100%);
}
.rlst-hc--slide .rlst-hc__slide.is-active {
	transform: translateX(0);
}
.rlst-hc--slide .rlst-hc__slide.is-leaving {
	opacity: 1;
	transform: translateX(-100%);
	z-index: 1;
}

/* Mídia */
.rlst-hc__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.rlst-hc__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

.rlst-hc__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 350ms ease;
}

/* Zoom no hover */
.rlst-hc--zoom .rlst-hc__slide:hover .rlst-hc__img {
	transform: scale(1.05);
}

.rlst-hc__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Conteúdo + posicionamento */
.rlst-hc__content {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	padding: clamp(20px, 5vw, 64px);
	pointer-events: none;
}

.rlst-hc__content-inner {
	max-width: 640px;
	color: #fff;
	pointer-events: auto;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.rlst-hc__content--center { align-items: center; justify-content: center; text-align: center; }
.rlst-hc__content--center-left { align-items: center; justify-content: flex-start; text-align: left; }
.rlst-hc__content--center-right { align-items: center; justify-content: flex-end; text-align: right; }
.rlst-hc__content--bottom-left { align-items: flex-end; justify-content: flex-start; text-align: left; }
.rlst-hc__content--bottom-right { align-items: flex-end; justify-content: flex-end; text-align: right; }
.rlst-hc__content--top-left { align-items: flex-start; justify-content: flex-start; text-align: left; }
.rlst-hc__content--top-right { align-items: flex-start; justify-content: flex-end; text-align: right; }

.rlst-hc__subtitle {
	margin: 0 0 8px;
	font-size: clamp(13px, 1.6vw, 16px);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.95;
}

.rlst-hc__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 4.5vw, 52px);
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
}

.rlst-hc__text {
	margin: 0 0 20px;
	font-size: clamp(15px, 2vw, 19px);
	line-height: 1.5;
	opacity: 0.95;
}

.rlst-hc__btn {
	display: inline-block;
	padding: 12px 26px;
	background: #e0a106;
	color: #16263f;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border-radius: 8px;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.rlst-hc__btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	color: #16263f;
}

.rlst-hc__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* Setas */
.rlst-hc__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(11, 22, 38, 0.45);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.rlst-hc__arrow:hover {
	background: rgba(11, 22, 38, 0.75);
}

.rlst-hc__arrow:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.rlst-hc__arrow--prev { left: 16px; }
.rlst-hc__arrow--next { right: 16px; }

/* Dots */
.rlst-hc__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 4;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.rlst-hc__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rlst-hc__dot:hover { opacity: 1; }

.rlst-hc__dot.is-active {
	background: #fff;
	opacity: 1;
	transform: scale(1.15);
}

.rlst-hc__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Breakpoints de altura */
@media (max-width: 1024px) {
	.rlst-hc__viewport { height: var(--rlst-hc-h-tablet); }
}

@media (max-width: 600px) {
	.rlst-hc__viewport { height: var(--rlst-hc-h-mobile); }
	.rlst-hc__arrow { width: 38px; height: 38px; }
	.rlst-hc__arrow--prev { left: 8px; }
	.rlst-hc__arrow--next { right: 8px; }
}

/* Acessibilidade: menos movimento */
@media (prefers-reduced-motion: reduce) {
	.rlst-hc__slide {
		transition: opacity 0.001s linear;
		transform: none !important;
	}
	.rlst-hc__img {
		transition: none;
	}
	.rlst-hc--zoom .rlst-hc__slide:hover .rlst-hc__img {
		transform: none;
	}
}
