/* AM Bespoke Hero Slider — base structural styles.
   Colors, typography, spacing, sizing are all controlled from Elementor
   and injected as scoped inline CSS — this file only handles layout,
   positioning and transitions so the widget behaves consistently. */

.ambh-hero-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	/* Baseline fallback so the layout is never collapsed/broken even if
	   Elementor's per-widget generated CSS hasn't (re)built yet — the
	   Style tab's "Min Height" control targets this same element with
	   higher specificity and will override this the moment it loads. */
	min-height: 560px;
}

.ambh-hero-slider * {
	box-sizing: border-box;
}

/* Optional "Stretch to Full Width" control — breaks the widget out of
   a boxed parent container so the background spans the full viewport
   width, regardless of the Elementor section's own width setting. */
.ambh-hero-slider.ambh-full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.ambh-hero-slides {
	position: relative;
	width: 100%;
	/* This element gets a real, concrete min-height copied directly
	   from .ambh-hero-slider (not derived from children), so every
	   slide below can safely be position:absolute at all times —
	   no position-toggling between slides, which is what caused the
	   layout "jump"/height-shrink during transitions. */
	min-height: inherit;
}

/* Every slide is always absolutely positioned and stacked — active
   or not — so switching the active slide only ever animates opacity
   and transform, never layout, giving a smooth crossfade with no
   jump. The visibility delay is the other half of the smoothness fix:
   an outgoing slide keeps rendering (and fading) for the full duration
   before actually being hidden; an incoming slide is instantly
   render-visible so its own opacity fade-in isn't cut off early. */
.ambh-hero-slide {
	position: absolute;
	inset: 0;
	min-height: inherit;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--ambh-duration, 800ms) ease, visibility 0s linear var(--ambh-duration, 800ms);
}

.ambh-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity var(--ambh-duration, 800ms) ease, visibility 0s linear 0s;
}

/* First slide needs to hold layout height before JS positions others */
.ambh-hero-slides:not(.ambh-js-ready) .ambh-hero-slide:not(.is-active) {
	display: none;
}

.ambh-hero-slide-inner {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: inherit;
	padding: 60px;
	z-index: 2;
}

/* Background word — same "fallback + override" logic: the Style tab's
   typography/color/opacity/position controls target this element with
   higher specificity, so these are just sane baseline defaults. */
.ambh-bg-word {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 90%;
	transform: translate(-50%, -50%);
	margin: 0;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	line-height: 1;
	text-align: center;
	z-index: 1;
	font-size: clamp(56px, 11vw, 180px);
	font-weight: 700;
	letter-spacing: 4px;
	color: #d8cfbe;
}

/* Left content column — sits in normal flow but the image below is
   centered independently within the slide, so it stays visually
   centered regardless of the left column's width/content length. */
.ambh-left {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: flex-end;
	width: 40%;
	gap: 20px;
	padding-bottom: 40px;
}

.ambh-heading {
	margin: 0;
	line-height: 1.15;
}

.ambh-description {
	margin: 0;
	line-height: 1.6;
}

.ambh-button {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
	white-space: nowrap;
}

.ambh-button--text {
	border-bottom: 1px solid currentColor;
	padding-bottom: 4px;
}

.ambh-button-arrow {
	display: inline-block;
	transition: transform .25s ease;
}

.ambh-button--text:hover .ambh-button-arrow {
	transform: translateX(4px);
}

.ambh-divider {
	display: block;
}

/* Center image — anchored to the bottom and sized by height so it
   reads as a tall full-bleed portrait like the reference, staying
   horizontally centered regardless of the left column's width. */
.ambh-image {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	flex-shrink: 0;
	transition: transform .4s ease, opacity .4s ease;
}

.ambh-image img {
	display: block;
	height: 105%;
	width: auto;
	max-width: none;
	margin: 0 auto;
	object-fit: cover;
}

/* Badge — circular monogram mark, e.g. "Crafted With Precision" */
.ambh-badge {
	position: absolute;
	top: 35%;
	right: 60px;
	z-index: 4;
	pointer-events: none;
	user-select: none;
}

