/* ======================================================
   HOME
   Londyn Publishing homepage
   Safe, visible-by-default structure
   ====================================================== */

/* ================================
   Base Home Sections
   ================================ */

.lv-dark,
.lv-section,
.lv-home-books,
.lv-path-quiz,
.lv-obs-wrap,
.lv-final-cta,
.lv-membership-section {
	color: #f7f2ff;
}

.lv-section {
	position: relative;
	padding: 4rem 1.25rem;
	background:
		radial-gradient(circle at top, rgba(84, 45, 120, 0.35), transparent 45%),
		linear-gradient(180deg, #100817, #08050d);
	overflow: hidden;
}

.lv-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.25rem;
	text-align: center;
}

.lv-h2,
.lv-home-h2 {
	color: #fff7fb;
	text-align: center;
	text-shadow:
		0 0 10px rgba(0, 0, 0, 0.85),
		0 0 18px rgba(227, 69, 112, 0.35);
}

.lv-subtext,
.lv-book-desc {
	color: #f0e9ff;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	line-height: 1.65;
}

.lv-section-cta {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

/* ================================
   Hero
   ================================ */

.lv-home-hero,
.lv-home-hero.lv-hero-bloodmoon {
	min-height: 78vh;
	display: grid;
	place-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(rgba(35, 0, 8, 0.35), rgba(8, 2, 10, 0.78)),
		radial-gradient(circle at 50% 35%, rgba(227, 20, 55, 0.45), transparent 38%),
		url("https://londynpublishing.com/wp-content/uploads/BLOOD-MOON-scaled.avif") center/cover no-repeat;
}

.lv-hero-inner {
	width: min(900px, 92vw);
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.lv-hero-title,
.lv-hero-sub {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.lv-hero-sub {
	max-width: 760px;
	color: #f4ecff;
	line-height: 1.65;
}

.lv-hero-ctas,
.lv-cta-row,
.lv-book-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-left: auto;
	margin-right: auto;
}

/* ================================
   Book Cards
   ================================ */

.lv-book {
	position: relative;
	transition:
		transform 260ms ease,
		box-shadow 260ms ease;
}

.lv-book:hover {
	transform: translateY(-6px);
}

.lv-book:nth-child(1):hover {
	box-shadow: 0 0 35px rgba(60, 255, 220, 0.35);
}

.lv-book:nth-child(2):hover {
	box-shadow: 0 0 35px rgba(227, 69, 112, 0.38);
}

.lv-book:nth-child(3):hover {
	box-shadow: 0 0 42px rgba(255, 40, 70, 0.45);
}

.lv-book-cover {
	position: relative !important;
	overflow: hidden !important;
}

.lv-available-badge {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 20 !important;
	display: inline-block;
	padding: 0.45rem 0.78rem !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #ff3866, #79091f) !important;
	color: #ffffff !important;
	font-weight: 900 !important;
	font-size: 0.72rem !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	box-shadow:
		0 0 18px rgba(255, 56, 102, 0.9),
		0 0 36px rgba(255, 56, 102, 0.45) !important;
	animation: lv-badge-pulse 1.7s ease-in-out infinite;
}

@keyframes lv-badge-pulse {
	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.07);
	}
}

/* ================================
   Reader Section
   ================================ */

.lv-reader-section {
	text-align: center;
	background:
		radial-gradient(circle at center, rgba(145, 25, 65, 0.42), transparent 44%),
		linear-gradient(180deg, #170815 0%, #07040c 100%);
}

.lv-reader-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	justify-content: center;
	margin-top: 30px;
}

