/* ==========================================================================
   Advanced Hero Slider - Frontend Styles
   Prefix: .ahs-
   ========================================================================== */

.ahs-hero {
	position: relative;
	width: 100%;
	height: 90vh;
	min-height: 480px;
	overflow: hidden;
	box-sizing: border-box;
}

/* --- Slides layer --- */
.ahs-hero .ahs-slides {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ahs-hero .ahs-slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
}

.ahs-hero .ahs-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* Slide background */
.ahs-hero .ahs-slide-bg {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	will-change: transform, opacity;
}

/* Slide-level overlay */
.ahs-hero .ahs-slide-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.35);
	opacity: 0.35;
	z-index: 2;
}

/* Global overlay (between bg and content) */
.ahs-hero .ahs-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.45);
	opacity: 0.45;
	z-index: 3;
	pointer-events: none;
}

/* --- Transition effects --- */
.ahs-hero.ahs-effect-fade .ahs-slide {
	transition: opacity 0.8s ease;
}

.ahs-hero.ahs-effect-slide .ahs-slide {
	transform: translateX(0);
}
.ahs-hero.ahs-effect-slide .ahs-slide {
	transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}
.ahs-hero.ahs-effect-slide .ahs-slide:not(.active) {
	transform: translateX(8%);
	opacity: 0;
}

/* --- Slide content --- */
.ahs-hero .ahs-slide-content {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* Horizontal alignment */
.ahs-hero.ahs-align-h-center .ahs-slide-content {
	justify-content: center;
}
.ahs-hero.ahs-align-h-right .ahs-slide-content {
	justify-content: flex-end;
}

/* Vertical alignment handled via align-items override */
.ahs-hero.ahs-align-v-top .ahs-slide-content {
	align-items: flex-start;
}
.ahs-hero.ahs-align-v-bottom .ahs-slide-content {
	align-items: flex-end;
}

.ahs-hero .ahs-content-inner {
	position: relative;
	max-width: 600px;
	width: 100%;
	padding: 0 20px;
	box-sizing: border-box;
}

.ahs-hero .ahs-eyebrow {
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #9a7b4f;
	margin-bottom: 12px;
}

.ahs-hero .ahs-heading {
	font-size: 52px;
	line-height: 1.1;
	font-weight: 700;
	color: #1c1c1c;
	margin: 0 0 16px 0;
}

.ahs-hero .ahs-description {
	font-size: 16px;
	line-height: 1.7;
	color: #555555;
	margin: 0 0 28px 0;
}

/* --- Button --- */
.ahs-hero .ahs-btn-wrap {
	margin-top: 8px;
}

.ahs-hero .ahs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 34px;
	background-color: #9a7b4f;
	color: #ffffff;
	border: 1px solid transparent;
	border-radius: 0;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
}

.ahs-hero .ahs-button:hover {
	background-color: #ffffff;
	color: #9a7b4f;
	border-color: #9a7b4f;
}

.ahs-hero .ahs-btn-icon {
	display: inline-flex;
	line-height: 0;
}
.ahs-hero .ahs-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* --- Content item animation --- */
.ahs-hero .ahs-anim-item {
	opacity: 0;
	visibility: hidden;
	will-change: transform, opacity;
	transition-property: opacity, transform;
}

