/* Small layout fixes so the rebuilt Core pages match the classic NSM master. */

/* Header: faded house sits flush on the blue menu, same on every page */
.nsm-desktop-chrome {
	margin: 0;
	padding: 0;
}

.premenuHeader {
	display: flex;
	align-items: stretch;
	height: 171px;
	min-height: 171px;
	max-height: 171px;
	margin: 0;
	padding: 0 0 0 3%;
	overflow: hidden;
	background-size: cover;
	background-position: top left;
	background-repeat: no-repeat;
}

.nsm-header-logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding-right: 1rem;
}

.nsm-header-logo img {
	height: 150px;
	width: auto;
	display: block;
}

.nsm-header-right {
	flex: 1 1 auto;
	min-width: 0;
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: auto 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0.65rem 1rem 0.2rem 1rem;
}

.nsm-header-fb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nsm-header-fb a {
	color: #0599fe;
	text-decoration: none;
}

.nsm-header-fb img {
	width: 35px;
	height: auto;
	display: block;
}

.nsm-header-taglines {
	text-align: right;
	color: #ffffff;
	text-transform: uppercase;
}

.nsm-header-tagline {
	font-size: 1.5rem;
	line-height: 1.15;
	margin-bottom: 0.15rem;
}

.nsm-header-call {
	font-size: 1rem;
	text-transform: none;
	line-height: 1.2;
}

.nsm-header-call em {
	font-style: italic;
	font-weight: bold;
}

.nsm-header-call a {
	color: #00ffff;
	text-decoration: none;
}

#maincontent {
	min-height: 400px;
}

#sitebottom {
	background-image: linear-gradient(to bottom, #0356fc 0%, #0593fe 100%);
}

#sitebottom a,
#sitebottom a:visited {
	color: #fff;
	text-decoration: none;
}

#sitebottom a:hover {
	color: #fff;
	text-decoration: underline;
}

.nsm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}

.nsm-gallery-card {
	display: block;
	color: #ffffff;
	text-decoration: none;
}

.nsm-gallery-card:hover {
	color: #6dcff6;
	text-decoration: none;
}

.nsm-gallery-card img,
.nsm-gallery-photo img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #ffffff;
}

.nsm-gallery-photo img {
	height: 180px;
}

.nsm-gallery-name {
	display: block;
	margin-top: 0.5rem;
	font-weight: bold;
}

.hero-button-link {
	display: inline-block;
	text-decoration: none;
}

/* Home hero: copy is tied to the video box so it cannot race video height. */
.nsm-home-hero {
	position: relative;
	width: 100%;
	border-bottom: 1px solid #C7C7C7;
	overflow: hidden;
	background: #000;
}
.nsm-home-hero-video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1080 / 720;
	object-fit: cover;
	vertical-align: top;
}
.nsm-home-hero-copy {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: 1rem 1.25rem;
	box-sizing: border-box;
	pointer-events: none;
	text-align: center;
}
.nsm-home-hero-title {
	margin: 0 0 1rem;
	max-width: 100%;
	line-height: 1.15;
	text-shadow: 1px 0 0 #000, 0 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
}
.nsm-home-hero-title-accent,
.nsm-home-hero-title-main {
	display: block;
	font-size: clamp(1.35rem, 4.4vw, 3.5rem);
	font-weight: 700;
}
.nsm-home-hero-title-accent { color: #6DCFF6; }
.nsm-home-hero-title-main { color: #fff; }
.nsm-home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 20px;
	width: 100%;
	max-width: 42rem;
	pointer-events: auto;
}
.nsm-home-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-width: 10.5rem;
	max-width: 18rem;
	min-height: 3.25rem;
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	background: linear-gradient(to right, #055DFE 0%, #044DFE 100%);
	color: #fff !important;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.nsm-home-hero-btn:hover {
	color: #fff !important;
	filter: brightness(1.08);
}
@media (max-width: 640px) {
	.nsm-home-hero-copy {
		padding: 0.75rem 1rem;
	}
	.nsm-home-hero-title-accent,
	.nsm-home-hero-title-main {
		font-size: clamp(1.05rem, 5.1vw, 1.65rem);
	}
	.nsm-home-hero-actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 16rem;
		gap: 10px;
	}
	.nsm-home-hero-btn {
		width: 100%;
		min-width: 0;
		max-width: none;
	}
}

/* Desktop menu: centered cluster in a container, like live NSM */
.nsm-desktop-nav {
	max-height: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	font-size: small;
	letter-spacing: 0.1em;
	overflow: hidden;
	background-image: linear-gradient(to right, #0593fe 0%, #0356fc 100%);
	border: 0;
}

.navbar-nav-desktop {
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
}

.navbar-nav-desktop .nav-item {
	flex: 1 1 auto;
	text-align: center;
	white-space: nowrap;
}

.navbar-nav-desktop .nav-link {
	white-space: nowrap !important;
	padding: 0.5rem 0.25rem !important;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.1em;
}

.navbar-nav-desktop .nav-link,
.navbar-light .navbar-nav-desktop .nav-link {
	color: #ffffff !important;
	text-transform: uppercase;
}

.navbar-nav-desktop .nav-link.nsm-nav-visualizer,
.nsm-mobile-nav .nav-link.nsm-nav-visualizer {
	color: #00ffff !important;
	font-weight: bold;
}

.nsm-mobile-nav {
	z-index: 2;
	background-image: linear-gradient(to right, #0593fe 0%, #0356fc 100%);
}

.nsm-mobile-nav .nav-link {
	color: #ffffff !important;
	text-transform: uppercase;
}

.nsm-mobile-nav .navbar-toggler {
	color: #00ffff;
	border-color: #00ffff;
}

.nsm-mobile-nav .navbar-toggler span {
	display: block;
	background-color: #00ffff;
	height: 2px;
	width: 25px;
	margin-top: 6px;
	margin-bottom: 4px;
}
