.dnc-header {
	position: relative;
	z-index: 50;
	border-bottom: 0;
	background: var(--wp--preset--color--white, #fff);
}

.dnc-header .site-container {
	width: min(calc(100% - 4.25rem), 1490px);
}

.dnc-header__top {
	display: grid;
	min-height: 102px;
	align-items: center;
	grid-template-columns: auto minmax(420px, 1fr) auto;
	gap: clamp(1.5rem, 3vw, 3rem);
}

.dnc-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	white-space: nowrap;
}

.dnc-header__brand:hover,
.dnc-header__brand:focus-visible {
	text-decoration: none;
}

.dnc-header__brand-icon {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	overflow: hidden;
	border-radius: 11px;
	background: linear-gradient(145deg, #f3a51a, #ffd46b);
	color: #111318;
}

.dnc-header__brand-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dnc-header__crown {
	width: 31px;
	height: 31px;
}

.dnc-header__brand-copy {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	line-height: 1;
}

.dnc-header__brand-title {
	color: #111318;
	font-size: clamp(1.5rem, 2vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.dnc-header__brand-title span {
	color: var(--wp--preset--color--gold, #f6ad19);
}

.dnc-header__tagline {
	margin-top: 0.45rem;
	color: #717682;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.11em;
}

.dnc-header__primary-menu,
.dnc-header__secondary-menu {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dnc-header__primary-menu {
	justify-content: flex-end;
	gap: clamp(1.25rem, 2.25vw, 2.75rem);
}

.dnc-header__primary-menu > li {
	position: relative;
}

.dnc-header__primary-menu a,
.dnc-header__secondary-menu a {
	display: inline-flex;
	align-items: center;
	color: #111318;
	font-weight: 600;
	white-space: nowrap;
}

.dnc-header__primary-menu a {
	min-height: 48px;
	font-size: 0.98rem;
}

.dnc-header__primary-menu a:hover,
.dnc-header__primary-menu a:focus-visible,
.dnc-header__secondary-menu a:hover,
.dnc-header__secondary-menu a:focus-visible {
	color: #c78200;
	text-decoration: none;
}

.dnc-header__primary-menu .menu-item-has-children > a::after {
	width: 0.45rem;
	height: 0.45rem;
	margin: -0.2rem 0 0 0.65rem;
	transform: rotate(45deg);
	border-right: 1.7px solid currentColor;
	border-bottom: 1.7px solid currentColor;
	content: '';
}

.dnc-header__primary-menu .sub-menu {
	position: absolute;
	top: calc(100% - 0.25rem);
	left: -1.25rem;
	min-width: 210px;
	margin: 0;
	padding: 0.65rem;
	transform: translateY(0.5rem);
	visibility: hidden;
	opacity: 0;
	border: 1px solid #e3e5e8;
	border-radius: 0.8rem;
	background: #fff;
	box-shadow: 0 16px 40px rgba(17, 19, 24, 0.1);
	list-style: none;
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.dnc-header__primary-menu li:hover > .sub-menu,
.dnc-header__primary-menu li:focus-within > .sub-menu {
	transform: translateY(0);
	visibility: visible;
	opacity: 1;
}

.dnc-header__primary-menu .sub-menu a {
	width: 100%;
	min-height: 40px;
	padding-inline: 0.75rem;
	border-radius: 0.5rem;
}

.dnc-header__primary-menu .sub-menu a:hover,
.dnc-header__primary-menu .sub-menu a:focus-visible {
	background: #fff8e7;
}

.dnc-header__actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.dnc-header__search {
	display: flex;
	width: 180px;
	height: 52px;
	align-items: center;
	gap: 0.65rem;
	padding: 0 1rem;
	border: 1px solid #d9dce1;
	border-radius: 12px;
	background: #fff;
}

.dnc-header__search:focus-within {
	border-color: #f6ad19;
	box-shadow: 0 0 0 3px rgba(246, 173, 25, 0.18);
}

.dnc-header__search-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.dnc-header__search input,
.dnc-header__mobile-search-form input {
	min-width: 0;
	width: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #313642;
	font-size: 0.93rem;
}

.dnc-header__search input::placeholder,
.dnc-header__mobile-search-form input::placeholder {
	color: #737986;
	opacity: 1;
}

.dnc-header__cta {
	display: inline-flex;
	min-width: 172px;
	height: 52px;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 0 1.15rem;
	border-radius: 12px;
	background: linear-gradient(90deg, #f7ad19, #ffd466);
	box-shadow: 0 8px 18px rgba(232, 155, 0, 0.12);
	color: #111318;
	font-weight: 700;
}

.dnc-header__cta:hover,
.dnc-header__cta:focus-visible {
	transform: translateY(-1px);
	text-decoration: none;
}

.dnc-header__cta-icon {
	width: 23px;
	height: 23px;
}

.dnc-header__secondary-row {
	border-top: 1px solid #e4e5e8;
	border-bottom: 1px solid #e4e5e8;
}

.dnc-header__secondary {
	display: flex;
	min-height: 56px;
	align-items: center;
}

.dnc-header__secondary-menu {
	gap: clamp(2rem, 4.5vw, 4.5rem);
}

.dnc-header__secondary-menu a {
	font-size: 0.93rem;
	font-weight: 500;
}

.dnc-header__icon-button,
.dnc-header__mobile-search {
	display: none;
}

@media (max-width: 1380px) {
	.dnc-header .site-container {
		width: min(calc(100% - 2.5rem), 1490px);
	}

	.dnc-header__top {
		grid-template-columns: auto minmax(350px, 1fr) auto;
		gap: 1.5rem;
	}

	.dnc-header__primary-menu {
		gap: 1.25rem;
	}

	.dnc-header__search {
		width: 155px;
	}

	.dnc-header__cta {
		min-width: 145px;
	}
}

@media (max-width: 1100px) {
	.dnc-header .site-container {
		width: calc(100% - 3rem);
	}

	.dnc-header__top {
		min-height: 104px;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 1rem;
	}

	.dnc-header__brand-icon {
		width: 56px;
		height: 56px;
		flex-basis: 56px;
		border-radius: 12px;
	}

	.dnc-header__brand-title {
		font-size: clamp(1.45rem, 4vw, 2rem);
	}

	.dnc-header__tagline {
		font-size: clamp(0.68rem, 1.8vw, 0.9rem);
	}

	.dnc-header__primary {
		position: absolute;
		top: 100%;
		left: -1.5rem;
		width: calc(100% + 3rem);
		max-height: calc(100vh - 104px);
		padding: 1.25rem 1.5rem 1.75rem;
		transform: translateY(-0.5rem);
		visibility: hidden;
		overflow-y: auto;
		opacity: 0;
		border-top: 1px solid #e3e5e8;
		background: #fff;
		box-shadow: 0 16px 32px rgba(17, 19, 24, 0.1);
		transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	}

	.dnc-header.is-menu-open .dnc-header__primary {
		transform: translateY(0);
		visibility: visible;
		opacity: 1;
	}

	.dnc-header__primary-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.dnc-header__primary-menu a {
		width: 100%;
		min-height: 48px;
		justify-content: space-between;
		border-bottom: 1px solid #eceef0;
	}

	.dnc-header__primary-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 1rem;
		transform: none;
		visibility: visible;
		opacity: 1;
		border: 0;
		box-shadow: none;
	}

	.dnc-header__primary-menu .sub-menu a {
		font-weight: 500;
	}

	.dnc-header__secondary-row,
	.dnc-header__search--desktop,
	.dnc-header__cta {
		display: none;
	}

	.dnc-header__actions {
		gap: 1rem;
	}

	.dnc-header__icon-button {
		display: grid;
		width: 56px;
		height: 56px;
		padding: 0;
		place-items: center;
		border: 1px solid #d9dce1;
		border-radius: 12px;
		background: #fff;
		color: #111318;
		cursor: pointer;
	}

	.dnc-header__mobile-icon {
		width: 30px;
		height: 30px;
	}

	.dnc-header__menu-lines {
		display: flex;
		width: 29px;
		height: 24px;
		justify-content: space-between;
		flex-direction: column;
	}

	.dnc-header__menu-lines span {
		display: block;
		width: 100%;
		height: 3px;
		border-radius: 3px;
		background: currentColor;
		transition: transform 160ms ease, opacity 160ms ease;
	}

	.dnc-header.is-menu-open .dnc-header__menu-lines span:first-child {
		transform: translateY(10.5px) rotate(45deg);
	}

	.dnc-header.is-menu-open .dnc-header__menu-lines span:nth-child(2) {
		opacity: 0;
	}

	.dnc-header.is-menu-open .dnc-header__menu-lines span:last-child {
		transform: translateY(-10.5px) rotate(-45deg);
	}

	.dnc-header__mobile-search:not([hidden]) {
		display: block;
		padding-block: 0.85rem;
		border-top: 1px solid #e3e5e8;
		box-shadow: 0 14px 30px rgba(17, 19, 24, 0.08);
	}

	.dnc-header__mobile-search-form {
		display: flex;
		height: 52px;
		align-items: center;
		gap: 0.75rem;
		padding: 0 0.35rem 0 1rem;
		border: 1px solid #d9dce1;
		border-radius: 12px;
	}

	.dnc-header__mobile-search-form button {
		height: 42px;
		padding-inline: 1.1rem;
		border: 0;
		border-radius: 9px;
		background: linear-gradient(90deg, #f7ad19, #ffd466);
		color: #111318;
		font-weight: 700;
		cursor: pointer;
	}
}

@media (max-width: 620px) {
	.dnc-header .site-container {
		width: calc(100% - 2rem);
	}

	.dnc-header__top {
		min-height: 82px;
	}

	.dnc-header__brand {
		gap: 0.6rem;
	}

	.dnc-header__brand-icon {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
		border-radius: 10px;
	}

	.dnc-header__crown {
		width: 27px;
		height: 27px;
	}

	.dnc-header__brand-title {
		font-size: clamp(1rem, 5.2vw, 1.4rem);
	}

	.dnc-header__tagline {
		margin-top: 0.3rem;
		font-size: clamp(0.5rem, 2.5vw, 0.7rem);
		letter-spacing: 0.08em;
	}

	.dnc-header__actions {
		gap: 0.5rem;
	}

	.dnc-header__icon-button {
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	.dnc-header__mobile-icon,
	.dnc-header__menu-lines {
		width: 24px;
	}

	.dnc-header__menu-lines {
		height: 20px;
	}

	.dnc-header.is-menu-open .dnc-header__menu-lines span:first-child {
		transform: translateY(8.5px) rotate(45deg);
	}

	.dnc-header.is-menu-open .dnc-header__menu-lines span:last-child {
		transform: translateY(-8.5px) rotate(-45deg);
	}

	.dnc-header__primary {
		left: -1rem;
		width: calc(100% + 2rem);
		max-height: calc(100vh - 82px);
		padding-inline: 1rem;
	}
}

