/**
 * FBC Front Page — hero, featured campaign, welcome, services, community.
 * Ported faithfully from FBC-Home.html (live).
 */

/* === HERO === */
.hero {
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
	color: var(--fbc-white);
	width: 100%;
	min-height: 75vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	position: relative;
}

.hero-content {
	max-width: 900px;
	position: relative;
	z-index: 2;
}

.hero-logo {
	margin-bottom: 1.5rem;
	text-align: center;
}

.hero-logo-img {
	width: 120px;
	height: auto;
	margin: 0 auto;
}

.hero h1 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
	color: var(--fbc-white);
}

.hero p {
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.hero-buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.hero-buttons .btn {
	width: 100%;
	max-width: 300px;
	margin-bottom: 0.8rem;
}

.hero-buttons .btn:last-child {
	margin-bottom: 0;
}

.hero-verse {
	margin: 2rem auto 0;
	font-style: italic;
	background: rgba(0, 0, 0, 0.35);
	padding: 1.5rem;
	border-radius: var(--fbc-radius);
	backdrop-filter: blur(3px);
	max-width: 600px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 1px solid var(--fbc-gold);
}

.verse-title {
	font-family: var(--fbc-font-heading);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--fbc-gold);
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--fbc-gold);
	display: inline-block;
	line-height: 1.3;
}

.verse-text {
	font-size: 1.2rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	color: var(--fbc-white);
	margin-bottom: 0.5rem;
	margin-top: 0.75rem;
}

.verse-ref {
	font-size: 1rem;
	color: var(--fbc-gold-light);
	font-weight: normal;
	margin-top: 0.5rem;
}

/* === FEATURED CAMPAIGN === */
.featured-section {
	margin: 2rem auto 0;
	max-width: var(--fbc-container-narrow);
	width: 95%;
}

.featured-card {
	background-color: var(--fbc-card-bg);
	border-radius: var(--fbc-radius);
	box-shadow: var(--fbc-shadow-sm);
	overflow: hidden;
	border-top: 5px solid var(--fbc-gold);
}

.featured-section-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	position: relative;
	padding-bottom: 0.75rem;
}

.featured-section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--fbc-gold);
}

.featured-intro {
	font-size: 1.05rem;
	margin: 1rem auto 2rem;
	max-width: 620px;
	color: var(--fbc-text-light);
	text-align: center;
}

.featured-event {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: var(--fbc-card-bg);
}

.featured-event-image {
	flex: none;
	height: 250px;
	position: relative;
	margin: 0;
}

.featured-event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.featured-image-caption {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(3, 25, 49, 0.75);
	color: var(--fbc-white);
	padding: 0.45rem 0.75rem;
	border-radius: var(--fbc-radius-pill);
	font-family: var(--fbc-font-heading);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.featured-event-content {
	flex: 1;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.christmas-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--fbc-gold);
	margin-bottom: 0.75rem;
}

.christmas-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.featured-event-content h3 {
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
	color: var(--fbc-primary);
	line-height: 1.2;
}

.featured-event-subtitle {
	font-weight: 700;
	color: var(--fbc-text);
	margin-bottom: 1rem;
}

.featured-event-content p {
	font-size: 1.05rem;
	margin-bottom: 1rem;
	color: var(--fbc-text-light);
	line-height: 1.7;
}

.featured-actions { margin-top: 1rem; }

.featured-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
}

.featured-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.9rem;
	border-radius: var(--fbc-radius-pill);
	background: var(--fbc-bg);
	color: var(--fbc-primary);
	font-weight: 700;
	font-size: 0.92rem;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.featured-pill i { color: var(--fbc-gold); }

.featured-pill-muted {
	background: rgba(3, 25, 49, 0.06);
	border-color: rgba(3, 25, 49, 0.10);
	color: var(--fbc-primary);
	font-weight: 700;
}

.featured-stats {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: linear-gradient(180deg, rgba(218, 165, 32, 0.08), rgba(248, 249, 250, 1));
	padding: 1.5rem 2rem 1.75rem;
}

.featured-stats-head {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 1.25rem;
}