.ambh-badge-circle {
	position: relative;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	border: 1px solid #CBB89A;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.ambh-badge-top,
.ambh-badge-bottom {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	white-space: nowrap;
}

.ambh-badge-top {
	top: 14px;
}

.ambh-badge-bottom {
	bottom: 14px;
}

.ambh-badge-center {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 1px;
}

/* Feature list */
.ambh-features {
	position: absolute;
	top: 60%;
	right: 60px;
	z-index: 4;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: right;
}

.ambh-feature {
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Social icons */
.ambh-social {
	position: absolute;
	bottom: 24px;
	right: 24px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 18px;
}

.ambh-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	transition: color .2s ease, opacity .2s ease;
}

.ambh-social a:hover {
	opacity: .7;
}

/* --- Fade effect --- */
.ambh-hero-effect-fade .ambh-hero-slide {
	transition-duration: var(--ambh-duration, 800ms);
}

.ambh-hero-effect-fade .ambh-hero-slide .ambh-image {
	transform: translateX(-50%) scale(0.97);
	opacity: 0;
	transition: transform var(--ambh-duration, 800ms) ease, opacity var(--ambh-duration, 800ms) ease;
}

.ambh-hero-effect-fade .ambh-hero-slide.is-active .ambh-image {
	transform: translateX(-50%) scale(1);
	opacity: 1;
}

/* --- Slide (horizontal) effect --- */
.ambh-hero-effect-slide .ambh-hero-slide {
	transition-duration: var(--ambh-duration, 800ms);
	transform: translateX(30px);
}

.ambh-hero-effect-slide .ambh-hero-slide.is-active {
	transform: translateX(0);
}

/* Navigation arrows */
.ambh-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: opacity .2s ease, background-color .2s ease;
}

.ambh-arrow:hover {
	opacity: .7;
}

.ambh-arrow-prev {
	left: 24px;
}

.ambh-arrow-next {
	right: 24px;
}

.ambh-arrow-icon {
	font-style: normal;
	display: block;
}

/* Dots / pagination */
.ambh-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ambh-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	background-color: rgba(0, 0, 0, .2);
	transition: transform .2s ease, background-color .2s ease;
}

.ambh-dot.is-active {
	transform: scale(1.25);
}

/* Numbered pagination variant — "01  02  03" style, left-anchored
   like the reference instead of centered dots. */
.ambh-dots--numbers {
	left: 60px;
	bottom: 24px;
	transform: none;
	gap: 16px;
}

.ambh-dots--numbers .ambh-dot {
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	font-size: 13px;
	letter-spacing: 1px;
	color: rgba(30, 30, 30, .35);
	font-weight: 400;
	transition: color .2s ease, transform .2s ease;
}

.ambh-dots--numbers .ambh-dot.is-active {
	color: #1E1E1E;
	font-weight: 600;
}

/* Responsive — stack image above text and let the background
   word sit behind the whole stacked column instead of the desktop
   split layout. The badge/feature list are desktop flourishes tied
   to precise right-side positioning, so they step out of the way on
   smaller screens rather than overlapping the stacked content. */
@media (max-width: 1024px) {
	.ambh-hero-slide-inner {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		padding-bottom: 80px;
	}

	.ambh-left {
		align-items: center;
		align-self: auto;
		width: 100% !important;
		text-align: center;
	}

	.ambh-image {
		position: relative;
		bottom: auto;
		left: auto;
		transform: none !important;
		order: -1;
		margin: 0 0 24px;
	}

	.ambh-image img {
		height: auto;
		width: 60%;
		max-width: 320px;
	}

	.ambh-bg-word {
		width: 100% !important;
		white-space: normal;
	}

	.ambh-divider {
		margin-left: auto;
		margin-right: auto;
	}

	.ambh-badge,
	.ambh-features {
		display: none;
	}

	.ambh-social {
		left: 50%;
		right: auto;
		bottom: 16px;
		transform: translateX(-50%);
	}

	.ambh-dots--numbers {
		left: 50%;
		transform: translateX(-50%);
	}
}

@media (max-width: 767px) {
	.ambh-arrow {
		display: none;
	}
}
