/**
 * PKLegal.net homepage hero.
 */

.pk-home-hero,
.pk-home-hero * {
	box-sizing: border-box;
}

.pk-home-hero {
	position: relative;
	width: 100vw;
	margin: 0 0 0 calc(50% - 50vw) !important;
	overflow: hidden;
	background:
		radial-gradient(circle at 86% 18%, rgba(138, 1, 4, 0.08), transparent 30%),
		linear-gradient(118deg, #f8f5f1 0%, #fff 54%, #f1f4f7 100%);
	color: #172033;
}

.pk-home-hero::after {
	position: absolute;
	right: -140px;
	bottom: -230px;
	width: 480px;
	height: 480px;
	border: 70px solid rgba(16, 42, 67, 0.035);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.pk-home-hero-pattern {
	position: absolute;
	top: 0;
	right: 0;
	width: 42%;
	height: 100%;
	background-image: radial-gradient(rgba(16, 42, 67, 0.12) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(to left, #000, transparent 88%);
	mask-image: linear-gradient(to left, #000, transparent 88%);
	opacity: 0.34;
	pointer-events: none;
}

.pk-home-hero-container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.14fr) minmax(380px, 0.86fr);
	gap: clamp(42px, 6vw, 84px);
	width: min(calc(100% - 40px), 1240px);
	margin-inline: auto;
}

.pk-home-hero-container:first-of-type {
	align-items: center;
	padding-block: clamp(70px, 7vw, 106px) 64px;
}

.pk-home-hero-copy p,
.pk-home-topic-panel p,
.pk-home-hero-disclaimer {
	margin: 0 !important;
}

.pk-home-hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 11px;
	color: #8a0104;
	font-size: 12px !important;
	font-weight: 800;
	line-height: 1.4 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pk-home-hero-eyebrow span {
	display: block;
	width: 34px;
	height: 2px;
	background: #8a0104;
}

.pk-home-hero h1 {
	max-width: 760px;
	margin: 20px 0 22px !important;
	color: #102a43 !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: clamp(46px, 5vw, 70px) !important;
	font-weight: 700 !important;
	line-height: 1.04 !important;
	letter-spacing: -0.035em !important;
	text-transform: none !important;
}

.pk-home-hero h1 span {
	color: #8a0104;
}

.pk-home-hero-intro {
	max-width: 670px;
	color: #4c5968;
	font-size: clamp(17px, 1.5vw, 20px) !important;
	font-weight: 400;
	line-height: 1.65 !important;
}

.pk-home-resource-search {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	align-items: center;
	max-width: 690px;
	min-height: 62px;
	margin-top: 32px;
	padding-left: 18px;
	overflow: hidden;
	border: 1px solid #cdd4dc;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(16, 42, 67, 0.09);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pk-home-resource-search:focus-within {
	border-color: #8a0104;
	box-shadow: 0 0 0 4px rgba(138, 1, 4, 0.09), 0 12px 30px rgba(16, 42, 67, 0.09);
}

.pk-home-resource-search > svg {
	width: 22px;
	height: 22px;
	fill: #7a8592;
}

.pk-home-resource-search input {
	width: 100%;
	min-width: 0;
	min-height: 60px;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #172033 !important;
	font-size: 15px !important;
	line-height: 60px !important;
}

.pk-home-resource-search input::placeholder {
	color: #7d8793;
	opacity: 1;
}

.pk-home-resource-search button {
	align-self: stretch;
	min-width: 112px;
	margin: 0 !important;
	padding: 0 24px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #8a0104 !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.pk-home-resource-search button:hover,
.pk-home-resource-search button:focus-visible {
	background: #690003 !important;
}

.pk-home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 23px;
}

.pk-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 19px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none !important;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pk-home-button:hover {
	transform: translateY(-1px);
}

.pk-home-button-primary {
	background: #102a43;
	color: #fff !important;
}

.pk-home-button-primary:hover,
.pk-home-button-primary:focus {
	background: #0a1e31;
	color: #fff !important;
}

.pk-home-button-primary span {
	font-size: 18px;
	line-height: 1;
}

.pk-home-button-secondary {
	border-color: #c8ced6;
	background: rgba(255, 255, 255, 0.62);
	color: #172033 !important;
}

.pk-home-button-secondary:hover,
.pk-home-button-secondary:focus {
	border-color: #8a0104;
	background: #fff;
	color: #8a0104 !important;
}

.pk-home-hero-benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 27px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.pk-home-hero-benefits li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 !important;
	color: #556171;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.pk-home-hero-benefits span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e8f1eb;
	color: #27663b;
	font-size: 11px;
	font-weight: 900;
}

.pk-home-topic-panel {
	position: relative;
	padding: clamp(26px, 3vw, 38px);
	border: 1px solid rgba(16, 42, 67, 0.12);
	border-top: 5px solid #8a0104;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 24px 60px rgba(16, 42, 67, 0.13);
}

.pk-home-topic-panel-head > p {
	color: #8a0104;
	font-size: 11px !important;
	font-weight: 800;
	line-height: 1.4 !important;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.pk-home-topic-panel h2 {
	margin: 8px 0 22px !important;
	color: #102a43 !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: clamp(25px, 2.4vw, 33px) !important;
	font-weight: 700 !important;
	line-height: 1.18 !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
}

.pk-home-topic-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.pk-home-topic-grid > a {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-height: 76px;
	padding: 13px;
	border: 1px solid #e2e6ea;
	border-radius: 6px;
	background: #fff;
	color: #172033 !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none !important;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pk-home-topic-grid > a:hover,
.pk-home-topic-grid > a:focus {
	border-color: rgba(138, 1, 4, 0.42);
	box-shadow: 0 8px 18px rgba(16, 42, 67, 0.08);
	transform: translateY(-2px);
}

.pk-home-topic-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 6px;
	background: #f8ecec;
}

.pk-home-topic-icon svg {
	width: 20px;
	height: 20px;
	fill: #8a0104;
}

.pk-home-topic-grid strong {
	color: #a8b0ba;
	font-size: 16px;
	transition: color 160ms ease, transform 160ms ease;
}

.pk-home-topic-grid > a:hover strong,
.pk-home-topic-grid > a:focus strong {
	color: #8a0104;
	transform: translateX(2px);
}

.pk-home-topic-panel-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
	padding-top: 19px;
	border-top: 1px solid #e7eaee;
}

.pk-home-topic-panel-foot a {
	color: #8a0104 !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
}

.pk-home-topic-panel-foot a:hover,
.pk-home-topic-panel-foot a:focus {
	text-decoration: underline !important;
}

.pk-home-topic-panel-foot span {
	color: #a8b0ba;
}

.pk-home-hero-container:last-child {
	display: block;
	padding-bottom: 24px;
}

.pk-home-hero-disclaimer {
	padding-top: 18px;
	border-top: 1px solid rgba(16, 42, 67, 0.1);
	color: #7a8490;
	font-size: 11px !important;
	line-height: 1.5 !important;
	text-align: center;
}

.pk-home-hero a:focus-visible,
.pk-home-hero button:focus-visible,
.pk-home-hero input:focus-visible {
	outline: 3px solid #c7a45a;
	outline-offset: 3px;
}

@media (max-width: 980px) {
	/* The hero already provides search on the mobile homepage. */
	.pklegal-net-site .pk-header-search {
		display: none !important;
	}

	.pk-home-hero-container {
		grid-template-columns: 1fr;
		gap: 46px;
		width: min(calc(100% - 32px), 760px);
	}

	.pk-home-hero-container:first-of-type {
		padding-block: 62px 48px;
	}

	.pk-home-hero-copy {
		text-align: center;
	}

	.pk-home-hero-eyebrow,
	.pk-home-hero-actions,
	.pk-home-hero-benefits {
		justify-content: center;
	}

	.pk-home-hero h1,
	.pk-home-hero-intro,
	.pk-home-resource-search {
		margin-inline: auto !important;
	}
}

@media (max-width: 600px) {
	.pk-home-hero-container {
		width: calc(100% - 28px);
	}

	.pk-home-hero-container:first-of-type {
		gap: 36px;
		padding-block: 48px 38px;
	}

	.pk-home-hero-eyebrow {
		justify-content: flex-start;
		font-size: 10px !important;
		text-align: left;
	}

	.pk-home-hero-copy {
		text-align: left;
	}

	.pk-home-hero h1 {
		margin-block: 16px 18px !important;
		font-size: clamp(38px, 12vw, 52px) !important;
	}

	.pk-home-hero-intro {
		font-size: 16px !important;
		line-height: 1.6 !important;
	}

	.pk-home-resource-search {
		grid-template-columns: 22px minmax(0, 1fr) 52px;
		min-height: 54px;
		margin-top: 25px !important;
		padding-left: 14px;
	}

	.pk-home-resource-search input {
		min-height: 52px;
		padding-inline: 10px !important;
		font-size: 14px !important;
		line-height: 52px !important;
	}

	.pk-home-resource-search button {
		position: relative;
		min-width: 52px;
		width: 52px;
		overflow: hidden;
		padding: 0 !important;
		color: transparent !important;
		font-size: 0 !important;
	}

	.pk-home-resource-search button::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 18px;
		height: 18px;
		border: 2px solid #fff;
		border-radius: 50%;
		content: "";
		transform: translate(-58%, -58%);
	}

	.pk-home-resource-search button::before {
		position: absolute;
		top: 31px;
		left: 32px;
		width: 8px;
		height: 2px;
		background: #fff;
		content: "";
		transform: rotate(45deg);
		transform-origin: left center;
	}

	.pk-home-hero-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.pk-home-button {
		width: 100%;
	}

	.pk-home-hero-benefits {
		justify-content: flex-start;
		gap: 9px 16px;
	}

	.pk-home-topic-panel {
		padding: 23px 18px;
	}

	.pk-home-topic-grid {
		grid-template-columns: 1fr;
	}

	.pk-home-topic-grid > a {
		min-height: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pk-home-hero * {
		transition-duration: 0.01ms !important;
	}
}

/* Elementor boundary and hero spacing normalization. */
body.home .elementor-element-de2fc72 > .elementor-widget-container,
body.home .elementor-widget-container:has(> .elementor-shortcode > .pk-home-hero) {
	padding-top: 0 !important;
}

.pk-home-hero > .pk-home-hero-container:nth-of-type(2) {
	align-items: center;
	padding-block: clamp(70px, 7vw, 106px) 64px;
}

@media (max-width: 980px) {
	.pk-home-hero > .pk-home-hero-container:nth-of-type(2) {
		padding-block: 62px 48px;
	}
}

@media (max-width: 600px) {
	.pk-home-hero > .pk-home-hero-container:nth-of-type(2) {
		gap: 36px;
		padding-block: 48px 38px;
	}
}