.ahs-slide.active .ahs-anim-item {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Fade */
.ahs-hero.ahs-anim-fade .ahs-anim-item { transform: none; }
/* Fade Up */
.ahs-hero.ahs-anim-fade-up .ahs-anim-item { transform: translateY(40px); }
/* Fade Down */
.ahs-hero.ahs-anim-fade-down .ahs-anim-item { transform: translateY(-40px); }
/* Fade Left */
.ahs-hero.ahs-anim-fade-left .ahs-anim-item { transform: translateX(40px); }
/* Fade Right */
.ahs-hero.ahs-anim-fade-right .ahs-anim-item { transform: translateX(-40px); }
/* Zoom */
.ahs-hero.ahs-anim-zoom .ahs-anim-item { transform: scale(0.9); }

/* Stagger each item for a nicer entrance */
.ahs-slide.active .ahs-anim-item:nth-child(2) { transition-delay: 0.12s; }
.ahs-slide.active .ahs-anim-item:nth-child(3) { transition-delay: 0.24s; }
.ahs-slide.active .ahs-anim-item:nth-child(4) { transition-delay: 0.36s; }

/* --- Thumbnails (bottom-right) --- */
.ahs-hero .ahs-thumbnails {
	position: absolute;
	right: 80px;
	bottom: 40px;
	z-index: 6;
	display: flex;
	gap: 12px;
}

.ahs-hero .ahs-thumb {
	width: 110px;
	height: 80px;
	padding: 0;
	margin: 0;
	border: 2px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: #eee;
	opacity: 0.8;
	transition: opacity 0.3s ease, border-color 0.3s ease;
	flex-shrink: 0;
}

.ahs-hero .ahs-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.ahs-hero .ahs-thumb:hover {
	opacity: 1;
}

.ahs-hero .ahs-thumb.active {
	opacity: 1;
	border-color: #9a7b4f;
}

/* --- Dots (bottom-left) --- */
.ahs-hero .ahs-dots {
	position: absolute;
	left: 40px;
	bottom: 40px;
	z-index: 6;
	display: flex;
	gap: 12px;
}

.ahs-hero .ahs-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.3);
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.ahs-hero .ahs-dot:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.ahs-hero .ahs-dot.active {
	background-color: #9a7b4f;
	transform: scale(1.4);
}

/* --- Vertical navigation (right side) --- */
.ahs-hero .ahs-vertical-nav {
	position: absolute;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 7;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.ahs-hero .ahs-vnav-top { top: 30px; transform: none; }
.ahs-hero .ahs-vnav-bottom { top: auto; bottom: 30px; transform: none; }

.ahs-hero .ahs-vdot.active {
	background-color: #9a7b4f;
}

/* --- Arrows --- */
.ahs-hero .ahs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 8;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	color: #1c1c1c;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.ahs-hero .ahs-arrow:hover {
	background: #9a7b4f;
	color: #ffffff;
}

.ahs-hero .ahs-prev { left: 20px; }
.ahs-hero .ahs-next { right: 20px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
	.ahs-hero .ahs-thumbnails { right: 40px; bottom: 30px; }
	.ahs-hero .ahs-thumb { width: 90px; height: 64px; }
	.ahs-hero .ahs-heading { font-size: 40px; }
}

@media (max-width: 767px) {
	.ahs-hero {
		height: 100vh;
		min-height: 520px;
	}

	.ahs-hero .ahs-content-inner { max-width: 100%; padding: 0 24px; }
	.ahs-hero .ahs-heading { font-size: 32px; }

	.ahs-hero .ahs-thumbnails {
		right: 0;
		left: 0;
		bottom: 12px;
		width: 100%;
		justify-content: center;
		padding: 0 12px;
		box-sizing: border-box;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.ahs-hero .ahs-thumbnails::-webkit-scrollbar { display: none; }
	.ahs-hero .ahs-thumb { width: 64px; height: 46px; flex-shrink: 0; }

	.ahs-hero .ahs-dots { left: 20px; bottom: 24px; }

	/* Hide vertical navigation on small screens for a cleaner layout */
	.ahs-hero .ahs-vertical-nav { display: none; }

	.ahs-hero .ahs-arrow { width: 40px; height: 40px; }
}

/* --- Accessibility: respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	.ahs-hero * ,
	.ahs-hero{
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
	.ahs-hero .ahs-slide,
	.ahs-hero .ahs-anim-item {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		transition: none !important;
	}
}

/* --- Editor preview fix --- */
.elementor-editor-active .ahs-hero .ahs-slide:not(.active) .ahs-anim-item {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: none;
}