.featured-stats-title {
	font-size: 1.25rem;
	margin: 0;
	color: var(--fbc-primary);
}

.featured-stats-subtitle {
	margin: 0;
	color: var(--fbc-text-light);
	font-size: 1rem;
	max-width: 60ch;
}

.featured-stats-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.stat-card {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	padding: 1rem 1.1rem;
	box-shadow: var(--fbc-shadow-sm);
}

.stat-number {
	font-family: var(--fbc-font-heading);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--fbc-primary);
}

.stat-label {
	margin-top: 0.25rem;
	color: var(--fbc-text-light);
	font-size: 0.95rem;
}

.featured-stats-note {
	margin: 0;
	color: var(--fbc-text);
	font-size: 1rem;
}

/* === WELCOME === */
.welcome-section { margin-bottom: 2rem; }

.welcome-container {
	background-color: var(--fbc-card-bg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	padding: 1.5rem;
	border-radius: var(--fbc-radius);
	box-shadow: var(--fbc-shadow-sm);
	margin-bottom: 1rem;
	text-align: center;
	position: relative;
}

.welcome-container::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.85);
	z-index: 0;
	border-radius: var(--fbc-radius);
}

.welcome-container h2,
.welcome-container p { position: relative; z-index: 1; }

.welcome-container h2 {
	font-size: 2rem;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
	position: relative;
}

.welcome-container h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--fbc-gold);
}

.welcome-container p {
	font-size: 1.15rem;
	margin-bottom: 1rem;
	color: var(--fbc-text);
}

/* === SERVICES === */
.services-section { margin-top: 4rem; }

.services-section h2 {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 2rem;
	position: relative;
	padding-bottom: 1rem;
}

.services-section h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--fbc-gold);
}

.service-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	max-width: 500px;
	margin: 0 auto;
}

.service-card {
	max-width: 100%;
	margin: 0 auto;
}

.service-card {
	background-color: var(--fbc-card-bg);
	padding: 0;
	border-radius: var(--fbc-radius);
	box-shadow: var(--fbc-shadow-sm);
	transition: transform var(--fbc-transition), box-shadow var(--fbc-transition);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.service-card:hover,
.service-card:focus-within {
	transform: translateY(-5px);
	box-shadow: var(--fbc-shadow-lg);
}

.service-img {
	height: 200px;
	overflow: hidden;
}

.service-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--fbc-transition);
}

.service-card:hover .service-img img { transform: scale(1.05); }

.service-content {
	padding: 1.5rem;
	flex-grow: 1;
}

.service-content h3 {
	font-size: 1.6rem;
	margin-bottom: 1rem;
	position: relative;
	padding-bottom: 0.75rem;
}

.service-content h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background-color: var(--fbc-gold);
}

.service-content p {
	margin-bottom: 0.5rem;
	font-size: 1rem;
	line-height: 1.5;
}

.service-content p small {
	font-size: 0.9rem;
	color: var(--fbc-text-light);
}

/* === COMMUNITY === */
.community-section {
	margin-top: 4rem;
	background-color: var(--fbc-card-bg);
	padding: 3rem 0;
}

.community-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
	max-width: var(--fbc-container);
	margin: 0 auto;
	padding: 0 2rem;
	text-align: center;
}

.community-image {
	margin-bottom: 2rem;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.community-image img {
	border-radius: var(--fbc-radius);
	box-shadow: var(--fbc-shadow-md);
	width: 100%;
}

.community-content h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	position: relative;
	padding-bottom: 1rem;
}

.community-content h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background-color: var(--fbc-gold);
}

.community-content p {
	font-size: 1.15rem;
	margin-bottom: 1rem;
	line-height: 1.7;
}

/* === UPCOMING EVENTS (homepage tail, member-facing) === */
.upcoming-events {
	background-color: var(--fbc-bg);
	padding: 3rem 1rem;
}

.upcoming-events-inner {
	max-width: var(--fbc-container);
	margin: 0 auto;
}

.upcoming-events-head {
	text-align: center;
	margin-bottom: 2.5rem;
}

.upcoming-events-head h2 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	position: relative;
	padding-bottom: 1rem;
	display: inline-block;
}

