/* Nuvica Hero Slider — base structural styles.
   Colors, typography, spacing are controlled live from Elementor's Style tab;
   this file only handles layout, positioning and responsive breakpoints. */

.nuvica-hero-slider {
	position: relative;
	width: 100%;
	min-height: 100vh;
	overflow: visible; /* was hidden — a tall slide (long title/description) can now grow the section instead of getting clipped at the bottom */
	color: #fff;
	font-family: inherit;
	text-align: left;
	z-index: 1; /* stays behind a normal theme header by default */
}

.nuvica-hero-slider *,
.nuvica-hero-slider *::before,
.nuvica-hero-slider *::after {
	box-sizing: border-box;
}

/* Guard against theme global styles (centered text, max-width resets,
   list-style on nav, etc.) bleeding into the widget. Text-align itself is
   now controlled by the "Content Alignment" Style tab option below, not
   hardcoded here. */
.nuvica-hero-slider ul,
.nuvica-hero-slider li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ---- Slides ---- */
.nuvica-slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .7s ease;
}
.nuvica-slide.active {
	position: relative; /* back in normal flow so its real height (even if taller than the minimum) determines the section's actual height — this is what stops tall slides being clipped */
	display: flow-root; /* stops the child's margin-top (Fine Vertical Nudge) from collapsing/leaking out through this box into the page above it */
	min-height: 100%; /* fills whatever height the .nuvica-hero-slider wrapper's own min-height control gives it — no longer hardcoded to 100vh, so the mobile height control actually works now */
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}
.nuvica-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #1E2528;
}
.nuvica-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,26,29,.94) 0%, rgba(20,26,29,.75) 38%, rgba(20,26,29,.35) 62%, rgba(20,26,29,.55) 100%);
	pointer-events: none;
}
.nuvica-slide-glow {
	position: absolute;
	width: 480px;
	height: 480px;
	max-width: 60vw;
	max-height: 60vw;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .55;
	top: 22%;
	left: 60%;
	pointer-events: none;
	background: #4C9A6C;
}

/* ---- Content ---- */
.nuvica-slide-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	text-align: left;
	padding: 0 90px 40px; /* bottom padding reserves modest space so the button row has breathing room; no longer 90px — that was compounding with the old height:100% stretch to create a much bigger gap than intended */
	max-width: 900px;
	box-sizing: border-box;
}

.nuvica-slide-index {
	font-size: 14px;
	letter-spacing: .12em;
	color: #7FC79B;
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nuvica-slide-index .ln {
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: .6;
}

.nuvica-eyebrow-tag {
	display: inline-block;
	font-size: 11.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
	color: #D7DCD9;
	border: 1px solid rgba(255,255,255,.3);
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 26px;
	width: fit-content;
}

.nuvica-slide-title {
	font-weight: 700;
	font-size: clamp(36px, 5.5vw, 72px);
	line-height: 1.02;
	letter-spacing: -.01em;
	margin: 0 0 26px;
	max-width: 12ch;
	color: #fff;
}
.nuvica-slide-title em {
	font-style: normal;
	color: #7FC79B;
}

.nuvica-slide-desc {
	font-size: 16.5px;
	line-height: 1.65;
	color: #C6CCC9;
	max-width: 440px;
	margin: 0 0 38px;
}

.nuvica-slide-actions {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	margin-bottom: 70px; /* guarantees the dots/pagination row below never collides with the buttons, regardless of how tall the slide content is */
}

.nuvica-btn-primary {
	background-color: #4C9A6C !important;
	background-image: none !important;
	color: #fff !important;
	padding: 16px 34px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .03em;
	border-radius: 2px;
	border: none !important;
	box-shadow: none !important;
	transition: .2s;
	display: inline-block;
	text-decoration: none !important;
}
.nuvica-btn-primary:hover {
	background-color: #7FC79B !important;
	color: #1E2528 !important;
}

.nuvica-btn-textlink {
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: .85;
	color: #fff !important;
	background: none !important;
	border: none !important;
	text-decoration: none !important;
	transition: .2s;
}
.nuvica-btn-textlink:hover {
	opacity: 1;
}
.nuvica-btn-textlink svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

/* ---- Side prev/next ---- */
.nuvica-side-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(255,255,255,.55);
	cursor: pointer;
	writing-mode: vertical-rl;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: .2s;
	user-select: none;
}
.nuvica-side-nav:hover {
	color: #fff;
}
.nuvica-side-nav.prev {
	left: 22px;
}
.nuvica-side-nav.next {
	right: 22px;
	transform: translateY(-50%) rotate(180deg);
}
.nuvica-side-nav .bar {
	width: 1px;
	height: 34px;
	background: currentColor;
	opacity: .5;
}

/* ---- Dots ---- */
.nuvica-dots {
	position: absolute;
	left: 48px;
	bottom: 30px;
	z-index: 20;
	display: flex;
	gap: 10px;
}
.nuvica-dots button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 8px !important;
	height: 8px !important;
	min-width: 8px;
	max-width: 8px;
	border-radius: 50% !important;
	background-color: rgba(255,255,255,.35) !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer;
	transition: .25s;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
	overflow: hidden;
	display: inline-block !important;
}
.nuvica-dots button.active {
	background-color: #4C9A6C !important;
	width: 26px !important;
	max-width: 26px;
	border-radius: 5px !important;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.nuvica-side-nav {
		display: none;
	}
	.nuvica-slide-content {
		padding-left: 24px;
		padding-right: 24px;
		max-width: 100%;
	}
	.nuvica-slide-title {
		max-width: 10ch;
	}
	.nuvica-slide-desc {
		max-width: 340px;
	}
	.nuvica-dots {
		left: 24px;
		bottom: 20px;
	}
}

@media (max-width: 560px) {
	.nuvica-slide-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

/* Compensate for the WordPress admin toolbar while logged in and viewing
   your own site — prevents any "Pull Up Under Header" offset from
   colliding with the slider while you're editing/checking as admin.
   Logged-out visitors never see the admin bar, so this never affects them. */
body.admin-bar .nuvica-hero-slider {
	margin-top: 32px !important;
}
@media screen and (max-width: 782px) {
	body.admin-bar .nuvica-hero-slider {
		margin-top: 46px !important;
	}
}

/* Elementor editor: always show first slide, ignore JS state issues while editing */
.elementor-editor-active .nuvica-slide.active {
	opacity: 1;
	visibility: visible;
}

/* NOTE: earlier versions force-zeroed this widget's margin/padding here
   with !important, which also broke Elementor's own Advanced tab margin/
   padding controls for this widget. Removed — full-bleed width is handled
   entirely by the "Break Out to Full Browser Width" control instead, which
   only touches .nuvica-hero-slider itself, not the Elementor wrapper, so
   your Advanced tab spacing controls work normally again. */
