/**
 * Wheatland Mortgage — shared marketing styles (inner pages, team, sections, CTAs).
 * Homepage hero + trust: front-home.css (enqueued only on the front page).
 */

.wheatland-front-body .site-main.wheatland-front-main {
	max-width: none;
	margin: 0;
	padding: 0;
}

.wheatland-front-body .site-main.wheatland-inner-main {
	max-width: none;
	margin: 0;
	padding: 0;
}

:root {
	/* Brand palette — logo wordmark #3D311B · wheat / MORTGAGE #C5A359 */
	--wm-navy: #3d311b;
	--wm-navy-deep: #2a2112;
	--wm-gold: #c5a359;
	--wm-gold-soft: #dcc585;
	--wm-cream: #f2f2f2;
	--wm-white: #ffffff;
	--wm-muted: #736555;
	--wm-stone: #a69e94;
	--wm-line: rgba(64, 45, 23, 0.14);
	--wm-radius: 12px;
	--wm-radius-lg: 20px;
	--wm-shadow: 0 18px 50px rgba(47, 33, 18, 0.12);
	--wm-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wm-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.wheatland-front {
	font-family: var(--wm-font);
	color: var(--wm-navy);
	background: var(--wm-cream);
	line-height: 1.6;
}

.wheatland-front a {
	color: var(--wm-navy-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.wheatland-front a:hover,
.wheatland-front a:focus-visible {
	color: var(--wm-gold);
}

.wheatland-wrap {
	width: min(1160px, 100% - 2.5rem);
	margin-inline: auto;
}

.wheatland-eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wm-gold);
	margin: 0 0 0.75rem;
}

.wheatland-h2 {
	font-family: var(--wm-serif);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 1rem;
	color: var(--wm-navy-deep);
}

.wheatland-lead {
	font-size: 1.125rem;
	color: var(--wm-muted);
	max-width: 52ch;
	margin: 0;
}

/* Hybrid homepage — WordPress editor content inside marketing shell */
.wheatland-home-editor {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	background: var(--wm-white);
	border-block: 1px solid var(--wm-line);
}

.wheatland-home-editor--after {
	background: var(--wm-cream);
}

.wheatland-home-editor__content {
	max-width: 72ch;
	margin-inline: auto;
	font-size: 1.0625rem;
	color: var(--wm-navy);
}

.wheatland-home-editor__content > *:first-child {
	margin-top: 0;
}

.wheatland-home-editor__content > *:last-child {
	margin-bottom: 0;
}

.wheatland-home-editor__content h2,
.wheatland-home-editor__content h3 {
	font-family: var(--wm-serif);
	color: var(--wm-navy-deep);
}

.wheatland-home-editor__content img {
	height: auto;
	max-width: 100%;
	border-radius: var(--wm-radius);
}

.wheatland-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.35rem;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.wheatland-btn:focus-visible {
	outline: 3px solid var(--wm-gold-soft);
	outline-offset: 3px;
}

/* Chained .wheatland-btn.modifier beats .wheatland-front a (otherwise link color wins on hero). */
.wheatland-btn.wheatland-btn--primary {
	background: var(--wm-gold);
	color: var(--wm-navy-deep);
	border-color: var(--wm-gold);
	text-decoration: none;
}

.wheatland-btn.wheatland-btn--primary:hover,
.wheatland-btn.wheatland-btn--primary:focus-visible {
	background: var(--wm-gold-soft);
	border-color: var(--wm-gold-soft);
	color: var(--wm-navy-deep);
	transform: translateY(-1px);
}


/* Sections */
.wheatland-section {
	padding: clamp(3rem, 6vw, 5rem) 0;
}

.wheatland-section--alt {
	background: var(--wm-white);
}

.wheatland-section__head {
	max-width: 640px;
	margin-bottom: 2.5rem;
}

.wheatland-section__head--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.wheatland-section__head--center .wheatland-lead {
	margin-left: auto;
	margin-right: auto;
}

/* Process */
.wheatland-steps {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.wheatland-steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

.wheatland-step {
	background: var(--wm-white);
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	padding: 1.5rem 1.35rem;
	box-shadow: 0 12px 40px rgba(47, 33, 18, 0.08);
	height: 100%;
	border-top: 3px solid var(--wm-gold);
}

.wheatland-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--wm-gold), #a67c48);
	color: var(--wm-navy-deep);
	font-weight: 700;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.wheatland-step h3 {
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
	font-family: var(--wm-font);
}

.wheatland-step p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wm-muted);
}

