/**
 * video_module.css
 *
 * Styles for template-parts/modules/video_module.php
 * Full-width section with background image, left-aligned content,
 * Watch Video button, and modal overlay.
 */

/* ---------------------------------------------------------------
   Section
--------------------------------------------------------------- */
.video-module {
	position: relative;
	width: 100%;
	height: 100svh;
	/*min-height: 100vh;*/
	max-height: 810px;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	padding: 60px 40px 40px;
}

/* Background image — absolute fill */
.video-module__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Gradient overlay — left-to-right dark fade for text legibility */
.video-module::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
	pointer-events: none;
}

/* ---------------------------------------------------------------
   Content column
--------------------------------------------------------------- */
.video-module__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 60%;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Title — WYSIWYG output */
.video-module__title {
	color: var(--white);
}

.video-module__title p,
.video-module__title h2,
.video-module__title h3 {
	font-size: clamp(36px, 4.5vw, 64px);
	font-weight: 900;
	line-height:0.9;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0;
	color:var(--white)
}

/* Body copy */
.video-module__body {
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	line-height: 24px;
	max-width: 70%;
}

.video-module__body p {
	margin: 0 0 12px;
	color:var(--white)
}

.video-module__body p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Watch Video button
--------------------------------------------------------------- */
.video-module__btn {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	margin-top: auto;
}

.video-module__btn:focus-visible {
	outline: 2px solid var(--yellow);
	outline-offset: 4px;
	border-radius: 2px;
}

/* Yellow circle with play triangle */
.video-module__btn-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 75px;
	height: 75px;
	border-radius: 50%;
	background-color: var(--yellow);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-module__btn-icon::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent var(--black);
	margin-left: 5px; /* visual centering of triangle within circle */
}

.video-module__btn:hover .video-module__btn-icon,
.video-module__btn:focus-visible .video-module__btn-icon {
	/*transform: scale(1.08);*/
	background-color: var(--white);
}

/* Label text */
.video-module__btn-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0em;
	color: var(--white);
}

/* ---------------------------------------------------------------
   Modal overlay
--------------------------------------------------------------- */
.video-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
	opacity: 1;
	visibility: visible;
}

/* Backdrop — click to close */
.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

/* Inner wrapper */
.video-modal__wrapper {
	position: relative;
	z-index: 1;
	width: 90vw;
	max-width: 1200px;
}

/* Close button — top-right of wrapper */
.video-modal__close {
	position: absolute;
	top: -48px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: var(--white);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
	border-color: var(--yellow);
	color: var(--yellow);
	outline: none;
}

/* 16:9 responsive embed container */
.video-modal__embed {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	background-color: var(--black);
}

.video-modal__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Prevent body scroll while modal is open */
body.video-modal-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------
   Responsive — 1280px
--------------------------------------------------------------- */
@media (max-width: 1280px) {
	.video-module {
		padding: 60px 40px;
	}
}

/* ---------------------------------------------------------------
   Responsive — 992px
--------------------------------------------------------------- */
@media (max-width: 992px) {
	.video-module {
		padding: 40px 20px;
		min-height: 90vh;
	}

	.video-module__content {
		max-width: 100%;
	}
}

/* ---------------------------------------------------------------
   Responsive — 922px
--------------------------------------------------------------- */
@media (max-width: 922px) {
	.video-module {
		align-items: stretch;
	}

	.video-module__content {
		height: 100%;
	}
}

/* ---------------------------------------------------------------
   Responsive — 768px
--------------------------------------------------------------- */
@media (max-width: 768px) {
	.video-module {
		padding: 40px 20px;
		min-height: 90vh;
		align-items: stretch;
	}

	.video-modal__wrapper {
		width: 95vw;
	}

	.video-modal__close {
		top: -44px;
	}

	.video-module__title p, 
	.video-module__title h2, 
	.video-module__title h3 {
		font-size: 40px;
		line-height: 38px;
		letter-spacing: -0.94px;
	}

	.video-module__body {
		font-size: 15px;
		line-height: 21px;
		max-width: 100%;
	}

	.video-module__content {
		gap: 16px;
	}

	.video-module__btn-icon::after {
		border-width: 7px 0 7px 12px;
		margin-left: 4px;
	}
	
	.video-module__btn-icon {
    width: 47px;
    height: 47px;
  }

	.video-module__btn-label {
		font-size: 15px;
		letter-spacing: 0px;
	}

}

