/* ==============================================================
     # Page hero (page-templates/pages.php): the home hero's gradient
     with a slanted bottom edge, breadcrumb pill, title and lead line
=================================================================== */

.vw-page-hero {
	position: relative;
	z-index: 1;
	overflow: hidden;
	padding: 200px 0 150px;
	background: linear-gradient(110deg, #5153ff 0%, #7b3df0 50%, #a60599 100%);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%);
}

/* A soft glow behind the text and the logo heart as a thin line on the right */
.vw-page-hero::before,
.vw-page-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

.vw-page-hero::before {
	top: -30%;
	left: -10%;
	width: 60%;
	height: 140%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.vw-page-hero::after {
	top: 50%;
	right: -90px;
	width: 520px;
	aspect-ratio: 1232 / 1128;
	background: url(../img/vetswise/vw-heart-line.png) center / contain no-repeat;
	opacity: 0.13;
	transform: translateY(-46%) rotate(-12deg);
}

.vw-page-hero .vw-page-hero__inner {
	max-width: 760px;
}

.vw-page-hero .vw-page-hero__crumbs ol {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 7px 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	list-style: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.vw-page-hero .vw-page-hero__crumbs li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.vw-page-hero .vw-page-hero__crumbs li + li::before {
	content: "\f105";
	margin-right: 8px;
	margin-left: 4px;
	font-family: "Font Awesome 5 Pro";
	font-size: 12px;
	font-weight: 400;
	opacity: 0.6;
}

.vw-page-hero .vw-page-hero__crumbs a {
	color: rgba(255, 255, 255, 0.78);
	transition: color 0.2s ease;
}

.vw-page-hero .vw-page-hero__crumbs a:hover,
.vw-page-hero .vw-page-hero__crumbs a:focus-visible {
	color: #fff;
}

.vw-page-hero .vw-page-hero__crumbs a i {
	margin-right: 4px;
	font-size: 12px;
}

.vw-page-hero .vw-page-hero__title {
	margin: 22px 0 0;
	color: #fff;
	font-size: 56px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.vw-page-hero .vw-page-hero__lead {
	max-width: 620px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 19px;
	line-height: 1.65;
	text-wrap: pretty;
}

/* Small facts under a post's title: date and reading time */
.vw-page-hero .vw-page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.vw-page-hero .vw-page-hero__meta li {
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.vw-page-hero .vw-page-hero__meta i {
	margin-right: 6px;
	opacity: 0.75;
}

/* A post: a longer title in a wider column; with a cover image the hero leaves room for it to overlap */
.vw-page-hero.is-post .vw-page-hero__inner {
	max-width: 900px;
}

.vw-page-hero.is-post .vw-page-hero__title {
	font-size: 46px;
	line-height: 1.16;
	text-wrap: balance;
}

.vw-page-hero.is-post.has-cover {
	padding-bottom: 250px;
}

/* From here down the header is a solid bar above the hero (validnavs), no longer over it */

@media only screen and (max-width: 1023px) {
	.vw-page-hero {
		padding: 90px 0 120px;
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
	}

	.vw-page-hero.is-post .vw-page-hero__title {
		font-size: 38px;
	}

	.vw-page-hero.is-post.has-cover {
		padding-bottom: 190px;
	}

	.vw-page-hero::after {
		right: -200px;
		width: 460px;
		opacity: 0.12;
	}

	.vw-page-hero .vw-page-hero__title {
		font-size: 46px;
	}
}

@media only screen and (max-width: 767px) {
	.vw-page-hero {
		padding: 56px 0 84px;
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
	}

	.vw-page-hero::after {
		top: auto;
		right: -150px;
		bottom: -60px;
		width: 340px;
		transform: rotate(-12deg);
	}

	.vw-page-hero .vw-page-hero__title {
		font-size: 36px;
	}

	.vw-page-hero .vw-page-hero__lead {
		font-size: 17px;
	}

	.vw-page-hero.is-post .vw-page-hero__title {
		font-size: 30px;
	}

	.vw-page-hero .vw-page-hero__meta {
		margin-top: 18px;
	}

	.vw-page-hero .vw-page-hero__meta li {
		font-size: 15px;
	}

	.vw-page-hero.is-post.has-cover {
		padding-bottom: 120px;
	}
}

/* ==============================================================
     # Legal text (privacy policy, terms of use): a readable measure,
     numbered section headings and indented lists
=================================================================== */

.vw-legal {
	max-width: 860px;
	color: #3f4156;
}

.vw-legal h2 {
	margin: 2.4em 0 0.7em;
	font-size: 26px;
	line-height: 1.3;
}

.vw-legal h3 {
	margin: 1.8em 0 0.6em;
	font-size: 20px;
	line-height: 1.35;
}

.vw-legal p,
.vw-legal ul {
	margin: 0 0 1em;
}

.vw-legal ul {
	padding-left: 1.4em;
	list-style: disc;
}

.vw-legal li {
	margin-bottom: 0.45em;
	padding-left: 0.2em;
}

.vw-legal a {
	color: #5153ff;
	overflow-wrap: anywhere;
}

.vw-legal strong {
	color: #232323;
}

@media (max-width: 767px) {
	.vw-legal h2 {
		font-size: 22px;
	}

	.vw-legal h3 {
		font-size: 18px;
	}
}
