/* ==========================================================================
   Elementor Hero Tabs — Frontend Styles
   ========================================================================== */

.mhtw-hero-tabs {
	position: relative;
	width: 100%;
	min-height: 640px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #fff;
	isolation: isolate;
}

/* ---- Background slides ---- */
.mhtw-slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.mhtw-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 900ms ease;
	will-change: opacity;
}

.mhtw-slide.active {
	opacity: 1;
	z-index: 1;
}

.mhtw-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(20, 20, 20, 0.55);
}

/* ---- Content wrapper: full width, padding lives here ---- */
.mhtw-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	/* Padding is controlled from the widget's Layout & Spacing panel (per-device). */
	box-sizing: border-box;
}

/* ---- Inner wrapper: this is what gets boxed/centered to match a boxed site,
   while .mhtw-content above stays full width so the padding still spans edge
   to edge. Max-width is controlled from the widget's Layout & Spacing panel. */
.mhtw-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* ---- Header block: top title + nav + progress bar, stacked in normal flow ---- */
.mhtw-header {
	position: relative;
	flex: 0 0 auto;
}

/* ---- Top titles (stacked, only active visible) ---- */
.mhtw-top-titles {
	position: relative;
	text-align: center;
}

.mhtw-top-title {
	position: absolute;
	inset: 0 0 auto 0;
	margin: 0 auto;
	max-width: 900px;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.2;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 500ms ease, transform 500ms ease, visibility 0s linear 500ms;
}

.mhtw-top-title.active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 500ms ease 150ms, transform 500ms ease 150ms;
}

/* ---- Nav / tabs row — sits directly under the top title, centered ---- */
.mhtw-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin: 32px auto 0;
	width: fit-content;
	max-width: 900px;
}

.mhtw-nav-item {
	appearance: none;
	border: none;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.35);
	color: inherit;
	/* Padding is controlled from the widget's Style > Tab Nav & Progress panel (per-device). */
	/* Border is controlled from the same panel. */
	display: flex;
	align-items: center;
	width: fit-content;
	box-sizing: border-box;
	text-align: left;
	transition: background-color 250ms ease, border-color 250ms ease;
}

.mhtw-nav-item.active {
	background-color: #fff;
}

.mhtw-nav-label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	transition: color 250ms ease;
}

.mhtw-nav-item.active .mhtw-nav-label {
	color: #111;
}

/* ---- Single shared progress bar, under the nav row, centered ----
   Actual width is set inline by the "Progress Bar Width" control;
   these are just sane fallbacks. */
.mhtw-progress-wrap {
	width: 900px;
	max-width: 100%;
	margin: 8px auto 0;
}

.mhtw-progress-track {
	position: relative;
	display: block;
	width: 100%;
	height: 3px;
	background-color: rgba(255, 255, 255, 0.25);
	overflow: hidden;
}

.mhtw-progress-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	background-color: #c97a3d;
}

.mhtw-progress-fill.running {
	transition-property: width;
	transition-timing-function: linear;
}

/* ---- Bottom panels / grid — spaced from the header by .mhtw-inner's
   justify-content: space-between; padding-top is just a minimum gap for
   when combined content height leaves no free space to distribute. ---- */
.mhtw-panels {
	position: relative;
	padding-top: 24px;
}

.mhtw-panel {
	display: none;
}

.mhtw-panel.active {
	display: block;
	animation: mhtw-fade-in 500ms ease;
}

@keyframes mhtw-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mhtw-bottom-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 48px;
	align-items: start;
}

.mhtw-grid-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.mhtw-tag {
	display: inline-block;
	background-color: #c97a3d;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 8px 16px;
	border-radius: 2px;
}

.mhtw-bottom-title {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.mhtw-description {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #f1f1f1;
}

/* ==========================================================================
   Responsive — Tablet & Mobile: bottom grid stacks into a single column
   ========================================================================== */
@media (max-width: 1024px) {
	.mhtw-top-title {
		font-size: 32px;
	}

	.mhtw-bottom-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mhtw-bottom-title {
		font-size: 28px;
	}
}

@media (max-width: 767px) {
	.mhtw-top-title {
		font-size: 24px;
	}

	.mhtw-nav {
		margin: 20px 0 0;
		gap: 3px;
	}

	.mhtw-nav-label {
		font-size: 13px;
	}

	.mhtw-bottom-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mhtw-bottom-title {
		font-size: 22px;
	}

	.mhtw-description {
		font-size: 14px;
	}
}
