/* Lending Services grid — Residential Lending page (components/lending-services/lending-services.php) */

/* Soft grey rounded panel that holds the head + card grid. */
.lending-services {
	background: var(--color-card-grey);
	border-radius: var(--radius-section);
	max-width: var(--content-max);
	margin-inline: auto;
	padding: 72px var(--side-padding);
}

.lending-services__head {
	text-align: center;
	margin-bottom: 48px;
}
/* Eyebrow — Montserrat SemiBold 24, gold (Figma). */
.lending-services__head .eyebrow {
	font-size: 24px;
	letter-spacing: normal;
	margin-bottom: 16px;
}
/* Title — DM Serif Display Regular 48, navy (Figma). */
.lending-services__title {
	font-family: var(--font-display);
	font-weight: var(--weight-regular);
	font-size: 48px;
	line-height: 1.15;
	color: var(--color-navy-mid);
	margin: 0;
}

.lending-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	align-items: start;
}

/* Card — F9FAFB fill, image flush at top, centered serif title + description.
   On hover the whole card slowly fills navy and the text flips to light. */
.ls-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius-card);
	background: var(--color-card-light);
	text-align: center;
	padding-bottom: 32px;
	transition: background-color 0.45s ease;
}
.ls-card:hover {
	background: var(--color-navy-mid);
}
.ls-card__media {
	margin-bottom: 24px;
}
.ls-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}
/* Title — DM Serif Display Regular 24, navy → off-white on hover. */
.ls-card__title {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: var(--weight-regular);
	color: var(--color-navy-mid);
	margin: 0 0 12px;
	padding-inline: 28px;
	transition: color 0.45s ease;
}
/* Description — Montserrat Regular 16, navy → off-white on hover. */
.ls-card__text {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: var(--weight-regular);
	line-height: 1.6;
	color: var(--color-navy-mid);
	margin: 0;
	padding-inline: 28px;
	transition: color 0.45s ease;
}
.ls-card:hover .ls-card__title,
.ls-card:hover .ls-card__text {
	color: var(--color-off-white);
}

/* Service template: equal-height cards — every card in a row matches the
   tallest one (content stays top-aligned, extra space falls below the text). */
.page-template-template-service .lending-services__grid {
	align-items: stretch;
}

@media (max-width: 1024px) {
	.lending-services { border-radius: 0; padding: 56px 24px; }
	.lending-services__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.lending-services__title { font-size: 38px; }
}
@media (max-width: 768px) {
	.lending-services__grid { grid-template-columns: 1fr; }
	.lending-services__title { font-size: 30px; }
}
