/**
 * Page: Landing - 02 (Video)
 * Auto-loaded by enqueue.php when page-landing-02-video template is active.
 *
 * @package Kaizen_Child_Theme
 */

/* ── Hide the site header on this template ──────────────────────────────── */
/* To re-enable, remove this block and uncomment the set_query_var() calls   */
/* in page-landing-02-video.php.                                             */
#masthead,
.site-header {
	display: none !important;
}
html { margin-top: 0 !important; }
body { padding-top: 0 !important; }
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
	--vlp-black:      #0a0a0a;
	--vlp-dark:       #111111;
	--vlp-white:      #ffffff;
	--vlp-off-white:  #f4f0ea;
	--vlp-accent:     #c9a96e;   /* warm gold — swap per client */
	--vlp-accent-dk:  #a8864e;
	--vlp-overlay:    rgba(0, 0, 0, 0.45);
	--vlp-radius:     4px;
	--vlp-max-w:      860px;
	--vlp-transition: 0.25s ease;
}

/* ── Reset helpers ───────────────────────────────────────────────────────── */
.vlp-hero,
.vlp-info,
.vlp-footer {
	box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   Full-viewport Vimeo background with centered logo
   ═══════════════════════════════════════════════════════════════════════════ */
.vlp-hero {
	position: relative;
	width: 100%;
	height: 100dvh;          /* dynamic viewport height — handles mobile chrome */
	min-height: 560px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vlp-black);
}

/* ── Vimeo background iframe ─────────────────────────────────────────────── */
.vlp-hero__video-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

/* Vimeo background=1 iframes need this trick to fill the viewport */
.vlp-hero__video-bg iframe {
	position: absolute;
	top:    50%;
	left:   50%;
	width:  100vw;
	height: 56.25vw;          /* 16:9 */
	min-height: 100vh;
	min-width:  177.78vh;     /* 16:9 inverse */
	transform: translate(-50%, -50%);
	border: 0;
}

/* Fallback gradient when no Vimeo ID */
.vlp-hero__video-bg--fallback {
	background: radial-gradient(ellipse at 60% 40%, #1a1a2e, #0a0a0a 70%);
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.vlp-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--vlp-overlay);
}

/* ── Content ─────────────────────────────────────────────────────────────── */
.vlp-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 24px;
	width: 100%;
	max-width: var(--vlp-max-w);
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.vlp-hero__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.vlp-hero__logo {
	display: block;
	max-width: min(420px, 70vw);
	height: auto;
	filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.8));
}

.vlp-hero__logo--text {
	font-size: clamp(2rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--vlp-white);
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

/* ── Tagline ─────────────────────────────────────────────────────────────── */
.vlp-hero__tagline {
	margin-top: 24px;
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
	max-width: 580px;
}

/* ── Scroll cue ──────────────────────────────────────────────────────────── */
.vlp-hero__scroll-cue {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.6);
	transition: color var(--vlp-transition), opacity var(--vlp-transition);
	animation: vlp-bounce 2s ease-in-out infinite;
}
.vlp-hero__scroll-cue:hover {
	color: var(--vlp-white);
}

@keyframes vlp-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0);    }
	50%       { transform: translateX(-50%) translateY(6px);  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INFO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.vlp-info {
	background: var(--vlp-off-white);
	padding: clamp(60px, 8vw, 100px) 24px;
}

.vlp-info__inner {
	max-width: var(--vlp-max-w);
	margin: 0 auto;
}

/* WP page content typography */
.vlp-info__inner p,
.vlp-info__inner h2,
.vlp-info__inner h3 {
	color: var(--vlp-dark);
}
.vlp-info__inner p {
	font-size: 1.0625rem;
	line-height: 1.75;
	margin-bottom: 1.25em;
}
.vlp-info__inner h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	margin-bottom: 0.75em;
}

/* ── Contact + Booking row ───────────────────────────────────────────────── */
.vlp-contact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: clamp(40px, 6vw, 64px);
	padding-top: 32px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	flex-wrap: wrap;
}

.vlp-contact__email-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vlp-contact__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.4);
}

.vlp-contact__email {
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--vlp-dark);
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	transition: color var(--vlp-transition), border-color var(--vlp-transition);
}
.vlp-contact__email:hover {
	color: var(--vlp-accent-dk);
	border-color: var(--vlp-accent-dk);
}

/* ── Book Now button ─────────────────────────────────────────────────────── */
.vlp-btn--book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 36px;
	background: var(--vlp-dark);
	color: var(--vlp-white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--vlp-radius);
	transition: background var(--vlp-transition), transform var(--vlp-transition);
	white-space: nowrap;
}
.vlp-btn--book:hover {
	background: var(--vlp-accent-dk);
	transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.vlp-footer {
	background: var(--vlp-black);
	padding: 40px 24px;
}

.vlp-footer__inner {
	max-width: var(--vlp-max-w);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.vlp-footer__logo {
	max-height: 36px;
	width: auto;
	opacity: 0.85;
}

.vlp-footer__site-name {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--vlp-white);
	letter-spacing: 0.06em;
}

.vlp-footer__contact a {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color var(--vlp-transition);
}
.vlp-footer__contact a:hover {
	color: var(--vlp-white);
}

/* ── Social links ────────────────────────────────────────────────────────── */
.vlp-footer__social {
	display: flex;
	gap: 16px;
	align-items: center;
}
.vlp-social-link {
	color: rgba(255, 255, 255, 0.5);
	transition: color var(--vlp-transition);
	display: flex;
	align-items: center;
}
.vlp-social-link:hover {
	color: var(--vlp-white);
}
.vlp-social-link svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* ── Footer nav (renders only when uncommented + menu assigned) ──────────── */
.vlp-footer__nav {
	display: flex;
	align-items: center;
}
.vlp-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}
.vlp-footer__menu a {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	letter-spacing: 0.06em;
	transition: color var(--vlp-transition);
}
.vlp-footer__menu a:hover {
	color: var(--vlp-white);
}

.vlp-footer__copy {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.3);
	margin: 0;
}
.vlp-footer__copy a {
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: color var(--vlp-transition);
}
.vlp-footer__copy a:hover {
	color: rgba(255, 255, 255, 0.75);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

	.vlp-hero__logo {
		max-width: min(280px, 80vw);
	}

	.vlp-contact {
		flex-direction: column;
		align-items: flex-start;
	}

	.vlp-btn--book {
		width: 100%;
		text-align: center;
	}

	.vlp-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.vlp-footer__copy {
		width: 100%;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLAYLIST MODE
   Multiple stacked <video> elements — only .vlp-playlist-video--active shows.
   The JS controller manages opacity and z-index during transitions.
   ═══════════════════════════════════════════════════════════════════════════ */

#vlp-playlist-container {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.vlp-playlist-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	z-index: 0;
	/* No transition here — JS handles timing precisely per-transition type */
}

.vlp-playlist-video--active {
	opacity: 1;
	z-index: 1;
}

/* ── Transition overlay (fade-to-black / fade-to-white) ─────────────────── */
#vlp-transition-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: none;    /* JS sets display:block and manages opacity */
	opacity: 0;
	pointer-events: none;
}
