/* ==========================================================================
   HERO SLIDER
   Full-width hero with Ken Burns, fade transitions, animated text.
   ========================================================================== */

/* ---------- Container ---------- */

.drox-hero {
	position: relative;
	width: 100%;
	height: var(--hero-h-desktop, 520px);
	overflow: hidden;
	background: #111;
}

/* ---------- Track & Slides ---------- */

.drox-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.drox-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--hero-fade, 1000ms) ease, visibility 0s var(--hero-fade, 1000ms);
	display: flex;
	align-items: flex-start;
	padding-top: 6%;
	z-index: 1;
}

.drox-hero__slide--active {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--hero-fade, 1000ms) ease, visibility 0s 0s;
	z-index: 2;
}

/* ---------- Background Images ---------- */

.drox-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

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

.drox-hero__img--mobile {
	display: none;
}

/* ---------- Ken Burns ---------- */

.drox-hero--ken-burns .drox-hero__slide--active .drox-hero__bg {
	animation: drox-ken-burns 12s ease-out forwards;
}

@keyframes drox-ken-burns {
	0%   { transform: scale(1)   translate(0, 0); }
	100% { transform: scale(1.08) translate(-0.5%, -0.5%); }
}

/* Alternate direction for even slides */
.drox-hero--ken-burns .drox-hero__slide:nth-child(even).drox-hero__slide--active .drox-hero__bg {
	animation-name: drox-ken-burns-alt;
}

@keyframes drox-ken-burns-alt {
	0%   { transform: scale(1)    translate(0, 0); }
	100% { transform: scale(1.08) translate(0.5%, 0.5%); }
}

/* ---------- Overlay ---------- */

.drox-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* ---------- Content ---------- */

.drox-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 48px;
}

/* Text position */
.drox-hero__slide--pos-left   .drox-hero__content { text-align: left; }
.drox-hero__slide--pos-center .drox-hero__content { text-align: center; margin: 0 auto; }
.drox-hero__slide--pos-right  .drox-hero__content { text-align: right; margin-left: auto; }

