/* Site header & footer (Salient-style layout for subsites). */

:root {
	--usl-header-blue: var(--wp--preset--color--accent, #203a6f);
	--usl-header-red: var(--wp--preset--color--extra, #ae262a);
	--usl-header-link: var(--wp--preset--color--link, #b33a43);
	--usl-header-gray-bg: var(--wp--preset--color--background-gray, #f2f2f2);
	--usl-header-nav-break: 1000px;
	/* Nav link side padding; the hover fill runs out to the container edge. */
	--usl-nav-pad-x: 1.35rem;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 99999;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	background: #ffffff;
	color: var(--usl-header-blue);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	clip: auto;
	clip-path: none;
}

/* ------------------------------------------------------------------ Breadcrumbs */

.usl-breadcrumbs {
	background: var(--usl-header-gray-bg, var(--wp--preset--color--background-gray, #f2f2f2));
	color: var(--wp--preset--color--text-default, #333333);
	font-family: var(--wp--preset--font-family--roboto, "Roboto", Helvetica, Arial, sans-serif);
	font-size: 16px;
	line-height: 1.5;
}

@media only screen and (min-width: 1000px) {
	.usl-breadcrumbs {
		font-size: var(--wp--preset--font-size--body, 17px);
	}
}

.usl-breadcrumbs__inner {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

/* Tighter side inset than the default .usl-container (100px @ desktop). */
@media only screen and (min-width: 1000px) {
	.usl-breadcrumbs__inner.usl-container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

.usl-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.usl-breadcrumbs__item {
	display: inline-flex;
	align-items: baseline;
	margin: 0;
	padding: 0;
}

.usl-breadcrumbs__sep {
	display: inline-block;
	margin: 0 0.4em;
	color: var(--wp--preset--color--text-default, #333333);
}

.usl-breadcrumbs__link {
	color: var(--usl-header-link, var(--wp--preset--color--link, #b33a43));
	text-decoration: none;
}

.usl-breadcrumbs__link:hover,
.usl-breadcrumbs__link:focus-visible {
	color: var(--usl-header-link, var(--wp--preset--color--link, #b33a43));
	text-decoration: underline;
}

.usl-breadcrumbs__current {
	color: var(--wp--preset--color--text-default, #333333);
}

/* ------------------------------------------------------------------ Header */

.usl-site-header {
	position: sticky;
	top: 0;
	z-index: 300;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Keep sticky header below WP admin bar only when the bar exists. */
.admin-bar:has(#wpadminbar) .usl-site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar:has(#wpadminbar) .usl-site-header {
		top: 46px;
	}
}

.usl-site-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.usl-site-header__branding {
	flex: 0 1 auto;
	min-width: 0;
}

.usl-site-header__logo-image {
	display: block;
	max-height: 64px;
	max-width: 200px;
	width: auto;
	height: auto;
}

.usl-site-header__logo-text {
	display: inline-flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--usl-header-blue);
}

.usl-site-header__logo-name {
	font-family: "BebasNeue-Regular", var(--wp--preset--font-family--bebas-neue, "Bebas Neue"), sans-serif;
	font-size: 1.75rem;
	line-height: 1;
	text-transform: uppercase;
}

.usl-site-header__logo-tagline {
	font-size: 0.75rem;
	color: #888888;
	font-style: italic;
	line-height: 1.2;
}

.usl-site-header__top-actions--desktop {
	display: none;
	align-items: center;
	gap: 1.25rem;
	flex: 0 0 auto;
}

.usl-site-header__proposal-link {
	font-family: "BebasNeue-Regular", var(--wp--preset--font-family--bebas-neue, "Bebas Neue"), sans-serif;
	font-size: 1.125rem;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--usl-header-blue);
	white-space: nowrap;
}

.usl-site-header__proposal-link:hover,
.usl-site-header__proposal-link:focus-visible {
	color: var(--usl-header-link);
}

.usl-site-header__location-status {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding-left: 1.25rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* Separates the proposal CTA from the location status. */
.usl-site-header__location-status::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 20px;
	background: rgba(0, 0, 0, 0.15);
}

.usl-site-header__location-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--wp--preset--font-family--roboto, "Roboto", Helvetica, Arial, sans-serif);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--usl-header-blue);
	white-space: nowrap;
}

.usl-site-header__location-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--usl-header-red);
}

.usl-site-header__change-location {
	display: inline-flex;
	align-items: center;
	margin-left: 0.2rem;
	font-family: var(--wp--preset--font-family--roboto, "Roboto", Helvetica, Arial, sans-serif);
	font-size: 0.875rem;
	line-height: 1.3;
	text-transform: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #333333;
	white-space: nowrap;
}

.usl-site-header__change-location:hover,
.usl-site-header__change-location:focus-visible {
	color: var(--usl-header-link);
}

.usl-site-header__top-rule {
	height: 3px;
	background: var(--usl-header-red);
	margin-bottom: 4px;
}

.usl-site-header__mobile-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
}

.usl-site-header__mobile-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	text-decoration: none;
	color: var(--usl-header-blue);
	font-family: "BebasNeue-Regular", var(--wp--preset--font-family--bebas-neue, "Bebas Neue"), sans-serif;
	font-size: 1rem;
	line-height: 1;
	white-space: nowrap;
}

.usl-site-header__mobile-phone-icon {
	display: inline-flex;
}

.usl-site-header__menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--usl-header-blue);
}

.usl-site-header__menu-toggle-lines {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
}

.usl-site-header__menu-toggle-lines span {
	display: block;
	height: 3px;
	background: currentColor;
	border-radius: 1px;
}

/* Desktop primary nav bar */
.usl-site-header__nav--desktop {
	display: none;
	background: var(--usl-header-blue);
}

.usl-site-header__nav-inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	min-height: 46px;
}

.usl-site-header__nav-list {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.usl-site-header__nav-list li {
	list-style: none;
}

/* The nav list is left-aligned, sharing the logo's left edge above it. It is
 * the only flex child of __nav-inner, so the base `margin: 0` is enough.
 * Corporate and location menus differ in width (6 vs 5 items), so anchoring the
 * start keeps the first item in the same place across both variants. */

.usl-site-header__nav-item {
	position: relative;
	display: flex;
	align-items: stretch;
}

.usl-site-header__nav-link {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem var(--usl-nav-pad-x);
	font-family: "BebasNeue-Regular", var(--wp--preset--font-family--bebas-neue, "Bebas Neue"), sans-serif;
	font-size: 23px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	white-space: nowrap;
}

button.usl-site-header__nav-link {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: default;
}

.usl-site-header__nav-link--placeholder {
	cursor: default;
	opacity: 0.95;
}

.usl-site-header__nav-link:hover,
.usl-site-header__nav-link:focus-visible,
.usl-site-header__nav-item.is-open > .usl-site-header__nav-link,
.usl-site-header__nav-item--has-dropdown:hover > .usl-site-header__nav-link {
	/* Stay white on blue header; underline only (global a:hover turns links red). */
	color: #ffffff;
	text-decoration: underline;
}

/* Desktop dropdowns */
.usl-site-header__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 15rem;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--usl-header-gray-bg);
	border: 1px solid #dddddd;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 120;
}

.usl-site-header__dropdown li {
	list-style: none;
}

.usl-site-header__nav-item--has-dropdown.is-open > .usl-site-header__dropdown--level-1,
.usl-site-header__dropdown-item--has-children:hover > .usl-site-header__dropdown--level-2,
.usl-site-header__dropdown-item--has-children:focus-within > .usl-site-header__dropdown--level-2 {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.usl-site-header__dropdown--level-2 {
	top: 0;
	left: 100%;
}

.usl-site-header__dropdown-item {
	position: relative;
	border-bottom: 1px solid #dddddd;
}

.usl-site-header__dropdown-item:last-child {
	border-bottom: 0;
}

.usl-site-header__dropdown-item > a {
	display: block;
	padding: 0.85rem 1rem;
	font-family: "BebasNeue-Regular", var(--wp--preset--font-family--bebas-neue, "Bebas Neue"), sans-serif;
	font-size: 23px;
	line-height: 1.25;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--usl-header-blue);
}

.usl-site-header__dropdown-item > a:hover,
.usl-site-header__dropdown-item > a:focus-visible,
.usl-site-header__dropdown-item--has-children:hover > a {
	color: var(--usl-header-link);
}

/* Mobile off-canvas nav */
.usl-mobile-nav[hidden] {
	display: none;
}

.usl-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.usl-mobile-nav__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.usl-mobile-nav__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(100%, 320px);
	height: 100%;
	overflow-y: auto;
	background: var(--usl-header-blue);
	border-left: 4px solid #c9a227;
	padding: 3rem 0 2rem;
}

.usl-mobile-nav__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	background: transparent;
	color: #ffffff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.usl-mobile-nav__list,
.usl-mobile-nav__sublist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.usl-mobile-nav__list li,
.usl-mobile-nav__sublist li {
	list-style: none;
}

.usl-mobile-nav__link,
.usl-mobile-nav__sublink,
.usl-mobile-nav__accordion-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
	padding-right: 1.25rem;
	font-family: "BebasNeue-Regular", var(--wp--preset--font-family--bebas-neue, "Bebas Neue"), sans-serif;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	background: transparent;
	border: 0;
	text-align: left;
	cursor: pointer;
}

