/**
 * Section: Hero Slider Style
 * Arquivo: sections/hero-slider/style.css
 *
 * Desenvolvido por: Roger Alves
 * Data da Modificacao: 2026-05-28
 * Hora da Modificacao: 18:41
 *
 * Todos os direitos reservados.
 */

.hero-slider {
	position: relative;
	height: clamp(440px, 62vh, 580px);
	min-height: 440px;
	max-height: 580px;
	background: var(--color-primary-dark);
	overflow: hidden;
}

.admin-bar .hero-slider {
	height: clamp(408px, 62vh, 548px);
	max-height: 548px;
}

.hero-slider-track,
.hero-slide {
	position: absolute;
	inset: 0;
}

.hero-slide {
	display: flex;
	align-items: center;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
	opacity: 0;
	pointer-events: none;
	transition: opacity 700ms ease;
}

.hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.hero-slide-image {
	position: absolute;
	top: -5%;
	left: 0;
	width: 100%;
	height: 110%;
	z-index: 0;
	object-fit: cover;
	object-position: center 20%;
	opacity: 0.82;
}

/* Parallax: reservado para JS futuro. */
.hero-slide-image.parallax-bg {
	object-position: center 20%;
}

.hero-slide-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(7, 21, 36, 0.96) 0%, rgba(7, 21, 36, 0.82) 42%, rgba(7, 21, 36, 0.55) 100%),
		linear-gradient(0deg, rgba(7, 21, 36, 0.6), transparent 55%);
}

.hero-slide-content {
	position: relative;
	z-index: 2;
	padding-top: clamp(2.5rem, 6vh, 4rem);
	padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.hero-slide-copy {
	width: min(52%, 680px);
	text-align: left;
}

.hero-eyebrow {
	margin-bottom: 1rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-secondary);
}

.hero-slide h1 {
	margin-bottom: 0.8rem;
	font-size: clamp(2rem, 4.2vw, 4rem);
	font-weight: 800;
	line-height: 1.08;
	color: var(--color-text-on-dark);
	text-shadow: 0 2px 16px rgba(10, 10, 10, 0.35);
}

.hero-subtitle {
	position: relative;
	max-width: 560px;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 1.8rem;
	padding-left: 1rem;
	font-size: clamp(1rem, 1.35vw, 1.12rem);
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: 0.01em;
	color: rgba(246, 247, 249, 0.97);
	text-wrap: balance;
}

.hero-subtitle::before {
	position: absolute;
	top: 0.2em;
	bottom: 0.2em;
	left: 0;
	width: 4px;
	border-radius: var(--radius-full);
	background: var(--color-secondary);
	content: "";
}

.hero-slide-copy .btn {
	margin-top: 0.2rem;
}

.hero-slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: var(--radius-full);
	background: rgba(7, 21, 36, 0.42);
	color: var(--color-text-on-dark);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: var(--transition-fast);
}

.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.hero-slider-prev {
	left: 1.5rem;
}

.hero-slider-next {
	right: 1.5rem;
}

.hero-slider-dots {
	position: absolute;
	left: 50%;
	bottom: 2rem;
	z-index: 4;
	display: flex;
	gap: 0.65rem;
	transform: translateX(-50%);
}

.hero-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: var(--transition-fast);
}

.hero-slider-dot.is-active {
	width: 28px;
	background: var(--color-secondary);
}

@media (max-width: 768px) {
	.hero-slider {
		height: auto;
		min-height: min(620px, calc(100vh - 80px));
		max-height: none;
	}

	.admin-bar .hero-slider {
		height: auto;
		min-height: min(588px, calc(100vh - 126px));
		max-height: none;
	}

	.hero-slide-overlay {
		background:
			linear-gradient(180deg, rgba(7, 21, 36, 0.94) 0%, rgba(7, 21, 36, 0.88) 100%),
			linear-gradient(0deg, rgba(7, 21, 36, 0.6), transparent 55%);
	}

	.hero-slide-content {
		padding-top: 4.5rem;
		padding-bottom: 4.5rem;
	}

	.hero-slide-copy {
		width: 100%;
		max-width: 620px;
		text-align: left;
	}

	.hero-slider-arrow {
		display: none;
	}
}
