/* Lavation front page — intro + brand showcase, sitting inside the standard
   Salient page below the video hero. */

.lavi,
.lavx {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

.lavi *,
.lavi *::before,
.lavi *::after,
.lavx *,
.lavx *::before,
.lavx *::after {
	box-sizing: border-box;
}

/* ---------- Intro ---------- */

.lavi {
	padding: 86px 0 94px;
	background: #ffffff;
	color: #26343b;
}

.lavi-inner {
	width: min(1140px, calc(100% - 48px));
	margin: 0 auto;
	text-align: center;
}

.lavi-kicker {
	margin: 0 0 14px !important;
	color: #128f86 !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.lavi-inner h2 {
	margin: 0 auto 18px !important;
	max-width: 30ch;
	color: #16232a !important;
	font-size: clamp(28px, 4vw, 44px) !important;
	line-height: 1.15;
}

.lavi-lead {
	margin: 0 auto !important;
	max-width: 68ch;
	color: #55666f !important;
	font-size: 18px !important;
	line-height: 1.65;
}

.lavi-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 56px;
	text-align: left;
}

.lavi-pillar {
	padding: 26px 26px 28px;
	border-radius: 14px;
	background: #f6f8f9;
	border: 1px solid #e4eaed;
	border-top: 3px solid #27ccc0;
}

.lavi-pillar h3 {
	margin: 0 0 10px !important;
	color: #16232a !important;
	font-size: 19px !important;
	line-height: 1.25;
}

.lavi-pillar p {
	margin: 0 !important;
	color: #5a6a73 !important;
	font-size: 15px !important;
	line-height: 1.6;
}

/* ---------- Brand showcase ---------- */

.lavx {
	--lavx-accent: #27ccc0;
	padding: 90px 0 100px;
	color: #eef4f7;
	background:
		radial-gradient(900px 420px at 12% 0%, rgba(39, 204, 192, 0.12), transparent 60%),
		radial-gradient(760px 380px at 88% 12%, rgba(39, 204, 192, 0.07), transparent 58%),
		#0a0f14;
}

.lavx-inner {
	width: min(1140px, calc(100% - 48px));
	margin: 0 auto;
}

.lavx-head {
	max-width: 720px;
	margin: 0 auto 44px;
	text-align: center;
}