/* Level 1 — primary menu items */
.usl-mobile-nav__link,
.usl-mobile-nav__accordion-toggle:not(.usl-mobile-nav__accordion-toggle--sub) {
	padding-left: 1.25rem;
	font-size: 23px;
}

.usl-mobile-nav__item--featured .usl-mobile-nav__link {
	font-size: 23px;
}

.usl-mobile-nav__link--placeholder {
	cursor: default;
}

/* Level 2 — sub-items (e.g. All Services, top-level services, service areas) */
.usl-mobile-nav__sublink:not(.usl-mobile-nav__sublink--child),
.usl-mobile-nav__accordion-toggle--sub {
	padding-left: 2.25rem;
	font-size: 18px;
}

/* Level 3 — nested sub-services */
.usl-mobile-nav__sublink--child {
	padding-left: 3.5rem;
	font-size: 15px;
}

.usl-mobile-nav__chevron {
	display: inline-block;
	width: 0.65rem;
	height: 0.65rem;
	margin-left: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.usl-mobile-nav__accordion-toggle.is-open .usl-mobile-nav__chevron {
	transform: rotate(-135deg);
}

.usl-mobile-nav__sublink--child {
	text-transform: uppercase;
}

body.usl-mobile-nav--open {
	overflow: hidden;
}

@media screen and (min-width: 1000px) {
	.usl-site-header__top-actions--desktop {
		display: flex;
	}

	.usl-site-header__mobile-bar {
		display: none;
	}

	.usl-site-header__nav--desktop {
		display: block;
	}

	.usl-mobile-nav {
		display: none !important;
	}
}

@media screen and (max-width: 999px) {
	.usl-site-header {
		border-bottom: 2px solid var(--usl-header-blue);
	}

	.usl-site-header__top-rule {
		display: none;
	}

	.usl-site-header__top-inner.usl-container {
		max-width: 100%;
		width: 100%;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.usl-site-header__top-inner {
		align-items: center;
		gap: 0.5rem;
	}

	.usl-site-header__branding {
		flex: 0 1 auto;
		min-width: 0;
	}

	.usl-site-header__logo-image {
		max-width: 150px;
		max-height: none;
		width: auto;
		height: auto;
	}

	.usl-site-header__mobile-bar {
		flex: 0 0 auto;
		align-items: center;
		gap: 0.5rem;
		margin-left: auto;
	}

	.usl-site-header__mobile-phone {
		flex: 0 1 auto;
		min-width: 0;
		font-size: 0.9375rem;
	}

	.usl-site-header__mobile-phone-number {
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ------------------------------------------------------------------ Footer */

.usl-site-footer {
	background: var(--usl-header-gray-bg);
	border-top: 3px solid var(--usl-header-red);
	color: #333333;
}

.usl-site-footer__main {
	padding: 2rem 0;
}

.usl-site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.usl-site-footer__heading {
	margin: 0 0 0.75rem;
	padding: 0;
	font-family: "BebasNeue-Regular", var(--wp--preset--font-family--bebas-neue, "Bebas Neue"), sans-serif;
	font-size: 23px;
	font-weight: 400;
	text-transform: uppercase;
	color: #333333;
}

.usl-site-footer__address {
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.usl-site-footer__address p {
	margin: 0;
	padding: 0;
}

.usl-site-footer__phone a,
.usl-site-footer__email a {
	color: var(--usl-header-link);
	text-decoration: none;
	font-weight: 500;
}

.usl-site-footer__phone a:hover,
.usl-site-footer__email a:hover,
.usl-site-footer__phone a:focus-visible,
.usl-site-footer__email a:focus-visible {
	text-decoration: underline;
}

.usl-site-footer__social.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.usl-site-footer__social.social-links .social {
	color: #fff !important;
	display: inline-block;
	width: 45px;
	height: 45px;
	line-height: 45px;
	font-size: 25px;
	text-align: center;
	border-radius: 4px;
	text-decoration: none;
}

.usl-site-footer__social.social-links .social.fb {
	background: #3b5999;
}

.usl-site-footer__social.social-links .social.ig {
	background: #e4405f;
}

.usl-site-footer__social.social-links .social.in {
	background: #0077b5;
}

.usl-site-footer__social.social-links .social.yt {
	background: #cd201f;
}

.usl-site-footer__social.social-links .social.gbp {
	background: #4285f4;
}

.usl-site-footer__social.social-links .social.yelp {
	background: #d32323;
}

.usl-site-footer__social.social-links .social.nextdoor {
	background: #00b246;
}

.usl-site-footer__social.social-links .social.bbb {
	background: #005a9c;
}

.usl-site-footer__social.social-links .social.houzz {
	background: #4dbc15;
}

.usl-site-footer__social.social-links .social:hover,
.usl-site-footer__social.social-links .social:focus,
.usl-site-footer__social.social-links .social:focus-visible {
	color: #fff !important;
	opacity: 1;
}

.usl-site-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.usl-site-footer__links li {
	list-style: none;
	padding: 4px 0;
}

.usl-site-footer__links a {
	font-family: var(--wp--preset--font-family--roboto, "Roboto", sans-serif);
	font-size: 0.9375rem;
	line-height: 1.4;
	color: #333333;
	text-decoration: none;
}

.usl-site-footer__links a:hover,
.usl-site-footer__links a:focus-visible {
	color: var(--usl-header-link);
}

.usl-site-footer__map-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 56%;
	background: #dddddd;
}

.usl-site-footer__map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.usl-site-footer__copyright {
	padding: 1.25rem 0 2rem;
}

.usl-site-footer__copyright-text {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #333333;
}

@media screen and (min-width: 768px) {
	.usl-site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.usl-site-footer__col--map {
		grid-column: 1 / -1;
	}

	.usl-site-footer__map-wrap {
		padding-bottom: 38%;
		max-width: 100%;
	}
}

@media screen and (min-width: 1000px) {
	.usl-site-footer__main {
		padding: 2.5rem 0 3rem;
	}

	.usl-site-footer__grid {
		grid-template-columns: 1fr 1fr 2fr;
		align-items: start;
		gap: 2.5rem;
	}

	.usl-site-footer__col--map {
		grid-column: auto;
	}

	.usl-site-footer__map-wrap {
		padding-bottom: 68%;
		min-height: 180px;
	}
}
