/*
Theme Name: FCBC Theme
Theme URI: https://frenchcreek.org/
Author: French Creek Bible Conference
Author URI: https://frenchcreek.org/
Description: A simple, elegant WordPress theme for French Creek Bible Conference featuring a full-viewport homepage image or gallery, top navbar with slide-out mobile drawer, centered call-to-action buttons, and clean page/block templates.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fcbc-theme
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, block-styles
*/

:root {
	--fcbc-font-sans:
		Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
		sans-serif;
	--fcbc-color-primary: #2c5e3b;
	--fcbc-color-primary-hover: #1e4429;
	--fcbc-hero-overlay: rgba(15, 23, 42, 0.35);
	--fcbc-hero-transition: 1500ms;
	--fcbc-home-nav-bg: rgba(0, 0, 0, 0.2);
	--fcbc-home-nav-text: #ffffff;
	--fcbc-page-nav-bg: #ffffff;
	--fcbc-page-nav-text: #1e293b;
	--fcbc-drawer-bg: #14261c;
	--fcbc-drawer-text: #ffffff;
	--fcbc-cta-primary-bg: #2c5e3b;
	--fcbc-cta-primary-text: #ffffff;
	--fcbc-cta-secondary-bg: rgba(255, 255, 255, 0.15);
	--fcbc-cta-secondary-text: #ffffff;
	--fcbc-cta-secondary-border: #ffffff;
	--fcbc-cta-radius: 6px;
	--fcbc-page-header-bg: #1e3a28;
	--fcbc-page-header-text: #ffffff;
	--fcbc-body-bg: #ffffff;
	--fcbc-body-text: #1f2937;
	--fcbc-footer-bg: #111827;
	--fcbc-footer-text: #d1d5db;
	--fcbc-logo-max-height: 48px;
	--fcbc-container-max-width: 960px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--fcbc-font-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--fcbc-body-text);
	background-color: var(--fcbc-body-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

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

a {
	color: var(--fcbc-color-primary);
	transition:
		color 0.2s ease,
		opacity 0.2s ease;
}

a:hover {
	color: var(--fcbc-color-primary-hover);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Accessibility skip link */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.fcbc-skip-link:focus {
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	clip: auto !important;
	clip-path: none;
	color: #0f172a;
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	height: auto;
	left: 12px;
	line-height: normal;
	padding: 12px 18px;
	text-decoration: none;
	top: 12px;
	width: auto;
	z-index: 99999;
}

/* Interior sticky footer flex layout */
body.is-fcbc-interior {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.is-fcbc-interior .fcbc-page-main {
	flex: 1 0 auto;
}

/* --------------------------------------------------------------
   Top Navigation Bar
-------------------------------------------------------------- */
.fcbc-header {
	width: 100%;
	z-index: 50;
}

body.is-fcbc-front-page .fcbc-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: var(--fcbc-home-nav-bg);
	color: var(--fcbc-home-nav-text);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.is-fcbc-interior .fcbc-header {
	position: relative;
	background-color: var(--fcbc-page-nav-bg);
	color: var(--fcbc-page-nav-text);
}

body.is-fcbc-interior.navbar-sticky .fcbc-header {
	position: sticky;
	top: 0;
}

body.admin-bar.is-fcbc-front-page .fcbc-header,
body.admin-bar.is-fcbc-interior.navbar-sticky .fcbc-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.is-fcbc-front-page .fcbc-header,
	body.admin-bar.is-fcbc-interior.navbar-sticky .fcbc-header {
		top: 46px;
	}
}

.fcbc-navbar-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0.75rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 68px;
}

.fcbc-brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.fcbc-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.fcbc-brand .custom-logo {
	display: block;
	width: auto;
	max-height: var(--fcbc-logo-max-height);
	object-fit: contain;
}

.fcbc-site-title {
	color: inherit;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.fcbc-site-title:hover {
	color: inherit;
	opacity: 0.85;
}

/* Desktop Navigation */
.fcbc-desktop-nav {
	margin-left: auto;
}

.fcbc-nav-list {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fcbc-nav-list > li {
	position: relative;
	margin: 0;
}

.fcbc-nav-list a {
	display: inline-block;
	color: inherit;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	padding: 0.35rem 0;
	position: relative;
}

.fcbc-nav-list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.fcbc-nav-list > li > a:hover::after,
.fcbc-nav-list > li.current-menu-item > a::after,
.fcbc-nav-list > li.current_page_item > a::after {
	transform: scaleX(1);
}

.fcbc-nav-list a:hover {
	color: inherit;
}

/* Desktop Dropdown Sub-menus */
.fcbc-nav-list ul.sub-menu,
.fcbc-nav-list ul.children {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0.5rem 0;
	background-color: #ffffff;
	color: #1f2937;
	border-radius: 6px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
	border: 1px solid rgba(15, 23, 42, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition:
		opacity 0.18s ease,
		transform 0.18s ease,
		visibility 0.18s;
	z-index: 60;
}

.fcbc-nav-list li:hover > ul.sub-menu,
.fcbc-nav-list li:focus-within > ul.sub-menu,
.fcbc-nav-list li:hover > ul.children,
.fcbc-nav-list li:focus-within > ul.children {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fcbc-nav-list ul.sub-menu a,
.fcbc-nav-list ul.children a {
	display: block;
	padding: 0.45rem 1.1rem;
	font-weight: 400;
	font-size: 0.9375rem;
	color: #1f2937;
}

.fcbc-nav-list ul.sub-menu a:hover,
.fcbc-nav-list ul.children a:hover {
	background-color: #f1f5f9;
	color: var(--fcbc-color-primary);
}

/* Hamburger Toggle Button */
.fcbc-hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.fcbc-hamburger:hover {
	background-color: rgba(128, 128, 128, 0.14);
}

.fcbc-hamburger-box {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
}

.fcbc-hamburger-line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: currentColor;
	border-radius: 2px;
}

body.hamburger-always .fcbc-desktop-nav {
	display: none;
}

body.hamburger-always .fcbc-hamburger {
	display: inline-flex;
}

/* --------------------------------------------------------------
   Slide-Out Drawer
-------------------------------------------------------------- */
.fcbc-drawer-backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 90;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.fcbc-drawer-backdrop.is-open {
	opacity: 1;
}

.fcbc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(340px, 86vw);
	background-color: var(--fcbc-drawer-bg);
	color: var(--fcbc-drawer-text);
	z-index: 100;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	box-shadow: -10px 0 36px rgba(0, 0, 0, 0.32);
	transform: translateX(100%);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	visibility: hidden;
}

.fcbc-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
}

body.admin-bar .fcbc-drawer {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .fcbc-drawer {
		top: 46px;
	}
}

.fcbc-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fcbc-drawer-brand {
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: 0.01em;
}

.fcbc-drawer-close {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 6px;
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.fcbc-drawer-close:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

.fcbc-drawer-nav {
	padding: 1rem 1.5rem;
}

.fcbc-drawer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fcbc-drawer-list li {
	position: relative;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fcbc-drawer-list li:last-child {
	border-bottom: none;
}

.fcbc-drawer-list a {
	display: block;
	padding: 0.85rem 2.25rem 0.85rem 0;
	color: inherit;
	text-decoration: none;
	font-size: 1.0625rem;
	font-weight: 700;
}

.fcbc-drawer-list a:hover {
	color: inherit;
	opacity: 0.8;
}

.fcbc-submenu-toggle {
	position: absolute;
	top: 0.45rem;
	right: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	border: none;
	border-radius: 4px;
	color: inherit;
	font-size: 1.1rem;
	cursor: pointer;
}

.fcbc-drawer-list ul.sub-menu,
.fcbc-drawer-list ul.children {
	display: none;
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0 0 0 1rem;
}

.fcbc-drawer-list li.is-submenu-open > ul.sub-menu,
.fcbc-drawer-list li.is-submenu-open > ul.children {
	display: block;
}

.fcbc-drawer-list ul.sub-menu a,
.fcbc-drawer-list ul.children a {
	font-weight: 400;
	font-size: 0.95rem;
	padding: 0.55rem 0;
	opacity: 0.9;
}

/* --------------------------------------------------------------
   Homepage Full-Viewport Hero
-------------------------------------------------------------- */
body.is-fcbc-front-page {
	background-color: #0f172a;
	min-height: 100vh;
	min-height: 100dvh;
	position: relative;
}

.fcbc-hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6rem 1.5rem 4.75rem;
}

.fcbc-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.fcbc-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transition: opacity var(--fcbc-hero-transition) ease-in-out;
	pointer-events: none;
	user-select: none;
}

.fcbc-hero-img.is-active {
	opacity: 1;
}

.fcbc-hero-fallback {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 25% 20%, rgba(44, 94, 59, 0.55), transparent 60%),
		radial-gradient(ellipse at 80% 75%, rgba(20, 83, 45, 0.45), transparent 55%),
		linear-gradient(155deg, #0b1b13 0%, #143222 50%, #0f172a 100%);
}

.fcbc-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--fcbc-hero-overlay);
	pointer-events: none;
}

