/**
 * Lífið Elementor Widgets - Book Hero
 */

.lifid-book-hero,
.lifid-book-hero * {
	box-sizing: border-box;
}

.lifid-book-hero {
	--lifid-gold: #d9a83f;
	--lifid-gold-dark: #b98727;
	--lifid-text: #f4f0e7;
	--lifid-muted: #d9d0bd;
	--lifid-line: rgba(217, 168, 63, 0.34);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #06111c;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--lifid-text);
	min-height: 520px;
}

.lifid-book-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 72% 22%, rgba(217, 168, 63, 0.24), transparent 24rem),
		radial-gradient(circle at 10% 88%, rgba(217, 168, 63, 0.14), transparent 22rem),
		linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34));
	pointer-events: none;
}

.lifid-book-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.96fr);
	align-items: center;
	gap: 72px;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 88px 24px 78px;
}

.lifid-book-hero__content {
	max-width: 620px;
}

.lifid-book-hero__title {
	margin: 0 0 16px;
	color: var(--lifid-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3rem, 7.2vw, 6.6rem);
	font-weight: 700;
	line-height: 0.86;
	letter-spacing: 0.015em;
	text-wrap: balance;
}

.lifid-book-hero__subtitle {
	margin: 0 0 30px;
	color: var(--lifid-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.7vw, 2.5rem);
	font-weight: 400;
	line-height: 1.08;
	text-wrap: balance;
}

.lifid-book-hero__description {
	max-width: 530px;
	margin: 0 0 34px;
	color: var(--lifid-muted);
	font-size: clamp(1rem, 1.35vw, 1.24rem);
	line-height: 1.62;
}

.lifid-book-hero__description p {
	margin: 0 0 0.9em;
}

.lifid-book-hero__description p:last-child {
	margin-bottom: 0;
}

.lifid-book-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 24px;
	align-items: center;
	margin-bottom: 38px;
}

.lifid-book-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0.95rem 2.2rem;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.lifid-book-hero__button:hover,
.lifid-book-hero__button:focus {
	transform: translateY(-2px);
	text-decoration: none;
}

.lifid-book-hero__button--primary {
	background: var(--lifid-gold);
	border-color: var(--lifid-gold);
	color: #06111c;
	box-shadow: 0 16px 34px rgba(217, 168, 63, 0.18);
}

.lifid-book-hero__button--primary:hover,
.lifid-book-hero__button--primary:focus {
	background: #e6bb5b;
	color: #06111c;
	box-shadow: 0 20px 42px rgba(217, 168, 63, 0.24);
}

.lifid-book-hero__button--secondary {
	gap: 0.65rem;
	background: rgba(6, 17, 28, 0.36);
	border-color: rgba(217, 168, 63, 0.55);
	color: var(--lifid-text);
	backdrop-filter: blur(8px);
}

.lifid-book-hero__button--secondary:hover,
.lifid-book-hero__button--secondary:focus {
	border-color: var(--lifid-gold);
	color: var(--lifid-text);
}

.lifid-book-hero__cart {
	display: inline-block;
	width: 0.95rem;
	height: 0.75rem;
	margin-right: 0.7rem;
	border-bottom: 0.18rem solid currentColor;
	border-left: 0.18rem solid currentColor;
	transform: skewX(-10deg);
	opacity: 0.95;
	text-indent: -999em;
}

.lifid-book-hero__features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	max-width: 640px;
}

.lifid-book-hero__feature {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	color: var(--lifid-text);
	font-size: 0.93rem;
	line-height: 1.28;
}

.lifid-book-hero__feature-icon {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--lifid-gold);
	font-size: 1.45rem;
}

.lifid-book-hero__feature-icon svg {
	width: 1.45rem;
	height: 1.45rem;
	fill: currentColor;
}

.lifid-book-hero__feature-text {
	display: block;
}

.lifid-book-hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.lifid-book-hero__glow {
	position: absolute;
	width: min(88%, 520px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(217, 168, 63, 0.38) 0%, rgba(217, 168, 63, 0.16) 36%, transparent 70%);
	filter: blur(18px);
	transform: translateY(5%);
}

.lifid-book-hero__book {
	position: relative;
	z-index: 1;
	margin: 0;
	perspective: 900px;
}

.lifid-book-hero__book img {
	display: block;
	width: 440px;
	max-width: 100%;
	height: auto;
	box-shadow: 0 30px 75px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(217, 168, 63, 0.16);
	transform: rotateY(-2deg) rotateX(1deg);
	transform-origin: center center;
}

@media (max-width: 1024px) {
	.lifid-book-hero {
		min-height: auto;
	}

	.lifid-book-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
		gap: 42px;
		padding: 68px 24px 62px;
	}

	.lifid-book-hero__title {
		font-size: clamp(2.85rem, 7.8vw, 5rem);
	}

	.lifid-book-hero__subtitle {
		font-size: clamp(1.22rem, 2.8vw, 2rem);
	}

	.lifid-book-hero__features {
		grid-template-columns: 1fr;
		gap: 14px;
		max-width: 420px;
	}
}

@media (max-width: 767px) {
	.lifid-book-hero {
		background-position: center top;
		text-align: center;
	}

	.lifid-book-hero__inner {
		grid-template-columns: 1fr;
		gap: 34px;
		padding: 48px 18px 46px;
	}

	.lifid-book-hero__content {
		max-width: none;
		order: 1;
	}

	.lifid-book-hero__visual {
		order: 2;
	}

	.lifid-book-hero__title {
		margin-bottom: 14px;
		font-size: clamp(2.85rem, 14vw, 4.6rem);
		line-height: 0.9;
	}

	.lifid-book-hero__subtitle {
		margin-bottom: 22px;
		font-size: clamp(1.15rem, 6vw, 1.7rem);
	}

	.lifid-book-hero__description {
		max-width: 36rem;
		margin-right: auto;
		margin-bottom: 28px;
		margin-left: auto;
		font-size: 1rem;
		line-height: 1.55;
	}

	.lifid-book-hero__actions {
		justify-content: center;
		gap: 14px;
		margin-bottom: 30px;
	}

	.lifid-book-hero__button {
		width: min(100%, 320px);
		min-height: 52px;
		padding: 0.9rem 1.4rem;
		font-size: 0.92rem;
	}

	.lifid-book-hero__features {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 13px;
		max-width: 320px;
		margin-right: auto;
		margin-left: auto;
	}

	.lifid-book-hero__feature {
		grid-template-columns: auto auto;
		justify-content: center;
		text-align: left;
	}

	.lifid-book-hero__book img {
		width: min(72vw, 330px);
		transform: none;
	}
}

@media (max-width: 420px) {
	.lifid-book-hero__inner {
		padding-right: 16px;
		padding-left: 16px;
	}

	.lifid-book-hero__title {
		font-size: clamp(2.5rem, 15vw, 3.5rem);
	}

	.lifid-book-hero__subtitle {
		font-size: 1.12rem;
	}

	.lifid-book-hero__description {
		font-size: 0.96rem;
	}

	.lifid-book-hero__button {
		width: 100%;
	}

	.lifid-book-hero__book img {
		width: min(78vw, 290px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lifid-book-hero__button,
	.lifid-book-hero__book img {
		transition: none;
		transform: none;
	}
}
