/* ==========================================================================
   Tranquility Hero Banner — Frontend Styles
   ========================================================================== */

.tqh-hero {
	--tqh-h-desktop: 830px;
	--tqh-h-tablet: 700px;
	--tqh-h-mobile: 400px;
	--tqh-overlay: 0.45;
	--tqh-divider: #ffffff;
	--tqh-btn-bg: #A8B9AA;
	--tqh-btn-hover: #201D1A;
	--tqh-btn-text: #FFFFFF;

	position: relative;
	width: 100%;
	height: var(--tqh-h-desktop);
	min-height: var(--tqh-h-desktop);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #111; /* prevents any flash-of-white before poster loads */
	contain: layout paint; /* helps avoid CLS from injected media */
}

/* ---------- Background layer (video + poster + overlay) ---------- */

.tqh-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.tqh-hero__poster,
.tqh-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.tqh-hero__poster {
	z-index: 1;
}

.tqh-hero__video {
	z-index: 2;
	opacity: 0;
	transition: opacity 0.6s ease;
}

/* Once JS confirms playback has actually started, fade the video in over the poster */
.tqh-hero.is-playing .tqh-hero__video {
	opacity: 1;
}

.tqh-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: #000;
	opacity: var(--tqh-overlay);
	pointer-events: none;
}

/* ---------- Content ---------- */

.tqh-hero__content {
	position: relative;
	z-index: 4;
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tqh-hero__title {
	margin: 0;
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: 72px;
	font-weight: 400;
	line-height: 1.15;
	text-transform: uppercase;
	color: #ffffff;
}

.tqh-hero__divider {
	display: block;
	width: 260px;
	max-width: 70%;
	height: 3px;
	margin: 26px auto 18px;
	background-color: var(--tqh-divider);
	opacity: 0.95;
}

/* Subtitle — sits directly below the divider, same serif family as the title */
.tqh-hero__label {
	margin: 0 0 10px;
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #ffffff;
}

.tqh-hero__body {
	margin: 0 0 25px;
	max-width: 100%;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 26px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.5;
	color: #ffffff;
}

/* ---------- Buttons ---------- */

.tqh-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
}

.tqh-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 9px 20px;
    border-radius: 8px;
    background-color: var(--tqh-btn-bg);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--tqh-btn-text, #FFFFFF);
    transition: color 0.4s ease, box-shadow 0.4s ease;
    isolation: isolate;
}

/* Text stays white on hover — only the background reveal changes */
.tqh-btn:hover,
.tqh-btn:focus-visible {
	color: var(--tqh-btn-text, #FFFFFF);
}

.tqh-btn:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

/* Left-to-right premium reveal: a pseudo-element slides in from the left */
.tqh-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--tqh-btn-hover);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s ease;
	z-index: -1;
}

.tqh-btn:hover::before,
.tqh-btn:focus-visible::before {
	transform: scaleX(1);
}

.tqh-btn__label {
	position: relative;
	z-index: 1;
}

@media (min-width: 981px) {

	.tqh-hero__content {
		
		margin-top: -180px !important;
	}
}
/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.tqh-hero {
		height: var(--tqh-h-tablet);
		min-height: var(--tqh-h-tablet);
	}
	.tqh-hero__title {
		font-size: 56px;
	}
	.tqh-hero__body {
		font-size: 24px;
	}
}

@media (max-width: 640px) {
	.tqh-hero {
		height: var(--tqh-h-mobile);
		min-height: var(--tqh-h-mobile);
	}
	.tqh-hero__title {
		font-size: 38px;
	}
	.tqh-hero__divider {
		width: 180px;
	}
	.tqh-hero__body {
		font-size: 20px;
	}
	/* Buttons stay side by side (left / right) on mobile */
	.tqh-hero__buttons {
		flex-direction: row;
		gap: 12px;
	}
	.tqh-btn {
		padding: 8px 20px;
		font-size: 15px;
	}
}

/* Respect reduced-motion preference: keep the video but drop the hover slide to an instant swap */
@media (prefers-reduced-motion: reduce) {
	.tqh-btn::before,
	.tqh-hero__video {
		transition: none;
	}
}