.fcbc-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}

.fcbc-hero-title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.fcbc-hero-subtitle {
	margin: 0;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.0625rem, 2vw, 1.3125rem);
	line-height: 1.5;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Center-Page CTA Buttons */
.fcbc-cta-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 0.25rem;
}

.fcbc-cta-group--column {
	flex-direction: column;
}

.fcbc-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.03em;
	border-radius: var(--fcbc-cta-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition:
		transform 0.18s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.fcbc-cta-group--medium .fcbc-cta-btn {
	padding: 0.78rem 1.75rem;
	font-size: 1rem;
	min-width: 190px;
}

.fcbc-cta-group--large .fcbc-cta-btn,
.fcbc-404 .fcbc-cta-btn {
	padding: 1rem 2.25rem;
	font-size: 1.125rem;
	min-width: 220px;
}

.fcbc-cta-btn--primary {
	background-color: var(--fcbc-cta-primary-bg);
	border-color: var(--fcbc-cta-primary-bg);
	color: var(--fcbc-cta-primary-text);
}

.fcbc-cta-btn--primary:hover {
	color: var(--fcbc-cta-primary-text);
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.fcbc-cta-btn--secondary {
	background-color: var(--fcbc-cta-secondary-bg);
	border-color: var(--fcbc-cta-secondary-border);
	color: var(--fcbc-cta-secondary-text);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.fcbc-cta-btn--secondary:hover {
	color: var(--fcbc-cta-secondary-text);
	background-color: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.fcbc-cta-btn--light {
	background-color: #ffffff;
	border-color: #ffffff;
	color: #0f172a;
}

.fcbc-cta-btn--light:hover {
	color: #0f172a;
	background-color: #f1f5f9;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

@media screen and (max-width: 600px) {
	.fcbc-cta-group {
		width: 100%;
		flex-direction: column;
	}

	.fcbc-cta-btn {
		width: 100%;
		max-width: 320px;
	}
}

/* --------------------------------------------------------------
   Footer & Legal Notice Placement Variants
-------------------------------------------------------------- */
.fcbc-legal-inner {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem 0.6rem;
}

.fcbc-privacy-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fcbc-privacy-link:hover {
	color: inherit;
	opacity: 0.8;
}

.fcbc-footer--home-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10;
	padding: 1rem 1.5rem;
	text-align: center;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.88);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.48), transparent);
}

.fcbc-footer--corner {
	position: absolute;
	bottom: 1rem;
	right: 1.25rem;
	z-index: 10;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.88);
	background-color: rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 0.4rem 0.9rem;
	border-radius: 9999px;
}