.upcoming-events-head h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--fbc-gold);
}

.upcoming-events-head p {
	color: var(--fbc-text-light);
	font-size: 1.05rem;
	margin: 1rem auto 0;
	max-width: 620px;
}

.upcoming-events-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 500px;
	margin: 0 auto;
}

.event-card {
	background: var(--fbc-card-bg);
	border-radius: var(--fbc-radius);
	box-shadow: var(--fbc-shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--fbc-transition), box-shadow var(--fbc-transition);
	border-top: 4px solid var(--fbc-gold);
}

.event-card:hover,
.event-card:focus-within {
	transform: translateY(-5px);
	box-shadow: var(--fbc-shadow-lg);
}

.event-card-image {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.event-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--fbc-transition);
}

.event-card:hover .event-card-image img { transform: scale(1.05); }

.event-card-body {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.event-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
	color: var(--fbc-text-light);
}

.event-card-meta i { color: var(--fbc-gold); margin-right: 0.4rem; }

.event-card-title {
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.event-card-title a {
	color: var(--fbc-primary);
	text-decoration: none;
}

.event-card-title a:hover,
.event-card-title a:focus { color: var(--fbc-accent); }

.event-card-location {
	font-size: 0.95rem;
	color: var(--fbc-text-light);
	margin-bottom: 0.75rem;
}

.event-card-location i { color: var(--fbc-gold); margin-right: 0.4rem; }

.event-card-excerpt {
	font-size: 1rem;
	color: var(--fbc-text);
	margin-bottom: 1rem;
	flex-grow: 1;
}

.event-card-link {
	font-family: var(--fbc-font-heading);
	font-weight: 700;
	color: var(--fbc-primary);
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
}

.event-card-link:hover,
.event-card-link:focus { color: var(--fbc-gold); }

.upcoming-events-cta {
	text-align: center;
	margin-top: 2.5rem;
}

/* === ANIMATION GUARDS — content never invisible === */
.fade-in,
.slide-up {
	opacity: 1 !important;
	transform: none !important;
}

body.js-loaded .fade-in,
body.js-loaded .slide-up {
	opacity: 1 !important;
	transform: none !important;
}

/* === RESPONSIVE — mobile-first === */
@media (min-width: 481px) {
	.welcome-container { padding: 2.5rem 2rem; }
	.hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
	.hero p { font-size: clamp(1rem, 4vw, 1.3rem); }
	.welcome-container h2,
	.services-section h2,
	.community-content h2 { font-size: 2.25rem; }
}

@media (min-width: 769px) {
	.hero {
		background-attachment: fixed;
		min-height: 85vh;
	}
	.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
	.hero p { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
	.hero-buttons {
		flex-direction: row;
		align-items: center;
	}
	.hero-buttons .btn {
		width: auto;
		max-width: none;
		margin-bottom: 0;
	}
	.service-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		max-width: var(--fbc-container-narrow);
	}
	.welcome-container { padding: 2.5rem; padding-top: 2rem; }
	.welcome-container h2,
	.services-section h2 { font-size: 2.5rem; }
	.featured-section { margin-top: 2.5rem; }
	.upcoming-events { padding: 4rem 1.25rem; }
	.upcoming-events-head h2 { font-size: 2.5rem; }
	.upcoming-events-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		max-width: var(--fbc-container-narrow);
	}
}

@media (min-width: 851px) {
	.featured-image-caption { left: 12px; bottom: 12px; font-size: 0.85rem; }
	.featured-stats { padding: 1.75rem 2.5rem 2rem; }
	.featured-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.featured-event { flex-direction: row; }
	.featured-event-image { flex: 0 0 40%; height: auto; min-height: 100%; }
	.featured-event-content { padding: 2.5rem; }
	.featured-event-content h3 { font-size: 2rem; }
}

@media (min-width: 1025px) {
	.community-container {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		text-align: left;
	}
	.community-image {
		margin-bottom: 0;
		max-width: none;
	}
	.community-content h2 { font-size: 2.5rem; }
	.community-content h2::after {
		left: 0;
		transform: none;
	}
}
