/**
 * Damena Hero Section Widget Stylesheet
 *
 * Scoped strictly under .damena-hero-section-wrapper.
 * Built against Damena Design System v2.0.0 tokens and live-site scrim curves.
 */

.damena-hero-section-wrapper {
	--damena-hero-bg: #10273C;
	--damena-hero-accent: #E4BE21;
	--damena-hero-muted: #C9D6E2;
	--damena-hero-max-width: 1140px;
	--damena-hero-min-height: 680px;
	--damena-hero-scrim-angle: 270deg;
	--damena-hero-scrim-start: rgba(87, 199, 133, 0);
	--damena-hero-scrim-start-stop: 0%;
	--damena-hero-scrim-end: #10273C;
	--damena-hero-scrim-end-stop: 65%;

	position: relative;
	width: 100%;
	min-height: var(--damena-hero-min-height);
	padding: 64px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	background-color: var(--damena-hero-bg);
	color: #FFFFFF;
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
	touch-action: pan-y;
}

.damena-hero-section-wrapper *,
.damena-hero-section-wrapper *::before,
.damena-hero-section-wrapper *::after {
	box-sizing: border-box;
}

.damena-hero-section-wrapper .damena-tabular {
	font-variant-numeric: tabular-nums;
}

.damena-hero-section-wrapper .damena-hero-sr-only:where(:not(:focus-within, :active)) {
	position: absolute !important;
	clip-path: inset(50%) !important;
	overflow: hidden !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* ==========================================================================
   BACKGROUND PHOTOGRAPHY & RESPONSIVE SCRIM
   ========================================================================== */
.damena-hero-section-wrapper .damena-hero-media {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.damena-hero-section-wrapper .damena-hero-media-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 1;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.damena-hero-section-wrapper .damena-hero-media-slide.is-active {
	opacity: 1;
	z-index: 2;
	visibility: visible;
	transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.damena-hero-section-wrapper .damena-hero-bg-img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center center;
	display: block;
}

@media (prefers-reduced-motion: no-preference) {
	.damena-hero-section-wrapper .damena-hero-media-slide {
		transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.55s;
	}

	.damena-hero-section-wrapper .damena-hero-media-slide.is-active {
		transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
	}

	.damena-hero-section-wrapper .damena-hero-bg-img {
		transform: scale(1.03);
		transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.damena-hero-section-wrapper .damena-hero-media-slide.is-active .damena-hero-bg-img {
		transform: scale(1);
	}
}

.damena-hero-section-wrapper .damena-hero-scrim {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(
		var(--damena-hero-scrim-angle),
		var(--damena-hero-scrim-start) var(--damena-hero-scrim-start-stop),
		var(--damena-hero-scrim-end) var(--damena-hero-scrim-end-stop)
	);
}

.damena-hero-section-wrapper .damena-hero-vignette {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 36%;
	z-index: 4;
	pointer-events: none;
	background: linear-gradient(to top, rgba(16, 39, 60, 0.72) 0%, transparent 100%);
}

/* ==========================================================================
   MAIN CONTENT CONTAINER & COPY STACK
   ========================================================================== */
.damena-hero-section-wrapper .damena-hero-inner {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: var(--damena-hero-max-width);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.damena-hero-section-wrapper .damena-hero-left {
	flex: 0 1 560px;
	max-width: 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.damena-hero-section-wrapper .damena-hero-copy {
	display: flex;
	flex-direction: column;
}

/* Optional Subcategory / Tag */
.damena-hero-section-wrapper .damena-hero-subheading-wrap {
	margin-bottom: 14px;
}

.damena-hero-section-wrapper .damena-hero-subheading-title {
	margin: 0;
	display: flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FFFFFF;
}

.damena-hero-section-wrapper .damena-hero-subheading-divider {
	display: inline-block;
	width: 28px;
	height: 2px;
	background-color: var(--damena-hero-accent);
	margin-right: 12px;
	flex-shrink: 0;
}

/* Main Display Heading */
.damena-hero-section-wrapper .damena-hero-heading-wrap {
	margin-bottom: 16px;
}

.damena-hero-section-wrapper .damena-hero-title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(28px, 3.2vw, 44px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: #FFFFFF;
	text-wrap: balance;
}

/* Description Copy */
.damena-hero-section-wrapper .damena-hero-desc-wrap {
	max-width: 520px;
	margin-bottom: 28px;
}

.damena-hero-section-wrapper .damena-hero-desc {
	margin: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.90);
	text-wrap: pretty;
}

/* ==========================================================================
   CTA ROW (DUAL PILL BUTTONS)
   Chained specificity prevents theme button rules (e.g. hello-biz #c36 hover)
   from overriding widget styling while preserving Elementor Style tab control.
   ========================================================================== */
.damena-hero-section-wrapper .damena-hero-cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
}

.damena-hero-section-wrapper .damena-hero-cta-row[hidden],
.damena-hero-section-wrapper .damena-hero-btn[hidden] {
	display: none;
}

.damena-hero-section-wrapper .damena-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 24px;
	border-style: solid;
	border-width: 1px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	touch-action: manipulation;
	transition: transform 0.2s ease-in, box-shadow 0.2s ease-in, background-color 0.2s ease-in, color 0.2s ease-in, border-color 0.2s ease-in;
}

.damena-hero-section-wrapper .damena-hero-btn:focus-visible {
	outline: 2px solid var(--damena-hero-accent);
	outline-offset: 3px;
}

.damena-hero-section-wrapper .damena-hero-btn--primary {
	background-color: #FFFFFF;
	color: #10273C;
	border-color: #FFFFFF;
}

.damena-hero-section-wrapper .damena-hero-btn--primary:hover,
.damena-hero-section-wrapper .damena-hero-btn--primary:focus-visible {
	background-color: #F5EFE2;
	color: #10273C;
	border-color: #F5EFE2;
}

.damena-hero-section-wrapper .damena-hero-btn--secondary {
	background-color: rgba(16, 39, 60, 0.45);
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.55);
}

.damena-hero-section-wrapper .damena-hero-btn--secondary:hover,
.damena-hero-section-wrapper .damena-hero-btn--secondary:focus-visible {
	background-color: rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	border-color: #FFFFFF;
}

/* ==========================================================================
   CAROUSEL STEPPER RAIL & COUNTER
   ========================================================================== */
.damena-hero-section-wrapper .damena-hero-controls-panel {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.damena-hero-section-wrapper .damena-hero-controls-panel.has-divider {
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.damena-hero-section-wrapper .damena-hero-controls-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.damena-hero-section-wrapper .damena-hero-nav-btn {
	appearance: none;
	-webkit-appearance: none;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border-style: solid;
	border-width: 1px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	touch-action: manipulation;
	transition: transform 0.2s ease-in, box-shadow 0.2s ease-in, background-color 0.2s ease-in, color 0.2s ease-in, border-color 0.2s ease-in;
}

.damena-hero-section-wrapper .damena-hero-nav-btn:focus-visible {
	outline: 2px solid var(--damena-hero-accent);
	outline-offset: 3px;
}

.damena-hero-section-wrapper .damena-hero-nav-btn--outline {
	background-color: rgba(16, 39, 60, 0.45);
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.55);
}

.damena-hero-section-wrapper .damena-hero-nav-btn--outline:hover {
	background-color: rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	border-color: #FFFFFF;
}

.damena-hero-section-wrapper .damena-hero-nav-btn--filled {
	background-color: #FFFFFF;
	color: #10273C;
	border-color: #FFFFFF;
}

.damena-hero-section-wrapper .damena-hero-nav-btn--filled:hover {
	background-color: #F5EFE2;
	color: #10273C;
	border-color: #F5EFE2;
}

.damena-hero-section-wrapper .damena-hero-nav-btn .elementor-icon,
.damena-hero-section-wrapper .damena-hero-nav-btn i,
.damena-hero-section-wrapper .damena-hero-nav-btn svg,
.damena-hero-section-wrapper .damena-hero-nav-btn img {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
}

.damena-hero-section-wrapper .damena-hero-nav-btn svg {
	max-width: 100%;
	max-height: 100%;
}

.damena-hero-section-wrapper .damena-hero-nav-btn svg [fill]:not([fill="none"]),
.damena-hero-section-wrapper .damena-hero-nav-btn svg path:not([fill="none"]):not([stroke]) {
	fill: currentColor;
}

.damena-hero-section-wrapper .damena-hero-nav-btn svg [stroke]:not([stroke="none"]),
.damena-hero-section-wrapper .damena-hero-nav-btn svg path[stroke],
.damena-hero-section-wrapper .damena-hero-nav-btn svg polyline,
.damena-hero-section-wrapper .damena-hero-nav-btn svg line {
	stroke: currentColor;
}

.damena-hero-section-wrapper .damena-hero-nav-btn img {
	object-fit: contain;
}

.damena-hero-section-wrapper .damena-hero-pause-btn[data-state="playing"] .damena-hero-icon-play,
.damena-hero-section-wrapper .damena-hero-pause-btn[data-state="paused"] .damena-hero-icon-pause {
	display: none;
}

.damena-hero-section-wrapper .damena-hero-counter-display {
	display: inline-flex;
	align-items: baseline;
	margin-left: 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.02em;
}

.damena-hero-section-wrapper .damena-hero-current-num {
	color: #FFFFFF;
	font-weight: 600;
}

.damena-hero-section-wrapper .damena-hero-counter-sep,
.damena-hero-section-wrapper .damena-hero-total-num {
	color: var(--damena-hero-muted);
}

.damena-hero-section-wrapper .damena-hero-progress-track {
	position: relative;
	width: 112px;
	height: 3px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.24);
	overflow: hidden;
}

.damena-hero-section-wrapper .damena-hero-progress-bar {
	position: absolute;
	inset-block: 0;
	left: 0;
	width: 100%;
	background-color: var(--damena-hero-accent);
	transform-origin: left center;
	transform: scaleX(0);
}

/* ==========================================================================
   OPTIONAL PREVIEW CARDS TRACK
   ========================================================================== */
.damena-hero-section-wrapper .damena-hero-right {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	overflow: hidden;
	padding-block: 8px;
}

.damena-hero-section-wrapper .damena-hero-cards-viewport {
	width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding: 4px;
}

.damena-hero-section-wrapper .damena-hero-cards-viewport::-webkit-scrollbar {
	display: none;
}

.damena-hero-section-wrapper .damena-hero-cards-track {
	display: flex;
	align-items: stretch;
	gap: 20px;
}

.damena-hero-section-wrapper .damena-hero-card-item {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 215px;
	width: 215px;
	height: 300px;
	padding: 0;
	margin: 0;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 12px;
	background-color: #142C44;
	text-align: left;
	color: #FFFFFF;
	cursor: pointer;
	scroll-snap-align: start;
	touch-action: manipulation;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.damena-hero-section-wrapper .damena-hero-card-item:hover,
.damena-hero-section-wrapper .damena-hero-card-item:focus-visible {
	border-color: var(--damena-hero-accent);
}

.damena-hero-section-wrapper .damena-hero-card-item:focus-visible {
	outline: 2px solid var(--damena-hero-accent);
	outline-offset: 2px;
}

.damena-hero-section-wrapper .damena-hero-card-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (prefers-reduced-motion: no-preference) {
	.damena-hero-section-wrapper .damena-hero-card-bg {
		transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.damena-hero-section-wrapper .damena-hero-card-item:hover .damena-hero-card-bg {
		transform: scale(1.05);
	}
}

.damena-hero-section-wrapper .damena-hero-card-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(16, 39, 60, 0.94) 0%, rgba(16, 39, 60, 0.42) 55%, transparent 100%);
	pointer-events: none;
}

.damena-hero-section-wrapper .damena-hero-card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 16px;
	z-index: 2;
}