.lavx-kicker {
	margin: 0 0 12px !important;
	color: var(--lavx-accent) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.lavx-head h2 {
	margin: 0 0 14px !important;
	color: #ffffff !important;
	font-size: clamp(28px, 3.6vw, 40px) !important;
	line-height: 1.15;
}

.lavx-sub {
	margin: 0 !important;
	color: #9fb0ba !important;
	font-size: 17px !important;
	line-height: 1.6;
}

.lavx-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.lavx-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px;
	border-radius: 16px;
	text-decoration: none !important;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.09);
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.lavx-card[data-brand="woohim"] { --lavx-brand: #2fd4d4; }
.lavx-card[data-brand="vowauthor"] { --lavx-brand: #e6c168; }
.lavx-card[data-brand="obitauthor"] { --lavx-brand: #8fb5e2; }
.lavx-card[data-brand="mancavexl"] { --lavx-brand: #e0a83c; }
.lavx-card[data-brand="kitchensaints"] { --lavx-brand: #c3cf6b; }
.lavx-card[data-brand="sketchyhome"] { --lavx-brand: #4fd1c5; }
.lavx-card[data-brand="eternal"] { --lavx-brand: #7ec8e3; }

.lavx-card:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.055);
	border-color: color-mix(in srgb, var(--lavx-brand, #27ccc0) 55%, transparent);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lavx-card-wide {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	gap: 32px;
}

.lavx-plate {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 176px;
	padding: 14px;
	border-radius: 12px;
	overflow: hidden;
}

.lavx-plate img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.lavx-plate-dark {
	background: #000000;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.lavx-plate-light {
	background: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Wordmarks are much wider than they are tall, so cap the width to keep every
   logo at a similar optical weight. */
.lavx-card[data-brand="woohim"] .lavx-plate img {
	max-width: 178px;
}

.lavx-card-wide .lavx-plate {
	flex: 0 0 320px;
	height: 150px;
}

.lavx-card-wide .lavx-plate img {
	max-width: 230px;
}

.lavx-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lavx-tag {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lavx-brand, #27ccc0);
	border: 1px solid color-mix(in srgb, var(--lavx-brand, #27ccc0) 45%, transparent);
}

.lavx-name {
	color: #ffffff;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
}

.lavx-desc {
	color: #9fb0ba;
	font-size: 14.5px;
	line-height: 1.55;
	flex: 1;
}

.lavx-host {
	color: var(--lavx-brand, #27ccc0);
	font-size: 13px;
	letter-spacing: 0.02em;
}

.lavx-apps {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 32px;
	align-items: center;
	margin-top: 24px;
	padding: 32px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lavx-app-icon img {
	width: 150px;
	height: 150px;
	border-radius: 32px;
	object-fit: cover;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.lavx-kicker-dark {
	color: #128f86 !important;
}

.lavx-app-copy h3 {
	margin: 0 0 10px !important;
	color: #1d2b32 !important;
	font-size: clamp(22px, 2.6vw, 30px) !important;
	line-height: 1.2;
}

.lavx-app-copy p {
	margin: 0 !important;
	color: #5a6a73 !important;
	font-size: 16px !important;
	line-height: 1.6;
	max-width: 60ch;
}

.lavx-stores {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
}

.lavx-store {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	border: 0 !important;
}

.lavx-store img {
	display: block;
}

.lavx-store-apple img {
	width: 156px;
	height: 52px;
}

/* Google's badge ships with built-in clear space, so it needs extra height to
   match Apple's optical size. */
.lavx-store-play img {
	width: 196px;
	height: 76px;
	margin: -12px -14px;
}

/* ---------- Hero ---------- */

/* Salient's responsive.css hides its dot texture below 1000px, so phones lost
   the dark treatment the desktop hero gets and the video read as washed out.
   Bring it back, with a smaller tile so the dots stay fine on a narrow screen. */
.video-texture.active_texture {
	display: block !important;
}

@media only screen and (max-width: 1000px) {
	.video-texture.active_texture {
		background-size: 55% auto !important;
	}
}

/* Edge falloff so the wordmark and the scroll cue hold their contrast against
   the brightest frames of the video. */
.nectar-slider-wrap .swiper-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 11;
	pointer-events: none;
	background:
		radial-gradient(120% 80% at 50% 45%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.42) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.5) 100%);
}

/* A full-screen hero on a phone is portrait, but the video is 16:9, so covering
   it meant scaling ~3.7x and throwing away most of the frame. A shorter hero
   crops far less and puts the intro within reach of the first screen. */
@media only screen and (max-width: 1000px) {
	.parallax_slider_outer,
	.parallax_slider_outer .nectar-slider-wrap,
	.parallax_slider_outer .swiper-container,
	.parallax_slider_outer .swiper-slide {
		height: 68vh !important;
		min-height: 420px !important;
	}

	.nectar-slider-wrap .video-wrap {
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
	}

	/* Hand the cover maths to the browser. Salient's JS sizes the video from
	   the original full-screen height and would otherwise overflow the
	   shortened hero. */
	.nectar-slider-wrap video.slider-video {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		object-fit: cover;
		object-position: center center;
	}
}

.lav-hero-cta {
	margin-top: 28px;
	text-align: center;
}

.lav-hero-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	background: #27ccc0;
	color: #06231f !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, background 0.2s ease;
}

.lav-hero-btn:hover {
	background: #34e0d3;
	transform: translateY(-2px);
	color: #06231f !important;
}

@media (max-width: 760px) {
	.lav-hero-cta {
		margin-top: 20px;
	}

	.lav-hero-btn {
		padding: 12px 26px;
		font-size: 14px;
	}

	/* The shortened hero already reveals the next section, so the scroll cue
	   only crowds the button. */
	.nectar-slider-wrap .slider-down-arrow {
		display: none !important;
	}
}

/* ---------- Back to top ---------- */

/* Salient's icon font never defines .icon-angle-up here, so the button renders
   empty. Draw the chevron instead. */
#to-top i.icon-angle-up {
	display: none !important;
}

#to-top {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 18px 18px;
}

/* ---------- Front page reCAPTCHA badge ---------- */

body.home .grecaptcha-badge,
body.page-id-7 .grecaptcha-badge {
	display: none !important;
	visibility: hidden !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.lavi-pillars,
	.lavx-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	.lavi {
		padding: 60px 0 66px;
	}

	.lavi-pillars {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 40px;
	}

	.lavx {
		padding: 64px 0 72px;
	}

	.lavx-grid {
		grid-template-columns: 1fr;
	}

	.lavx-card-wide {
		flex-direction: column;
		align-items: stretch;
	}

	.lavx-card-wide .lavx-plate {
		flex: none;
	}

	.lavx-apps {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		padding: 28px 20px;
	}

	.lavx-app-copy p {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.lavx-stores {
		justify-content: center;
	}

	.lavx-store-apple img {
		width: 138px;
		height: 46px;
	}

	.lavx-store-play img {
		width: 174px;
		height: 67px;
		margin: -11px -12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lavx-card {
		transition: none;
	}
}
