/**
 * FBC Inner Page — shared styles (page-hero, breadcrumb, ornament, scroll reveal, CTA section).
 */

/* === PAGE HERO === */
.page-hero {
	background-size: cover;
	background-position: center;
	color: var(--fbc-white);
	padding: 2.5rem 1rem;
	text-align: center;
	position: relative;
}

.page-hero-inner {
	max-width: 900px;
	margin: 0 auto;
}

.page-hero-kicker {
	font-family: var(--fbc-font-heading);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--fbc-gold);
	margin-bottom: 0.75rem;
}

.page-hero-title {
	color: var(--fbc-white);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	margin-bottom: 0.5rem;
	letter-spacing: -0.01em;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.page-hero-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0.5rem auto 1.5rem;
	color: var(--fbc-gold);
	font-size: 0.9rem;
	opacity: 0.8;
}

.page-hero-ornament::before,
.page-hero-ornament::after {
	content: '';
	flex: 0 0 60px;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--fbc-gold));
	margin: 0 0.75rem;
}

.page-hero-ornament::after {
	background: linear-gradient(to left, transparent, var(--fbc-gold));
}

.page-hero-lead {
	font-size: clamp(1.05rem, 2.2vw, 1.2rem);
	line-height: 1.7;
	max-width: 700px;
	margin: 0 auto 1.5rem;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.page-hero-verse {
	background: rgba(0, 0, 0, 0.35);
	padding: 1.25rem 1.25rem;
	border-radius: var(--fbc-radius);
	border-left: 4px solid var(--fbc-gold);
	max-width: 640px;
	margin: 1.5rem auto 0;
	text-align: left;
	font-style: italic;
}

.page-hero-verse p {
	color: var(--fbc-white);
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 0.5rem;
}

.page-hero-verse cite {
	display: block;
	text-align: right;
	font-style: normal;
	font-weight: 700;
	color: var(--fbc-gold-light);
}

/* === BREADCRUMB === */
.breadcrumb {
	max-width: var(--fbc-container);
	margin: 1.5rem auto 0;
	padding: 0 1.25rem;
	font-size: 0.95rem;
	color: var(--fbc-text-light);
}

.breadcrumb a {
	color: var(--fbc-accent);
	font-weight: 600;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
	color: var(--fbc-gold);
}

.breadcrumb-sep {
	margin: 0 0.5rem;
	color: var(--fbc-text-light);
	opacity: 0.6;
}

.breadcrumb [aria-current="page"] {
	color: var(--fbc-primary);
	font-weight: 700;
}

/* === SCROLL REVEAL ===
 * `.fade-in` (static-parity name) and `.reveal` (legacy) both supported.
 * Default state is visible so SSR + JS-disabled never sees blank sections.
 * JS may add `.reveal-init` to opt into the fade-from-below transition.
 */
.reveal,
.fade-in {
	opacity: 1;
	transform: none;
}

.reveal-init {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible,
.fade-in.visible {
	opacity: 1;
	transform: none;
}

.reveal-delay-1, .fade-in-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2, .fade-in-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3, .fade-in-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
	.reveal,
	.fade-in,
	.reveal-init {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* === SHARED ACCORDION ===
 * Used on Statement of Faith FAQ + Church Ministries FAQ. JS handler in
 * fbc-page.js toggles `.active` class on `.accordion-header` + `.accordion-content`.
 */
.accordion {
	margin-bottom: 1rem;
	border: 1px solid rgba(218, 165, 32, 0.25);
	border-radius: var(--fbc-radius);
	overflow: hidden;
	background: var(--fbc-card-bg);
	transition: box-shadow var(--fbc-transition);
}

.accordion:hover { box-shadow: var(--fbc-shadow-sm); }

.accordion-header {
	background: var(--fbc-bg);
	padding: 1rem 1.25rem;
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background var(--fbc-transition), color var(--fbc-transition);
	width: 100%;
	text-align: left;
	border: none;
	color: var(--fbc-primary);
	font-family: var(--fbc-font-heading);
	min-height: 44px;
}

.accordion-header-text {
	flex-grow: 1;
	margin-right: 1rem;
	line-height: 1.4;
}

.accordion-header:hover { background: rgba(218, 165, 32, 0.15); }

.accordion-header::after {
	content: '+';
	font-size: 1.7rem;
	color: var(--fbc-primary);
	transition: transform var(--fbc-transition), color var(--fbc-transition);
	flex-shrink: 0;
	line-height: 1;
}

.accordion-header.active {
	background: var(--fbc-primary);
	color: var(--fbc-white);
}

.accordion-header.active::after {
	content: '\2212';
	color: var(--fbc-gold);
}

.accordion-content {
	padding: 0 1.5rem;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-in-out, padding 0.3s ease;
	background: var(--fbc-card-bg);
	color: var(--fbc-text);
	line-height: 1.7;
}

.accordion-content.active {
	padding: 1.25rem;
	border-top: 1px solid rgba(218, 165, 32, 0.25);
}

.accordion-content p { margin-bottom: 1rem; font-size: 1.02rem; }
.accordion-content p:last-child { margin-bottom: 0; }

@media (min-width: 769px) {
	.accordion-header { font-size: 1.1rem; padding: 1.15rem 1.5rem; }
	.accordion-content.active { padding: 1.5rem; }
}

/* === GENERIC PAGE BODY === */
.page-article {
	background: var(--fbc-card-bg);
	border-radius: var(--fbc-radius);
	box-shadow: var(--fbc-shadow-sm);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.page-article .entry-content h2 {
	font-size: 1.8rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--fbc-primary);
	position: relative;
	padding-bottom: 0.5rem;
}

.page-article .entry-content h2::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: var(--fbc-gold);
}

.page-article .entry-content h3 {
	font-size: 1.35rem;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	color: var(--fbc-primary);
}

.page-article .entry-content p {
	font-size: 1.05rem;
	line-height: 1.75;
	margin-bottom: 1rem;
}

.page-article .entry-content ul,
.page-article .entry-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1rem;
}

.page-article .entry-content li {
	margin-bottom: 0.5rem;
}

.page-article .entry-content a {
	color: var(--fbc-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-article .entry-content a:hover,
.page-article .entry-content a:focus {
	color: var(--fbc-gold);
}

.page-article .entry-content blockquote {
	border-left: 4px solid var(--fbc-gold);
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	background: var(--fbc-bg);
	border-radius: 0 var(--fbc-radius) var(--fbc-radius) 0;
}

/* === CTA SECTION === */
.cta-section {
	background: var(--fbc-primary-dark);
	color: var(--fbc-white);
	padding: clamp(2rem, 5vw, 3.5rem);
	text-align: center;
	border-radius: var(--fbc-radius);
	margin: 4rem auto;
	max-width: var(--fbc-container-narrow);
	box-shadow: var(--fbc-shadow-md);
	border: 1px solid rgba(218, 165, 32, 0.18);
	position: relative;
}

.cta-section::before {
	content: '';
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(218, 165, 32, 0.18);
	border-radius: calc(var(--fbc-radius) - 4px);
	pointer-events: none;
}

.cta-section h2 {
	color: var(--fbc-white);
	font-size: 2rem;
	margin-bottom: 1rem;
}

.cta-section p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto 2rem;
	line-height: 1.7;
}

.cta-buttons {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.cta-buttons .btn {
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
}

.btn-outline {
	background: transparent;
	color: var(--fbc-white);
	border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover,
.btn-outline:focus {
	background: var(--fbc-gold);
	color: var(--fbc-on-gold);
	border-color: var(--fbc-gold);
	transform: translateY(-2px);
}

@media (min-width: 769px) {
	.page-hero { padding: clamp(3rem, 8vw, 6rem) 1.25rem; }
	.page-hero-verse { padding: 1.5rem 2rem; }
	.cta-buttons { flex-direction: row; }
	.cta-buttons .btn { width: auto; max-width: none; margin: 0; }
}
