/*
 * Homepage-only sections. Adapted 1:1 from the client-approved mockup at
 * ~/Desktop/FCLS/fcls-homepage.html. Components shared with the loan
 * program pages (loan-card, blog-grid, twoup, photo-placeholder) live in
 * base.css instead of here.
 */

/* ---------- Hero ---------- */
.fcls-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	min-height: 620px;
	background: linear-gradient(rgba(26,26,26,.8), rgba(26,26,26,.8)), var(--hero-photo, none) center/cover no-repeat,
	            linear-gradient(135deg, #3a3a3a, #161616);
}
.fcls-hero-photo {
	position: relative;
	display: flex;
	align-items: center;
	padding: 60px 56px;
}
.fcls-hero-copy { max-width: 520px; position: relative; z-index: 2; }
.fcls-hero-copy .fcls-eyebrow { color: #ff8a8a; letter-spacing: .14em; }
.fcls-hero-copy h1 {
	color: var(--white);
	font-size: 46px;
	margin: 14px 0 20px;
}
.fcls-hero-copy h1 em { color: #f3a6a6; font-style: normal; }
.fcls-hero-copy p {
	color: rgba(255,255,255,.82);
	font-size: 17px;
	margin: 0 0 28px;
	max-width: 460px;
}
.fcls-hero-ctas { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.fcls-trust-bar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 24px;
	max-width: 420px;
}
.fcls-trust-bar li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: rgba(255,255,255,.85);
}
.fcls-trust-bar li svg { flex-shrink: 0; color: #f3a6a6; }

.fcls-hero-form {
	background: var(--white);
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: center;
	margin: 40px 40px 40px 0;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
	position: relative;
	z-index: 2;
}
.fcls-hero-form h3 { font-size: 22px; margin-bottom: 6px; }
.fcls-hero-form > p { color: var(--gray-600); font-size: 14px; margin: 0 0 22px; }
.fcls-field { margin-bottom: 16px; }
.fcls-field label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gray-600);
	margin-bottom: 6px;
}
.fcls-field input, .fcls-field select {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--gray-300);
	border-radius: 5px;
	font-family: inherit;
	font-size: 14px;
}
.fcls-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fcls-form-note { font-size: 11.5px; color: var(--gray-600); text-align: center; margin: 12px 0 0; }

/* ---------- Stat strip ---------- */
.fcls-stats {
	background: var(--charcoal);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	text-align: center;
	padding: 34px 24px;
}
.fcls-stats > div { border-right: 1px solid rgba(255,255,255,.12); padding: 0 12px; }
.fcls-stats > div:last-child { border-right: none; }
.fcls-stats .num { color: var(--white); font-size: 30px; font-weight: 800; }
.fcls-stats .num span { color: var(--red); }
.fcls-stats .lbl { color: rgba(255,255,255,.65); font-size: 13px; margin-top: 4px; }

/* ---------- Find a Local Expert search widget ---------- */
.fcls-expert-search { background: var(--white); }
.fcls-search-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.fcls-search-tab {
	font-family: inherit; font-size: 14px; font-weight: 700; padding: 11px 22px;
	border-radius: 100px; border: 2px solid var(--gray-300); background: var(--white);
	color: var(--charcoal-soft); cursor: pointer; transition: all .15s ease;
}
.fcls-search-tab.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.fcls-search-box { max-width: 480px; margin: 0 auto 22px; }
.fcls-search-box input {
	width: 100%; padding: 15px 18px; font-size: 15px; font-family: inherit;
	border: 2px solid var(--gray-300); border-radius: 8px;
}
.fcls-search-box input:focus { outline: none; border-color: var(--red); }
.fcls-search-results { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.fcls-search-result {
	display: flex; align-items: center; justify-content: space-between;
	padding: 13px 18px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14.5px;
}
.fcls-search-result .branch-tag { font-size: 11.5px; color: var(--gray-600); font-weight: 600; }
.fcls-search-result a.view { font-size: 13px; font-weight: 700; color: var(--red); }
.fcls-search-fallback { max-width: 480px; margin: 0 auto; text-align: center; padding: 20px; background: var(--gray-100); border-radius: 10px; }
.fcls-search-fallback p { color: var(--gray-600); font-size: 14px; margin: 0 0 14px; }

/* ---------- How we get it done ---------- */
/* Moved to base.css — this section now renders on more than just the
   homepage, and front-page.css is only enqueued on is_front_page(). */

/* ---------- Service areas ---------- */
.fcls-areas-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}
.fcls-area-card {
	background: var(--gray-100);
	border-radius: 10px;
	padding: 22px 18px;
	text-align: center;
	flex: 0 1 calc(25% - 12px);
}
.fcls-area-card h4 { font-size: 16px; margin-bottom: 6px; }
.fcls-area-card p { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--gray-600); }
.fcls-area-card .placeholder-note {
	margin-top: 10px;
	font-size: 11.5px;
	color: var(--gray-600);
	font-style: italic;
	border: 1px dashed var(--gray-300);
	border-radius: 6px;
	padding: 10px 8px;
	background: var(--white);
}

/* ---------- Find an expert teaser ---------- */
.fcls-expert-teaser {
	background: var(--white);
	border: 1px solid var(--gray-300);
	border-radius: 14px;
	padding: 46px;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px;
	align-items: center;
}
.fcls-expert-teaser h2 { font-size: 28px; margin: 10px 0 14px; }
.fcls-expert-teaser p { color: var(--gray-600); font-size: 15px; margin-bottom: 24px; }
.fcls-branch-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.fcls-branch-pills span {
	font-size: 13px;
	font-weight: 600;
	background: var(--gray-100);
	padding: 7px 14px;
	border-radius: 100px;
}
.fcls-branch-pills span.soon { background: #fdeaec; color: var(--red); }
.fcls-branch-pills span.soon::after {
	content: " · Opening Soon";
	font-weight: 700;
	font-size: 11px;
}
.fcls-branch-pills span.now-open { background: #e7f6ec; color: var(--green); }
.fcls-branch-pills span.now-open::after {
	content: " · Now Open";
	font-weight: 700;
	font-size: 11px;
}

/* ---------- Reviews ---------- */
/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.fcls-hero { grid-template-columns: 1fr; min-height: auto; }
	.fcls-hero-photo { padding: 44px 24px; }
	.fcls-hero-copy h1 { font-size: 34px; }
	.fcls-hero-form { margin: 0 20px 32px; }
	.fcls-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
	.fcls-stats > div:nth-child(2) { border-right: none; }
	.fcls-area-card { flex-basis: calc(50% - 8px); }
	.fcls-expert-teaser { grid-template-columns: 1fr; padding: 30px; }
}
@media (max-width: 560px) {
	.fcls-area-card { flex-basis: 100%; }
	.fcls-hero-form { padding: 32px 22px; margin: 0 20px 32px; }
	.fcls-field-row { grid-template-columns: 1fr; }
	.fcls-hero-ctas .fcls-btn { width: 100%; }
}
