/* ============================================================
   fsDesign.css - Centereach Fire Department: design layer

   Loaded AFTER fsStyle.css and the header's inline styles.
   Page structure and layout are unchanged; this file only
   supplies the look: palette, glass top bar, banner glow and
   light sweep, Milonic menu classes (main + column), side
   column panels and buttons, content panel, and the footer.

   Re-skin by editing the variables in :root.
   Supporting graphics live in /images/svg/.
   ============================================================ */

:root {
	--c-bg: #06101F;
	--c-navy: #021728;
	--c-navy-2: #0A1F3D;
	--c-panel: #0C2144;
	--c-line: rgba(255, 255, 255, 0.08);
	--c-blue: #103399;
	--c-blue-bright: #2A6BE0;
	--c-blue-deep: #0A2470;
	--c-gold: #5DA9FF;        /* accent: sky blue (was gold) */
	--c-gold-deep: #2E7BE0;   /* deeper blue accent */
	--c-red: #C8102E;
	--c-red-bright: #E0142F;
	--c-text: #F4F6F8;
	--c-muted: #AEB6C2;
	--c-font: "Open Sans", Roboto, Arial, sans-serif;
	--c-radius: 14px;
	--c-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---- Page depth: soft vignette and a cool glow over the wallpaper ---- */
body::before {
	content: "";
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(16, 51, 153, 0.18), transparent 55%),
		radial-gradient(90% 75% at 50% 55%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.30) 100%);
}

/* ============================================================
   TOP BAR (glass strip above the banner)
   ============================================================ */
#page .fsTopBar {
	position: relative;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 10px;
	background: linear-gradient(90deg, rgba(2, 12, 26, 0.96), rgba(4, 20, 42, 0.86) 55%, rgba(2, 12, 26, 0.96));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(93, 169, 255, 0.30);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
#page .fsTopLeft {
	padding: 8px 12px;
}
#page .fsTopRight {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	padding: 8px 16px;
}
#page .fsTopMobile {
	text-align: center;
	padding: 8px 10px;
	width: 100%;
}
@media screen and (max-width: 800px) {
	#page .fsTopBar {
		justify-content: center;
	}
}

/* Links stay gold pills; separators are blue glowing dots */
#page .fsTopBar .TopBar a {
	display: inline-block;
	padding: 5px 13px;
	border-radius: 999px;
	color: #FFCC00;
	text-decoration: none;
	font-weight: 700;
	transition: background 0.25s, color 0.25s, transform 0.25s;
}
#page .fsTopBar .TopBar a:hover {
	background: rgba(255, 204, 0, 0.14);
	color: #FFFFFF;
	text-decoration: none;
	transform: translateY(-1px);
}
#page .fsTopLinks span + span::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin: 0 4px 3px 4px;
	border-radius: 50%;
	background: var(--c-blue-bright);
	box-shadow: 0 0 8px var(--c-blue-bright);
	vertical-align: middle;
}

/* Emergency chip and non-emergency phone */
#page .fs911 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	order: 2;   /* far right, after the phone number */
	padding: 5px 14px 5px 11px;
	border-radius: 999px;
	background: linear-gradient(180deg, #E0142F, #9E0B22);
	color: #FFFFFF;
	font: 800 15px/1.2 var(--c-font);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 0 0 0 rgba(224, 20, 47, 0.55);
	animation: fsPulse 2.8s ease-out infinite;
}
#page .fs911 i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 0 10px #FFFFFF;
}
#page .fsPhone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #FFFFFF;
	font-weight: 700;
	vertical-align: middle;
}
#page .fsPhone svg {
	width: 18px;
	height: 18px;
	fill: var(--c-gold);
	filter: drop-shadow(0 0 6px rgba(93, 169, 255, 0.6));
}
#page .fsPhone a {
	color: #FFFFFF !important;
	padding: 5px 8px;
	text-decoration: none;
}
#page .fsPhone a:hover {
	color: var(--c-gold) !important;
}
/* Narrow screens: only the Emergency chip, centered */
@media screen and (max-width: 800px) {
	#page .fsTopRight {
		justify-content: center;
		width: 100%;
		padding: 12px 10px 0 10px;
	}
	#page .fsTopRight .fsPhone {
		display: none;
	}
}
@keyframes fsPulse {
	0%   { box-shadow: 0 0 0 0 rgba(224, 20, 47, 0.55); }
	70%  { box-shadow: 0 0 0 12px rgba(224, 20, 47, 0); }
	100% { box-shadow: 0 0 0 0 rgba(224, 20, 47, 0); }
}