.lv-reader-card {
	color: #f8f1ff !important;
	background: rgba(14, 7, 24, 0.96) !important;
	border: 1px solid rgba(230, 210, 255, 0.28) !important;
	border-radius: 18px;
	padding: 1.35rem;
	line-height: 1.55;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.lv-reader-card,
.lv-reader-card br,
.lv-reader-card strong {
	color: #f0e9ff;
}

.lv-reader-card strong {
	display: inline-block;
	margin-bottom: 0.35rem;
	color: #ffffff !important;
	font-size: 1.08rem;
}

/* ================================
   Split / Character Sections
   ================================ */

.lv-split-section {
	background:
		radial-gradient(circle at 20% 20%, rgba(118, 45, 145, 0.28), transparent 40%),
		linear-gradient(180deg, #100817, #06040a);
}

.lv-character-section {
	background:
		radial-gradient(circle at 80% 20%, rgba(227, 69, 112, 0.25), transparent 42%),
		linear-gradient(180deg, #0b0610, #130817);
}

.lv-split,
.lv-split-reverse {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	justify-items: center;
	text-align: center;
}

.lv-split-copy,
.lv-split-image {
	order: initial !important;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.lv-split-copy {
	max-width: 800px;
	background: rgba(8, 5, 15, 0.78);
	border: 1px solid rgba(230, 210, 255, 0.18);
	border-radius: 22px;
	padding: 2rem;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
	color: #f8f3ff;
}

.lv-split-copy,
.lv-split-copy * {
	color: #f8f3ff;
}

.lv-split-copy .lv-subtext {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.lv-split-image {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 280px;
	max-width: 280px;
	margin: 1rem auto;
	border-radius: 26px;
	overflow: visible;
	isolation: isolate;
	filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.45));
}

.lv-split-image::before {
	content: "";
	position: absolute;
	inset: 18% 24% -2%;
	z-index: 0;
	border-radius: 30px;
	background:
		radial-gradient(circle at 50% 20%, rgba(227, 69, 112, 0.22), transparent 45%),
		radial-gradient(circle at 50% 80%, rgba(124, 60, 255, 0.24), transparent 50%);
	filter: blur(22px);
	opacity: 0.48;
}

.lv-split-image::after {
	content: "";
	position: absolute;
	inset: -18%;
	z-index: 3;
	pointer-events: none;
	border-radius: 30px;
	background:
		radial-gradient(circle at 22% 45%, rgba(230, 210, 255, 0.25), transparent 28%),
		radial-gradient(circle at 72% 60%, rgba(227, 69, 112, 0.13), transparent 34%),
		radial-gradient(circle at 50% 50%, rgba(120, 80, 190, 0.16), transparent 46%);
	filter: blur(18px);
	opacity: 0.16;
	animation: lv-image-mist-drift 20s ease-in-out infinite;
}

.lv-split-image img {
	position: relative;
	z-index: 2;
	display: block;
	width: 240px !important;
	max-width: 240px !important;
	height: auto !important;
	margin: 0 auto 1.5rem !important;
	object-fit: cover;
	border-radius: 24px;
	border: 1px solid rgba(230, 210, 255, 0.22);
	background: rgba(10, 5, 18, 0.72);
	box-shadow:
		0 28px 60px rgba(0, 0, 0, 0.55),
		0 14px 26px rgba(0, 0, 0, 0.38),
		0 0 34px rgba(227, 69, 112, 0.2),
		inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	filter: brightness(0.92) contrast(1.07) saturate(1.05);
	transition:
		transform 350ms ease,
		filter 350ms ease,
		box-shadow 350ms ease;
}

.lv-split-image:hover img {
	transform: translateY(-6px) scale(1.025);
	filter: brightness(1) contrast(1.1) saturate(1.08);
	box-shadow:
		0 34px 75px rgba(0, 0, 0, 0.62),
		0 18px 36px rgba(0, 0, 0, 0.42),
		0 0 42px rgba(227, 69, 112, 0.3),
		0 0 28px rgba(124, 60, 255, 0.2);
}

@keyframes lv-image-mist-drift {
	0%,
	100% {
		transform: translate(-4%, -2%) scale(1.02);
	}

	50% {
		transform: translate(5%, 4%) scale(1.08);
	}
}

/* ================================
   Path / Quiz Section
   ================================ */

.lv-path-quiz {
	position: relative;
	text-align: center;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 20%, rgba(255, 45, 85, 0.7), transparent 34%),
		radial-gradient(circle at 50% 55%, rgba(140, 65, 255, 0.5), transparent 48%),
		radial-gradient(circle at 50% 100%, rgba(70, 30, 150, 0.62), transparent 50%),
		linear-gradient(180deg, #130719 0%, #06030b 100%);
	box-shadow:
		inset 0 0 80px rgba(227, 69, 112, 0.18),
		inset 0 0 120px rgba(124, 60, 255, 0.16);
}

.lv-path-quiz::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		url("https://londynpublishing.com/wp-content/uploads/2025/11/404background.avif")
		center/cover no-repeat;
	opacity: 0.24;
	filter: blur(1px) brightness(0.85) contrast(1.1);
	z-index: 0;
}

.lv-path-quiz::after {
	content: "";
	position: absolute;
	inset: 8% 10%;
	pointer-events: none;
	border-radius: 36px;
	background:
		radial-gradient(circle at center, rgba(227, 69, 112, 0.22), transparent 42%),
		radial-gradient(circle at center, rgba(124, 60, 255, 0.18), transparent 65%);
	filter: blur(28px);
	z-index: 0;
}

.lv-quiz-inner {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	z-index: 3;
}

.lv-quiz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	justify-content: center;
	align-items: stretch;
}

.lv-quiz-result:not([hidden]) {
	animation: veil-result-rise 700ms ease both;
}

@keyframes veil-result-rise {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.97);
		filter: blur(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

/* ================================
   Atelier / Atmosphere
   ================================ */

.lv-atelier-title,
.lv-moon-glow {
	color: #fbf7ff !important;
	-webkit-text-fill-color: #fbf7ff !important;
	background: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
	filter: none !important;
	opacity: 1 !important;
	animation: none !important;
	text-shadow:
		0 0 8px rgba(255, 255, 255, 0.42),
		0 0 18px rgba(170, 120, 255, 0.72),
		0 0 34px rgba(124, 60, 255, 0.52) !important;
}

.lv-veil .lv-h2,
.lv-veil .lv-subtext,
.lv-veil .veil-btn {
	position: relative;
	z-index: 3;
}

.lv-atmosphere {
	z-index: 0 !important;
}

.lv-fog,
.lv-fog::before {
	opacity: 0.45 !important;
	filter: blur(18px) !important;
}

/* ================================
   Membership / CTA
   ================================ */

.lv-membership-section,
.lv-final-cta {
	background:
		radial-gradient(circle at top, rgba(91, 44, 130, 0.42), transparent 50%),
		linear-gradient(180deg, #160a20, #07040c);
	border-top: 1px solid rgba(230, 210, 255, 0.12);
	border-bottom: 1px solid rgba(230, 210, 255, 0.12);
	text-align: center;
}

.lv-membership-section .lv-subtext,
.lv-final-cta .lv-subtext {
	color: #f3ecff;
}

/* ================================
   Reveal Effects — Safe Version
   Visible by default. JS only enhances.
   ================================ */

[data-veil-reveal],
.veil-reveal,
.lv-veil-enter,
.veil-ready {
	opacity: 1;
	visibility: visible;
	transform: none;
	filter: none;
}

.js .veil-ready,
.js [data-veil-reveal],
.js .veil-reveal,
.js .lv-veil-enter {
	opacity: 0;
	transform: translateY(28px);
	filter: blur(8px);
	transition:
		opacity 900ms ease,
		transform 900ms ease,
		filter 900ms ease;
}

.js .veil-ready.is-visible,
.js [data-veil-reveal].is-visible,
.js .veil-reveal.is-visible,
.js .lv-veil-enter.is-visible {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.js .is-visible .lv-book,
.js .is-visible .lv-reader-card,
.js .is-visible .lv-path-card {
	animation: veil-card-rise 700ms ease both;
}

.js .is-visible .lv-book:nth-child(2),
.js .is-visible .lv-reader-card:nth-child(2),
.js .is-visible .lv-path-card:nth-child(2) {
	animation-delay: 120ms;
}

.js .is-visible .lv-book:nth-child(3),
.js .is-visible .lv-reader-card:nth-child(3),
.js .is-visible .lv-path-card:nth-child(3) {
	animation-delay: 240ms;
}

.js .is-visible .lv-reader-card:nth-child(4),
.js .is-visible .lv-path-card:nth-child(4) {
	animation-delay: 360ms;
}

.js .is-visible .lv-reader-card:nth-child(5) {
	animation-delay: 480ms;
}

.js .is-visible .lv-reader-card:nth-child(6) {
	animation-delay: 600ms;
}

@keyframes veil-card-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
		filter: blur(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 780px) {
	.lv-section {
		padding: 3rem 1rem;
	}

	.lv-split,
	.lv-split-reverse {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.lv-split-copy {
		padding: 1.5rem;
	}

	.lv-split-image {
		width: 230px;
		max-width: 230px;
	}

	.lv-split-image img {
		width: 210px !important;
		max-width: 210px !important;
	}

	.lv-reader-grid,
	.lv-quiz-grid {
		grid-template-columns: 1fr;
	}

	.lv-hero-ctas,
	.lv-book-actions,
	.lv-section-cta,
	.lv-cta-row {
		gap: 10px;
	}
}

/* ================================
   Accessibility
   ================================ */

@media (prefers-reduced-motion: reduce) {
	.lv-home-books *,
	.lv-path-quiz *,
	.lv-reader-section *,
	.lv-split-section *,
	.lv-character-section *,
	.lv-membership-section *,
	.lv-final-cta * {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}

	[data-veil-reveal],
	.veil-reveal,
	.lv-veil-enter,
	.veil-ready,
	.js .veil-ready,
	.js [data-veil-reveal],
	.js .veil-reveal,
	.js .lv-veil-enter,
	.js .veil-ready.is-visible,
	.js [data-veil-reveal].is-visible,
	.js .veil-reveal.is-visible,
	.js .lv-veil-enter.is-visible {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		filter: none !important;
	}

	.lv-available-badge,
	.lv-split-image::after,
	.js .is-visible .lv-book,
	.js .is-visible .lv-reader-card,
	.js .is-visible .lv-path-card {
		animation: none !important;
	}
}
/* =========================================
   CUSTOM HOME HERO
========================================= */

.lv-home-hero-custom {
  position: relative;

  min-height: 92vh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      rgba(5,10,20,.35),
      rgba(5,10,20,.82)
    ),

    url('/wp-content/uploads/home-veil-hero.png')
    center center / cover no-repeat;

  border-bottom:
    1px solid rgba(211,177,106,.22);
}

/* cinematic overlays */
.lv-home-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(139,0,15,.14),
      transparent 40%
    ),

    radial-gradient(
      circle at top,
      rgba(90,166,173,.10),
      transparent 58%
    ),

    linear-gradient(
      90deg,
      rgba(3,8,18,.92),
      transparent 42%,
      rgba(3,8,18,.92)
    );

  pointer-events: none;
}

/* content */
.lv-home-hero-custom .lv-hero-inner {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1000px;

  padding: 3rem 1.5rem;

  text-align: center;
}

/* title */
.lv-home-hero-custom .lv-hero-title {
  margin: 0;

  font-family: "Cinzel", serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;

  letter-spacing: .08em;
  text-transform: uppercase;

  color: #f5ead6;

  text-shadow:
    0 0 20px rgba(0,0,0,.92),
    0 0 45px rgba(139,0,15,.16);
}

/* blood moon line */
.lv-home-hero-custom .lv-hero-bloodline {
  margin: .35rem auto 1.5rem;

  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);

  letter-spacing: .28em;
  text-transform: uppercase;

  color: #8b000f;

  text-shadow:
    0 0 12px rgba(139,0,15,.45),
    0 0 28px rgba(139,0,15,.18);
}

/* main body text */
.lv-home-hero-custom .lv-hero-text {
  max-width: 760px;

  margin: 0 auto 2rem;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.6;

  color: #e8dcc7;

  text-shadow:
    0 0 12px rgba(0,0,0,.75);
}

/* CTA buttons */
.lv-home-hero-custom .lv-hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 1rem;
}
.veil-home-hero {
  position: relative !important;
  min-height: 420px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;

  background-image:
    linear-gradient(rgba(5,10,20,.38), rgba(5,10,20,.86)),
    url('/wp-content/uploads/home-veil-hero.png') !important;

  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;

  border-bottom: 1px solid rgba(211,177,106,.32);
}

