/* Utility bar — Figma Light Nav (node 233:34594). Uses css/delco-tokens.css */

.header .top_header {
	display: block;
	padding: 0;
	background: var(--delco-color-bg-utility);
	color: var(--delco-color-text-primary);
	font-size: initial;
}

.header .top_header .wrapper.top_header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.6rem 2rem;
	flex-wrap: wrap;
	padding-top: 1.05rem;
	padding-bottom: 1.05rem;
	max-width: var(--delco-nav-max-width, 148rem);
}

.header .top_header__left {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	flex: 1 1 auto;
	min-width: 0;
}

/* Beat legacy main_Copy rule: .header .top_header p { width: calc(100% - 4.5rem) } */
.header .top_header .top_header__copy {
	margin: 0;
	width: auto;
	max-width: none;
	overflow: visible;
	font-family: var(--delco-font-nav);
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.25;
	color: var(--delco-color-text-primary);
	text-align: left;
}

.header .top_header__mark {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.header .top_header__mark img {
	display: block;
	width: 2.2rem;
	height: auto;
	margin: 0;
	vertical-align: middle;
	object-fit: contain;
}

/* Desktop: CTA only in utility bar (not in .header_main_cluster) */
.header .header_main_cluster__cta {
	display: none !important;
}

.header .top_header__cta,
.header .header_main_cluster__cta {
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	min-height: 3.8rem;
	padding: 0.6rem 1.6rem;
	font-family: var(--delco-font-nav);
	font-weight: 700;
	font-size: 0.99rem;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	color: var(--delco-color-text-inverse);
	background: var(--delco-color-brand-blue);
	border: 1px solid var(--delco-color-border-default);
	border-radius: 1.2rem; /* 12px — slightly rounder Call Now CTA */
	box-sizing: border-box;
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.header .top_header__cta {
	display: inline-flex;
}

.header .top_header__cta:hover,
.header .top_header__cta:focus,
.header .header_main_cluster__cta:hover,
.header .header_main_cluster__cta:focus {
	opacity: 0.94;
	color: var(--delco-color-text-inverse);
	text-decoration: none;
	background: var(--delco-color-brand-blue-deep);
}

.header .top_header__cta:focus-visible,
.header .header_main_cluster__cta:focus-visible {
	outline: 2px solid var(--delco-color-brand-blue-bright);
	outline-offset: 2px;
}

/* Mobile / tablet: slim utility strip; CTA lives in .header_row (light + dark nav) */
@media (max-width: 992px) {
	.header .top_header .wrapper.top_header__inner {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		flex-wrap: nowrap;
		gap: 0.6rem 0.8rem;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	.header .top_header__left {
		flex: 0 0 auto;
		justify-content: center;
		flex-wrap: nowrap;
		gap: 0.35rem;
		min-width: max-content;
		max-width: none;
		width: auto;
	}

	.header .top_header .top_header__copy {
		flex: 0 0 auto;
		width: auto;
		max-width: none;
		font-size: 1.1rem;
		line-height: 1.2;
		text-align: center;
		white-space: nowrap;
		overflow: visible;
	}

	.header .top_header__mark img {
		width: 1.8rem;
	}

	.header .top_header__cta--utility {
		display: none !important;
	}

	.header .header_main_cluster__cta {
		display: inline-flex !important;
		min-height: 3.6rem;
		padding: 0.55rem 1.2rem;
		font-size: 0.95rem;
		line-height: 1.2;
		white-space: nowrap;
		text-align: center;
		max-width: none;
	}

	/* Light nav (inner pages, homepage scrolled): no border on mobile bar CTA */
	.header.fixed .header_main_cluster__cta,
	body.home_page .header.header--supports-hero.header--past-hero .header_main_cluster__cta,
	.header:not(.header--supports-hero) .header_main_cluster__cta {
		border: none;
	}
}

@media only screen and (max-width: 767px) {
	.header .top_header .top_header__copy {
		width: auto;
		max-width: none;
		line-height: 1.2;
		overflow: visible;
	}
}

@media (max-width: 480px) {
	.header .top_header .top_header__copy {
		font-size: 1rem;
	}

	.header .header_main_cluster__cta {
		padding: 0.5rem 0.85rem;
		font-size: 0.85rem;
	}
}