/* ============================================================
   SOCIAL BUTTONS (float over banner on desktop, row on mobile)
   ============================================================ */
@media screen and (min-width: 801px) {
	#page .fsSocial {
		position: absolute;
		right: 18px;
		top: 20px;
		z-index: 40;
		isolation: isolate;   /* keep the banner sheen from shining through the icons */
		display: flex;
		gap: 10px;
	}
}
@media screen and (max-width: 800px) {
	#page .fsSocialMobile {
		display: flex;
		justify-content: center;
		gap: 14px;
		margin-top: 12px;
	}
}
#page .fsSocial a,
#page .fsSocialMobile a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(6, 16, 31, 0.62);
	border: 1px solid rgba(255, 255, 255, 0.2);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #FFFFFF;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
	transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
#page .fsSocialMobile a {
	width: 54px;
	height: 54px;
}
#page .fsSocial a svg,
#page .fsSocialMobile a svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
#page .fsSocialMobile a svg {
	width: 26px;
	height: 26px;
}
/* Brand colors at rest so the buttons read against the dark banner */
#page .fsSocial a.fb,
#page .fsSocialMobile a.fb {
	background: #1877F2;
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: 0 6px 16px rgba(24, 119, 242, 0.5);
}
#page .fsSocial a.xt,
#page .fsSocialMobile a.xt {
	background: #000000;
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}
#page .fsSocial a.ig,
#page .fsSocialMobile a.ig {
	background: radial-gradient(circle at 30% 107%, #FDD35D 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: 0 6px 16px rgba(214, 36, 159, 0.5);
}
#page .fsSocial a:hover,
#page .fsSocialMobile a:hover {
	transform: translateY(-3px) scale(1.08);
	border-color: #FFFFFF;
}

/* ============================================================
   BANNER (existing banner image, now with glow and light sweep)
   ============================================================ */
#page .fsBanner {
	position: relative;
	overflow: hidden;
	padding: 14px 0 12px 0;
	background:
		radial-gradient(70% 95% at 50% 115%, rgba(42, 107, 224, 0.30), transparent 65%),
		radial-gradient(60% 80% at 50% 0%, rgba(16, 51, 153, 0.35), transparent 70%),
		linear-gradient(180deg, #021221, #021728);
}
#page .fsBannerLink {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 1200px;
	line-height: 0;
	overflow: hidden;   /* clips the sheen to the logo artwork only */
}
#page .fsBannerLink img {
	filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.75));
}
/* No sweeping sheen: the banner shine comes from the static blue/gold
   glow above and the logo's drop shadow, so nothing ever flashes across
   the social icons. */

/* ============================================================
   MAIN NAVIGATION (Milonic menu, styled through its item classes)
   ============================================================ */
/* NOTE: .fsNav must stay unpositioned. Milonic writes its drop-down
   containers inside this div with position:absolute; a positioned nav
   would become their containing block and drop-downs would misalign. */
#page .fsNav {
	background: linear-gradient(180deg, #1B49B4 0%, #0F3196 100%);   /* royal blue */
	border-top: 1px solid rgba(93, 169, 255, 0.55);   /* gold hairline above */
	border-bottom: 1px solid rgba(93, 169, 255, 0.40);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
/* Menu spans page width (1200px max) with items spread evenly */
#page .fsNav > div {
	width: 100% !important;
	max-width: 1200px;
	margin: 0 auto;
}
#page .fsNav table.milonictable {
	width: 100% !important;   /* beat Milonic's inline table width */
}
#page .fsNav table.milonictable tr {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Milonic items: off / on (hover) classes set in public_menu.cfm.
   Milonic puts the class on the table cell AND the link inside it.
   Distinct "tab" treatment: a gold bar drops from the TOP of the cell
   and the cell fills with royal blue on hover/active. */
.cfNavOff,
.cfNavOn {
	font-family: var(--c-font) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #EAF0FA !important;
	background: transparent !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s;
}
td.cfNavOff,
td.cfNavOn {
	position: relative;
	padding: 0 10px !important;
	width: auto !important;   /* content-sized cells so the menu shrinks to fit narrow screens */
	overflow: hidden;
}
/* royal-blue fill that rises from the bottom on hover/active */
td.cfNavOff::before,
td.cfNavOn::before {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 100%;
	background: linear-gradient(180deg, rgba(130, 175, 255, 0.0), rgba(130, 175, 255, 0.34));
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.25s ease;
	pointer-events: none;
	z-index: 0;
}
td.cfNavOn::before {
	transform: scaleY(1);
}
/* gold bar that drops from the top on hover/active */
td.cfNavOff::after,
td.cfNavOn::after {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--c-gold-deep), var(--c-gold), var(--c-gold-deep));
	box-shadow: 0 0 12px rgba(93, 169, 255, 0.6);
	transform: translateY(-100%);
	transition: transform 0.25s ease;
	pointer-events: none;
	z-index: 1;
}
td.cfNavOn::after {
	transform: translateY(0);
}
td.cfNavOff > a,
td.cfNavOn > a {
	position: relative;
	z-index: 2;
}
.cfNavOn {
	color: var(--c-gold) !important;
}