/* Programs */
.wheatland-grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 600px) {
	.wheatland-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.wheatland-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.wheatland-card {
	background: var(--wm-cream);
	border-radius: var(--wm-radius);
	padding: 1.35rem 1.25rem;
	border: 1px solid var(--wm-line);
	border-left: 4px solid var(--wm-gold);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wheatland-section--alt .wheatland-card {
	background: var(--wm-white);
}

.wheatland-card:hover {
	border-color: rgba(217, 165, 102, 0.5);
	box-shadow: 0 16px 44px rgba(47, 33, 18, 0.1);
	transform: translateY(-2px);
}

.wheatland-card h3 {
	font-size: 1.0625rem;
	margin: 0 0 0.35rem;
	font-family: var(--wm-font);
}

.wheatland-card p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wm-muted);
}

/* FAQ */
.wheatland-faq {
	display: grid;
	gap: 0.65rem;
	max-width: 800px;
	margin-inline: auto;
}

.wheatland-faq details {
	background: var(--wm-white);
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	padding: 0;
	overflow: hidden;
}

.wheatland-faq summary {
	cursor: pointer;
	font-weight: 600;
	padding: 1rem 1.15rem;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.wheatland-faq summary::-webkit-details-marker {
	display: none;
}

.wheatland-faq summary::after {
	content: "+";
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wm-gold);
	flex-shrink: 0;
}

.wheatland-faq details[open] summary::after {
	content: "–";
}

.wheatland-faq .wheatland-faq__body {
	padding: 0 1.15rem 1.1rem;
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wm-muted);
	border-top: 1px solid var(--wm-line);
}