.damena-hero-section-wrapper .damena-hero-card-subcategory {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--damena-hero-accent);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.damena-hero-section-wrapper .damena-hero-card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Aligned to Damena DS & Live-Site Scrims)
   ========================================================================== */

/* Tablet: 768px - 1024px */
@media screen and (max-width: 1024px) {
	.damena-hero-section-wrapper {
		--damena-hero-min-height: 600px;
		--damena-hero-scrim-angle: 270deg;
		--damena-hero-scrim-end-stop: 65%;
		padding: 48px 32px;
	}

	.damena-hero-section-wrapper .damena-hero-inner {
		gap: 32px;
	}

	.damena-hero-section-wrapper .damena-hero-left {
		flex-basis: 480px;
		max-width: 480px;
	}

	.damena-hero-section-wrapper .damena-hero-title {
		font-size: clamp(28px, 4.2vw, 36px);
	}

	.damena-hero-section-wrapper .damena-hero-card-item {
		flex-basis: 180px;
		width: 180px;
		height: 250px;
	}
}

/* Mobile: <= 767px */
@media screen and (max-width: 767px) {
	.damena-hero-section-wrapper {
		--damena-hero-min-height: 560px;
		--damena-hero-scrim-angle: 180deg;
		--damena-hero-scrim-end-stop: 77%;
		padding: 48px 16px 32px;
		justify-content: flex-end;
	}

	.damena-hero-section-wrapper .damena-hero-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.damena-hero-section-wrapper .damena-hero-left {
		flex: none;
		width: 100%;
		max-width: 100%;
		padding-top: 120px;
	}

	.damena-hero-section-wrapper .damena-hero-title {
		font-size: 28px;
		line-height: 1.28;
	}

	.damena-hero-section-wrapper .damena-hero-desc-wrap {
		max-width: 100%;
		margin-bottom: 24px;
	}

	.damena-hero-section-wrapper .damena-hero-desc {
		font-size: 15px;
		line-height: 22px;
	}

	.damena-hero-section-wrapper .damena-hero-cta-row {
		margin-bottom: 24px;
	}

	.damena-hero-section-wrapper .damena-hero-progress-track {
		display: none;
	}

	.damena-hero-section-wrapper .damena-hero-right {
		flex: none;
		width: 100%;
	}

	.damena-hero-section-wrapper .damena-hero-card-item {
		flex-basis: 160px;
		width: 160px;
		height: 210px;
	}
}
