/**
 * 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;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;

	padding: clamp(40px, 6vw, 100px) clamp(20px, 5vw, 60px);
}

/* ==========================================================================
   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%;
}

/* Single image — hide all Splide chrome */
.vm-hero-splide.is-single .splide__arrows,
.vm-hero-splide.is-single .splide__pagination {
	display: none;
}

.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.38);
	z-index: 1;
	pointer-events: none;
}

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

.vm-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	max-width: 820px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.vm-hero-title {
	font-family: var(--font-serif);
	font-size: var(--wp--preset--font-size--gigantic);
	font-weight: 400;
	line-height: 1.0;
	color: #fff;
	margin-bottom: var(--wp--preset--spacing--medium);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	letter-spacing: -1px;
}

.vm-hero-text {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.vm-hero-tag{
	display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    line-height: 1.4em;
	max-width: 640px;
}
/* ==========================================================================
   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: 768px ) {
	.vm-hero-block {
		min-height: 50vh;
	}

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

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