/**
 * Hero Block Block Styles
 */

@keyframes rvn-fade-in {
	to {
		opacity: 1;
	}
}

.hero-block-block {
	position: relative;
	min-height: 1000px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: clamp(120px, 15vh, 180px);
	overflow: clip;
}

/* Homepage specific height */
.home .hero-block-block {
	min-height: 1200px;
}

/* Background Video */
.hero-block__background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hero-block__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.hero-block__image {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: 100%;
	height: 1000px !important;
	transform: translate(-50%, -50%);
	object-fit: cover;
}

/* Homepage specific image height */
.home .hero-block__image {
	height: 1200px !important;
}

.hero-block__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

/* Content */
.hero-block__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 2rem;
}

@media (min-width: 1475px) {
	.hero-block__content {
		padding: 2rem 0;
	}
}

.hero-block__inner {
	margin: 0 auto;
	color: #fff;
}

.hero-block__heading {

}

.hero-block__subheading {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	line-height: 1.6;
	margin: 0;

	max-width: 912px;
}

/* Alignment styles */
.hero-block-block.alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.hero-block-block.alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Content With Image Overlap Variant */
.hero-block--content-with-image-overlap.hero-block-block {
	padding-top: 0;
	align-items: stretch;
	min-height: 850px;
	margin-bottom: 445px !important;
	overflow: visible;
}

.hero-block--content-with-image-overlap .hero-block__image {
	height: 850px !important;
}

.hero-block--content-with-image-overlap .hero-block__content {
	margin-top: 0 !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 10.5rem;
	padding-bottom: 17.25rem;
}

/* Single Blog Hero Variant */
.single-blog-hero.hero-block--content-with-image-overlap {
	margin-bottom: 445px !important;
}

.hero-block--content-with-image-overlap .hero-block__background {
	height: 850px;
	max-height: 850px;
}

.hero-block__overlap-content {
	position: relative;
	z-index: 2;
	width: 100%;
	color: #fff;
}

.hero-block__eyebrow {
	text-transform: uppercase;
	color: #fff;
	margin-bottom: var(--rvn-spacing-md);
}

/* Two Grid Layout */
.hero-block__two-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 140px;
	align-items: center;
}

.hero-block__grid-left .hero-block__heading {
	margin: 0;
}

.hero-block__grid-right .hero-block__subheading {
	margin: 0;
}

/* Single Column Layout */
.hero-block__single-column {
	max-width: 1224px;
}

.hero-block__single-column .hero-block__heading {
	margin-bottom: 30px;
}

.hero-block__single-column .hero-block__subheading {
	margin: 0;
}

/* Overlap Image */
.hero-block__overlap-image-wrapper {
	position: absolute;
	bottom: -445px;
	left: 50%;
	transform: translate(-50%); 
	width: 100%;
	z-index: 3;
	pointer-events: none;
}

.hero-block__overlap-image {
	height: 700px;
	width: 100%;
	border-radius: 30px;
	overflow: hidden;
}

