/* Top Dog Header — typography per spec */
.tdheader .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.tdheader {
	--tdheader-text: rgb(27, 46, 75);
	box-sizing: border-box;
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-style: normal;
	color: var(--tdheader-text);
	background: #fff;
	width: 100%;
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	box-shadow: 0 1px 0 rgba(15, 26, 46, 0.06);
}

.tdheader *,
.tdheader *::before,
.tdheader *::after {
	box-sizing: border-box;
}

.tdheader__inner {
	width: 100%;
	max-width: min(1350px, var(--tdheader-max, 1350px));
	margin: 0 auto;
	padding: 14px clamp(16px, 3vw, 28px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(20px, 3vw, 40px);
}

.tdheader__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	text-decoration: none;
	color: var(--tdheader-text);
	border: 0;
	box-shadow: none;
	cursor: default;
	flex-shrink: 0;
}

.tdheader__logo:hover,
.tdheader__logo:focus,
.tdheader__logo:focus-visible,
.tdheader__logo:active {
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.tdheader__logo--image {
	gap: 0;
}

.tdheader__logo-img-wrap {
	display: block;
	line-height: 0;
	border: 0;
}

.tdheader__logo-img {
	display: block;
	max-height: 56px;
	width: auto;
	height: auto;
	border: 0;
	outline: none;
}

.tdheader__logo-mark {
	display: flex;
	align-items: center;
	color: var(--tdheader-text);
}

.tdheader__logo-dog {
	display: block;
}

.tdheader__logo-divider {
	width: 1px;
	height: 36px;
	background: #9aa3b2;
	flex-shrink: 0;
}

.tdheader__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.tdheader__logo-line1 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.tdheader__logo-line2 {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.95;
	margin-top: 2px;
}

.tdheader__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tdheader-text);
	cursor: pointer;
}

.tdheader__toggle-bar {
	display: block;
	height: 2px;
	width: 24px;
	background: currentColor;
	border-radius: 1px;
	margin: 0 auto;
}

.tdheader__nav-wrap {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(20px, 2.5vw, 36px);
	flex: 1 1 auto;
	min-width: 0;
}

.tdheader__drawer-top,
.tdheader__drawer-foot {
	display: none;
}

.tdheader__drawer-scroll {
	flex: 0 1 auto;
	min-width: 0;
	overflow: visible;
}

.tdheader__drawer-logo {
	text-decoration: none;
	color: inherit;
	border: 0;
	cursor: default;
}

.tdheader__phone--drawer {
	display: none;
}

.tdheader__phone--desktop {
	margin-left: auto;
}

.tdheader__nav {
	flex: 0 1 auto;
	min-width: 0;
}

.tdheader-nav {
	list-style: none;
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px clamp(16px, 2vw, 32px);
}

