/**
 * FBC Base — reset, typography, body.
 * Loads after fbc-tokens.css.
 */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--fbc-navbar-height);
}

body {
	font-family: var(--fbc-font-body);
	font-size: var(--fbc-font-size-base);
	line-height: var(--fbc-line-height-body);
	color: var(--fbc-text);
	background: var(--fbc-bg);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

body.menu-open {
	overflow-y: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fbc-font-heading);
	font-weight: 700;
	line-height: var(--fbc-line-height-heading);
	margin-bottom: 0.75rem;
	color: var(--fbc-primary);
}

p {
	margin-bottom: 1rem;
}

a {
	text-decoration: none;
	color: var(--fbc-accent);
	transition: color var(--fbc-transition);
}

a:hover,
a:focus {
	color: var(--fbc-accent-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: var(--fbc-focus-ring);
	outline-offset: var(--fbc-focus-offset);
}

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

/* Skip link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--fbc-primary);
	color: var(--fbc-white);
	padding: 8px 12px;
	z-index: 9999;
	transition: top var(--fbc-transition);
	border-radius: 0 0 var(--fbc-radius) 0;
}

.skip-link:focus {
	top: 0;
	color: var(--fbc-white);
}

/* WordPress core required classes */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: var(--fbc-bg);
	clip: auto;
	clip-path: none;
	color: var(--fbc-primary);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Buttons (shared) */
.btn {
	display: inline-block;
	padding: 0.8rem 1.8rem;
	font-weight: 600;
	border-radius: var(--fbc-radius-pill);
	text-align: center;
	cursor: pointer;
	transition: all var(--fbc-transition);
	text-decoration: none;
	font-family: var(--fbc-font-heading);
	border: 2px solid transparent;
	min-height: 44px;
	line-height: 1.4;
}

.btn-primary {
	background-color: var(--fbc-gold);
	color: var(--fbc-on-gold);
	border-color: var(--fbc-gold);
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: var(--fbc-gold-light);
	border-color: var(--fbc-gold-light);
	color: var(--fbc-on-gold);
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
	background-color: transparent;
	color: var(--fbc-white);
	border-color: var(--fbc-white);
}

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

/* Outline buttons need a visible focus ring on dark hero backgrounds where
   the default outline color may not be discernible. */
.btn:focus-visible {
	outline: var(--fbc-focus-ring);
	outline-offset: 3px;
}

.cta-row {
	text-align: center;
	margin: var(--fbc-space-3) 0;
}

.cta-btn {
	display: inline-block;
	padding: 0.8rem 2rem;
	background-color: var(--fbc-gold);
	color: var(--fbc-on-gold);
	font-weight: 700;
	font-family: var(--fbc-font-heading);
	text-decoration: none;
	border-radius: var(--fbc-radius);
	border: 2px solid var(--fbc-gold);
	transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
	line-height: 1.4;
}

.cta-btn:hover,
.cta-btn:focus {
	background-color: var(--fbc-gold-light);
	border-color: var(--fbc-gold-light);
	color: var(--fbc-on-gold);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-btn:focus-visible {
	outline: var(--fbc-focus-ring);
	outline-offset: 3px;
}

/* Shared section heading — centered with gold underline ornament */
.section-title {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 1rem;
	color: var(--fbc-primary);
	position: relative;
	padding-bottom: 0.85rem;
}

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

/* Content wrapper */
.content-wrapper {
	max-width: var(--fbc-container);
	width: 95%;
	margin: var(--fbc-space-5) auto;
	padding: 0 var(--fbc-space-3);
	flex: 1;
}

/* Shared section card — mirrors static `.section-container` pattern.
 * Used inside `<section>` to wrap content in a white card. */
.section-container {
	background-color: var(--fbc-card-bg);
	padding: 1.5rem 1.1rem;
	border-radius: var(--fbc-radius);
	box-shadow: var(--fbc-shadow-sm);
	margin-bottom: 2rem;
}

/* Hero `.header-container` — page-specific hero box with image bg + dark overlay
 * + gold left-border. Matches static FBC pattern across all inner pages. */
.header-container {
	position: relative;
	padding: 1.5rem 1rem;
	border-radius: var(--fbc-radius);
	box-shadow: var(--fbc-shadow-sm);
	text-align: center;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: var(--fbc-primary);
	color: var(--fbc-white);
	border-left: 5px solid var(--fbc-gold);
	overflow: hidden;
}

.header-container::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(3, 25, 49, 0.6);
	z-index: 1;
	border-radius: var(--fbc-radius);
}

.header-container > * {
	position: relative;
	z-index: 2;
}

.header-container h1 {
	color: var(--fbc-white);
	font-size: clamp(2rem, 4vw, 2.8rem);
	margin-bottom: 0.75rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-container p {
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.1rem;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.7;
}

@media (min-width: 481px) {
	.header-container {
		padding: 2rem 1.5rem;
		min-height: 240px;
	}
	.section-container { padding: 1.75rem 1.5rem; }
}

@media (min-width: 769px) {
	.header-container {
		padding: 2.5rem;
		min-height: 300px;
	}
	.section-container { padding: 2.5rem; }
}