.veil-home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(139,0,15,.16), transparent 42%),
    radial-gradient(circle at top, rgba(90,166,173,.12), transparent 58%),
    linear-gradient(90deg, rgba(3,8,18,.92), transparent 45%, rgba(3,8,18,.92));
  pointer-events: none;
}

.veil-home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  padding: 4rem 1.5rem;
}

.veil-home-hero h1 {
  margin: 0;
  font-family: "Cinzel", serif !important;
  font-size: clamp(3rem, 6vw, 5rem) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #f5ead6 !important;
  text-shadow: 0 0 18px rgba(0,0,0,.9);
}

.veil-home-hero__bloodline {
  margin: .4rem auto 1rem !important;
  font-family: "Cinzel", serif !important;
  font-size: clamp(1rem, 2vw, 1.35rem) !important;
  letter-spacing: .26em !important;
  text-transform: uppercase !important;
  color: #8b000f !important;
  text-shadow:
    0 0 10px rgba(139,0,15,.65),
    0 0 24px rgba(139,0,15,.25);
}

.veil-home-hero__sub {
  max-width: 720px;
  margin: 0 auto 2rem !important;
  font-family: "Cormorant Garamond", serif !important;
  font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
  line-height: 1.6 !important;
  color: #e8dcc7 !important;
  text-shadow: 0 0 12px rgba(0,0,0,.75);
}

.veil-home-hero .lv-hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
