/*
 * Front page only. Loaded when is_front_page() is true.
 * Namespace: .sdp-home
 */

.home .site-content {
	background: #ffffff;
}

.sdp-home {
	--sdp-accent: #e5322c;
	--sdp-accent-dark: #c42822;
	--sdp-ink: #1c1c1c;
	--sdp-muted: #5c6370;
	--sdp-line: #e8ebf0;
	--sdp-empty: #e7ebef;
	color: var(--sdp-ink);
	padding: 22px 0 56px;
}

.sdp-home * {
	box-sizing: border-box;
}

.sdp-home img {
	display: block;
	max-width: 100%;
}

.sdp-home-icon {
	display: block;
	flex: 0 0 auto;
	height: 18px;
	width: 18px;
}

.sdp-home__top {
	align-items: start;
	display: grid;
	gap: 18px;
	grid-template-columns: 248px minmax(0, 1fr);
}

.sdp-home-cats {
	background: #ffffff;
	border: 1px solid var(--sdp-line);
	border-radius: 10px;
	overflow: hidden;
}

.sdp-home-cats__title {
	align-items: center;
	background: var(--sdp-accent);
	color: #ffffff;
	display: flex;
	font-size: 15px;
	font-weight: 700;
	gap: 10px;
	padding: 13px 14px;
}

.sdp-home-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sdp-home-cats__item {
	border-top: 1px solid #f1f3f6;
	margin: 0;
}

.sdp-home-cats__link {
	align-items: flex-start;
	color: #2c3138;
	display: flex;
	font-size: 14px;
	gap: 10px;
	line-height: 1.35;
	padding: 11px 14px;
	text-decoration: none;
}

.sdp-home-cats__link .sdp-home-icon:first-child {
	margin-top: 1px;
}

.sdp-home-cats__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

a.sdp-home-cats__link:hover,
a.sdp-home-cats__link:focus-visible {
	background: #fafafa;
	color: var(--sdp-accent);
}

.sdp-home-cats__link .sdp-home-icon:last-child {
	color: #9aa1ab;
	flex: 0 0 auto;
	height: 14px;
	margin-left: auto;
	margin-top: 2px;
	width: 14px;
}

.sdp-home__stage {
	min-width: 0;
}

.sdp-hero {
	background: #ffffff;
	border-radius: 14px;
	display: grid;
	grid-template-columns: minmax(240px, 46%) minmax(0, 1fr);
	min-height: 332px;
	overflow: hidden;
	position: relative;
}

.sdp-hero__photo {
	grid-column: 2;
	grid-row: 1;
	height: 100%;
	object-fit: cover;
	/* Keep open left space for copy; products stay visible on the right. */
	object-position: 82% center;
	width: 100%;
}

.sdp-hero__photo--empty {
	background: var(--sdp-empty);
	min-height: 332px;
}

.sdp-hero__shade {
	display: none;
}

.sdp-hero--has-photo .sdp-hero__photo {
	grid-column: 1 / -1;
	inset: 0;
	position: absolute;
}

.sdp-hero--has-photo .sdp-hero__shade {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0) 64%);
	display: block;
	inset: 0;
	position: absolute;
}

.sdp-hero__copy {
	display: flex;
	flex-direction: column;
	grid-column: 1;
	grid-row: 1;
	justify-content: center;
	padding: 36px 28px 32px;
	position: relative;
	z-index: 1;
}

.sdp-hero__title {
	color: var(--sdp-ink);
	font-size: 2.45rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.08;
	margin: 0 0 14px;
}

.sdp-hero__lead {
	color: #3a4048;
	font-size: 1.05rem;
	line-height: 1.45;
	margin: 0 0 22px;
	max-width: 28rem;
}

.sdp-home-btn {
	align-items: center;
	align-self: flex-start;
	background: var(--sdp-accent);
	border-radius: 8px;
	color: #ffffff;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	gap: 8px;
	padding: 12px 18px;
	text-decoration: none;
}

.sdp-home-btn:hover,
.sdp-home-btn:focus-visible {
	background: var(--sdp-accent-dark);
	color: #ffffff;
}

.sdp-home-btn .sdp-home-icon {
	height: 14px;
	width: 14px;
}

