/**
 * FBC Shell — navbar, footer, weather banner, back-to-top.
 */

/* === WEATHER ALERT BANNER === */
.weather-alert {
	width: 100%;
	padding: 0.75rem 1rem;
	text-align: center;
	font-family: var(--fbc-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--fbc-white);
	background: var(--fbc-warning);
}

.weather-alert--danger { background: var(--fbc-danger); }
.weather-alert--info { background: var(--fbc-info); }
.weather-alert--warning { background: var(--fbc-warning); }

.weather-alert i {
	margin-right: 0.5rem;
}

/* === NAVBAR === */
.navbar {
	background-color: var(--fbc-primary);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 1.25rem;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--fbc-shadow-md);
	height: var(--fbc-navbar-height);
	box-sizing: border-box;
}

.navbar .logo-link {
	display: inline-block;
	transition: opacity var(--fbc-transition);
	flex-shrink: 0;
}

.navbar .logo-link:hover,
.navbar .logo-link:focus {
	opacity: 0.9;
}

.logo,
.navbar .custom-logo-link,
.navbar .custom-logo,
.navbar .custom-logo-link img {
	height: 52px;
	max-width: 160px;
	object-fit: contain;
	width: auto;
	display: inline-block;
}

.navbar .custom-logo-link {
	line-height: 0;
}

.nav-links {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 80px 2rem 2rem;
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	max-width: 300px;
	height: 100vh;
	background-color: var(--fbc-primary-dark);
	transition: right var(--fbc-transition);
	z-index: 1000;
	overflow-y: auto;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.nav-links.active { right: 0; }

.nav-links li {
	margin-left: 0;
	margin-bottom: 1.5rem;
	position: relative;
	text-align: center;
}

.nav-links a {
	color: var(--fbc-white);
	font-family: var(--fbc-font-body);
	font-weight: 600;
	font-size: 1.1rem;
	padding: 0.75rem 0;
	transition: all var(--fbc-transition);
	position: relative;
	white-space: nowrap;
	display: block;
}

.nav-links a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: var(--fbc-gold);
	transition: width var(--fbc-transition);
	display: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
	width: 100%;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
	color: var(--fbc-gold-light);
}

/* Hamburger */
.hamburger {
	display: block;
	cursor: pointer;
	width: 30px;
	height: 24px;
	background: transparent;
	border: none;
	padding: 0;
	z-index: 1001;
	position: relative;
	flex-shrink: 0;
}

.navbar .logo-link {
	flex-shrink: 0;
}

.hamburger:focus-visible {
	outline: 2px solid var(--fbc-gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.hamburger .bar {
	width: 100%;
	height: 3px;
	background-color: var(--fbc-white);
	position: absolute;
	left: 0;
	transition: all var(--fbc-transition);
	border-radius: 3px;
}

.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger .bar:nth-child(3) { bottom: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* === FOOTER === */
.site-footer {
	background-color: var(--fbc-primary-dark);
	color: var(--fbc-white);
	padding: 3rem 0 1rem;
	margin-top: auto;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	max-width: var(--fbc-container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.footer-column h3 {
	color: var(--fbc-white);
	margin-bottom: 1.5rem;
	font-size: 1.4rem;
	position: relative;
	padding-bottom: 0.75rem;
}

.footer-column h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--fbc-gold);
}

.footer-column p {
	margin-bottom: 1rem;
	font-size: 1rem;
	line-height: 1.6;
}

.footer-column p a {
	color: var(--fbc-accent-light);
}

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

.footer-links {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 0.8rem;
}

.footer-links a {
	color: var(--fbc-accent-light);
	transition: color var(--fbc-transition), transform var(--fbc-transition);
	display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
	color: var(--fbc-gold);
	transform: translateX(5px);
}

.footer-contact { margin-bottom: 1rem; }

.footer-contact p {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 0.75rem;
}

.footer-contact i {
	color: var(--fbc-gold);
	margin-top: 0.2em;
	width: 16px;
	text-align: center;
}

.footer-contact a {
	color: var(--fbc-accent-light);
}

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

.footer-services {
	list-style: none;
	padding: 0;
	margin: 0 0 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.footer-services li {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.92rem;
	color: var(--fbc-accent-light);
	line-height: 1.5;
}

.footer-services li i {
	color: var(--fbc-gold);
	margin-top: 0.25em;
	width: 14px;
	font-size: 0.85rem;
	flex-shrink: 0;
}

.footer-services li strong {
	color: var(--fbc-white);
	font-weight: 700;
	margin-right: 0.25rem;
}

.footer-services-note {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
	font-style: italic;
	margin: 0 0 1rem;
}

.footer-h3-tight {
	margin-top: 1rem !important;
	font-size: 1.15rem !important;
}

.social-icons {
	display: flex;
	gap: 1rem;
	margin-top: 0.5rem;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--fbc-white);
	transition: all var(--fbc-transition);
}

.social-icons a:hover,
.social-icons a:focus {
	background-color: var(--fbc-gold);
	color: var(--fbc-on-gold);
	transform: translateY(-3px);
}

.copyright {
	text-align: center;
	padding-top: 2rem;
	margin-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	max-width: var(--fbc-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.copyright p { margin: 0.25rem 0; }

.copyright-credit {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
}

.copyright-credit a {
	color: var(--fbc-gold-light);
	font-weight: 600;
	text-decoration: none;
	transition: color var(--fbc-transition);
}

.copyright-credit a:hover,
.copyright-credit a:focus {
	color: var(--fbc-gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* === BACK TO TOP === */
.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--fbc-primary);
	color: var(--fbc-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all var(--fbc-transition);
	z-index: 999;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	border: none;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
	background-color: var(--fbc-gold);
	color: var(--fbc-on-gold);
	transform: translateY(-5px);
}

/* === RESPONSIVE NAV — desktop overrides === */
@media (min-width: 769px) {
	.navbar { padding: 0.75rem 2rem; }
	.hamburger { display: none; }

	.nav-links {
		flex-direction: row;
		position: static;
		width: auto;
		max-width: none;
		height: auto;
		background: transparent;
		padding: 0;
		transition: none;
		overflow: visible;
		box-shadow: none;
	}

	.nav-links li {
		margin-left: 1.5rem;
		margin-bottom: 0;
		text-align: left;
	}

	.nav-links a {
		display: inline;
		font-size: inherit;
		padding: 0.5rem 0;
	}

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

	.nav-links a::after { display: block; }
}