.hero-block__overlap-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Responsive */
@media (max-width: 1024px) {
	.hero-block--content-with-image-overlap.hero-block-block {
		margin-bottom: 365px !important;
	}

	.hero-block__overlap-image-wrapper {
		bottom: -365px;
	}

	.hero-block__overlap-image {
		height: 500px;
		border-radius: 20px;
	}

	.hero-block--content-with-image-overlap .hero-block__content {
		padding-bottom: 10rem;
	}

	.hero-block__two-grid {
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.hero-block-block {
		min-height: 70vh;
	}

	.home .hero-block-block {
		min-height: 749px;
	}

	.hero-block__image {
		height: 749px !important;
	}

	.hero-block__heading {
		margin-bottom: 1rem;
	}

	.hero-block--content-with-image-overlap.hero-block-block {
		margin-bottom: 365px !important;
		min-height: 620px;
	}

	.hero-block--content-with-image-overlap .hero-block__background {
		height: 100%;
		max-height: none;
	}

	.hero-block__overlap-image-wrapper {
		bottom: -365px;
	}

	.hero-block__two-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.hero-block__overlap-image {
		height: 500px;
		border-radius: 15px;
	}
}

@media (max-width: 480px) {
	.hero-block--content-with-image-overlap.hero-block-block {
		margin-bottom: 165px !important;
	}

	.hero-block__overlap-image-wrapper {
		bottom: -165px;
	}

	.hero-block__overlap-image {
		height: 300px;
		border-radius: 12px;
	}

	.hero-block--content-with-image-overlap .hero-block__content {
		padding-top: 6.5rem;
	}
}

/* Two Column InnerBlocks Variant */
.hero-block--two-column-innerblocks {
	margin-bottom: 0;
	overflow: visible;
}

.hero-block--two-column-innerblocks .hero-block__background {
	display: none;
}

.hero-block--two-column-innerblocks .hero-block__overlay {
	display: none;
}

.hero-block--two-column-innerblocks .hero-block__content {
	width: 100%;
}

.hero-block--two-column-innerblocks .hero-block__two-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 130px;
	align-items: center;
}

.hero-block--two-column-innerblocks .hero-block__grid-left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--rvn-spacing-4xl) 0;
	color: var(--wp--preset--color--white);
}

/* InnerBlocks Container Styling */
.hero-block--two-column-innerblocks .hero-block__grid-left .wp-block {
	max-width: 100%;
}

.hero-block--two-column-innerblocks .hero-block__grid-left > * {
	margin-left: 0;
	margin-right: 0;
}

.hero-block--two-column-innerblocks .hero-block__grid-left .acf-innerblocks-container h1 {
	margin-bottom: var(--rvn-spacing-xl);
}

/* Image Column with Overlap Effect */
.hero-block--two-column-innerblocks .hero-block__grid-right {
	position: relative;
	overflow: hidden;
}

.hero-block--two-column-innerblocks .hero-block__overlap-image {
	position: relative;
	width: 100%;
	height: 100%;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 200px), calc(100% - 200px) 100%, 0 100%);
	border-radius: var(--rvn-radius-lg);
}

.hero-block--two-column-innerblocks .hero-block__overlap-image img {
	width: 100%;
	height: 100%;
	min-height: 600px;
	object-fit: cover;
	display: block;
}

/* Bird Overlay */
.hero-block--two-column-innerblocks .hero-block__bird-overlay {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-image: url('/wp-content/themes/rvn-bt-theme/build/images/RC_Bird_Overlay.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: bottom right;
	pointer-events: none;
	opacity: 0.7;
	z-index: 2;
}

/* Responsive - Two Column InnerBlocks */
@media (max-width: 1400px) {
	.hero-block--two-column-innerblocks .hero-block__two-grid {
		gap: 60px;
	}
}

@media (max-width: 1200px) {
	.hero-block--two-column-innerblocks .hero-block__grid-left {
		padding: var(--rvn-spacing-3xl) var(--rvn-spacing-xl);
	}

	.hero-block--two-column-innerblocks .hero-block__overlap-image {
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 150px), calc(100% - 150px) 100%, 0 100%);
	}

	.hero-block--two-column-innerblocks .hero-block__bird-overlay {
		width: 180px;
		height: 203px;
	}
}

@media (max-width: 1024px) {
	.hero-block--two-column-innerblocks .hero-block__two-grid {
		grid-template-columns: 1fr;
		min-height: auto;
		gap: 30px;
	}

	.hero-block--two-column-innerblocks .hero-block__grid-left {
		padding: var(--rvn-spacing-xl) var(--rvn-spacing-md);
		min-height: 20vh;
	}

	.hero-block--two-column-innerblocks .hero-block__overlap-image {
		min-height: 300px;
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), calc(100% - 80px) 100%, 0 100%);
	}

	.hero-block--two-column-innerblocks .hero-block__bird-overlay {
		width: 60vw;
		height: 30vh;
	}
}