.sdp-home-perks {
	border: 1px solid var(--sdp-line);
	border-radius: 12px;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.sdp-home-perks__item {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	margin: 0;
	min-width: 0;
	padding: 16px 14px;
}

.sdp-home-perks__item + .sdp-home-perks__item {
	border-left: 1px solid var(--sdp-line);
}

.sdp-home-perks__icon {
	color: #3d4450;
	flex: 0 0 22px;
	margin-top: 1px;
	width: 22px;
}

.sdp-home-perks__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sdp-home-perks__copy strong {
	font-size: 14px;
	line-height: 1.3;
}

.sdp-home-perks__copy span {
	color: var(--sdp-muted);
	font-size: 12.5px;
	line-height: 1.35;
}

.sdp-home-programs {
	margin-top: 42px;
}

.sdp-home-programs__head {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.sdp-home-programs__title {
	align-items: center;
	display: flex;
	font-size: 1.7rem;
	font-weight: 800;
	gap: 10px;
	letter-spacing: -0.02em;
	margin: 0;
}

.sdp-home-programs__title::before {
	background: var(--sdp-accent);
	border-radius: 2px;
	content: "";
	height: 1.05em;
	width: 4px;
}

.sdp-home-programs__all {
	align-items: center;
	color: var(--sdp-accent);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	gap: 4px;
	text-decoration: none;
}

.sdp-home-programs__all:hover,
.sdp-home-programs__all:focus-visible {
	color: var(--sdp-accent-dark);
}

.sdp-home-programs__all .sdp-home-icon {
	height: 14px;
	width: 14px;
}

.sdp-home-programs__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sdp-home-card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(20, 24, 32, 0.08);
	color: inherit;
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sdp-home-card:hover,
.sdp-home-card:focus-visible {
	box-shadow: 0 12px 28px rgba(20, 24, 32, 0.12);
	transform: translateY(-3px);
}

a.sdp-home-card--link:focus-visible {
	outline: 2px solid var(--sdp-accent);
	outline-offset: 3px;
}

.sdp-home-card__media {
	background: var(--sdp-empty);
	border-radius: 14px 14px 0 0;
	height: 158px;
	overflow: hidden;
}

.sdp-home-card__media img,
.sdp-home-card__empty {
	height: 100%;
	object-fit: cover;
	object-position: center 58%;
	width: 100%;
}

.sdp-home-card__body {
	align-items: flex-start;
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	min-height: 108px;
	padding: 28px 52px 16px 16px;
	position: relative;
}

.sdp-home-card__copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.sdp-home-card__text {
	color: var(--sdp-muted);
	font-size: 12.5px;
	line-height: 1.4;
	margin: 0;
}

.sdp-home-card__badge {
	align-items: center;
	border: 3px solid #ffffff;
	border-radius: 50%;
	color: #ffffff;
	display: inline-flex;
	height: 46px;
	justify-content: center;
	left: 14px;
	position: absolute;
	top: -24px;
	width: 46px;
}

.sdp-home-card__badge .sdp-home-icon {
	height: 22px;
	width: 22px;
}

.sdp-home-card__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	overflow-wrap: anywhere;
}

.sdp-home-card__go {
	align-items: center;
	background: var(--sdp-accent);
	border-radius: 50%;
	bottom: 16px;
	color: #ffffff;
	display: inline-flex;
	height: 30px;
	justify-content: center;
	position: absolute;
	right: 12px;
	width: 30px;
}

.sdp-home-card__go .sdp-home-icon {
	height: 14px;
	width: 14px;
}

.sdp-home-about {
	align-items: stretch;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
	margin-top: 48px;
}

.sdp-home-about__title {
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.sdp-home-about__title::after {
	background: var(--sdp-accent);
	border-radius: 2px;
	content: "";
	display: block;
	height: 3px;
	margin-top: 10px;
	width: 52px;
}

.sdp-home-about__copy p {
	color: #3a4048;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.sdp-home-about__copy .sdp-home-btn {
	margin-top: 8px;
}

.sdp-home-about__media img,
.sdp-home-about__empty {
	border-radius: 14px;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	object-position: center 42%;
	width: 100%;
}

.sdp-home-about__empty {
	background: var(--sdp-empty);
}

@media (max-width: 1100px) {
	.sdp-home__top {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.sdp-hero__title {
		font-size: 2rem;
	}
}

@media (max-width: 900px) {
	.sdp-home-programs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 921px) {
	.sdp-home__top,
	.sdp-home-about {
		grid-template-columns: 1fr;
	}

	.sdp-hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.sdp-hero__copy {
		padding: 28px 22px 8px;
	}

	.sdp-hero__photo,
	.sdp-hero__photo--empty {
		grid-column: 1;
		grid-row: 2;
		min-height: 210px;
	}

	.sdp-hero--has-photo .sdp-hero__photo {
		grid-row: 2;
		height: 220px;
		inset: auto;
		min-height: 220px;
		object-position: 70% center;
		position: relative;
	}

	.sdp-hero--has-photo .sdp-hero__shade {
		display: none;
	}

	.sdp-home-perks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sdp-home-perks__item:nth-child(odd) {
		border-left: 0;
	}

	.sdp-home-perks__item:nth-child(n + 3) {
		border-top: 1px solid var(--sdp-line);
	}
}

@media (max-width: 560px) {
	.sdp-hero__title {
		font-size: 1.75rem;
	}

	.sdp-home-perks,
	.sdp-home-programs__grid {
		grid-template-columns: 1fr;
	}

	.sdp-home-perks__item,
	.sdp-home-perks__item + .sdp-home-perks__item {
		border-left: 0;
		border-top: 1px solid var(--sdp-line);
	}

	.sdp-home-perks__item:first-child {
		border-top: 0;
	}

	.sdp-home-programs__head {
		align-items: flex-start;
		flex-direction: column;
	}
}
