/*
 * topnav.css — Horizontal dropdown navigation bar for Stargate SG-1 Solutions
 * Sits below Phantom's fixed #header strip.
 * Pure CSS — no JavaScript required.
 * Hidden on mobile (≤736px); hamburger slide panel serves those users.
 *
 * Color palette — deep space blues drawn from banner image:
 *   Bar background:   #283c57  (Nautilus — deep navy)
 *   Button resting:   #3f536a  (Into the Stratosphere — muted steel blue)
 *   Hover:            #4479ad  (Blue Triumph — ocean blue)
 *   Dropdown bg:      #2c5786  (Glimpse of Void — medium dark blue)
 *   Dropdown border:  #84bbdf  (Adrift on the Nile — soft light blue)
 *   Text:             #ffffff
 */

/* ── Bar container ───────────────────────────────────────────────────────── */

#topnav {
	background-color: #283c57;
	border-bottom: 2px solid #84bbdf;
	position: relative;
	z-index: 9000;
	width: 100%;
}

/* ── Top-level list ──────────────────────────────────────────────────────── */

#topnav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
}

#topnav > ul > li {
	position: relative;
	flex: 0 0 auto;
}

#topnav > ul > li > a {
	display: block;
	padding: 0.6em 0.85em;
	color: #ffffff;
	text-decoration: none;
	font-family: "Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;
	font-size: 0.72em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	background-color: #3f536a;
	transition: color 0.2s ease, background-color 0.2s ease;
}

#topnav > ul > li > a:hover,
#topnav > ul > li:hover > a {
	color: #ffffff !important;
	background-color: #4479ad;
}

/* ── Dropdown panel ──────────────────────────────────────────────────────── */

#topnav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	background-color: #2c5786;
	border: 1px solid #84bbdf;
	border-top: none;
	min-width: 180px;
	z-index: 9001;
	box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

#topnav ul li:hover > ul {
	display: block;
}

#topnav ul ul li a {
	display: block;
	padding: 0.55em 1em;
	color: #ffffff;
	text-decoration: none;
	font-family: "Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;
	font-size: 0.72em;
	font-weight: normal;
	letter-spacing: 0.03em;
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease;
	border-bottom: 1px solid rgba(132,187,223,0.2);
}

#topnav ul ul li:last-child a {
	border-bottom: none;
}

#topnav ul ul li a:hover {
	color: #ffffff !important;
	background-color: #4479ad;
}

/* ── Dropdown indicator arrow ────────────────────────────────────────────── */

#topnav > ul > li.has-sub > a::after {
	content: " \25BE"; /* ▾ */
	font-size: 0.85em;
	opacity: 0.8;
}

/* ── Hide on mobile — hamburger panel takes over ─────────────────────────── */

@media screen and (max-width: 736px) {
	#topnav {
		display: none;
	}
}