.fcbc-footer--interior {
	background-color: var(--fcbc-footer-bg);
	color: var(--fcbc-footer-text);
	padding: 1.5rem;
	text-align: center;
	font-size: 0.875rem;
}

.fcbc-legal--drawer {
	margin-top: auto;
	padding: 1.25rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8125rem;
	opacity: 0.85;
}

.fcbc-legal--drawer .fcbc-legal-inner {
	justify-content: flex-start;
}

/* --------------------------------------------------------------
   Interior Page Header & Content Containers
-------------------------------------------------------------- */
.fcbc-container {
	width: 100%;
	max-width: var(--fcbc-container-max-width);
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.fcbc-container--narrow {
	max-width: 720px;
}

.fcbc-container--full {
	width: 100%;
	max-width: none;
	padding: 0;
}

.fcbc-page-header {
	position: relative;
	overflow: hidden;
}

.fcbc-page-header--banner {
	background-color: var(--fcbc-page-header-bg);
	color: var(--fcbc-page-header-text);
	background-size: cover;
	background-position: center;
	padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

.fcbc-page-header-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(15, 23, 42, 0.48);
	z-index: 0;
}

.fcbc-page-header--banner .fcbc-page-header-inner {
	position: relative;
	z-index: 1;
}

.fcbc-page-header--minimal {
	padding: 2.5rem 0 1.25rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	color: var(--fcbc-body-text);
}

.fcbc-page-title {
	margin: 0;
	font-size: clamp(1.85rem, 3.6vw, 2.75rem);
	font-weight: 900;
	line-height: 1.2;
}

.fcbc-page-main {
	padding: 2.75rem 0 4rem;
}

.fcbc-page-main--full,
.fcbc-page-main--canvas {
	padding: 0;
}

/* --------------------------------------------------------------
   Content & Block Editor Typography
-------------------------------------------------------------- */
.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-weight: 700;
	line-height: 1.28;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: inherit;
}

.entry-content h2 {
	font-size: 1.75rem;
}

.entry-content h3 {
	font-size: 1.375rem;
}

.entry-content p {
	margin: 0 0 1.25rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

.entry-content blockquote {
	margin: 1.75rem 0;
	padding: 0.75rem 1.25rem;
	border-left: 4px solid var(--fcbc-color-primary);
	background-color: rgba(15, 23, 42, 0.03);
	font-style: italic;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
	padding: 0.65rem 0.85rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.12);
	text-align: left;
}

.entry-content .alignwide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.fcbc-post-item {
	padding-bottom: 2rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.fcbc-post-item-title {
	margin-top: 0;
}

.fcbc-post-item-title a {
	text-decoration: none;
}

.fcbc-page-links {
	margin-top: 2rem;
	font-weight: 700;
}

.fcbc-404 {
	text-align: center;
	padding: 2rem 0;
}
