/**
 * VM Hero Block - Styles
 *
 * Full-width hero with media background (image, slider, or video)
 * and overlaid title/content.
 *
 * @package VM_Base_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   Hero wrapper
   ========================================================================== */

.vm-hero-block {
	position: relative;
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 90px 30px !important;
	height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.vm-hero-block:before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--teal-ink);
	z-index: 1;
	height: 100%;
	width: 100%;
	opacity: 0.55;
	pointer-events: none;

}

/* ==========================================================================
   Media layer — fills the hero behind everything
   ========================================================================== */

.vm-hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Images */
.vm-hero-figure {
	margin: 0;
	width: 100%;
	height: 100%;
}

.vm-hero-figure img,
.vm-hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Splide overrides for hero context
   ========================================================================== */

.vm-hero-splide,
.vm-hero-splide .splide__track,
.vm-hero-splide .splide__list,
.vm-hero-splide .splide__slide {
	height: 100%;
}

.splide__arrows{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 0 var(--wp--preset--spacing--medium);
}

.splide__arrow.splide__arrow--prev{
	transform: rotate(180deg);
}

/* Arrows — float over the overlay */
.vm-hero-splide .splide__arrow {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
	z-index: 3;
}

.vm-hero-splide .splide__arrow svg {
	fill: #fff;
}

.vm-hero-splide .splide__arrow:hover {
	background: rgba(255, 255, 255, 0.4);
	border-color: #fff;
}

/* Pagination dots */
.vm-hero-splide .splide__pagination {
	z-index: 3;
	bottom: 1.5rem;
	position: absolute;
	width: 100%;
}

.vm-hero-splide .splide__pagination__page {
	background: rgba(255, 255, 255, 0.5);
}

.vm-hero-splide .splide__pagination__page.is-active {
	background: #fff;
}

/* ==========================================================================
   Overlay — darkens media so text is readable
   ========================================================================== */

.vm-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1;
	pointer-events: none;
}

/* ==========================================================================
   Content — sits above the overlay
   ========================================================================== */

.vm-hero-content {
	position: relative;
	z-index: 2;
	text-align: left;
	color: #fff;
	/* padding: var(--wp--preset--spacing--large) var(--wp--preset--spacing--medium); */
	max-width: 1200px;
	/* background: #aaa; */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	height: 100%;
	width: 100%;
	pointer-events: none;
	
}

.vm-hero-content.is-logo-only {
	align-items: center;
	text-align: center;
}

.vm-hero-logo {
	margin: 0 0 var(--wp--preset--spacing--large);
}

.vm-hero-logo .custom-logo-link {
	display: block;
	pointer-events: auto;
}

.vm-hero-logo .custom-logo-link img {
	display: block;
	max-width: min(22rem, 72vw);
	width: 100%;
	height: auto;
	filter: none;
}

.vm-hero-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	margin-bottom: var(--wp--preset--spacing--medium);
	display: flex;
	align-items: center;
	
}

.vm-hero-eyebrow:before,
.vm-hero-eyebrow:after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 2px;
	background: #fff;
}

.vm-hero-eyebrow:before {
	margin-right: var(--wp--preset--spacing--small);
}

.vm-hero-eyebrow:after {
	margin-left: var(--wp--preset--spacing--small);
}

.vm-hero-eyebrow,
.vm-hero-title,
.vm-hero-text {
	color: var(--wp--preset--color--secondary);
}

.vm-hero-title {
	font-family: var(--wp--preset--font-family--zilla-slab, Georgia, serif);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: var(--wp--preset--spacing--medium);
	max-width: 600px;
}

.vm-hero-text {
	font-size: var(--wp--preset--font-size--medium-large);
	line-height: 1.6;
	margin: 0;
}

/* ==========================================================================
   Links row
   ========================================================================== */

.vm-hero-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--small);
	justify-content: center;
	margin-top: var(--wp--preset--spacing--medium);
	pointer-events: auto !important;
}

.vm-hero-link {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.75rem;
	border-radius: 3px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

/* First link — solid primary button */
.vm-hero-link:first-child {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: 2px solid var(--wp--preset--color--primary);
}

.vm-hero-link:first-child:hover {
	background: transparent;
	color: #fff;
}

/* Subsequent links — ghost/outline style */
.vm-hero-link:not(:first-child) {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.7);
}

.vm-hero-link:not(:first-child):hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #fff;
}

/* ==========================================================================
   Editor placeholder
   ========================================================================== */

.vm-hero-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 300px;
	background: var(--wp--preset--color--neutral-lighter);
	border: 2px dashed var(--wp--preset--color--neutral-light);
	color: var(--wp--preset--color--neutral-medium);
	font-size: var(--wp--preset--font-size--medium);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media ( max-width: 850px ) {
	.vm-hero-block {
		min-height: 50vh;
	}

	.vm-hero-title {
		/* font-size: var(--wp--preset--font-size--huge); */
		font-size: 45px;
	}

	.vm-hero-text {
		/* font-size: var(--wp--preset--font-size--medium-large); */
		font-size: 18px;
	}

	.vm-hero-links {
		/* flex-direction: column;
		align-items: center; */
	}

	.vm-hero-link {
		width: 100%;
		justify-content: center;
	}

	.vm-hero-content{
		/* padding: 0 30px; */
	}
}
