/* Site header + footer — enqueued unconditionally (every page). */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.bms-skip-link.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 10000;
	background: var(--bms-black);
	color: var(--bms-white);
	padding: 10px 16px;
	border-radius: 4px;
}

/* ---- Logo (shared header + footer) ---- */
.bms-logo-img {
	display: block;
	height: 70px;
	width: auto;
}

.bms-logo-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 16px;
	border: 1px dashed #999999;
	border-radius: 4px;
	color: #999999;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* ---- Header ---- */
.bms-site-header {
	background: #ffffff;
	border-bottom: 1px solid #ececec;
	position: relative;
	z-index: 100;
}

.bms-site-header-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.bms-nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.bms-nav-toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--bms-black);
	margin: 5px 0;
}

.bms-site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.bms-nav-list {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bms-nav-list > li {
	position: relative;
}

.bms-nav-list a,
.bms-nav-dropdown-toggle {
	color: var(--bms-black);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
}

.bms-nav-list a:hover,
.bms-nav-dropdown-toggle:hover {
	color: var(--bms-red);
}

.bms-nav-has-dropdown {
	display: flex;
	align-items: center;
}

.bms-nav-dropdown-toggle::after {
	content: "\25BE";
	margin-left: 4px;
	font-size: 11px;
}

.bms-nav-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 12px;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	list-style: none;
	padding: 8px 0;
	margin-left: 0;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 50;
}

.bms-nav-has-dropdown.is-open .bms-nav-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bms-nav-dropdown li a {
	display: block;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	color: #333333;
}

.bms-nav-dropdown li a:hover {
	background: var(--bms-light);
	color: var(--bms-red);
}

.bms-nav-cta {
	white-space: nowrap;
}

@media (max-width: 900px) {
	.bms-site-header-inner {
		padding: 12px 16px;
	}

	.bms-nav-toggle {
		display: block;
	}

	.bms-site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
		border-bottom: 1px solid #ececec;
	}

	.bms-site-nav.is-open {
		max-height: 600px;
	}

	.bms-nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.bms-nav-list > li {
		border-top: 1px solid #ececec;
	}

	.bms-nav-list a,
	.bms-nav-dropdown-toggle {
		display: block;
		padding: 14px 20px;
		width: 100%;
		text-align: left;
	}

	.bms-nav-dropdown {
		position: static;
		box-shadow: none;
		border: none;
		margin-top: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.2s ease;
		padding: 0;
		background: var(--bms-light);
	}

	.bms-nav-has-dropdown.is-open .bms-nav-dropdown {
		max-height: 400px;
		padding: 8px 0;
	}

	.bms-nav-cta {
		display: block;
		margin: 16px 20px;
		text-align: center;
	}
}

/* ---- Footer ---- */
.bms-site-footer {
	background: var(--bms-black);
	color: var(--bms-light);
	padding: 56px 20px 0;
}

.bms-site-footer-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
}

.bms-footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

/* The default .bms-logo-placeholder is styled for a light background —
 * override it here so it's still readable against the black footer. */
.bms-site-footer .bms-logo-placeholder {
	border-color: rgba(255, 255, 255, 0.4);
	color: rgba(255, 255, 255, 0.7);
}

.bms-footer-col-heading {
	color: var(--bms-white);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 16px;
	position: relative;
	padding-bottom: 10px;
}

.bms-footer-col-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 3px;
	background: var(--bms-red);
}

.bms-footer-nav ul,
.bms-footer-locations ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bms-footer-nav a,
.bms-footer-locations a {
	color: var(--bms-light);
	text-decoration: none;
	font-size: 14px;
}

.bms-footer-nav a:hover,
.bms-footer-locations a:hover {
	color: var(--bms-red);
}

/* ---- Footer legal disclaimer ---- */
.bms-footer-disclaimer {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bms-footer-disclaimer p {
	margin: 0;
	font-size: 11px;
	line-height: 1.7;
	color: #8a8a8a;
	text-align: center;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.bms-site-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px;
	text-align: center;
	font-size: 13px;
	color: #999999;
}

.bms-site-footer-bottom p {
	margin: 0;
}

@media (max-width: 900px) {
	.bms-site-footer-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}