/* Text color */
.drox-hero__slide--text-light .drox-hero__content { color: #fff; }
.drox-hero__slide--text-dark  .drox-hero__content { color: #1a1a1a; }

/* ---------- Text Elements ---------- */

.drox-hero__badge {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 18px;
}

.drox-hero__headline {
	font-size: clamp(32px, 5vw, 64px);
	font-weight: 800;
	line-height: 1.05;
	margin: 0 0 16px;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.drox-hero__subtitle {
	font-size: clamp(15px, 1.6vw, 20px);
	line-height: 1.55;
	margin: 0 0 30px;
	opacity: 0.85;
	max-width: 580px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.drox-hero__slide--pos-center .drox-hero__subtitle { margin-left: auto; margin-right: auto; }
.drox-hero__slide--pos-right  .drox-hero__subtitle { margin-left: auto; }

/* ---------- Buttons ---------- */

.drox-hero__buttons {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.drox-hero__slide--pos-center .drox-hero__buttons { justify-content: center; }
.drox-hero__slide--pos-right  .drox-hero__buttons { justify-content: flex-end; }

.drox-hero__btn {
	display: inline-flex;
	align-items: center;
	padding: 14px 34px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 5px;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
	cursor: pointer;
	letter-spacing: 0.3px;
}

/* Base hover — applied only when no btn-fx class is present */
.drox-hero__btn:not([class*="btn-fx--"]):hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Filled */
.drox-hero__slide--text-light .drox-hero__btn--filled {
	background: #fff;
	color: #1a1a1a;
}
.drox-hero__slide--text-dark .drox-hero__btn--filled {
	background: #1a1a1a;
	color: #fff;
}

/* Outlined */
.drox-hero__btn--outlined {
	background: transparent;
	border: 2px solid currentColor;
}
.drox-hero__slide--text-light .drox-hero__btn--outlined { color: #fff; }
.drox-hero__slide--text-dark  .drox-hero__btn--outlined { color: #1a1a1a; }

/* ---------- Text Animations ---------- */

.drox-hero__slide .drox-hero__badge,
.drox-hero__slide .drox-hero__headline,
.drox-hero__slide .drox-hero__subtitle,
.drox-hero__slide .drox-hero__buttons {
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Stagger delays */
.drox-hero__slide .drox-hero__badge     { transition-delay: 0.1s; }
.drox-hero__slide .drox-hero__headline  { transition-delay: 0.2s; }
.drox-hero__slide .drox-hero__subtitle  { transition-delay: 0.35s; }
.drox-hero__slide .drox-hero__buttons   { transition-delay: 0.5s; }

/* Starting positions per animation type */
.drox-hero__slide[data-animation="fade-up"] .drox-hero__badge,
.drox-hero__slide[data-animation="fade-up"] .drox-hero__headline,
.drox-hero__slide[data-animation="fade-up"] .drox-hero__subtitle,
.drox-hero__slide[data-animation="fade-up"] .drox-hero__buttons {
	transform: translateY(30px);
}

.drox-hero__slide[data-animation="slide-left"] .drox-hero__badge,
.drox-hero__slide[data-animation="slide-left"] .drox-hero__headline,
.drox-hero__slide[data-animation="slide-left"] .drox-hero__subtitle,
.drox-hero__slide[data-animation="slide-left"] .drox-hero__buttons {
	transform: translateX(-40px);
}

.drox-hero__slide[data-animation="slide-right"] .drox-hero__badge,
.drox-hero__slide[data-animation="slide-right"] .drox-hero__headline,
.drox-hero__slide[data-animation="slide-right"] .drox-hero__subtitle,
.drox-hero__slide[data-animation="slide-right"] .drox-hero__buttons {
	transform: translateX(40px);
}

.drox-hero__slide[data-animation="scale"] .drox-hero__badge,
.drox-hero__slide[data-animation="scale"] .drox-hero__headline,
.drox-hero__slide[data-animation="scale"] .drox-hero__subtitle,
.drox-hero__slide[data-animation="scale"] .drox-hero__buttons {
	transform: scale(1.1);
}

.drox-hero__slide[data-animation="none"] .drox-hero__badge,
.drox-hero__slide[data-animation="none"] .drox-hero__headline,
.drox-hero__slide[data-animation="none"] .drox-hero__subtitle,
.drox-hero__slide[data-animation="none"] .drox-hero__buttons {
	transform: none;
}

/* Active slide — animate in */
.drox-hero__slide--active .drox-hero__badge,
.drox-hero__slide--active .drox-hero__headline,
.drox-hero__slide--active .drox-hero__subtitle,
.drox-hero__slide--active .drox-hero__buttons {
	opacity: 1;
	transform: translate(0, 0) scale(1);
}

/* ---------- Arrows ---------- */

.drox-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255,255,255,0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.2);
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.drox-hero__arrow:hover {
	background: rgba(255,255,255,0.3);
	transform: translateY(-50%) scale(1.05);
}

.drox-hero__arrow--prev { left: 20px; }
.drox-hero__arrow--next { right: 20px; }

/* ---------- Dots ---------- */

.drox-hero__dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 8px;
}

.drox-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.6);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.drox-hero__dot:hover {
	border-color: #fff;
	transform: scale(1.15);
}

.drox-hero__dot--active {
	background: #fff;
	border-color: #fff;
}

/* ---------- Progress Bar ---------- */

.drox-hero__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: rgba(255,255,255,0.15);
	z-index: 10;
}

.drox-hero__progress-bar {
	height: 100%;
	background: rgba(255,255,255,0.7);
	width: 0;
	animation: drox-hero-progress linear forwards;
	animation-play-state: running;
}

@keyframes drox-hero-progress {
	0%   { width: 0; }
	100% { width: 100%; }
}

/* Paused state */
.drox-hero--paused .drox-hero__progress-bar {
	animation-play-state: paused;
}

/* ---------- Device Visibility ---------- */

/* Desktop > 991px */
@media (min-width: 992px) {
	.drox-hero--hide-desktop { display: none !important; }
	.drox-hero__slide--hide-desktop { display: none !important; }
	.drox-hero__img--mobile { display: none; }
	.drox-hero__img--desktop { display: block; }
}

/* Tablet: 576–991px */
@media (min-width: 576px) and (max-width: 991px) {
	.drox-hero--hide-tablet { display: none !important; }
	.drox-hero__slide--hide-tablet { display: none !important; }
}

/* Mobile: < 576px */
@media (max-width: 575px) {
	.drox-hero--hide-mobile { display: none !important; }
	.drox-hero__slide--hide-mobile { display: none !important; }
}

/* ---------- Mobile Responsive ---------- */

@media (max-width: 991px) {
	.drox-hero {
		height: var(--hero-h-mobile, 360px);
	}

	.drox-hero__img--desktop { display: none; }
	.drox-hero__img--mobile  { display: block; }

	.drox-hero__slide {
		padding-top: 8%;
	}

	.drox-hero__content {
		padding: 0 20px;
	}

	.drox-hero__headline {
		font-size: clamp(24px, 6vw, 36px);
	}

	.drox-hero__subtitle {
		font-size: 14px;
		margin-bottom: 22px;
	}

	.drox-hero__btn {
		padding: 12px 24px;
		font-size: 13px;
	}

	.drox-hero__arrow {
		width: 36px;
		height: 36px;
	}
	.drox-hero__arrow--prev { left: 10px; }
	.drox-hero__arrow--next { right: 10px; }

	.drox-hero__arrow svg {
		width: 18px;
		height: 18px;
	}

	.drox-hero__dots {
		bottom: 16px;
		gap: 6px;
	}

	.drox-hero__dot {
		width: 8px;
		height: 8px;
	}
}
