/**
 * LO profile — inviting layout for borrowers (hero, bio, closing CTA).
 */

.wheatland-lo-profile-main {
	width: 100%;
	overflow-x: hidden;
}

/* ---- Hero ---- */
.wheatland-lo-profile__hero {
	position: relative;
	color: rgba(255, 255, 255, 0.96);
	padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
	border-bottom: 1px solid rgba(197, 163, 89, 0.25);
	background: linear-gradient(
		168deg,
		#1a1510 0%,
		var(--wm-navy-deep, #2a2112) 38%,
		#352a18 70%,
		var(--wm-navy, #3d311b) 100%
	);
}

.wheatland-lo-profile__hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 90% 55% at 15% 20%, rgba(197, 163, 89, 0.14) 0%, transparent 55%),
		radial-gradient(ellipse 70% 45% at 85% 75%, rgba(220, 197, 133, 0.08) 0%, transparent 50%),
		repeating-linear-gradient(
			-12deg,
			transparent,
			transparent 32px,
			rgba(255, 255, 255, 0.02) 32px,
			rgba(255, 255, 255, 0.02) 33px
		);
	opacity: 1;
}

.wheatland-lo-profile__hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3rem);
	align-items: start;
}

@media (min-width: 900px) {
	.wheatland-lo-profile__hero-inner {
		grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
		gap: clamp(2.5rem, 5vw, 4rem);
		align-items: center;
	}
}

/* Photo */
.wheatland-lo-profile__photo-frame {
	position: relative;
	max-width: 380px;
	margin: 0 auto;
}

@media (min-width: 900px) {
	.wheatland-lo-profile__photo-frame {
		margin: 0;
	}
}

.wheatland-lo-profile__photo-frame::before {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(197, 163, 89, 0.55), rgba(255, 255, 255, 0.12), rgba(197, 163, 89, 0.35));
	z-index: 0;
}

.wheatland-lo-profile__photo-frame .wheatland-lo-profile__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow:
		0 24px 56px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wheatland-lo-profile__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center top;
}

.wheatland-lo-profile__photo-frame--empty .wheatland-lo-profile__figure--placeholder {
	min-height: 280px;
	border-radius: 10px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
	border: 1px dashed rgba(255, 255, 255, 0.18);
}

/* Intro column */
.wheatland-lo-profile__intro {
	max-width: 38rem;
}

.wheatland-lo-profile__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wm-gold-soft, #dcc585);
}

.wheatland-lo-profile__name {
	margin: 0 0 0.5rem;
	font-family: var(--wm-serif, Georgia, serif);
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #fff;
}

.wheatland-lo-profile__role {
	margin: 0 0 1rem;
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.94);
}

.wheatland-lo-profile__tagline {
	margin: 0 0 1.25rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
	font-weight: 500;
}

.wheatland-lo-profile__nmls-badge {
	margin: 0 0 1.25rem;
}

.wheatland-lo-profile__nmls-badge-inner {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(197, 163, 89, 0.35);
	border-radius: 999px;
}

/* Contact card */
.wheatland-lo-profile__contact-card {
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.25rem;
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.wheatland-lo-profile__contact-card-title {
	margin: 0 0 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.wheatland-lo-profile__contact-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	font-size: 1.0625rem;
}

.wheatland-lo-profile__contact-lines a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(220, 197, 133, 0.35);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.wheatland-lo-profile__contact-lines a:hover,
.wheatland-lo-profile__contact-lines a:focus-visible {
	color: var(--wm-gold-soft, #dcc585);
	border-bottom-color: var(--wm-gold-soft, #dcc585);
}

.wheatland-lo-profile__contact-lines li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.75rem;
}

.wheatland-lo-profile__label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.45);
	min-width: 3rem;
}

/* Licensed */
.wheatland-lo-profile__licensed {
	margin: 0 0 1.75rem;
}

.wheatland-lo-profile__licensed-heading {
	margin: 0 0 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.wheatland-lo-profile__licensed-text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
}

.wheatland-lo-profile__state-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wheatland-lo-profile__state-chips li {
	margin: 0;
}

.wheatland-lo-profile__state-chip {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 6px;
}