/* Team */
.wheatland-team {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Homepage: Travis & Cody top row, then rows of 3 */
.wheatland-team-layout {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.wheatland-team--leads {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	max-width: 880px;
	margin-inline: auto;
	width: 100%;
}

@media (min-width: 600px) {
	.wheatland-team--leads {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.wheatland-team--leads .wheatland-person {
	box-shadow: 0 14px 44px rgba(47, 33, 18, 0.1);
	border-color: rgba(197, 163, 89, 0.35);
}

.wheatland-team--rest {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	width: 100%;
}

@media (min-width: 600px) {
	.wheatland-team--rest {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.wheatland-team--rest {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.wheatland-person {
	background: var(--wm-white);
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	padding: 1.35rem 1.15rem;
	text-align: left;
}

.wheatland-person--has-photo {
	padding-top: 0;
}

.wheatland-person__photo {
	margin: 0 -1.15rem 1rem;
	border-radius: var(--wm-radius) var(--wm-radius) 0 0;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--wm-cream);
}

.wheatland-person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.wheatland-person h3 {
	font-size: 1.0625rem;
	margin: 0 0 0.2rem;
	font-family: var(--wm-font);
}

.wheatland-person--has-photo h3 {
	margin-top: 0;
}

.wheatland-person .wheatland-person__role {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wm-gold);
	margin: 0 0 0.35rem;
}

.wheatland-person .wheatland-person__nmls {
	font-size: 0.8125rem;
	color: var(--wm-muted);
	margin: 0;
}

.wheatland-person__profile {
	margin: 0.65rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.wheatland-person__profile a {
	text-decoration: none;
}

.wheatland-contact__phone {
	margin-bottom: 1rem;
}

/* CTA band */
.wheatland-cta {
	background: linear-gradient(125deg, #1a120c 0%, var(--wm-navy-deep) 40%, var(--wm-navy) 100%);
	color: var(--wm-white);
	padding: clamp(3rem, 6vw, 4.5rem) 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.wheatland-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 80% at 50% 120%, rgba(217, 165, 102, 0.2), transparent 55%);
	pointer-events: none;
}

.wheatland-cta .wheatland-wrap {
	position: relative;
	z-index: 1;
}

.wheatland-cta h2 {
	font-family: var(--wm-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 0.75rem;
	color: var(--wm-white);
}

.wheatland-cta p {
	margin: 0 auto 1.5rem;
	max-width: 520px;
	opacity: 0.92;
}

.wheatland-cta .wheatland-btn.wheatland-btn--primary {
	color: var(--wm-navy-deep);
}

/* Loan program pages — CTA + legal note inside entry content */
.entry-content .wheatland-loan-page-cta {
	margin: 2rem 0 1rem;
}

.entry-content .wheatland-loan-page-note {
	margin-top: 1.25rem;
	color: var(--wm-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* Contact strip */
.wheatland-contact {
	padding: 2.5rem 0 3rem;
	background: var(--wm-cream);
	border-top: 1px solid var(--wm-line);
}

.wheatland-contact__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.wheatland-contact__grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.wheatland-contact address {
	font-style: normal;
	margin: 0;
	color: var(--wm-muted);
	font-size: 0.9375rem;
}

.wheatland-contact a[href^="tel"] {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--wm-navy-deep);
}

.wheatland-contact a[href^="tel"]:hover {
	color: var(--wm-gold);
}

.wheatland-legal {
	font-size: 0.75rem;
	color: var(--wm-stone);
	margin-top: 2rem;
	line-height: 1.5;
}

/* Inner pages — same shell + hero band as homepage marketing */
.wheatland-inner-page {
	font-family: var(--wm-font);
	color: var(--wm-navy);
	background: var(--wm-cream);
	line-height: 1.6;
}

.wheatland-inner-page a {
	color: var(--wm-navy-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.wheatland-inner-page a:hover,
.wheatland-inner-page a:focus-visible {
	color: var(--wm-gold);
}

.wheatland-inner-hero {
	position: relative;
	isolation: isolate;
	background: linear-gradient(145deg, rgba(15, 10, 6, 0.97) 0%, rgba(47, 33, 18, 0.94) 55%, rgba(64, 45, 23, 0.88) 100%);
	color: var(--wm-white);
	padding: clamp(2.25rem, 6vw, 3.75rem) 0;
	text-align: center;
	overflow: hidden;
}

.wheatland-inner-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: radial-gradient(ellipse 70% 80% at 50% -20%, rgba(217, 165, 102, 0.22) 0%, transparent 55%);
}

.wheatland-inner-hero__inner {
	position: relative;
	z-index: 1;
}

.wheatland-inner-hero .wheatland-inner-hero__eyebrow,
.wheatland-inner-hero .wheatland-eyebrow {
	color: var(--wm-gold-soft);
	margin-bottom: 0.65rem;
}

.wheatland-inner-hero__title {
	font-family: var(--wm-serif);
	font-size: clamp(1.85rem, 4vw, 2.65rem);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	color: var(--wm-white);
	letter-spacing: -0.02em;
}

.wheatland-inner-hero__subtitle {
	margin: 0.85rem auto 0;
	max-width: 42ch;
	font-size: 1.0625rem;
	opacity: 0.9;
	color: rgba(255, 255, 255, 0.9);
}

.wheatland-inner-page__body {
	padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.wheatland-inner-page__body .wheatland-wrap {
	background: var(--wm-white);
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius-lg);
	box-shadow: var(--wm-shadow);
	padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
}

.wheatland-inner-page .entry-content .alignwide,
.wheatland-inner-page .entry-content .alignfull {
	position: relative;
}

@media (min-width: 900px) {
	.wheatland-inner-page__body .wheatland-wrap {
		padding-left: clamp(2rem, 4vw, 3rem);
		padding-right: clamp(2rem, 4vw, 3rem);
	}
}

.wheatland-inner-page--team-template .wheatland-section:first-of-type {
	padding-top: clamp(2rem, 4vw, 3rem);
}

.wheatland-inner-archive-item + .wheatland-inner-archive-item {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wm-line);
}

.wheatland-inner-page .wheatland-inner-archive-item .entry-title {
	font-family: var(--wm-serif);
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.35rem;
}

.wheatland-inner-page .wheatland-inner-archive-item .entry-title a {
	text-decoration: none;
	color: var(--wm-navy-deep);
}

.wheatland-inner-page .wheatland-inner-archive-item .entry-title a:hover,
.wheatland-inner-page .wheatland-inner-archive-item .entry-title a:focus-visible {
	color: var(--wm-gold);
}

.wheatland-inner-page .wheatland-inner-archive-item .entry-meta {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: var(--wm-muted);
}

.wheatland-inner-page .posts-navigation,
.wheatland-inner-page .post-navigation {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wm-line);
}