.tdheader-nav__item {
	list-style: none;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.tdheader-nav__item--mega {
	position: static;
}

.tdheader-nav__link,
.tdheader-nav__trigger {
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 21px;
	color: var(--tdheader-text);
	text-decoration: none;
	background: none;
	border: 0;
	padding: 8px 0;
	cursor: default;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tdheader-nav__link:hover,
.tdheader-nav__trigger:hover {
	color: var(--tdh-nav-hover, var(--tdheader-nav-hover, #15243d));
}

.tdheader-nav__chev {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.85;
	margin-top: 2px;
	transition: transform 0.2s ease;
}

.tdheader-nav__item--mega.is-open .tdheader-nav__chev {
	transform: rotate(180deg);
}

@media (min-width: 981px) {
	.tdheader-nav__item--mega:hover .tdheader-nav__chev {
		transform: rotate(180deg);
	}
}

.tdheader-nav__item--mega.is-open .tdheader-nav__trigger,
.tdheader-nav__item--mega:hover .tdheader-nav__trigger {
	color: var(--tdh-nav-hover, var(--tdheader-nav-hover, #15243d));
}

.tdheader__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 21px;
	color: var(--tdheader-text);
	text-decoration: none;
	white-space: nowrap;
	cursor: default;
	flex-shrink: 0;
}

.tdheader__phone:hover {
	color: var(--tdheader-nav-hover, #15243d);
}

.tdheader-mega {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	width: 100%;
	margin-top: 0;
	padding: 28px 24px 24px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(15, 26, 46, 0.08);
	border-top: 1px solid #e8eaef;
	z-index: 30;
}

.tdheader-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -16px;
	height: 16px;
	background: transparent;
}

.tdheader-mega__grid {
	width: 100%;
	max-width: min(100%, var(--tdheader-max, 1350px));
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 24px;
}

.tdheader-mega__col {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.tdheader-mega__title {
	margin: 0 0 10px;
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 21px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tdheader-text);
}

.tdheader-mega__rule {
	height: 1px;
	background: #1b2e4b;
	opacity: 0.2;
	margin-bottom: 14px;
}

.tdheader-mega__list {
	list-style: none;
	list-style-type: none;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
}

.tdheader-mega__list li {
	list-style: none;
	list-style-type: none;
	margin: 0 0 4px;
	padding: 0;
	width: 100%;
	max-width: 100%;
}

.tdheader-mega__link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	color: var(--tdheader-text);
	text-decoration: none;
	padding: 6px 0;
	cursor: pointer;
}

/* Disc marker (list-style look) only on hover — default state has no bullet */
.tdheader-mega__link::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: transparent;
	flex-shrink: 0;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.tdheader-mega__link:hover {
	color: var(--tdh-mega-hover, var(--tdheader-mega-hover, #15243d));
}

.tdheader-mega__link:hover::before {
	opacity: 1;
	transform: scale(1);
	background: var(--tdh-mega-hover, var(--tdheader-mega-hover, #1b2e4b));
}

.tdheader-mega__footer {
	width: 100%;
	max-width: min(100%, var(--tdheader-max, 1350px));
	margin: 24px auto 0;
	padding-top: 20px;
	border-top: 1px solid #e8eaef;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.tdheader-mega__hint {
	margin: 0;
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 21px;
	color: var(--tdheader-text);
}

.tdheader-mega__hint-link {
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.tdheader-mega__hint-link:hover {
	text-decoration: underline;
}

.tdheader-mega__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 8px;
	background: var(--tdheader-cta-bg, #1b2e4b);
	color: var(--tdheader-cta-text, #fff);
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	cursor: pointer;
}

.tdheader-mega__cta:hover {
	filter: brightness(1.08);
}

@media (min-width: 981px) {
	.tdheader__inner {
		position: relative;
	}

	.tdheader__logo {
		position: relative;
		z-index: 2;
	}

	.tdheader__nav-wrap {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		width: max-content;
		max-width: calc(100% - 420px);
		justify-content: center;
		gap: 0;
	}

	.tdheader__drawer-scroll,
	.tdheader__nav {
		max-width: 100%;
	}

	.tdheader-nav {
		justify-content: center;
		flex-wrap: nowrap;
	}

	.tdheader__phone--desktop {
		position: relative;
		z-index: 2;
	}

	.tdheader-mega {
		left: 50%;
		right: auto;
		width: 100vw;
		max-width: 100vw;
		transform: translateX(-50%);
	}

	.tdheader-nav__item--mega.is-open .tdheader-mega,
	.tdheader-nav__item--mega:hover .tdheader-mega,
	.tdheader-nav__item--mega:focus-within .tdheader-mega {
		display: block;
	}
}

@media (max-width: 1200px) {
	.tdheader-mega__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.tdheader__toggle {
		display: flex;
		flex-shrink: 0;
	}

	.tdheader__nav-wrap {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-width: none;
		z-index: 1002;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		margin: 0;
		padding: 0;
		background: #fff;
		box-shadow: -8px 0 32px rgba(15, 26, 46, 0.12);
		transform: translateX(100%);
		transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
		overflow: hidden;
		pointer-events: none;
	}

	.tdheader.is-nav-open .tdheader__nav-wrap {
		transform: translateX(0);
		pointer-events: auto;
	}

	.tdheader__drawer-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		flex-shrink: 0;
		padding: 14px clamp(16px, 4vw, 24px);
		border-bottom: 1px solid #e8eaef;
		background: #fff;
	}

	.tdheader__drawer-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--tdheader-text);
		cursor: pointer;
		flex-shrink: 0;
	}

	.tdheader__drawer-close-icon {
		font-size: 28px;
		line-height: 1;
		font-weight: 300;
		display: block;
		margin-top: -2px;
	}

	.tdheader__drawer-scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0 clamp(16px, 4vw, 24px);
	}

	.tdheader__drawer-foot {
		display: flex;
		flex-direction: column;
		gap: 12px;
		flex-shrink: 0;
		padding: 20px clamp(16px, 4vw, 24px) calc(20px + env(safe-area-inset-bottom, 0));
		border-top: 1px solid #e8eaef;
		background: #fff;
	}

	.tdheader__drawer-quote {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 14px 20px;
		border-radius: 999px;
		background: var(--tdheader-cta-bg, #1b2e4b);
		color: var(--tdheader-cta-text, #fff);
		font-family: "DM Sans", sans-serif;
		font-weight: 600;
		font-size: 15px;
		line-height: 1.2;
		text-decoration: none;
		cursor: pointer;
		border: 0;
	}

	.tdheader__drawer-quote:hover {
		filter: brightness(1.06);
	}

	.tdheader__phone--desktop {
		display: none !important;
	}

	.tdheader__phone--drawer {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 14px 20px;
		border-radius: 999px;
		border: 2px solid var(--tdheader-text);
		background: #fff;
		color: var(--tdheader-text);
		font-family: "DM Sans", sans-serif;
		font-weight: 600;
		font-size: 15px;
		line-height: 1.2;
		text-decoration: none;
		gap: 10px;
		cursor: pointer;
	}

	.tdheader-nav {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		width: 100%;
		padding: 8px 0 16px;
	}

	.tdheader-nav__item {
		width: 100%;
		border-bottom: 1px solid #eef1f5;
	}

	.tdheader-nav__link,
	.tdheader-nav__trigger {
		width: 100%;
		justify-content: space-between;
		padding: 16px 0;
	}

	.tdheader-mega {
		position: static;
		transform: none;
		width: 100%;
		box-shadow: none;
		border: 0;
		padding: 0 0 16px;
		margin: 0;
	}

	.tdheader-mega__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.tdheader-nav__item--mega .tdheader-mega {
		display: none;
	}

	.tdheader-nav__item--mega.is-open .tdheader-mega {
		display: block !important;
	}

	.tdheader-nav__item--mega.is-open .tdheader-nav__chev {
		transform: rotate(180deg);
	}
}