/* Members Area call to action: solid gold pill, navy text */
td.cfNavCta {
	border-right: 0 !important;
	overflow: visible;
}
td.cfNavCta::before,
td.cfNavCta::after {
	display: none;
}
/* Members Area call to action: solid gold pill, navy text */
td.cfNavCta > a {
	height: 34px !important;
	margin: 7px 0;
	padding: 0 20px !important;
	border-radius: 999px;
	background: linear-gradient(180deg, #FFDA47, #E8B000) !important;
	color: #06101F !important;
	box-shadow: 0 6px 16px rgba(255, 204, 0, 0.35);
	transition: transform 0.2s, box-shadow 0.25s;
}
td.cfNavCta.cfNavOn > a {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(255, 204, 0, 0.55);
	color: #06101F !important;
}

/* Drop-down items (cell carries the accent bar, link carries the text) */
.cfSubOff,
.cfSubOn {
	font-family: var(--c-font) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #EAF0FA !important;
	background: transparent !important;
	text-decoration: none !important;
	white-space: nowrap;              /* keep long labels on one line */
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
td.cfSubOff,
td.cfSubOn {
	padding: 0 18px 0 15px !important;
	border-left: 3px solid transparent !important;
	text-align: left !important;
}
td.cfSubOff > a,
td.cfSubOn > a {
	text-align: left !important;
}
.cfSubOn {
	color: var(--c-gold) !important;
}
td.cfSubOn {
	background: rgba(255, 255, 255, 0.14) !important;
	border-left-color: var(--c-gold) !important;
}

/* Milonic drop-down container panels (royal blue) */
#page div.milonic,
div.milonic {
	background: linear-gradient(180deg, #123BA6, #0D2A80) !important;
}

/* ============================================================
   MOBILE BAR (mmenu hamburger strip, visible under 800px)
   ============================================================ */
@media screen and (max-width: 800px) {
	#page #header {
		position: relative;
		background: linear-gradient(180deg, #1B49B4, #0F3196);
		border-bottom: 1px solid rgba(93, 169, 255, 0.4);
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
		font-family: var(--c-font);
		font-size: 17px;
		letter-spacing: 0.02em;
		color: #FFFFFF;
		padding: 14px 56px 12px 56px;
		min-height: 50px;
	}
	#page #header a {
		background-image: url(/images/svg/menu.svg);
		background-size: 26px 26px;
		top: 7px;
		left: 8px;
		width: 42px;
		height: 42px;
	}
}

/* ============================================================
   LEFT COLUMN
   ============================================================ */
#page .column {
	position: relative;
	flex: 0 0 250px;
	/* No overflow clipping here: Milonic writes the column menu's fly-out
	   panels inside this element, and clipping would hide them. */
	background-color: #041A33;
	background-image: linear-gradient(180deg, #0A2549, #02142A);
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-gold);   /* clean gold cap that follows the rounded corners */
	border-radius: var(--c-radius);
	box-shadow: var(--c-shadow);
}

/* Social buttons in the column */
#page .fsBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 210px;
	height: 46px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	font: 700 18px/1 var(--c-font);
	color: #FFFFFF;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
	transition: transform 0.25s, box-shadow 0.25s;
}
#page .fsBtn svg {
	width: 22px;
	height: 22px;
	fill: #FFFFFF;
}
#page .fsBtnFB { background: linear-gradient(180deg, #2D8BFF, #1666D0); }
#page .fsBtnXT { background: linear-gradient(180deg, #2B2B2B, #000000); }
#page .fsBtnIG { background: linear-gradient(135deg, #FDD35D, #FD5949 45%, #D6249F 70%, #285AEB); }
#page .fsBtn:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.5);
	color: #FFFFFF;
	text-decoration: none;
}

/* Column vertical Milonic menu: full-width menu rows with dividers,
   a gold chevron per item, and a blue hover fill. */