/* CTA block */
.wheatland-lo-profile__cta-block {
	margin-top: 0.25rem;
}

.wheatland-lo-profile__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1rem;
	margin: 0 0 0.85rem;
}

button.wheatland-lo-profile__btn {
	font: inherit;
	font-family: var(--wm-font, "DM Sans", system-ui, sans-serif);
	cursor: pointer;
}

.wheatland-lo-profile__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	transition:
		transform 0.18s ease,
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.wheatland-lo-profile__btn:active {
	transform: translateY(1px);
}

.wheatland-lo-profile__btn--primary {
	background: linear-gradient(180deg, #d4b06a 0%, var(--wm-gold, #c5a359) 100%);
	color: var(--wm-navy-deep, #2a2112);
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow:
		0 4px 16px rgba(0, 0, 0, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.wheatland-lo-profile__btn--primary:hover,
.wheatland-lo-profile__btn--primary:focus-visible {
	background: linear-gradient(180deg, #dfc07e 0%, #d4b06a 100%);
	box-shadow:
		0 6px 22px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.wheatland-lo-profile__btn--ghost {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.88);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wheatland-lo-profile__btn--ghost:hover,
.wheatland-lo-profile__btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

.wheatland-lo-profile__cta-note {
	margin: 0;
	max-width: 28rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.62);
}

.wheatland-lo-profile__social {
	margin: 1.25rem 0 0;
	font-size: 0.9375rem;
}

.wheatland-lo-profile__social-link {
	font-weight: 600;
	color: var(--wm-gold-soft, #dcc585);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.wheatland-lo-profile__social-link:hover,
.wheatland-lo-profile__social-link:focus-visible {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* ---- Bio body ---- */
.wheatland-lo-profile__body {
	background: linear-gradient(180deg, #faf9f7 0%, var(--wm-white, #fff) 24%);
	padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.wheatland-lo-profile__article {
	max-width: 46rem;
	margin: 0 auto;
}

.wheatland-lo-profile__bio-panel {
	padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2rem);
	background: var(--wm-white, #fff);
	border-radius: 12px;
	border: 1px solid var(--wm-line, rgba(61, 49, 27, 0.12));
	box-shadow: 0 12px 40px rgba(47, 33, 18, 0.06);
	border-left: 4px solid var(--wm-gold, #c5a359);
}

.wheatland-lo-profile__bio-title {
	margin: 0 0 1.25rem;
	font-family: var(--wm-serif, Georgia, serif);
	font-size: clamp(1.5rem, 2.8vw, 1.85rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--wm-navy-deep, #2a2112);
}

.wheatland-lo-profile__entry {
	font-size: 1.0625rem;
	line-height: 1.72;
	color: var(--wm-navy, #3d311b);
}

.wheatland-lo-profile__entry > *:first-child {
	margin-top: 0;
}

.wheatland-lo-profile__entry a {
	color: var(--wm-navy-deep, #2a2112);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(197, 163, 89, 0.5);
	text-underline-offset: 0.15em;
}

.wheatland-lo-profile__entry a:hover,
.wheatland-lo-profile__entry a:focus-visible {
	color: var(--wm-navy-deep, #2a2112);
	text-decoration-color: var(--wm-gold, #c5a359);
}

.wheatland-lo-profile__entry h2,
.wheatland-lo-profile__entry h3 {
	font-family: var(--wm-serif, Georgia, serif);
	color: var(--wm-navy-deep, #2a2112);
	margin-top: 1.5em;
}

/* ---- Closing reach-out ---- */
.wheatland-lo-profile__reachout {
	padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
	background: linear-gradient(
		165deg,
		#f5f0e8 0%,
		#ebe4d8 45%,
		#e8e0d2 100%
	);
	border-top: 1px solid rgba(61, 49, 27, 0.08);
	text-align: center;
}

.wheatland-lo-profile__reachout-inner {
	max-width: 36rem;
	margin: 0 auto;
}

.wheatland-lo-profile__reachout-title {
	margin: 0 0 0.75rem;
	font-family: var(--wm-serif, Georgia, serif);
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	font-weight: 600;
	color: var(--wm-navy-deep, #2a2112);
	line-height: 1.25;
}

.wheatland-lo-profile__reachout-lede {
	margin: 0 0 1.75rem;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--wm-muted, #736555);
}

.wheatland-lo-profile__reachout-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.85rem 1rem;
}

.wheatland-lo-profile__btn--on-light {
	background: linear-gradient(180deg, #d4b06a 0%, var(--wm-gold, #c5a359) 100%);
	color: var(--wm-navy-deep, #2a2112);
	border: 1px solid rgba(61, 49, 27, 0.15);
	box-shadow: 0 4px 20px rgba(47, 33, 18, 0.12);
}

.wheatland-lo-profile__btn--on-light:hover,
.wheatland-lo-profile__btn--on-light:focus-visible {
	background: linear-gradient(180deg, #dfc07e 0%, #d4b06a 100%);
}

.wheatland-lo-profile__btn--outline {
	background: transparent;
	color: var(--wm-navy-deep, #2a2112);
	border: 2px solid var(--wm-navy-deep, #2a2112);
}

.wheatland-lo-profile__btn--outline:hover,
.wheatland-lo-profile__btn--outline:focus-visible {
	background: rgba(61, 49, 27, 0.06);
}

.wheatland-lo-profile__reachout-phone {
	display: inline-flex;
	align-items: center;
	margin-left: 0.25rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--wm-navy-deep, #2a2112);
	text-decoration: none;
	border-bottom: 2px solid var(--wm-gold, #c5a359);
	padding-bottom: 0.1rem;
	transition: color 0.2s ease;
}

.wheatland-lo-profile__reachout-phone:hover,
.wheatland-lo-profile__reachout-phone:focus-visible {
	color: var(--wm-navy, #3d311b);
}

@media (max-width: 599px) {
	.wheatland-lo-profile__reachout-actions {
		flex-direction: column;
		width: 100%;
	}

	.wheatland-lo-profile__reachout-actions .wheatland-lo-profile__btn {
		width: 100%;
	}

	.wheatland-lo-profile__reachout-phone {
		margin: 0.5rem 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wheatland-lo-profile__btn {
		transition: none;
	}
}

/* ACF supplemental block (all fields not already in hero / contact / bio) */
.wheatland-lo-profile__acf-wrap {
	padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.wheatland-lo-acf-extra {
	margin: 0;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	background: var(--wm-cream, #f2f2f2);
	border: 1px solid var(--wm-line, rgba(61, 49, 27, 0.14));
	border-radius: var(--wm-radius-lg, 20px);
	box-shadow: var(--wm-shadow, 0 18px 50px rgba(47, 33, 18, 0.12));
}

.wheatland-lo-acf-extra__title {
	font-family: var(--wm-serif, Georgia, serif);
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 600;
	margin: 0 0 1.25rem;
	color: var(--wm-navy-deep, #2a2112);
}

.wheatland-lo-acf-extra__body {
	display: grid;
	gap: 1.5rem;
}

.wheatland-lo-acf-extra__row {
	display: grid;
	gap: 0.4rem;
}

.wheatland-lo-acf-extra__label {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--wm-navy, #3d311b);
}

.wheatland-lo-acf-extra__value {
	margin: 0;
	font-size: 1rem;
	color: var(--wm-muted, #736555);
	line-height: 1.6;
}

.wheatland-lo-acf-extra__value a {
	color: var(--wm-navy-deep, #2a2112);
	font-weight: 600;
}

.wheatland-lo-acf-extra__repeater {
	margin: 0;
	padding-left: 1.25rem;
	list-style: disc;
}

.wheatland-lo-acf-extra__repeater-row {
	margin: 0 0 0.75rem;
}

.wheatland-lo-acf-extra__subfields {
	margin: 0.35rem 0 0;
	padding-left: 1.1rem;
	list-style: circle;
}

.wheatland-lo-acf-extra__subfield-label {
	font-weight: 600;
	color: var(--wm-navy-deep, #2a2112);
}

.wheatland-lo-acf-extra__gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.wheatland-lo-acf-extra__gal-img {
	border-radius: var(--wm-radius, 12px);
	height: auto;
	max-width: 100%;
}
