/* ==========================================================================
   Onirik custom homepage hero slider
   Full-bleed banners (4:3, no crop) with a CTA button per slide.
   ========================================================================== */

.onirik-hero {
	position: relative;
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
	background: #f3efe9;
	/* padding-ratio reserves real box height (1440/1920 = 75%) in every layout
	   context — more robust than aspect-ratio inside Elementor flex containers. */
	padding-top: 75%;
}

.onirik-hero__viewport {
	position: absolute;
	inset: 0;
}

/* The Elementor section/widget wrapping the hero can collapse to 0 height on
   mobile (a leftover of the RevSlider widget it replaced, whose height came
   from JS). The hero is full-bleed, so its height is 75% of the viewport width
   (1440/1920). Reserve exactly that on the wrapper chain so the next section
   never overlaps. */
.elementor-widget-shortcode:has(.onirik-hero),
.elementor-element:has(> .elementor-widget-container > .elementor-shortcode > .onirik-hero) {
	min-height: 75vw;
}

.onirik-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease;
	will-change: opacity;
}

.onirik-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.onirik-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;       /* same ratio as container => full image, no crop */
	object-position: center;
	display: block;
}

/* ---------- CTA button ---------- */
.onirik-hero__cta {
	position: absolute;
	left: 50%;
	bottom: 7%;
	transform: translateX(-50%);
	z-index: 3;
	display: inline-block;
	padding: 13px 34px;
	background: #4a4034;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(40, 30, 20, .28);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
	white-space: nowrap;
}

.onirik-hero__cta:hover,
.onirik-hero__cta:focus-visible {
	background: #a6785a;
	color: #fff;
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 12px 30px rgba(40, 30, 20, .34);
}

/* ---------- Arrows ---------- */
/* High specificity + !important to beat NasaTheme's global button styles
   (which otherwise force a dark background). */
.onirik-hero .onirik-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 46px !important;
	height: 46px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none !important;
	border-radius: 50% !important;
	background: #fff !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(40, 30, 20, .18);
	transition: background .2s ease, box-shadow .2s ease;
	padding: 0 !important;
}

/* Chevrons drawn in CSS (no font glyph — renders identically on every device). */
.onirik-hero .onirik-hero__nav::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	border-right: 2.5px solid #000;
	border-bottom: 2.5px solid #000;
	background: none !important;
}

.onirik-hero .onirik-hero__prev::before { transform: rotate(135deg); margin-left: 3px; }
.onirik-hero .onirik-hero__next::before { transform: rotate(-45deg); margin-right: 3px; }

.onirik-hero .onirik-hero__nav:hover {
	background: #fff !important;
	box-shadow: 0 6px 18px rgba(40, 30, 20, .26);
}
.onirik-hero__prev { left: 18px; }
.onirik-hero__next { right: 18px; }

/* ---------- Dots ---------- */
.onirik-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	gap: 9px;
}

.onirik-hero__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(74, 64, 52, .35);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.onirik-hero__dot.is-active {
	background: #4a4034;
	transform: scale(1.25);
}

/* ---------- Promo banner ([onirik_banner]) ---------- */
.onirik-banner {
	display: block;
	width: 100%;
	line-height: 0;
	overflow: hidden;
}

.onirik-banner img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .5s ease;
}

.onirik-banner:hover img {
	transform: scale(1.02);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	.onirik-hero__cta {
		bottom: 6%;
		padding: 10px 22px;
		font-size: 11.5px;
		letter-spacing: .08em;
	}
	.onirik-hero__nav {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}
	.onirik-hero__prev { left: 8px; }
	.onirik-hero__next { right: 8px; }
	.onirik-hero__dots { bottom: 10px; }
}