.cfColOff,
.cfColOn {
	font-family: var(--c-font) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #EAF0FA !important;
	background: transparent !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s;
}
td.cfColOff,
td.cfColOn {
	position: relative;
	padding: 8px 30px 8px 16px !important;
	border-left: 3px solid transparent !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
	text-align: left !important;
}
td.cfColOff > a,
td.cfColOn > a {
	display: block;
	text-align: left !important;
}
/* gold chevron on the right of each row */
td.cfColOff::after,
td.cfColOn::after {
	content: "";
	position: absolute;
	right: 15px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--c-gold);
	border-bottom: 2px solid var(--c-gold);
	transform: translateY(-60%) rotate(-45deg);
	opacity: 0.4;
	transition: opacity 0.2s, right 0.2s;
	pointer-events: none;
}
.cfColOn {
	color: var(--c-gold) !important;
}
td.cfColOn {
	background: linear-gradient(90deg, rgba(42, 107, 224, 0.32), rgba(42, 107, 224, 0.08)) !important;
	border-left-color: var(--c-gold) !important;
}
td.cfColOn::after {
	opacity: 1;
	right: 12px;
}

/* Side headings ("Upcoming Events") */
#page .fsSideHead {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 93%;
	margin: 0 auto;
	padding: 8px 10px;
	border-radius: 10px;
	background: linear-gradient(180deg, #1B4AB0, #0C2A70);
	color: var(--c-gold);
	font: 700 16px/1.2 var(--c-font);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 8px 18px rgba(16, 51, 153, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
#page .fsSideHead svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	filter: drop-shadow(0 0 5px rgba(93, 169, 255, 0.7));
}

/* Event rows */
#page .fsEventDate {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #FFFFFF;
	font: 700 16px/1.3 var(--c-font);
	text-align: left;
}
#page .fsEventDate svg {
	width: 16px;
	height: 16px;
	fill: var(--c-gold);
	flex: 0 0 auto;
}
#page .fsEventTitle {
	text-align: left;
	padding: 2px 0 4px 22px;
	font: 700 17px/1.3 var(--c-font);
}
#page .fsEventTitle a {
	color: var(--c-gold) !important;
	text-decoration: none;
	transition: color 0.2s;
}
#page .fsEventTitle a:hover {
	color: #FFFFFF !important;
	text-decoration: underline;
}
#page .fsRule {
	height: 1px;
	margin: 6px 0 10px 0;
	background: linear-gradient(90deg, transparent, rgba(93, 169, 255, 0.5), transparent);
}
#page .fsMore {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	border: 1px solid rgba(93, 169, 255, 0.5);
	color: var(--c-gold) !important;
	font: 700 14px/1.2 var(--c-font);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s, color 0.25s, transform 0.25s;
}
#page .fsMore:hover {
	background: var(--c-gold);
	color: #06101F !important;
	text-decoration: none;
	transform: translateY(-2px);
}

/* No-events line */
#page .column .BoldWhite {
	color: #FFFFFF;
}

/* Stats box (fleet include, restyled) */
#page .StatsBoxTable {
	border-collapse: separate;
	border-spacing: 2px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.4);
}
#page .StatsBoxTitle {
	background: linear-gradient(180deg, #1B4AB0, #0C2A70);
	color: var(--c-gold);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 15px;
	padding: 7px 6px;
}
#page .StatsBoxCell {
	background: rgba(255, 255, 255, 0.05);
	padding: 5px 6px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#page .contentarea {
	background-color: #FFFFFF;
	color: #1A1A1A;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: var(--c-radius);
	box-shadow: var(--c-shadow);
	padding: 16px 24px;
}
#page .contentarea img {
	max-width: 100%;
	height: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
#page .fsFooter {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #0A2549, #02142A);
	border-top: 1px solid rgba(93, 169, 255, 0.45);
	border-bottom: 1px solid #000000;
	width: 100%;
	color: #FFFFFF;
}
#page .fsFooter a {
	color: #FFFFFF;
}
#page .fsFooter a:hover {
	color: var(--c-gold);
}
div.fsCopy {
	background: #030B16;
	border-top: 1px solid var(--c-line);
	color: var(--c-muted);
	font-weight: 500;
	font-size: 15px;
}

/* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================ */
@media screen and (max-width: 800px) {
	#page .fsBanner {
		padding: 8px 6px 6px 6px;
	}
	#page .contentarea {
		border-radius: 0;
		border-left: 0;
		border-right: 0;
		box-shadow: none;
		padding: 10px 8px;
	}
	#page .fsTopBar .TopBar a {
		padding: 4px 9px;
		font-size: 16px;
	}
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	#page .fs911 {
		animation: none;
	}
}
