/**
 * Section8Finder homepage — affordable housing focus.
 */

.s8f-homepage .inspiry-slider-header .site-header,
.s8f-homepage.inspiry-header-variation-three .site-header {
	position: relative;
}

.s8f-homepage .property-slider,
.s8f-homepage .inspiry-revolution-slider,
.s8f-homepage .submit-property,
.s8f-homepage .featured-properties,
.s8f-homepage .home-properties,
.s8f-homepage .partners,
.s8f-homepage .recent-posts-carousel {
	display: none !important;
}

.s8f-hero {
	position: relative;
	background-color: #1a3a52;
	background-size: cover;
	background-position: center;
	min-height: 420px;
	display: flex;
	align-items: center;
	margin-bottom: 0;
}

.s8f-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 45, 68, 0.88) 0%, rgba(30, 90, 120, 0.75) 100%);
}

.s8f-hero .container {
	position: relative;
	z-index: 2;
}

.s8f-hero__inner {
	max-width: 820px;
	padding: 48px 0 56px;
	color: #fff;
}

.s8f-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.2;
	margin: 0 0 16px;
	color: #fff;
	font-weight: 700;
}

.s8f-hero__subtitle {
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 0 0 24px;
	opacity: 0.95;
}

.s8f-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.s8f-btn {
	margin: 0;
}

.s8f-btn--outline {
	background: transparent !important;
	border: 2px solid #fff !important;
	color: #fff !important;
}

.s8f-btn--outline:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #fff !important;
}

.s8f-hero__search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 560px;
}

.s8f-hero__search input[type="search"] {
	flex: 1 1 200px;
	min-width: 0;
	padding: 12px 14px;
	border: none;
	border-radius: 3px;
	font-size: 1rem;
}

.s8f-hero__search button {
	flex: 0 0 auto;
}

.s8f-section {
	padding: 48px 0;
}

.s8f-section:nth-child(even) {
	background: #f4f7f9;
}

.s8f-section__header {
	text-align: center;
	margin-bottom: 32px;
}

.s8f-section__title {
	font-size: 1.75rem;
	margin: 0 0 10px;
	color: #1a3a52;
}

.s8f-section__lead {
	max-width: 640px;
	margin: 0 auto;
	color: #555;
	font-size: 1rem;
	line-height: 1.5;
}

.s8f-section__footer-link {
	text-align: center;
	margin: 28px 0 0;
}

.s8f-states__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.s8f-states__grid a {
	display: block;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #d8e2e8;
	border-radius: 4px;
	color: #1a3a52;
	text-decoration: none;
	font-size: 0.9rem;
	transition: border-color 0.2s, background 0.2s;
}

.s8f-states__grid a:hover {
	border-color: #50b848;
	background: #f0faf0;
	color: #0d6b2a;
}

.s8f-cities__grid,
.s8f-pha__grid {
	margin-top: 8px;
}

.s8f-cities__item,
.s8f-pha__item {
	margin-bottom: 16px;
}

.s8f-card {
	display: block;
	padding: 20px 18px;
	background: #fff;
	border: 1px solid #d8e2e8;
	border-radius: 6px;
	text-decoration: none;
	height: 100%;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.s8f-card:hover {
	border-color: #50b848;
	box-shadow: 0 4px 14px rgba(26, 58, 82, 0.1);
	text-decoration: none;
}

.s8f-card__title {
	display: block;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a3a52;
	margin-bottom: 6px;
}

.s8f-card__meta {
	display: block;
	font-size: 0.875rem;
	color: #666;
}

.s8f-waitlists__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.s8f-waitlists__item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 14px 0;
	border-bottom: 1px solid #dde5ea;
}

.s8f-waitlists__item a {
	font-weight: 600;
	color: #1a3a52;
}

.s8f-waitlists__status {
	display: block;
	font-size: 0.85rem;
	color: #666;
	font-weight: 400;
}

.s8f-waitlists__date {
	font-size: 0.85rem;
	color: #888;
}

.s8f-resources__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 720px;
	columns: 1;
}

.s8f-resources__list li {
	padding: 8px 0;
	border-bottom: 1px solid #e8ecef;
	break-inside: avoid;
}

.s8f-resources__list a {
	color: #1a3a52;
	font-weight: 500;
}

.s8f-seo-content {
	background: #fff;
	padding-bottom: 56px;
}

.s8f-seo-content__inner {
	max-width: 900px;
	margin: 0 auto;
}

.s8f-seo-content__inner h2 {
	font-size: 1.5rem;
	color: #1a3a52;
}

.s8f-seo-content__inner h3 {
	font-size: 1.2rem;
	color: #2a4a62;
}

.s8f-home-main {
	padding-top: 0;
}

.s8f-home-wrapper .site-content {
	padding-top: 0;
}

.s8f-homepage,
.s8f-homepage * {
	box-sizing: border-box;
}

.s8f-homepage img {
	max-width: 100%;
	height: auto;
}

.s8f-homepage .container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

.s8f-homepage .btn-default,
.s8f-homepage button,
.s8f-homepage input,
.s8f-homepage select {
	min-height: 44px;
}

.s8f-homepage .site-content-wrapper {
	overflow-x: clip;
}

@media (min-width: 768px) {
	.s8f-resources__list {
		columns: 2;
		column-gap: 32px;
	}
}

@media (max-width: 1199px) {
	.s8f-hero__inner {
		max-width: 760px;
	}
}

@media (max-width: 1024px) {
	.s8f-hero {
		min-height: 390px;
	}

	.s8f-section {
		padding: 40px 0;
	}

	.s8f-card {
		padding: 16px;
	}
}

@media (max-width: 767px) {
	.s8f-hero {
		min-height: 360px;
	}

	.s8f-hero__inner {
		padding: 32px 0 40px;
	}

	.s8f-hero__ctas {
		flex-direction: column;
	}

	.s8f-hero__ctas .btn-default {
		width: 100%;
		text-align: center;
	}

	.s8f-hero__search {
		max-width: 100%;
	}

	.s8f-hero__search input[type="search"],
	.s8f-hero__search button {
		flex: 1 1 100%;
		width: 100%;
	}

	.s8f-section {
		padding: 36px 0;
	}

	.s8f-states__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.s8f-homepage .container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.s8f-hero__title {
		font-size: 1.55rem;
	}

	.s8f-hero__subtitle {
		font-size: 0.95rem;
	}

	.s8f-section__title {
		font-size: 1.4rem;
	}

	.s8f-states__grid {
		grid-template-columns: 1fr;
	}
}
